Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame^] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/descriptor.proto |
| 3 | |
| 4 | #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
| 5 | #include <google/protobuf/descriptor.pb.h> |
| 6 | |
| 7 | #include <algorithm> |
| 8 | |
| 9 | #include <google/protobuf/stubs/common.h> |
| 10 | #include <google/protobuf/stubs/port.h> |
| 11 | #include <google/protobuf/stubs/once.h> |
| 12 | #include <google/protobuf/io/coded_stream.h> |
| 13 | #include <google/protobuf/wire_format_lite_inl.h> |
| 14 | #include <google/protobuf/descriptor.h> |
| 15 | #include <google/protobuf/generated_message_reflection.h> |
| 16 | #include <google/protobuf/reflection_ops.h> |
| 17 | #include <google/protobuf/wire_format.h> |
| 18 | // @@protoc_insertion_point(includes) |
| 19 | |
| 20 | namespace google { |
| 21 | namespace protobuf { |
| 22 | |
| 23 | namespace { |
| 24 | |
| 25 | const ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL; |
| 26 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 27 | FileDescriptorSet_reflection_ = NULL; |
| 28 | const ::google::protobuf::Descriptor* FileDescriptorProto_descriptor_ = NULL; |
| 29 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 30 | FileDescriptorProto_reflection_ = NULL; |
| 31 | const ::google::protobuf::Descriptor* DescriptorProto_descriptor_ = NULL; |
| 32 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 33 | DescriptorProto_reflection_ = NULL; |
| 34 | const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange_descriptor_ = NULL; |
| 35 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 36 | DescriptorProto_ExtensionRange_reflection_ = NULL; |
| 37 | const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange_descriptor_ = NULL; |
| 38 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 39 | DescriptorProto_ReservedRange_reflection_ = NULL; |
| 40 | const ::google::protobuf::Descriptor* FieldDescriptorProto_descriptor_ = NULL; |
| 41 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 42 | FieldDescriptorProto_reflection_ = NULL; |
| 43 | const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_ = NULL; |
| 44 | const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_ = NULL; |
| 45 | const ::google::protobuf::Descriptor* OneofDescriptorProto_descriptor_ = NULL; |
| 46 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 47 | OneofDescriptorProto_reflection_ = NULL; |
| 48 | const ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL; |
| 49 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 50 | EnumDescriptorProto_reflection_ = NULL; |
| 51 | const ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NULL; |
| 52 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 53 | EnumValueDescriptorProto_reflection_ = NULL; |
| 54 | const ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL; |
| 55 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 56 | ServiceDescriptorProto_reflection_ = NULL; |
| 57 | const ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL; |
| 58 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 59 | MethodDescriptorProto_reflection_ = NULL; |
| 60 | const ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL; |
| 61 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 62 | FileOptions_reflection_ = NULL; |
| 63 | const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ = NULL; |
| 64 | const ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL; |
| 65 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 66 | MessageOptions_reflection_ = NULL; |
| 67 | const ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL; |
| 68 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 69 | FieldOptions_reflection_ = NULL; |
| 70 | const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL; |
| 71 | const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor_ = NULL; |
| 72 | const ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL; |
| 73 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 74 | EnumOptions_reflection_ = NULL; |
| 75 | const ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL; |
| 76 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 77 | EnumValueOptions_reflection_ = NULL; |
| 78 | const ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL; |
| 79 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 80 | ServiceOptions_reflection_ = NULL; |
| 81 | const ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL; |
| 82 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 83 | MethodOptions_reflection_ = NULL; |
| 84 | const ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL; |
| 85 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 86 | UninterpretedOption_reflection_ = NULL; |
| 87 | const ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL; |
| 88 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 89 | UninterpretedOption_NamePart_reflection_ = NULL; |
| 90 | const ::google::protobuf::Descriptor* SourceCodeInfo_descriptor_ = NULL; |
| 91 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 92 | SourceCodeInfo_reflection_ = NULL; |
| 93 | const ::google::protobuf::Descriptor* SourceCodeInfo_Location_descriptor_ = NULL; |
| 94 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 95 | SourceCodeInfo_Location_reflection_ = NULL; |
| 96 | const ::google::protobuf::Descriptor* GeneratedCodeInfo_descriptor_ = NULL; |
| 97 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 98 | GeneratedCodeInfo_reflection_ = NULL; |
| 99 | const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation_descriptor_ = NULL; |
| 100 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 101 | GeneratedCodeInfo_Annotation_reflection_ = NULL; |
| 102 | |
| 103 | } // namespace |
| 104 | |
| 105 | |
| 106 | void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
| 107 | protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 108 | const ::google::protobuf::FileDescriptor* file = |
| 109 | ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( |
| 110 | "google/protobuf/descriptor.proto"); |
| 111 | GOOGLE_CHECK(file != NULL); |
| 112 | FileDescriptorSet_descriptor_ = file->message_type(0); |
| 113 | static const int FileDescriptorSet_offsets_[1] = { |
| 114 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_), |
| 115 | }; |
| 116 | FileDescriptorSet_reflection_ = |
| 117 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 118 | FileDescriptorSet_descriptor_, |
| 119 | FileDescriptorSet::default_instance_, |
| 120 | FileDescriptorSet_offsets_, |
| 121 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]), |
| 122 | -1, |
| 123 | -1, |
| 124 | sizeof(FileDescriptorSet), |
| 125 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_metadata_), |
| 126 | -1); |
| 127 | FileDescriptorProto_descriptor_ = file->message_type(1); |
| 128 | static const int FileDescriptorProto_offsets_[12] = { |
| 129 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_), |
| 130 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_), |
| 131 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_), |
| 132 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_dependency_), |
| 133 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dependency_), |
| 134 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_), |
| 135 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_), |
| 136 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_), |
| 137 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_), |
| 138 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_), |
| 139 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_), |
| 140 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_), |
| 141 | }; |
| 142 | FileDescriptorProto_reflection_ = |
| 143 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 144 | FileDescriptorProto_descriptor_, |
| 145 | FileDescriptorProto::default_instance_, |
| 146 | FileDescriptorProto_offsets_, |
| 147 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]), |
| 148 | -1, |
| 149 | -1, |
| 150 | sizeof(FileDescriptorProto), |
| 151 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _internal_metadata_), |
| 152 | -1); |
| 153 | DescriptorProto_descriptor_ = file->message_type(2); |
| 154 | static const int DescriptorProto_offsets_[10] = { |
| 155 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_), |
| 156 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_), |
| 157 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_), |
| 158 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_), |
| 159 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_), |
| 160 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_), |
| 161 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_), |
| 162 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_), |
| 163 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_range_), |
| 164 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_name_), |
| 165 | }; |
| 166 | DescriptorProto_reflection_ = |
| 167 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 168 | DescriptorProto_descriptor_, |
| 169 | DescriptorProto::default_instance_, |
| 170 | DescriptorProto_offsets_, |
| 171 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]), |
| 172 | -1, |
| 173 | -1, |
| 174 | sizeof(DescriptorProto), |
| 175 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_metadata_), |
| 176 | -1); |
| 177 | DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0); |
| 178 | static const int DescriptorProto_ExtensionRange_offsets_[2] = { |
| 179 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_), |
| 180 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_), |
| 181 | }; |
| 182 | DescriptorProto_ExtensionRange_reflection_ = |
| 183 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 184 | DescriptorProto_ExtensionRange_descriptor_, |
| 185 | DescriptorProto_ExtensionRange::default_instance_, |
| 186 | DescriptorProto_ExtensionRange_offsets_, |
| 187 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]), |
| 188 | -1, |
| 189 | -1, |
| 190 | sizeof(DescriptorProto_ExtensionRange), |
| 191 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _internal_metadata_), |
| 192 | -1); |
| 193 | DescriptorProto_ReservedRange_descriptor_ = DescriptorProto_descriptor_->nested_type(1); |
| 194 | static const int DescriptorProto_ReservedRange_offsets_[2] = { |
| 195 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, start_), |
| 196 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, end_), |
| 197 | }; |
| 198 | DescriptorProto_ReservedRange_reflection_ = |
| 199 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 200 | DescriptorProto_ReservedRange_descriptor_, |
| 201 | DescriptorProto_ReservedRange::default_instance_, |
| 202 | DescriptorProto_ReservedRange_offsets_, |
| 203 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _has_bits_[0]), |
| 204 | -1, |
| 205 | -1, |
| 206 | sizeof(DescriptorProto_ReservedRange), |
| 207 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _internal_metadata_), |
| 208 | -1); |
| 209 | FieldDescriptorProto_descriptor_ = file->message_type(3); |
| 210 | static const int FieldDescriptorProto_offsets_[10] = { |
| 211 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_), |
| 212 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_), |
| 213 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_), |
| 214 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_), |
| 215 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_), |
| 216 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_), |
| 217 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_), |
| 218 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_index_), |
| 219 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_name_), |
| 220 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_), |
| 221 | }; |
| 222 | FieldDescriptorProto_reflection_ = |
| 223 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 224 | FieldDescriptorProto_descriptor_, |
| 225 | FieldDescriptorProto::default_instance_, |
| 226 | FieldDescriptorProto_offsets_, |
| 227 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]), |
| 228 | -1, |
| 229 | -1, |
| 230 | sizeof(FieldDescriptorProto), |
| 231 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _internal_metadata_), |
| 232 | -1); |
| 233 | FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0); |
| 234 | FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1); |
| 235 | OneofDescriptorProto_descriptor_ = file->message_type(4); |
| 236 | static const int OneofDescriptorProto_offsets_[1] = { |
| 237 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_), |
| 238 | }; |
| 239 | OneofDescriptorProto_reflection_ = |
| 240 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 241 | OneofDescriptorProto_descriptor_, |
| 242 | OneofDescriptorProto::default_instance_, |
| 243 | OneofDescriptorProto_offsets_, |
| 244 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bits_[0]), |
| 245 | -1, |
| 246 | -1, |
| 247 | sizeof(OneofDescriptorProto), |
| 248 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _internal_metadata_), |
| 249 | -1); |
| 250 | EnumDescriptorProto_descriptor_ = file->message_type(5); |
| 251 | static const int EnumDescriptorProto_offsets_[3] = { |
| 252 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_), |
| 253 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_), |
| 254 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_), |
| 255 | }; |
| 256 | EnumDescriptorProto_reflection_ = |
| 257 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 258 | EnumDescriptorProto_descriptor_, |
| 259 | EnumDescriptorProto::default_instance_, |
| 260 | EnumDescriptorProto_offsets_, |
| 261 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]), |
| 262 | -1, |
| 263 | -1, |
| 264 | sizeof(EnumDescriptorProto), |
| 265 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _internal_metadata_), |
| 266 | -1); |
| 267 | EnumValueDescriptorProto_descriptor_ = file->message_type(6); |
| 268 | static const int EnumValueDescriptorProto_offsets_[3] = { |
| 269 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_), |
| 270 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_), |
| 271 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_), |
| 272 | }; |
| 273 | EnumValueDescriptorProto_reflection_ = |
| 274 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 275 | EnumValueDescriptorProto_descriptor_, |
| 276 | EnumValueDescriptorProto::default_instance_, |
| 277 | EnumValueDescriptorProto_offsets_, |
| 278 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]), |
| 279 | -1, |
| 280 | -1, |
| 281 | sizeof(EnumValueDescriptorProto), |
| 282 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _internal_metadata_), |
| 283 | -1); |
| 284 | ServiceDescriptorProto_descriptor_ = file->message_type(7); |
| 285 | static const int ServiceDescriptorProto_offsets_[3] = { |
| 286 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_), |
| 287 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_), |
| 288 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_), |
| 289 | }; |
| 290 | ServiceDescriptorProto_reflection_ = |
| 291 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 292 | ServiceDescriptorProto_descriptor_, |
| 293 | ServiceDescriptorProto::default_instance_, |
| 294 | ServiceDescriptorProto_offsets_, |
| 295 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]), |
| 296 | -1, |
| 297 | -1, |
| 298 | sizeof(ServiceDescriptorProto), |
| 299 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _internal_metadata_), |
| 300 | -1); |
| 301 | MethodDescriptorProto_descriptor_ = file->message_type(8); |
| 302 | static const int MethodDescriptorProto_offsets_[6] = { |
| 303 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_), |
| 304 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_), |
| 305 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_), |
| 306 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_), |
| 307 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client_streaming_), |
| 308 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server_streaming_), |
| 309 | }; |
| 310 | MethodDescriptorProto_reflection_ = |
| 311 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 312 | MethodDescriptorProto_descriptor_, |
| 313 | MethodDescriptorProto::default_instance_, |
| 314 | MethodDescriptorProto_offsets_, |
| 315 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]), |
| 316 | -1, |
| 317 | -1, |
| 318 | sizeof(MethodDescriptorProto), |
| 319 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _internal_metadata_), |
| 320 | -1); |
| 321 | FileOptions_descriptor_ = file->message_type(9); |
| 322 | static const int FileOptions_offsets_[16] = { |
| 323 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_), |
| 324 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_), |
| 325 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_), |
| 326 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_), |
| 327 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_check_utf8_), |
| 328 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_), |
| 329 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_), |
| 330 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_), |
| 331 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_), |
| 332 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_), |
| 333 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_), |
| 334 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas_), |
| 335 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefix_), |
| 336 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace_), |
| 337 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, javanano_use_deprecated_package_), |
| 338 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_), |
| 339 | }; |
| 340 | FileOptions_reflection_ = |
| 341 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 342 | FileOptions_descriptor_, |
| 343 | FileOptions::default_instance_, |
| 344 | FileOptions_offsets_, |
| 345 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]), |
| 346 | -1, |
| 347 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_), |
| 348 | sizeof(FileOptions), |
| 349 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metadata_), |
| 350 | -1); |
| 351 | FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0); |
| 352 | MessageOptions_descriptor_ = file->message_type(10); |
| 353 | static const int MessageOptions_offsets_[5] = { |
| 354 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_), |
| 355 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_), |
| 356 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_), |
| 357 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_), |
| 358 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_), |
| 359 | }; |
| 360 | MessageOptions_reflection_ = |
| 361 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 362 | MessageOptions_descriptor_, |
| 363 | MessageOptions::default_instance_, |
| 364 | MessageOptions_offsets_, |
| 365 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]), |
| 366 | -1, |
| 367 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_), |
| 368 | sizeof(MessageOptions), |
| 369 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_metadata_), |
| 370 | -1); |
| 371 | FieldOptions_descriptor_ = file->message_type(11); |
| 372 | static const int FieldOptions_offsets_[7] = { |
| 373 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_), |
| 374 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_), |
| 375 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_), |
| 376 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_), |
| 377 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_), |
| 378 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_), |
| 379 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_), |
| 380 | }; |
| 381 | FieldOptions_reflection_ = |
| 382 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 383 | FieldOptions_descriptor_, |
| 384 | FieldOptions::default_instance_, |
| 385 | FieldOptions_offsets_, |
| 386 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]), |
| 387 | -1, |
| 388 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_), |
| 389 | sizeof(FieldOptions), |
| 390 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metadata_), |
| 391 | -1); |
| 392 | FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0); |
| 393 | FieldOptions_JSType_descriptor_ = FieldOptions_descriptor_->enum_type(1); |
| 394 | EnumOptions_descriptor_ = file->message_type(12); |
| 395 | static const int EnumOptions_offsets_[3] = { |
| 396 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_), |
| 397 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_), |
| 398 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_), |
| 399 | }; |
| 400 | EnumOptions_reflection_ = |
| 401 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 402 | EnumOptions_descriptor_, |
| 403 | EnumOptions::default_instance_, |
| 404 | EnumOptions_offsets_, |
| 405 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]), |
| 406 | -1, |
| 407 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_), |
| 408 | sizeof(EnumOptions), |
| 409 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metadata_), |
| 410 | -1); |
| 411 | EnumValueOptions_descriptor_ = file->message_type(13); |
| 412 | static const int EnumValueOptions_offsets_[2] = { |
| 413 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_), |
| 414 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_), |
| 415 | }; |
| 416 | EnumValueOptions_reflection_ = |
| 417 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 418 | EnumValueOptions_descriptor_, |
| 419 | EnumValueOptions::default_instance_, |
| 420 | EnumValueOptions_offsets_, |
| 421 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]), |
| 422 | -1, |
| 423 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_), |
| 424 | sizeof(EnumValueOptions), |
| 425 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_metadata_), |
| 426 | -1); |
| 427 | ServiceOptions_descriptor_ = file->message_type(14); |
| 428 | static const int ServiceOptions_offsets_[2] = { |
| 429 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_), |
| 430 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_), |
| 431 | }; |
| 432 | ServiceOptions_reflection_ = |
| 433 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 434 | ServiceOptions_descriptor_, |
| 435 | ServiceOptions::default_instance_, |
| 436 | ServiceOptions_offsets_, |
| 437 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]), |
| 438 | -1, |
| 439 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_), |
| 440 | sizeof(ServiceOptions), |
| 441 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_metadata_), |
| 442 | -1); |
| 443 | MethodOptions_descriptor_ = file->message_type(15); |
| 444 | static const int MethodOptions_offsets_[2] = { |
| 445 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_), |
| 446 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_), |
| 447 | }; |
| 448 | MethodOptions_reflection_ = |
| 449 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 450 | MethodOptions_descriptor_, |
| 451 | MethodOptions::default_instance_, |
| 452 | MethodOptions_offsets_, |
| 453 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]), |
| 454 | -1, |
| 455 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_), |
| 456 | sizeof(MethodOptions), |
| 457 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_metadata_), |
| 458 | -1); |
| 459 | UninterpretedOption_descriptor_ = file->message_type(16); |
| 460 | static const int UninterpretedOption_offsets_[7] = { |
| 461 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_), |
| 462 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_), |
| 463 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_), |
| 464 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_), |
| 465 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_), |
| 466 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_), |
| 467 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_), |
| 468 | }; |
| 469 | UninterpretedOption_reflection_ = |
| 470 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 471 | UninterpretedOption_descriptor_, |
| 472 | UninterpretedOption::default_instance_, |
| 473 | UninterpretedOption_offsets_, |
| 474 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]), |
| 475 | -1, |
| 476 | -1, |
| 477 | sizeof(UninterpretedOption), |
| 478 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _internal_metadata_), |
| 479 | -1); |
| 480 | UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0); |
| 481 | static const int UninterpretedOption_NamePart_offsets_[2] = { |
| 482 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_), |
| 483 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_), |
| 484 | }; |
| 485 | UninterpretedOption_NamePart_reflection_ = |
| 486 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 487 | UninterpretedOption_NamePart_descriptor_, |
| 488 | UninterpretedOption_NamePart::default_instance_, |
| 489 | UninterpretedOption_NamePart_offsets_, |
| 490 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]), |
| 491 | -1, |
| 492 | -1, |
| 493 | sizeof(UninterpretedOption_NamePart), |
| 494 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _internal_metadata_), |
| 495 | -1); |
| 496 | SourceCodeInfo_descriptor_ = file->message_type(17); |
| 497 | static const int SourceCodeInfo_offsets_[1] = { |
| 498 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_), |
| 499 | }; |
| 500 | SourceCodeInfo_reflection_ = |
| 501 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 502 | SourceCodeInfo_descriptor_, |
| 503 | SourceCodeInfo::default_instance_, |
| 504 | SourceCodeInfo_offsets_, |
| 505 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_[0]), |
| 506 | -1, |
| 507 | -1, |
| 508 | sizeof(SourceCodeInfo), |
| 509 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_metadata_), |
| 510 | -1); |
| 511 | SourceCodeInfo_Location_descriptor_ = SourceCodeInfo_descriptor_->nested_type(0); |
| 512 | static const int SourceCodeInfo_Location_offsets_[5] = { |
| 513 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_), |
| 514 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_), |
| 515 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_comments_), |
| 516 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trailing_comments_), |
| 517 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_detached_comments_), |
| 518 | }; |
| 519 | SourceCodeInfo_Location_reflection_ = |
| 520 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 521 | SourceCodeInfo_Location_descriptor_, |
| 522 | SourceCodeInfo_Location::default_instance_, |
| 523 | SourceCodeInfo_Location_offsets_, |
| 524 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_[0]), |
| 525 | -1, |
| 526 | -1, |
| 527 | sizeof(SourceCodeInfo_Location), |
| 528 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _internal_metadata_), |
| 529 | -1); |
| 530 | GeneratedCodeInfo_descriptor_ = file->message_type(18); |
| 531 | static const int GeneratedCodeInfo_offsets_[1] = { |
| 532 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, annotation_), |
| 533 | }; |
| 534 | GeneratedCodeInfo_reflection_ = |
| 535 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 536 | GeneratedCodeInfo_descriptor_, |
| 537 | GeneratedCodeInfo::default_instance_, |
| 538 | GeneratedCodeInfo_offsets_, |
| 539 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _has_bits_[0]), |
| 540 | -1, |
| 541 | -1, |
| 542 | sizeof(GeneratedCodeInfo), |
| 543 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _internal_metadata_), |
| 544 | -1); |
| 545 | GeneratedCodeInfo_Annotation_descriptor_ = GeneratedCodeInfo_descriptor_->nested_type(0); |
| 546 | static const int GeneratedCodeInfo_Annotation_offsets_[4] = { |
| 547 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, path_), |
| 548 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, source_file_), |
| 549 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, begin_), |
| 550 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, end_), |
| 551 | }; |
| 552 | GeneratedCodeInfo_Annotation_reflection_ = |
| 553 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 554 | GeneratedCodeInfo_Annotation_descriptor_, |
| 555 | GeneratedCodeInfo_Annotation::default_instance_, |
| 556 | GeneratedCodeInfo_Annotation_offsets_, |
| 557 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _has_bits_[0]), |
| 558 | -1, |
| 559 | -1, |
| 560 | sizeof(GeneratedCodeInfo_Annotation), |
| 561 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _internal_metadata_), |
| 562 | -1); |
| 563 | } |
| 564 | |
| 565 | namespace { |
| 566 | |
| 567 | GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); |
| 568 | inline void protobuf_AssignDescriptorsOnce() { |
| 569 | ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, |
| 570 | &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto); |
| 571 | } |
| 572 | |
| 573 | void protobuf_RegisterTypes(const ::std::string&) { |
| 574 | protobuf_AssignDescriptorsOnce(); |
| 575 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 576 | FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance()); |
| 577 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 578 | FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance()); |
| 579 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 580 | DescriptorProto_descriptor_, &DescriptorProto::default_instance()); |
| 581 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 582 | DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance()); |
| 583 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 584 | DescriptorProto_ReservedRange_descriptor_, &DescriptorProto_ReservedRange::default_instance()); |
| 585 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 586 | FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance()); |
| 587 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 588 | OneofDescriptorProto_descriptor_, &OneofDescriptorProto::default_instance()); |
| 589 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 590 | EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance()); |
| 591 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 592 | EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance()); |
| 593 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 594 | ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance()); |
| 595 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 596 | MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance()); |
| 597 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 598 | FileOptions_descriptor_, &FileOptions::default_instance()); |
| 599 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 600 | MessageOptions_descriptor_, &MessageOptions::default_instance()); |
| 601 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 602 | FieldOptions_descriptor_, &FieldOptions::default_instance()); |
| 603 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 604 | EnumOptions_descriptor_, &EnumOptions::default_instance()); |
| 605 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 606 | EnumValueOptions_descriptor_, &EnumValueOptions::default_instance()); |
| 607 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 608 | ServiceOptions_descriptor_, &ServiceOptions::default_instance()); |
| 609 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 610 | MethodOptions_descriptor_, &MethodOptions::default_instance()); |
| 611 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 612 | UninterpretedOption_descriptor_, &UninterpretedOption::default_instance()); |
| 613 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 614 | UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance()); |
| 615 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 616 | SourceCodeInfo_descriptor_, &SourceCodeInfo::default_instance()); |
| 617 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 618 | SourceCodeInfo_Location_descriptor_, &SourceCodeInfo_Location::default_instance()); |
| 619 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 620 | GeneratedCodeInfo_descriptor_, &GeneratedCodeInfo::default_instance()); |
| 621 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 622 | GeneratedCodeInfo_Annotation_descriptor_, &GeneratedCodeInfo_Annotation::default_instance()); |
| 623 | } |
| 624 | |
| 625 | } // namespace |
| 626 | |
| 627 | void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() { |
| 628 | delete FileDescriptorSet::default_instance_; |
| 629 | delete FileDescriptorSet_reflection_; |
| 630 | delete FileDescriptorProto::default_instance_; |
| 631 | delete FileDescriptorProto_reflection_; |
| 632 | delete DescriptorProto::default_instance_; |
| 633 | delete DescriptorProto_reflection_; |
| 634 | delete DescriptorProto_ExtensionRange::default_instance_; |
| 635 | delete DescriptorProto_ExtensionRange_reflection_; |
| 636 | delete DescriptorProto_ReservedRange::default_instance_; |
| 637 | delete DescriptorProto_ReservedRange_reflection_; |
| 638 | delete FieldDescriptorProto::default_instance_; |
| 639 | delete FieldDescriptorProto_reflection_; |
| 640 | delete OneofDescriptorProto::default_instance_; |
| 641 | delete OneofDescriptorProto_reflection_; |
| 642 | delete EnumDescriptorProto::default_instance_; |
| 643 | delete EnumDescriptorProto_reflection_; |
| 644 | delete EnumValueDescriptorProto::default_instance_; |
| 645 | delete EnumValueDescriptorProto_reflection_; |
| 646 | delete ServiceDescriptorProto::default_instance_; |
| 647 | delete ServiceDescriptorProto_reflection_; |
| 648 | delete MethodDescriptorProto::default_instance_; |
| 649 | delete MethodDescriptorProto_reflection_; |
| 650 | delete FileOptions::default_instance_; |
| 651 | delete FileOptions_reflection_; |
| 652 | delete MessageOptions::default_instance_; |
| 653 | delete MessageOptions_reflection_; |
| 654 | delete FieldOptions::default_instance_; |
| 655 | delete FieldOptions_reflection_; |
| 656 | delete EnumOptions::default_instance_; |
| 657 | delete EnumOptions_reflection_; |
| 658 | delete EnumValueOptions::default_instance_; |
| 659 | delete EnumValueOptions_reflection_; |
| 660 | delete ServiceOptions::default_instance_; |
| 661 | delete ServiceOptions_reflection_; |
| 662 | delete MethodOptions::default_instance_; |
| 663 | delete MethodOptions_reflection_; |
| 664 | delete UninterpretedOption::default_instance_; |
| 665 | delete UninterpretedOption_reflection_; |
| 666 | delete UninterpretedOption_NamePart::default_instance_; |
| 667 | delete UninterpretedOption_NamePart_reflection_; |
| 668 | delete SourceCodeInfo::default_instance_; |
| 669 | delete SourceCodeInfo_reflection_; |
| 670 | delete SourceCodeInfo_Location::default_instance_; |
| 671 | delete SourceCodeInfo_Location_reflection_; |
| 672 | delete GeneratedCodeInfo::default_instance_; |
| 673 | delete GeneratedCodeInfo_reflection_; |
| 674 | delete GeneratedCodeInfo_Annotation::default_instance_; |
| 675 | delete GeneratedCodeInfo_Annotation_reflection_; |
| 676 | } |
| 677 | |
| 678 | void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
| 679 | static bool already_here = false; |
| 680 | if (already_here) return; |
| 681 | already_here = true; |
| 682 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 683 | |
| 684 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
| 685 | "\n google/protobuf/descriptor.proto\022\017goog" |
| 686 | "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file" |
| 687 | "\030\001 \003(\0132$.google.protobuf.FileDescriptorP" |
| 688 | "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001" |
| 689 | "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022" |
| 690 | "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen" |
| 691 | "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog" |
| 692 | "le.protobuf.DescriptorProto\0227\n\tenum_type" |
| 693 | "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP" |
| 694 | "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf." |
| 695 | "ServiceDescriptorProto\0228\n\textension\030\007 \003(" |
| 696 | "\0132%.google.protobuf.FieldDescriptorProto" |
| 697 | "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File" |
| 698 | "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog" |
| 699 | "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001" |
| 700 | "(\t\"\360\004\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005" |
| 701 | "field\030\002 \003(\0132%.google.protobuf.FieldDescr" |
| 702 | "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p" |
| 703 | "rotobuf.FieldDescriptorProto\0225\n\013nested_t" |
| 704 | "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr" |
| 705 | "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf" |
| 706 | ".EnumDescriptorProto\022H\n\017extension_range\030" |
| 707 | "\005 \003(\0132/.google.protobuf.DescriptorProto." |
| 708 | "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo" |
| 709 | "gle.protobuf.OneofDescriptorProto\0220\n\007opt" |
| 710 | "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti" |
| 711 | "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro" |
| 712 | "tobuf.DescriptorProto.ReservedRange\022\025\n\rr" |
| 713 | "eserved_name\030\n \003(\t\032,\n\016ExtensionRange\022\r\n\005" |
| 714 | "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\032+\n\rReservedRang" |
| 715 | "e\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\274\005\n\024FieldD" |
| 716 | "escriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003" |
| 717 | " \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf.Fi" |
| 718 | "eldDescriptorProto.Label\0228\n\004type\030\005 \001(\0162*" |
| 719 | ".google.protobuf.FieldDescriptorProto.Ty" |
| 720 | "pe\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022" |
| 721 | "\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030\t " |
| 722 | "\001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001(\0132" |
| 723 | "\035.google.protobuf.FieldOptions\"\266\002\n\004Type\022" |
| 724 | "\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE" |
| 725 | "_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020" |
| 726 | "\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n" |
| 727 | "\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GR" |
| 728 | "OUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022" |
| 729 | "\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_" |
| 730 | "SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SI" |
| 731 | "NT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LABE" |
| 732 | "L_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABE" |
| 733 | "L_REPEATED\020\003\"$\n\024OneofDescriptorProto\022\014\n\004" |
| 734 | "name\030\001 \001(\t\"\214\001\n\023EnumDescriptorProto\022\014\n\004na" |
| 735 | "me\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).google.protobu" |
| 736 | "f.EnumValueDescriptorProto\022-\n\007options\030\003 " |
| 737 | "\001(\0132\034.google.protobuf.EnumOptions\"l\n\030Enu" |
| 738 | "mValueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006n" |
| 739 | "umber\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google.pr" |
| 740 | "otobuf.EnumValueOptions\"\220\001\n\026ServiceDescr" |
| 741 | "iptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\013" |
| 742 | "2&.google.protobuf.MethodDescriptorProto" |
| 743 | "\0220\n\007options\030\003 \001(\0132\037.google.protobuf.Serv" |
| 744 | "iceOptions\"\301\001\n\025MethodDescriptorProto\022\014\n\004" |
| 745 | "name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013output" |
| 746 | "_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google.pr" |
| 747 | "otobuf.MethodOptions\022\037\n\020client_streaming" |
| 748 | "\030\005 \001(\010:\005false\022\037\n\020server_streaming\030\006 \001(\010:" |
| 749 | "\005false\"\256\005\n\013FileOptions\022\024\n\014java_package\030\001" |
| 750 | " \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023ja" |
| 751 | "va_multiple_files\030\n \001(\010:\005false\022,\n\035java_g" |
| 752 | "enerate_equals_and_hash\030\024 \001(\010:\005false\022%\n\026" |
| 753 | "java_string_check_utf8\030\033 \001(\010:\005false\022F\n\014o" |
| 754 | "ptimize_for\030\t \001(\0162).google.protobuf.File" |
| 755 | "Options.OptimizeMode:\005SPEED\022\022\n\ngo_packag" |
| 756 | "e\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005fa" |
| 757 | "lse\022$\n\025java_generic_services\030\021 \001(\010:\005fals" |
| 758 | "e\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022\031\n" |
| 759 | "\ndeprecated\030\027 \001(\010:\005false\022\037\n\020cc_enable_ar" |
| 760 | "enas\030\037 \001(\010:\005false\022\031\n\021objc_class_prefix\030$" |
| 761 | " \001(\t\022\030\n\020csharp_namespace\030% \001(\t\022+\n\037javana" |
| 762 | "no_use_deprecated_package\030& \001(\010B\002\030\001\022C\n\024u" |
| 763 | "ninterpreted_option\030\347\007 \003(\0132$.google.prot" |
| 764 | "obuf.UninterpretedOption\":\n\014OptimizeMode" |
| 765 | "\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RUNTI" |
| 766 | "ME\020\003*\t\010\350\007\020\200\200\200\200\002\"\346\001\n\016MessageOptions\022&\n\027me" |
| 767 | "ssage_set_wire_format\030\001 \001(\010:\005false\022.\n\037no" |
| 768 | "_standard_descriptor_accessor\030\002 \001(\010:\005fal" |
| 769 | "se\022\031\n\ndeprecated\030\003 \001(\010:\005false\022\021\n\tmap_ent" |
| 770 | "ry\030\007 \001(\010\022C\n\024uninterpreted_option\030\347\007 \003(\0132" |
| 771 | "$.google.protobuf.UninterpretedOption*\t\010" |
| 772 | "\350\007\020\200\200\200\200\002\"\230\003\n\014FieldOptions\022:\n\005ctype\030\001 \001(\016" |
| 773 | "2#.google.protobuf.FieldOptions.CType:\006S" |
| 774 | "TRING\022\016\n\006packed\030\002 \001(\010\022\?\n\006jstype\030\006 \001(\0162$." |
| 775 | "google.protobuf.FieldOptions.JSType:\tJS_" |
| 776 | "NORMAL\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\ndeprecate" |
| 777 | "d\030\003 \001(\010:\005false\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024u" |
| 778 | "ninterpreted_option\030\347\007 \003(\0132$.google.prot" |
| 779 | "obuf.UninterpretedOption\"/\n\005CType\022\n\n\006STR" |
| 780 | "ING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002\"5\n\006JST" |
| 781 | "ype\022\r\n\tJS_NORMAL\020\000\022\r\n\tJS_STRING\020\001\022\r\n\tJS_" |
| 782 | "NUMBER\020\002*\t\010\350\007\020\200\200\200\200\002\"\215\001\n\013EnumOptions\022\023\n\013a" |
| 783 | "llow_alias\030\002 \001(\010\022\031\n\ndeprecated\030\003 \001(\010:\005fa" |
| 784 | "lse\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.goo" |
| 785 | "gle.protobuf.UninterpretedOption*\t\010\350\007\020\200\200" |
| 786 | "\200\200\002\"}\n\020EnumValueOptions\022\031\n\ndeprecated\030\001 " |
| 787 | "\001(\010:\005false\022C\n\024uninterpreted_option\030\347\007 \003(" |
| 788 | "\0132$.google.protobuf.UninterpretedOption*" |
| 789 | "\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOptions\022\031\n\ndeprecat" |
| 790 | "ed\030! \001(\010:\005false\022C\n\024uninterpreted_option\030" |
| 791 | "\347\007 \003(\0132$.google.protobuf.UninterpretedOp" |
| 792 | "tion*\t\010\350\007\020\200\200\200\200\002\"z\n\rMethodOptions\022\031\n\ndepr" |
| 793 | "ecated\030! \001(\010:\005false\022C\n\024uninterpreted_opt" |
| 794 | "ion\030\347\007 \003(\0132$.google.protobuf.Uninterpret" |
| 795 | "edOption*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023UninterpretedOpt" |
| 796 | "ion\022;\n\004name\030\002 \003(\0132-.google.protobuf.Unin" |
| 797 | "terpretedOption.NamePart\022\030\n\020identifier_v" |
| 798 | "alue\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022\032" |
| 799 | "\n\022negative_int_value\030\005 \001(\003\022\024\n\014double_val" |
| 800 | "ue\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggreg" |
| 801 | "ate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_part" |
| 802 | "\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n\016SourceC" |
| 803 | "odeInfo\022:\n\010location\030\001 \003(\0132(.google.proto" |
| 804 | "buf.SourceCodeInfo.Location\032\206\001\n\010Location" |
| 805 | "\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020" |
| 806 | "leading_comments\030\003 \001(\t\022\031\n\021trailing_comme" |
| 807 | "nts\030\004 \001(\t\022!\n\031leading_detached_comments\030\006" |
| 808 | " \003(\t\"\247\001\n\021GeneratedCodeInfo\022A\n\nannotation" |
| 809 | "\030\001 \003(\0132-.google.protobuf.GeneratedCodeIn" |
| 810 | "fo.Annotation\032O\n\nAnnotation\022\020\n\004path\030\001 \003(" |
| 811 | "\005B\002\020\001\022\023\n\013source_file\030\002 \001(\t\022\r\n\005begin\030\003 \001(" |
| 812 | "\005\022\013\n\003end\030\004 \001(\005BX\n\023com.google.protobufB\020D" |
| 813 | "escriptorProtosH\001Z\ndescriptor\242\002\003GPB\252\002\032Go" |
| 814 | "ogle.Protobuf.Reflection", 5184); |
| 815 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| 816 | "google/protobuf/descriptor.proto", &protobuf_RegisterTypes); |
| 817 | FileDescriptorSet::default_instance_ = new FileDescriptorSet(); |
| 818 | FileDescriptorProto::default_instance_ = new FileDescriptorProto(); |
| 819 | DescriptorProto::default_instance_ = new DescriptorProto(); |
| 820 | DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange(); |
| 821 | DescriptorProto_ReservedRange::default_instance_ = new DescriptorProto_ReservedRange(); |
| 822 | FieldDescriptorProto::default_instance_ = new FieldDescriptorProto(); |
| 823 | OneofDescriptorProto::default_instance_ = new OneofDescriptorProto(); |
| 824 | EnumDescriptorProto::default_instance_ = new EnumDescriptorProto(); |
| 825 | EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto(); |
| 826 | ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto(); |
| 827 | MethodDescriptorProto::default_instance_ = new MethodDescriptorProto(); |
| 828 | FileOptions::default_instance_ = new FileOptions(); |
| 829 | MessageOptions::default_instance_ = new MessageOptions(); |
| 830 | FieldOptions::default_instance_ = new FieldOptions(); |
| 831 | EnumOptions::default_instance_ = new EnumOptions(); |
| 832 | EnumValueOptions::default_instance_ = new EnumValueOptions(); |
| 833 | ServiceOptions::default_instance_ = new ServiceOptions(); |
| 834 | MethodOptions::default_instance_ = new MethodOptions(); |
| 835 | UninterpretedOption::default_instance_ = new UninterpretedOption(); |
| 836 | UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart(); |
| 837 | SourceCodeInfo::default_instance_ = new SourceCodeInfo(); |
| 838 | SourceCodeInfo_Location::default_instance_ = new SourceCodeInfo_Location(); |
| 839 | GeneratedCodeInfo::default_instance_ = new GeneratedCodeInfo(); |
| 840 | GeneratedCodeInfo_Annotation::default_instance_ = new GeneratedCodeInfo_Annotation(); |
| 841 | FileDescriptorSet::default_instance_->InitAsDefaultInstance(); |
| 842 | FileDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 843 | DescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 844 | DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance(); |
| 845 | DescriptorProto_ReservedRange::default_instance_->InitAsDefaultInstance(); |
| 846 | FieldDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 847 | OneofDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 848 | EnumDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 849 | EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 850 | ServiceDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 851 | MethodDescriptorProto::default_instance_->InitAsDefaultInstance(); |
| 852 | FileOptions::default_instance_->InitAsDefaultInstance(); |
| 853 | MessageOptions::default_instance_->InitAsDefaultInstance(); |
| 854 | FieldOptions::default_instance_->InitAsDefaultInstance(); |
| 855 | EnumOptions::default_instance_->InitAsDefaultInstance(); |
| 856 | EnumValueOptions::default_instance_->InitAsDefaultInstance(); |
| 857 | ServiceOptions::default_instance_->InitAsDefaultInstance(); |
| 858 | MethodOptions::default_instance_->InitAsDefaultInstance(); |
| 859 | UninterpretedOption::default_instance_->InitAsDefaultInstance(); |
| 860 | UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance(); |
| 861 | SourceCodeInfo::default_instance_->InitAsDefaultInstance(); |
| 862 | SourceCodeInfo_Location::default_instance_->InitAsDefaultInstance(); |
| 863 | GeneratedCodeInfo::default_instance_->InitAsDefaultInstance(); |
| 864 | GeneratedCodeInfo_Annotation::default_instance_->InitAsDefaultInstance(); |
| 865 | ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto); |
| 866 | } |
| 867 | |
| 868 | // Force AddDescriptors() to be called at static initialization time. |
| 869 | struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto { |
| 870 | StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() { |
| 871 | protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 872 | } |
| 873 | } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_; |
| 874 | |
| 875 | namespace { |
| 876 | |
| 877 | static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; |
| 878 | static void MergeFromFail(int line) { |
| 879 | GOOGLE_CHECK(false) << __FILE__ << ":" << line; |
| 880 | } |
| 881 | |
| 882 | } // namespace |
| 883 | |
| 884 | |
| 885 | // =================================================================== |
| 886 | |
| 887 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 888 | const int FileDescriptorSet::kFileFieldNumber; |
| 889 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 890 | |
| 891 | FileDescriptorSet::FileDescriptorSet() |
| 892 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 893 | SharedCtor(); |
| 894 | // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet) |
| 895 | } |
| 896 | |
| 897 | void FileDescriptorSet::InitAsDefaultInstance() { |
| 898 | } |
| 899 | |
| 900 | FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from) |
| 901 | : ::google::protobuf::Message(), |
| 902 | _internal_metadata_(NULL) { |
| 903 | SharedCtor(); |
| 904 | MergeFrom(from); |
| 905 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet) |
| 906 | } |
| 907 | |
| 908 | void FileDescriptorSet::SharedCtor() { |
| 909 | _cached_size_ = 0; |
| 910 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 911 | } |
| 912 | |
| 913 | FileDescriptorSet::~FileDescriptorSet() { |
| 914 | // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet) |
| 915 | SharedDtor(); |
| 916 | } |
| 917 | |
| 918 | void FileDescriptorSet::SharedDtor() { |
| 919 | if (this != default_instance_) { |
| 920 | } |
| 921 | } |
| 922 | |
| 923 | void FileDescriptorSet::SetCachedSize(int size) const { |
| 924 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 925 | _cached_size_ = size; |
| 926 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 927 | } |
| 928 | const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() { |
| 929 | protobuf_AssignDescriptorsOnce(); |
| 930 | return FileDescriptorSet_descriptor_; |
| 931 | } |
| 932 | |
| 933 | const FileDescriptorSet& FileDescriptorSet::default_instance() { |
| 934 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 935 | return *default_instance_; |
| 936 | } |
| 937 | |
| 938 | FileDescriptorSet* FileDescriptorSet::default_instance_ = NULL; |
| 939 | |
| 940 | FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) const { |
| 941 | FileDescriptorSet* n = new FileDescriptorSet; |
| 942 | if (arena != NULL) { |
| 943 | arena->Own(n); |
| 944 | } |
| 945 | return n; |
| 946 | } |
| 947 | |
| 948 | void FileDescriptorSet::Clear() { |
| 949 | file_.Clear(); |
| 950 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 951 | if (_internal_metadata_.have_unknown_fields()) { |
| 952 | mutable_unknown_fields()->Clear(); |
| 953 | } |
| 954 | } |
| 955 | |
| 956 | bool FileDescriptorSet::MergePartialFromCodedStream( |
| 957 | ::google::protobuf::io::CodedInputStream* input) { |
| 958 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 959 | ::google::protobuf::uint32 tag; |
| 960 | // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet) |
| 961 | for (;;) { |
| 962 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 963 | tag = p.first; |
| 964 | if (!p.second) goto handle_unusual; |
| 965 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 966 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 967 | case 1: { |
| 968 | if (tag == 10) { |
| 969 | DO_(input->IncrementRecursionDepth()); |
| 970 | parse_loop_file: |
| 971 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 972 | input, add_file())); |
| 973 | } else { |
| 974 | goto handle_unusual; |
| 975 | } |
| 976 | if (input->ExpectTag(10)) goto parse_loop_file; |
| 977 | input->UnsafeDecrementRecursionDepth(); |
| 978 | if (input->ExpectAtEnd()) goto success; |
| 979 | break; |
| 980 | } |
| 981 | |
| 982 | default: { |
| 983 | handle_unusual: |
| 984 | if (tag == 0 || |
| 985 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 986 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 987 | goto success; |
| 988 | } |
| 989 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 990 | input, tag, mutable_unknown_fields())); |
| 991 | break; |
| 992 | } |
| 993 | } |
| 994 | } |
| 995 | success: |
| 996 | // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorSet) |
| 997 | return true; |
| 998 | failure: |
| 999 | // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorSet) |
| 1000 | return false; |
| 1001 | #undef DO_ |
| 1002 | } |
| 1003 | |
| 1004 | void FileDescriptorSet::SerializeWithCachedSizes( |
| 1005 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1006 | // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorSet) |
| 1007 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1008 | for (unsigned int i = 0, n = this->file_size(); i < n; i++) { |
| 1009 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1010 | 1, this->file(i), output); |
| 1011 | } |
| 1012 | |
| 1013 | if (_internal_metadata_.have_unknown_fields()) { |
| 1014 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1015 | unknown_fields(), output); |
| 1016 | } |
| 1017 | // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet) |
| 1018 | } |
| 1019 | |
| 1020 | ::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray( |
| 1021 | ::google::protobuf::uint8* target) const { |
| 1022 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet) |
| 1023 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1024 | for (unsigned int i = 0, n = this->file_size(); i < n; i++) { |
| 1025 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1026 | WriteMessageNoVirtualToArray( |
| 1027 | 1, this->file(i), target); |
| 1028 | } |
| 1029 | |
| 1030 | if (_internal_metadata_.have_unknown_fields()) { |
| 1031 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1032 | unknown_fields(), target); |
| 1033 | } |
| 1034 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet) |
| 1035 | return target; |
| 1036 | } |
| 1037 | |
| 1038 | int FileDescriptorSet::ByteSize() const { |
| 1039 | int total_size = 0; |
| 1040 | |
| 1041 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1042 | total_size += 1 * this->file_size(); |
| 1043 | for (int i = 0; i < this->file_size(); i++) { |
| 1044 | total_size += |
| 1045 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1046 | this->file(i)); |
| 1047 | } |
| 1048 | |
| 1049 | if (_internal_metadata_.have_unknown_fields()) { |
| 1050 | total_size += |
| 1051 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1052 | unknown_fields()); |
| 1053 | } |
| 1054 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1055 | _cached_size_ = total_size; |
| 1056 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1057 | return total_size; |
| 1058 | } |
| 1059 | |
| 1060 | void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) { |
| 1061 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1062 | const FileDescriptorSet* source = |
| 1063 | ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorSet>( |
| 1064 | &from); |
| 1065 | if (source == NULL) { |
| 1066 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1067 | } else { |
| 1068 | MergeFrom(*source); |
| 1069 | } |
| 1070 | } |
| 1071 | |
| 1072 | void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) { |
| 1073 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1074 | file_.MergeFrom(from.file_); |
| 1075 | if (from._internal_metadata_.have_unknown_fields()) { |
| 1076 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 1077 | } |
| 1078 | } |
| 1079 | |
| 1080 | void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) { |
| 1081 | if (&from == this) return; |
| 1082 | Clear(); |
| 1083 | MergeFrom(from); |
| 1084 | } |
| 1085 | |
| 1086 | void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) { |
| 1087 | if (&from == this) return; |
| 1088 | Clear(); |
| 1089 | MergeFrom(from); |
| 1090 | } |
| 1091 | |
| 1092 | bool FileDescriptorSet::IsInitialized() const { |
| 1093 | |
| 1094 | if (!::google::protobuf::internal::AllAreInitialized(this->file())) return false; |
| 1095 | return true; |
| 1096 | } |
| 1097 | |
| 1098 | void FileDescriptorSet::Swap(FileDescriptorSet* other) { |
| 1099 | if (other == this) return; |
| 1100 | InternalSwap(other); |
| 1101 | } |
| 1102 | void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) { |
| 1103 | file_.UnsafeArenaSwap(&other->file_); |
| 1104 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 1105 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1106 | std::swap(_cached_size_, other->_cached_size_); |
| 1107 | } |
| 1108 | |
| 1109 | ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const { |
| 1110 | protobuf_AssignDescriptorsOnce(); |
| 1111 | ::google::protobuf::Metadata metadata; |
| 1112 | metadata.descriptor = FileDescriptorSet_descriptor_; |
| 1113 | metadata.reflection = FileDescriptorSet_reflection_; |
| 1114 | return metadata; |
| 1115 | } |
| 1116 | |
| 1117 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1118 | // FileDescriptorSet |
| 1119 | |
| 1120 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1121 | int FileDescriptorSet::file_size() const { |
| 1122 | return file_.size(); |
| 1123 | } |
| 1124 | void FileDescriptorSet::clear_file() { |
| 1125 | file_.Clear(); |
| 1126 | } |
| 1127 | const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const { |
| 1128 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file) |
| 1129 | return file_.Get(index); |
| 1130 | } |
| 1131 | ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) { |
| 1132 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file) |
| 1133 | return file_.Mutable(index); |
| 1134 | } |
| 1135 | ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() { |
| 1136 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file) |
| 1137 | return file_.Add(); |
| 1138 | } |
| 1139 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >* |
| 1140 | FileDescriptorSet::mutable_file() { |
| 1141 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file) |
| 1142 | return &file_; |
| 1143 | } |
| 1144 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >& |
| 1145 | FileDescriptorSet::file() const { |
| 1146 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file) |
| 1147 | return file_; |
| 1148 | } |
| 1149 | |
| 1150 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1151 | |
| 1152 | // =================================================================== |
| 1153 | |
| 1154 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1155 | const int FileDescriptorProto::kNameFieldNumber; |
| 1156 | const int FileDescriptorProto::kPackageFieldNumber; |
| 1157 | const int FileDescriptorProto::kDependencyFieldNumber; |
| 1158 | const int FileDescriptorProto::kPublicDependencyFieldNumber; |
| 1159 | const int FileDescriptorProto::kWeakDependencyFieldNumber; |
| 1160 | const int FileDescriptorProto::kMessageTypeFieldNumber; |
| 1161 | const int FileDescriptorProto::kEnumTypeFieldNumber; |
| 1162 | const int FileDescriptorProto::kServiceFieldNumber; |
| 1163 | const int FileDescriptorProto::kExtensionFieldNumber; |
| 1164 | const int FileDescriptorProto::kOptionsFieldNumber; |
| 1165 | const int FileDescriptorProto::kSourceCodeInfoFieldNumber; |
| 1166 | const int FileDescriptorProto::kSyntaxFieldNumber; |
| 1167 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1168 | |
| 1169 | FileDescriptorProto::FileDescriptorProto() |
| 1170 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 1171 | SharedCtor(); |
| 1172 | // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto) |
| 1173 | } |
| 1174 | |
| 1175 | void FileDescriptorProto::InitAsDefaultInstance() { |
| 1176 | options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance()); |
| 1177 | source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>(&::google::protobuf::SourceCodeInfo::default_instance()); |
| 1178 | } |
| 1179 | |
| 1180 | FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) |
| 1181 | : ::google::protobuf::Message(), |
| 1182 | _internal_metadata_(NULL) { |
| 1183 | SharedCtor(); |
| 1184 | MergeFrom(from); |
| 1185 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto) |
| 1186 | } |
| 1187 | |
| 1188 | void FileDescriptorProto::SharedCtor() { |
| 1189 | ::google::protobuf::internal::GetEmptyString(); |
| 1190 | _cached_size_ = 0; |
| 1191 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1192 | package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1193 | options_ = NULL; |
| 1194 | source_code_info_ = NULL; |
| 1195 | syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1196 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 1197 | } |
| 1198 | |
| 1199 | FileDescriptorProto::~FileDescriptorProto() { |
| 1200 | // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto) |
| 1201 | SharedDtor(); |
| 1202 | } |
| 1203 | |
| 1204 | void FileDescriptorProto::SharedDtor() { |
| 1205 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1206 | package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1207 | syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1208 | if (this != default_instance_) { |
| 1209 | delete options_; |
| 1210 | delete source_code_info_; |
| 1211 | } |
| 1212 | } |
| 1213 | |
| 1214 | void FileDescriptorProto::SetCachedSize(int size) const { |
| 1215 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1216 | _cached_size_ = size; |
| 1217 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1218 | } |
| 1219 | const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() { |
| 1220 | protobuf_AssignDescriptorsOnce(); |
| 1221 | return FileDescriptorProto_descriptor_; |
| 1222 | } |
| 1223 | |
| 1224 | const FileDescriptorProto& FileDescriptorProto::default_instance() { |
| 1225 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 1226 | return *default_instance_; |
| 1227 | } |
| 1228 | |
| 1229 | FileDescriptorProto* FileDescriptorProto::default_instance_ = NULL; |
| 1230 | |
| 1231 | FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 1232 | FileDescriptorProto* n = new FileDescriptorProto; |
| 1233 | if (arena != NULL) { |
| 1234 | arena->Own(n); |
| 1235 | } |
| 1236 | return n; |
| 1237 | } |
| 1238 | |
| 1239 | void FileDescriptorProto::Clear() { |
| 1240 | if (_has_bits_[0 / 32] & 3u) { |
| 1241 | if (has_name()) { |
| 1242 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1243 | } |
| 1244 | if (has_package()) { |
| 1245 | package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1246 | } |
| 1247 | } |
| 1248 | if (_has_bits_[8 / 32] & 3584u) { |
| 1249 | if (has_options()) { |
| 1250 | if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); |
| 1251 | } |
| 1252 | if (has_source_code_info()) { |
| 1253 | if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear(); |
| 1254 | } |
| 1255 | if (has_syntax()) { |
| 1256 | syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1257 | } |
| 1258 | } |
| 1259 | dependency_.Clear(); |
| 1260 | public_dependency_.Clear(); |
| 1261 | weak_dependency_.Clear(); |
| 1262 | message_type_.Clear(); |
| 1263 | enum_type_.Clear(); |
| 1264 | service_.Clear(); |
| 1265 | extension_.Clear(); |
| 1266 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 1267 | if (_internal_metadata_.have_unknown_fields()) { |
| 1268 | mutable_unknown_fields()->Clear(); |
| 1269 | } |
| 1270 | } |
| 1271 | |
| 1272 | bool FileDescriptorProto::MergePartialFromCodedStream( |
| 1273 | ::google::protobuf::io::CodedInputStream* input) { |
| 1274 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 1275 | ::google::protobuf::uint32 tag; |
| 1276 | // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto) |
| 1277 | for (;;) { |
| 1278 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 1279 | tag = p.first; |
| 1280 | if (!p.second) goto handle_unusual; |
| 1281 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1282 | // optional string name = 1; |
| 1283 | case 1: { |
| 1284 | if (tag == 10) { |
| 1285 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1286 | input, this->mutable_name())); |
| 1287 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1288 | this->name().data(), this->name().length(), |
| 1289 | ::google::protobuf::internal::WireFormat::PARSE, |
| 1290 | "google.protobuf.FileDescriptorProto.name"); |
| 1291 | } else { |
| 1292 | goto handle_unusual; |
| 1293 | } |
| 1294 | if (input->ExpectTag(18)) goto parse_package; |
| 1295 | break; |
| 1296 | } |
| 1297 | |
| 1298 | // optional string package = 2; |
| 1299 | case 2: { |
| 1300 | if (tag == 18) { |
| 1301 | parse_package: |
| 1302 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1303 | input, this->mutable_package())); |
| 1304 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1305 | this->package().data(), this->package().length(), |
| 1306 | ::google::protobuf::internal::WireFormat::PARSE, |
| 1307 | "google.protobuf.FileDescriptorProto.package"); |
| 1308 | } else { |
| 1309 | goto handle_unusual; |
| 1310 | } |
| 1311 | if (input->ExpectTag(26)) goto parse_dependency; |
| 1312 | break; |
| 1313 | } |
| 1314 | |
| 1315 | // repeated string dependency = 3; |
| 1316 | case 3: { |
| 1317 | if (tag == 26) { |
| 1318 | parse_dependency: |
| 1319 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1320 | input, this->add_dependency())); |
| 1321 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1322 | this->dependency(this->dependency_size() - 1).data(), |
| 1323 | this->dependency(this->dependency_size() - 1).length(), |
| 1324 | ::google::protobuf::internal::WireFormat::PARSE, |
| 1325 | "google.protobuf.FileDescriptorProto.dependency"); |
| 1326 | } else { |
| 1327 | goto handle_unusual; |
| 1328 | } |
| 1329 | if (input->ExpectTag(26)) goto parse_dependency; |
| 1330 | if (input->ExpectTag(34)) goto parse_message_type; |
| 1331 | break; |
| 1332 | } |
| 1333 | |
| 1334 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1335 | case 4: { |
| 1336 | if (tag == 34) { |
| 1337 | parse_message_type: |
| 1338 | DO_(input->IncrementRecursionDepth()); |
| 1339 | parse_loop_message_type: |
| 1340 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 1341 | input, add_message_type())); |
| 1342 | } else { |
| 1343 | goto handle_unusual; |
| 1344 | } |
| 1345 | if (input->ExpectTag(34)) goto parse_loop_message_type; |
| 1346 | if (input->ExpectTag(42)) goto parse_loop_enum_type; |
| 1347 | input->UnsafeDecrementRecursionDepth(); |
| 1348 | break; |
| 1349 | } |
| 1350 | |
| 1351 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1352 | case 5: { |
| 1353 | if (tag == 42) { |
| 1354 | DO_(input->IncrementRecursionDepth()); |
| 1355 | parse_loop_enum_type: |
| 1356 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 1357 | input, add_enum_type())); |
| 1358 | } else { |
| 1359 | goto handle_unusual; |
| 1360 | } |
| 1361 | if (input->ExpectTag(42)) goto parse_loop_enum_type; |
| 1362 | if (input->ExpectTag(50)) goto parse_loop_service; |
| 1363 | input->UnsafeDecrementRecursionDepth(); |
| 1364 | break; |
| 1365 | } |
| 1366 | |
| 1367 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1368 | case 6: { |
| 1369 | if (tag == 50) { |
| 1370 | DO_(input->IncrementRecursionDepth()); |
| 1371 | parse_loop_service: |
| 1372 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 1373 | input, add_service())); |
| 1374 | } else { |
| 1375 | goto handle_unusual; |
| 1376 | } |
| 1377 | if (input->ExpectTag(50)) goto parse_loop_service; |
| 1378 | if (input->ExpectTag(58)) goto parse_loop_extension; |
| 1379 | input->UnsafeDecrementRecursionDepth(); |
| 1380 | break; |
| 1381 | } |
| 1382 | |
| 1383 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1384 | case 7: { |
| 1385 | if (tag == 58) { |
| 1386 | DO_(input->IncrementRecursionDepth()); |
| 1387 | parse_loop_extension: |
| 1388 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 1389 | input, add_extension())); |
| 1390 | } else { |
| 1391 | goto handle_unusual; |
| 1392 | } |
| 1393 | if (input->ExpectTag(58)) goto parse_loop_extension; |
| 1394 | input->UnsafeDecrementRecursionDepth(); |
| 1395 | if (input->ExpectTag(66)) goto parse_options; |
| 1396 | break; |
| 1397 | } |
| 1398 | |
| 1399 | // optional .google.protobuf.FileOptions options = 8; |
| 1400 | case 8: { |
| 1401 | if (tag == 66) { |
| 1402 | parse_options: |
| 1403 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 1404 | input, mutable_options())); |
| 1405 | } else { |
| 1406 | goto handle_unusual; |
| 1407 | } |
| 1408 | if (input->ExpectTag(74)) goto parse_source_code_info; |
| 1409 | break; |
| 1410 | } |
| 1411 | |
| 1412 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1413 | case 9: { |
| 1414 | if (tag == 74) { |
| 1415 | parse_source_code_info: |
| 1416 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 1417 | input, mutable_source_code_info())); |
| 1418 | } else { |
| 1419 | goto handle_unusual; |
| 1420 | } |
| 1421 | if (input->ExpectTag(80)) goto parse_public_dependency; |
| 1422 | break; |
| 1423 | } |
| 1424 | |
| 1425 | // repeated int32 public_dependency = 10; |
| 1426 | case 10: { |
| 1427 | if (tag == 80) { |
| 1428 | parse_public_dependency: |
| 1429 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
| 1430 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1431 | 1, 80, input, this->mutable_public_dependency()))); |
| 1432 | } else if (tag == 82) { |
| 1433 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
| 1434 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1435 | input, this->mutable_public_dependency()))); |
| 1436 | } else { |
| 1437 | goto handle_unusual; |
| 1438 | } |
| 1439 | if (input->ExpectTag(80)) goto parse_public_dependency; |
| 1440 | if (input->ExpectTag(88)) goto parse_weak_dependency; |
| 1441 | break; |
| 1442 | } |
| 1443 | |
| 1444 | // repeated int32 weak_dependency = 11; |
| 1445 | case 11: { |
| 1446 | if (tag == 88) { |
| 1447 | parse_weak_dependency: |
| 1448 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
| 1449 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1450 | 1, 88, input, this->mutable_weak_dependency()))); |
| 1451 | } else if (tag == 90) { |
| 1452 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
| 1453 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1454 | input, this->mutable_weak_dependency()))); |
| 1455 | } else { |
| 1456 | goto handle_unusual; |
| 1457 | } |
| 1458 | if (input->ExpectTag(88)) goto parse_weak_dependency; |
| 1459 | if (input->ExpectTag(98)) goto parse_syntax; |
| 1460 | break; |
| 1461 | } |
| 1462 | |
| 1463 | // optional string syntax = 12; |
| 1464 | case 12: { |
| 1465 | if (tag == 98) { |
| 1466 | parse_syntax: |
| 1467 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1468 | input, this->mutable_syntax())); |
| 1469 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1470 | this->syntax().data(), this->syntax().length(), |
| 1471 | ::google::protobuf::internal::WireFormat::PARSE, |
| 1472 | "google.protobuf.FileDescriptorProto.syntax"); |
| 1473 | } else { |
| 1474 | goto handle_unusual; |
| 1475 | } |
| 1476 | if (input->ExpectAtEnd()) goto success; |
| 1477 | break; |
| 1478 | } |
| 1479 | |
| 1480 | default: { |
| 1481 | handle_unusual: |
| 1482 | if (tag == 0 || |
| 1483 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1484 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1485 | goto success; |
| 1486 | } |
| 1487 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1488 | input, tag, mutable_unknown_fields())); |
| 1489 | break; |
| 1490 | } |
| 1491 | } |
| 1492 | } |
| 1493 | success: |
| 1494 | // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorProto) |
| 1495 | return true; |
| 1496 | failure: |
| 1497 | // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorProto) |
| 1498 | return false; |
| 1499 | #undef DO_ |
| 1500 | } |
| 1501 | |
| 1502 | void FileDescriptorProto::SerializeWithCachedSizes( |
| 1503 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1504 | // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorProto) |
| 1505 | // optional string name = 1; |
| 1506 | if (has_name()) { |
| 1507 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1508 | this->name().data(), this->name().length(), |
| 1509 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1510 | "google.protobuf.FileDescriptorProto.name"); |
| 1511 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1512 | 1, this->name(), output); |
| 1513 | } |
| 1514 | |
| 1515 | // optional string package = 2; |
| 1516 | if (has_package()) { |
| 1517 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1518 | this->package().data(), this->package().length(), |
| 1519 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1520 | "google.protobuf.FileDescriptorProto.package"); |
| 1521 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1522 | 2, this->package(), output); |
| 1523 | } |
| 1524 | |
| 1525 | // repeated string dependency = 3; |
| 1526 | for (int i = 0; i < this->dependency_size(); i++) { |
| 1527 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1528 | this->dependency(i).data(), this->dependency(i).length(), |
| 1529 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1530 | "google.protobuf.FileDescriptorProto.dependency"); |
| 1531 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 1532 | 3, this->dependency(i), output); |
| 1533 | } |
| 1534 | |
| 1535 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1536 | for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) { |
| 1537 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1538 | 4, this->message_type(i), output); |
| 1539 | } |
| 1540 | |
| 1541 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1542 | for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 1543 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1544 | 5, this->enum_type(i), output); |
| 1545 | } |
| 1546 | |
| 1547 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1548 | for (unsigned int i = 0, n = this->service_size(); i < n; i++) { |
| 1549 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1550 | 6, this->service(i), output); |
| 1551 | } |
| 1552 | |
| 1553 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1554 | for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 1555 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1556 | 7, this->extension(i), output); |
| 1557 | } |
| 1558 | |
| 1559 | // optional .google.protobuf.FileOptions options = 8; |
| 1560 | if (has_options()) { |
| 1561 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1562 | 8, *this->options_, output); |
| 1563 | } |
| 1564 | |
| 1565 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1566 | if (has_source_code_info()) { |
| 1567 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1568 | 9, *this->source_code_info_, output); |
| 1569 | } |
| 1570 | |
| 1571 | // repeated int32 public_dependency = 10; |
| 1572 | for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1573 | ::google::protobuf::internal::WireFormatLite::WriteInt32( |
| 1574 | 10, this->public_dependency(i), output); |
| 1575 | } |
| 1576 | |
| 1577 | // repeated int32 weak_dependency = 11; |
| 1578 | for (int i = 0; i < this->weak_dependency_size(); i++) { |
| 1579 | ::google::protobuf::internal::WireFormatLite::WriteInt32( |
| 1580 | 11, this->weak_dependency(i), output); |
| 1581 | } |
| 1582 | |
| 1583 | // optional string syntax = 12; |
| 1584 | if (has_syntax()) { |
| 1585 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1586 | this->syntax().data(), this->syntax().length(), |
| 1587 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1588 | "google.protobuf.FileDescriptorProto.syntax"); |
| 1589 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1590 | 12, this->syntax(), output); |
| 1591 | } |
| 1592 | |
| 1593 | if (_internal_metadata_.have_unknown_fields()) { |
| 1594 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1595 | unknown_fields(), output); |
| 1596 | } |
| 1597 | // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto) |
| 1598 | } |
| 1599 | |
| 1600 | ::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray( |
| 1601 | ::google::protobuf::uint8* target) const { |
| 1602 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto) |
| 1603 | // optional string name = 1; |
| 1604 | if (has_name()) { |
| 1605 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1606 | this->name().data(), this->name().length(), |
| 1607 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1608 | "google.protobuf.FileDescriptorProto.name"); |
| 1609 | target = |
| 1610 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1611 | 1, this->name(), target); |
| 1612 | } |
| 1613 | |
| 1614 | // optional string package = 2; |
| 1615 | if (has_package()) { |
| 1616 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1617 | this->package().data(), this->package().length(), |
| 1618 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1619 | "google.protobuf.FileDescriptorProto.package"); |
| 1620 | target = |
| 1621 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1622 | 2, this->package(), target); |
| 1623 | } |
| 1624 | |
| 1625 | // repeated string dependency = 3; |
| 1626 | for (int i = 0; i < this->dependency_size(); i++) { |
| 1627 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1628 | this->dependency(i).data(), this->dependency(i).length(), |
| 1629 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1630 | "google.protobuf.FileDescriptorProto.dependency"); |
| 1631 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1632 | WriteStringToArray(3, this->dependency(i), target); |
| 1633 | } |
| 1634 | |
| 1635 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1636 | for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) { |
| 1637 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1638 | WriteMessageNoVirtualToArray( |
| 1639 | 4, this->message_type(i), target); |
| 1640 | } |
| 1641 | |
| 1642 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1643 | for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 1644 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1645 | WriteMessageNoVirtualToArray( |
| 1646 | 5, this->enum_type(i), target); |
| 1647 | } |
| 1648 | |
| 1649 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1650 | for (unsigned int i = 0, n = this->service_size(); i < n; i++) { |
| 1651 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1652 | WriteMessageNoVirtualToArray( |
| 1653 | 6, this->service(i), target); |
| 1654 | } |
| 1655 | |
| 1656 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1657 | for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 1658 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1659 | WriteMessageNoVirtualToArray( |
| 1660 | 7, this->extension(i), target); |
| 1661 | } |
| 1662 | |
| 1663 | // optional .google.protobuf.FileOptions options = 8; |
| 1664 | if (has_options()) { |
| 1665 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1666 | WriteMessageNoVirtualToArray( |
| 1667 | 8, *this->options_, target); |
| 1668 | } |
| 1669 | |
| 1670 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1671 | if (has_source_code_info()) { |
| 1672 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1673 | WriteMessageNoVirtualToArray( |
| 1674 | 9, *this->source_code_info_, target); |
| 1675 | } |
| 1676 | |
| 1677 | // repeated int32 public_dependency = 10; |
| 1678 | for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1679 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1680 | WriteInt32ToArray(10, this->public_dependency(i), target); |
| 1681 | } |
| 1682 | |
| 1683 | // repeated int32 weak_dependency = 11; |
| 1684 | for (int i = 0; i < this->weak_dependency_size(); i++) { |
| 1685 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1686 | WriteInt32ToArray(11, this->weak_dependency(i), target); |
| 1687 | } |
| 1688 | |
| 1689 | // optional string syntax = 12; |
| 1690 | if (has_syntax()) { |
| 1691 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1692 | this->syntax().data(), this->syntax().length(), |
| 1693 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1694 | "google.protobuf.FileDescriptorProto.syntax"); |
| 1695 | target = |
| 1696 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1697 | 12, this->syntax(), target); |
| 1698 | } |
| 1699 | |
| 1700 | if (_internal_metadata_.have_unknown_fields()) { |
| 1701 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1702 | unknown_fields(), target); |
| 1703 | } |
| 1704 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto) |
| 1705 | return target; |
| 1706 | } |
| 1707 | |
| 1708 | int FileDescriptorProto::ByteSize() const { |
| 1709 | int total_size = 0; |
| 1710 | |
| 1711 | if (_has_bits_[0 / 32] & 3u) { |
| 1712 | // optional string name = 1; |
| 1713 | if (has_name()) { |
| 1714 | total_size += 1 + |
| 1715 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1716 | this->name()); |
| 1717 | } |
| 1718 | |
| 1719 | // optional string package = 2; |
| 1720 | if (has_package()) { |
| 1721 | total_size += 1 + |
| 1722 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1723 | this->package()); |
| 1724 | } |
| 1725 | |
| 1726 | } |
| 1727 | if (_has_bits_[9 / 32] & 3584u) { |
| 1728 | // optional .google.protobuf.FileOptions options = 8; |
| 1729 | if (has_options()) { |
| 1730 | total_size += 1 + |
| 1731 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1732 | *this->options_); |
| 1733 | } |
| 1734 | |
| 1735 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1736 | if (has_source_code_info()) { |
| 1737 | total_size += 1 + |
| 1738 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1739 | *this->source_code_info_); |
| 1740 | } |
| 1741 | |
| 1742 | // optional string syntax = 12; |
| 1743 | if (has_syntax()) { |
| 1744 | total_size += 1 + |
| 1745 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1746 | this->syntax()); |
| 1747 | } |
| 1748 | |
| 1749 | } |
| 1750 | // repeated string dependency = 3; |
| 1751 | total_size += 1 * this->dependency_size(); |
| 1752 | for (int i = 0; i < this->dependency_size(); i++) { |
| 1753 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1754 | this->dependency(i)); |
| 1755 | } |
| 1756 | |
| 1757 | // repeated int32 public_dependency = 10; |
| 1758 | { |
| 1759 | int data_size = 0; |
| 1760 | for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1761 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 1762 | Int32Size(this->public_dependency(i)); |
| 1763 | } |
| 1764 | total_size += 1 * this->public_dependency_size() + data_size; |
| 1765 | } |
| 1766 | |
| 1767 | // repeated int32 weak_dependency = 11; |
| 1768 | { |
| 1769 | int data_size = 0; |
| 1770 | for (int i = 0; i < this->weak_dependency_size(); i++) { |
| 1771 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 1772 | Int32Size(this->weak_dependency(i)); |
| 1773 | } |
| 1774 | total_size += 1 * this->weak_dependency_size() + data_size; |
| 1775 | } |
| 1776 | |
| 1777 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1778 | total_size += 1 * this->message_type_size(); |
| 1779 | for (int i = 0; i < this->message_type_size(); i++) { |
| 1780 | total_size += |
| 1781 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1782 | this->message_type(i)); |
| 1783 | } |
| 1784 | |
| 1785 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1786 | total_size += 1 * this->enum_type_size(); |
| 1787 | for (int i = 0; i < this->enum_type_size(); i++) { |
| 1788 | total_size += |
| 1789 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1790 | this->enum_type(i)); |
| 1791 | } |
| 1792 | |
| 1793 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1794 | total_size += 1 * this->service_size(); |
| 1795 | for (int i = 0; i < this->service_size(); i++) { |
| 1796 | total_size += |
| 1797 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1798 | this->service(i)); |
| 1799 | } |
| 1800 | |
| 1801 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1802 | total_size += 1 * this->extension_size(); |
| 1803 | for (int i = 0; i < this->extension_size(); i++) { |
| 1804 | total_size += |
| 1805 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1806 | this->extension(i)); |
| 1807 | } |
| 1808 | |
| 1809 | if (_internal_metadata_.have_unknown_fields()) { |
| 1810 | total_size += |
| 1811 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1812 | unknown_fields()); |
| 1813 | } |
| 1814 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1815 | _cached_size_ = total_size; |
| 1816 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1817 | return total_size; |
| 1818 | } |
| 1819 | |
| 1820 | void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 1821 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1822 | const FileDescriptorProto* source = |
| 1823 | ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorProto>( |
| 1824 | &from); |
| 1825 | if (source == NULL) { |
| 1826 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1827 | } else { |
| 1828 | MergeFrom(*source); |
| 1829 | } |
| 1830 | } |
| 1831 | |
| 1832 | void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) { |
| 1833 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1834 | dependency_.MergeFrom(from.dependency_); |
| 1835 | public_dependency_.MergeFrom(from.public_dependency_); |
| 1836 | weak_dependency_.MergeFrom(from.weak_dependency_); |
| 1837 | message_type_.MergeFrom(from.message_type_); |
| 1838 | enum_type_.MergeFrom(from.enum_type_); |
| 1839 | service_.MergeFrom(from.service_); |
| 1840 | extension_.MergeFrom(from.extension_); |
| 1841 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 1842 | if (from.has_name()) { |
| 1843 | set_has_name(); |
| 1844 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 1845 | } |
| 1846 | if (from.has_package()) { |
| 1847 | set_has_package(); |
| 1848 | package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.package_); |
| 1849 | } |
| 1850 | } |
| 1851 | if (from._has_bits_[9 / 32] & (0xffu << (9 % 32))) { |
| 1852 | if (from.has_options()) { |
| 1853 | mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options()); |
| 1854 | } |
| 1855 | if (from.has_source_code_info()) { |
| 1856 | mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info()); |
| 1857 | } |
| 1858 | if (from.has_syntax()) { |
| 1859 | set_has_syntax(); |
| 1860 | syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.syntax_); |
| 1861 | } |
| 1862 | } |
| 1863 | if (from._internal_metadata_.have_unknown_fields()) { |
| 1864 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 1865 | } |
| 1866 | } |
| 1867 | |
| 1868 | void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 1869 | if (&from == this) return; |
| 1870 | Clear(); |
| 1871 | MergeFrom(from); |
| 1872 | } |
| 1873 | |
| 1874 | void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) { |
| 1875 | if (&from == this) return; |
| 1876 | Clear(); |
| 1877 | MergeFrom(from); |
| 1878 | } |
| 1879 | |
| 1880 | bool FileDescriptorProto::IsInitialized() const { |
| 1881 | |
| 1882 | if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) return false; |
| 1883 | if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false; |
| 1884 | if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false; |
| 1885 | if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false; |
| 1886 | if (has_options()) { |
| 1887 | if (!this->options_->IsInitialized()) return false; |
| 1888 | } |
| 1889 | return true; |
| 1890 | } |
| 1891 | |
| 1892 | void FileDescriptorProto::Swap(FileDescriptorProto* other) { |
| 1893 | if (other == this) return; |
| 1894 | InternalSwap(other); |
| 1895 | } |
| 1896 | void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) { |
| 1897 | name_.Swap(&other->name_); |
| 1898 | package_.Swap(&other->package_); |
| 1899 | dependency_.UnsafeArenaSwap(&other->dependency_); |
| 1900 | public_dependency_.UnsafeArenaSwap(&other->public_dependency_); |
| 1901 | weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_); |
| 1902 | message_type_.UnsafeArenaSwap(&other->message_type_); |
| 1903 | enum_type_.UnsafeArenaSwap(&other->enum_type_); |
| 1904 | service_.UnsafeArenaSwap(&other->service_); |
| 1905 | extension_.UnsafeArenaSwap(&other->extension_); |
| 1906 | std::swap(options_, other->options_); |
| 1907 | std::swap(source_code_info_, other->source_code_info_); |
| 1908 | syntax_.Swap(&other->syntax_); |
| 1909 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 1910 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1911 | std::swap(_cached_size_, other->_cached_size_); |
| 1912 | } |
| 1913 | |
| 1914 | ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const { |
| 1915 | protobuf_AssignDescriptorsOnce(); |
| 1916 | ::google::protobuf::Metadata metadata; |
| 1917 | metadata.descriptor = FileDescriptorProto_descriptor_; |
| 1918 | metadata.reflection = FileDescriptorProto_reflection_; |
| 1919 | return metadata; |
| 1920 | } |
| 1921 | |
| 1922 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1923 | // FileDescriptorProto |
| 1924 | |
| 1925 | // optional string name = 1; |
| 1926 | bool FileDescriptorProto::has_name() const { |
| 1927 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 1928 | } |
| 1929 | void FileDescriptorProto::set_has_name() { |
| 1930 | _has_bits_[0] |= 0x00000001u; |
| 1931 | } |
| 1932 | void FileDescriptorProto::clear_has_name() { |
| 1933 | _has_bits_[0] &= ~0x00000001u; |
| 1934 | } |
| 1935 | void FileDescriptorProto::clear_name() { |
| 1936 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1937 | clear_has_name(); |
| 1938 | } |
| 1939 | const ::std::string& FileDescriptorProto::name() const { |
| 1940 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name) |
| 1941 | return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1942 | } |
| 1943 | void FileDescriptorProto::set_name(const ::std::string& value) { |
| 1944 | set_has_name(); |
| 1945 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 1946 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name) |
| 1947 | } |
| 1948 | void FileDescriptorProto::set_name(const char* value) { |
| 1949 | set_has_name(); |
| 1950 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 1951 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name) |
| 1952 | } |
| 1953 | void FileDescriptorProto::set_name(const char* value, size_t size) { |
| 1954 | set_has_name(); |
| 1955 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1956 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 1957 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name) |
| 1958 | } |
| 1959 | ::std::string* FileDescriptorProto::mutable_name() { |
| 1960 | set_has_name(); |
| 1961 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name) |
| 1962 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1963 | } |
| 1964 | ::std::string* FileDescriptorProto::release_name() { |
| 1965 | clear_has_name(); |
| 1966 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1967 | } |
| 1968 | void FileDescriptorProto::set_allocated_name(::std::string* name) { |
| 1969 | if (name != NULL) { |
| 1970 | set_has_name(); |
| 1971 | } else { |
| 1972 | clear_has_name(); |
| 1973 | } |
| 1974 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 1975 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name) |
| 1976 | } |
| 1977 | |
| 1978 | // optional string package = 2; |
| 1979 | bool FileDescriptorProto::has_package() const { |
| 1980 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 1981 | } |
| 1982 | void FileDescriptorProto::set_has_package() { |
| 1983 | _has_bits_[0] |= 0x00000002u; |
| 1984 | } |
| 1985 | void FileDescriptorProto::clear_has_package() { |
| 1986 | _has_bits_[0] &= ~0x00000002u; |
| 1987 | } |
| 1988 | void FileDescriptorProto::clear_package() { |
| 1989 | package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1990 | clear_has_package(); |
| 1991 | } |
| 1992 | const ::std::string& FileDescriptorProto::package() const { |
| 1993 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package) |
| 1994 | return package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1995 | } |
| 1996 | void FileDescriptorProto::set_package(const ::std::string& value) { |
| 1997 | set_has_package(); |
| 1998 | package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 1999 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package) |
| 2000 | } |
| 2001 | void FileDescriptorProto::set_package(const char* value) { |
| 2002 | set_has_package(); |
| 2003 | package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2004 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package) |
| 2005 | } |
| 2006 | void FileDescriptorProto::set_package(const char* value, size_t size) { |
| 2007 | set_has_package(); |
| 2008 | package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2009 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2010 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package) |
| 2011 | } |
| 2012 | ::std::string* FileDescriptorProto::mutable_package() { |
| 2013 | set_has_package(); |
| 2014 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package) |
| 2015 | return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2016 | } |
| 2017 | ::std::string* FileDescriptorProto::release_package() { |
| 2018 | clear_has_package(); |
| 2019 | return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2020 | } |
| 2021 | void FileDescriptorProto::set_allocated_package(::std::string* package) { |
| 2022 | if (package != NULL) { |
| 2023 | set_has_package(); |
| 2024 | } else { |
| 2025 | clear_has_package(); |
| 2026 | } |
| 2027 | package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), package); |
| 2028 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package) |
| 2029 | } |
| 2030 | |
| 2031 | // repeated string dependency = 3; |
| 2032 | int FileDescriptorProto::dependency_size() const { |
| 2033 | return dependency_.size(); |
| 2034 | } |
| 2035 | void FileDescriptorProto::clear_dependency() { |
| 2036 | dependency_.Clear(); |
| 2037 | } |
| 2038 | const ::std::string& FileDescriptorProto::dependency(int index) const { |
| 2039 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency) |
| 2040 | return dependency_.Get(index); |
| 2041 | } |
| 2042 | ::std::string* FileDescriptorProto::mutable_dependency(int index) { |
| 2043 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency) |
| 2044 | return dependency_.Mutable(index); |
| 2045 | } |
| 2046 | void FileDescriptorProto::set_dependency(int index, const ::std::string& value) { |
| 2047 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency) |
| 2048 | dependency_.Mutable(index)->assign(value); |
| 2049 | } |
| 2050 | void FileDescriptorProto::set_dependency(int index, const char* value) { |
| 2051 | dependency_.Mutable(index)->assign(value); |
| 2052 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency) |
| 2053 | } |
| 2054 | void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) { |
| 2055 | dependency_.Mutable(index)->assign( |
| 2056 | reinterpret_cast<const char*>(value), size); |
| 2057 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency) |
| 2058 | } |
| 2059 | ::std::string* FileDescriptorProto::add_dependency() { |
| 2060 | return dependency_.Add(); |
| 2061 | } |
| 2062 | void FileDescriptorProto::add_dependency(const ::std::string& value) { |
| 2063 | dependency_.Add()->assign(value); |
| 2064 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency) |
| 2065 | } |
| 2066 | void FileDescriptorProto::add_dependency(const char* value) { |
| 2067 | dependency_.Add()->assign(value); |
| 2068 | // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency) |
| 2069 | } |
| 2070 | void FileDescriptorProto::add_dependency(const char* value, size_t size) { |
| 2071 | dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 2072 | // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency) |
| 2073 | } |
| 2074 | const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 2075 | FileDescriptorProto::dependency() const { |
| 2076 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency) |
| 2077 | return dependency_; |
| 2078 | } |
| 2079 | ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 2080 | FileDescriptorProto::mutable_dependency() { |
| 2081 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency) |
| 2082 | return &dependency_; |
| 2083 | } |
| 2084 | |
| 2085 | // repeated int32 public_dependency = 10; |
| 2086 | int FileDescriptorProto::public_dependency_size() const { |
| 2087 | return public_dependency_.size(); |
| 2088 | } |
| 2089 | void FileDescriptorProto::clear_public_dependency() { |
| 2090 | public_dependency_.Clear(); |
| 2091 | } |
| 2092 | ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const { |
| 2093 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency) |
| 2094 | return public_dependency_.Get(index); |
| 2095 | } |
| 2096 | void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) { |
| 2097 | public_dependency_.Set(index, value); |
| 2098 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency) |
| 2099 | } |
| 2100 | void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) { |
| 2101 | public_dependency_.Add(value); |
| 2102 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency) |
| 2103 | } |
| 2104 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 2105 | FileDescriptorProto::public_dependency() const { |
| 2106 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency) |
| 2107 | return public_dependency_; |
| 2108 | } |
| 2109 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 2110 | FileDescriptorProto::mutable_public_dependency() { |
| 2111 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency) |
| 2112 | return &public_dependency_; |
| 2113 | } |
| 2114 | |
| 2115 | // repeated int32 weak_dependency = 11; |
| 2116 | int FileDescriptorProto::weak_dependency_size() const { |
| 2117 | return weak_dependency_.size(); |
| 2118 | } |
| 2119 | void FileDescriptorProto::clear_weak_dependency() { |
| 2120 | weak_dependency_.Clear(); |
| 2121 | } |
| 2122 | ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const { |
| 2123 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2124 | return weak_dependency_.Get(index); |
| 2125 | } |
| 2126 | void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) { |
| 2127 | weak_dependency_.Set(index, value); |
| 2128 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2129 | } |
| 2130 | void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) { |
| 2131 | weak_dependency_.Add(value); |
| 2132 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2133 | } |
| 2134 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 2135 | FileDescriptorProto::weak_dependency() const { |
| 2136 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2137 | return weak_dependency_; |
| 2138 | } |
| 2139 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 2140 | FileDescriptorProto::mutable_weak_dependency() { |
| 2141 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2142 | return &weak_dependency_; |
| 2143 | } |
| 2144 | |
| 2145 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 2146 | int FileDescriptorProto::message_type_size() const { |
| 2147 | return message_type_.size(); |
| 2148 | } |
| 2149 | void FileDescriptorProto::clear_message_type() { |
| 2150 | message_type_.Clear(); |
| 2151 | } |
| 2152 | const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const { |
| 2153 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type) |
| 2154 | return message_type_.Get(index); |
| 2155 | } |
| 2156 | ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) { |
| 2157 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type) |
| 2158 | return message_type_.Mutable(index); |
| 2159 | } |
| 2160 | ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() { |
| 2161 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type) |
| 2162 | return message_type_.Add(); |
| 2163 | } |
| 2164 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 2165 | FileDescriptorProto::mutable_message_type() { |
| 2166 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type) |
| 2167 | return &message_type_; |
| 2168 | } |
| 2169 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 2170 | FileDescriptorProto::message_type() const { |
| 2171 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type) |
| 2172 | return message_type_; |
| 2173 | } |
| 2174 | |
| 2175 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 2176 | int FileDescriptorProto::enum_type_size() const { |
| 2177 | return enum_type_.size(); |
| 2178 | } |
| 2179 | void FileDescriptorProto::clear_enum_type() { |
| 2180 | enum_type_.Clear(); |
| 2181 | } |
| 2182 | const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const { |
| 2183 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type) |
| 2184 | return enum_type_.Get(index); |
| 2185 | } |
| 2186 | ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) { |
| 2187 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type) |
| 2188 | return enum_type_.Mutable(index); |
| 2189 | } |
| 2190 | ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() { |
| 2191 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type) |
| 2192 | return enum_type_.Add(); |
| 2193 | } |
| 2194 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 2195 | FileDescriptorProto::mutable_enum_type() { |
| 2196 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type) |
| 2197 | return &enum_type_; |
| 2198 | } |
| 2199 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 2200 | FileDescriptorProto::enum_type() const { |
| 2201 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type) |
| 2202 | return enum_type_; |
| 2203 | } |
| 2204 | |
| 2205 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 2206 | int FileDescriptorProto::service_size() const { |
| 2207 | return service_.size(); |
| 2208 | } |
| 2209 | void FileDescriptorProto::clear_service() { |
| 2210 | service_.Clear(); |
| 2211 | } |
| 2212 | const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const { |
| 2213 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service) |
| 2214 | return service_.Get(index); |
| 2215 | } |
| 2216 | ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) { |
| 2217 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service) |
| 2218 | return service_.Mutable(index); |
| 2219 | } |
| 2220 | ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() { |
| 2221 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service) |
| 2222 | return service_.Add(); |
| 2223 | } |
| 2224 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >* |
| 2225 | FileDescriptorProto::mutable_service() { |
| 2226 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service) |
| 2227 | return &service_; |
| 2228 | } |
| 2229 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >& |
| 2230 | FileDescriptorProto::service() const { |
| 2231 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service) |
| 2232 | return service_; |
| 2233 | } |
| 2234 | |
| 2235 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 2236 | int FileDescriptorProto::extension_size() const { |
| 2237 | return extension_.size(); |
| 2238 | } |
| 2239 | void FileDescriptorProto::clear_extension() { |
| 2240 | extension_.Clear(); |
| 2241 | } |
| 2242 | const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const { |
| 2243 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension) |
| 2244 | return extension_.Get(index); |
| 2245 | } |
| 2246 | ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) { |
| 2247 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension) |
| 2248 | return extension_.Mutable(index); |
| 2249 | } |
| 2250 | ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() { |
| 2251 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension) |
| 2252 | return extension_.Add(); |
| 2253 | } |
| 2254 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 2255 | FileDescriptorProto::mutable_extension() { |
| 2256 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension) |
| 2257 | return &extension_; |
| 2258 | } |
| 2259 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 2260 | FileDescriptorProto::extension() const { |
| 2261 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension) |
| 2262 | return extension_; |
| 2263 | } |
| 2264 | |
| 2265 | // optional .google.protobuf.FileOptions options = 8; |
| 2266 | bool FileDescriptorProto::has_options() const { |
| 2267 | return (_has_bits_[0] & 0x00000200u) != 0; |
| 2268 | } |
| 2269 | void FileDescriptorProto::set_has_options() { |
| 2270 | _has_bits_[0] |= 0x00000200u; |
| 2271 | } |
| 2272 | void FileDescriptorProto::clear_has_options() { |
| 2273 | _has_bits_[0] &= ~0x00000200u; |
| 2274 | } |
| 2275 | void FileDescriptorProto::clear_options() { |
| 2276 | if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); |
| 2277 | clear_has_options(); |
| 2278 | } |
| 2279 | const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { |
| 2280 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options) |
| 2281 | return options_ != NULL ? *options_ : *default_instance_->options_; |
| 2282 | } |
| 2283 | ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { |
| 2284 | set_has_options(); |
| 2285 | if (options_ == NULL) { |
| 2286 | options_ = new ::google::protobuf::FileOptions; |
| 2287 | } |
| 2288 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options) |
| 2289 | return options_; |
| 2290 | } |
| 2291 | ::google::protobuf::FileOptions* FileDescriptorProto::release_options() { |
| 2292 | clear_has_options(); |
| 2293 | ::google::protobuf::FileOptions* temp = options_; |
| 2294 | options_ = NULL; |
| 2295 | return temp; |
| 2296 | } |
| 2297 | void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) { |
| 2298 | delete options_; |
| 2299 | options_ = options; |
| 2300 | if (options) { |
| 2301 | set_has_options(); |
| 2302 | } else { |
| 2303 | clear_has_options(); |
| 2304 | } |
| 2305 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options) |
| 2306 | } |
| 2307 | |
| 2308 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 2309 | bool FileDescriptorProto::has_source_code_info() const { |
| 2310 | return (_has_bits_[0] & 0x00000400u) != 0; |
| 2311 | } |
| 2312 | void FileDescriptorProto::set_has_source_code_info() { |
| 2313 | _has_bits_[0] |= 0x00000400u; |
| 2314 | } |
| 2315 | void FileDescriptorProto::clear_has_source_code_info() { |
| 2316 | _has_bits_[0] &= ~0x00000400u; |
| 2317 | } |
| 2318 | void FileDescriptorProto::clear_source_code_info() { |
| 2319 | if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear(); |
| 2320 | clear_has_source_code_info(); |
| 2321 | } |
| 2322 | const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const { |
| 2323 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info) |
| 2324 | return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_; |
| 2325 | } |
| 2326 | ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() { |
| 2327 | set_has_source_code_info(); |
| 2328 | if (source_code_info_ == NULL) { |
| 2329 | source_code_info_ = new ::google::protobuf::SourceCodeInfo; |
| 2330 | } |
| 2331 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info) |
| 2332 | return source_code_info_; |
| 2333 | } |
| 2334 | ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() { |
| 2335 | clear_has_source_code_info(); |
| 2336 | ::google::protobuf::SourceCodeInfo* temp = source_code_info_; |
| 2337 | source_code_info_ = NULL; |
| 2338 | return temp; |
| 2339 | } |
| 2340 | void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) { |
| 2341 | delete source_code_info_; |
| 2342 | source_code_info_ = source_code_info; |
| 2343 | if (source_code_info) { |
| 2344 | set_has_source_code_info(); |
| 2345 | } else { |
| 2346 | clear_has_source_code_info(); |
| 2347 | } |
| 2348 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info) |
| 2349 | } |
| 2350 | |
| 2351 | // optional string syntax = 12; |
| 2352 | bool FileDescriptorProto::has_syntax() const { |
| 2353 | return (_has_bits_[0] & 0x00000800u) != 0; |
| 2354 | } |
| 2355 | void FileDescriptorProto::set_has_syntax() { |
| 2356 | _has_bits_[0] |= 0x00000800u; |
| 2357 | } |
| 2358 | void FileDescriptorProto::clear_has_syntax() { |
| 2359 | _has_bits_[0] &= ~0x00000800u; |
| 2360 | } |
| 2361 | void FileDescriptorProto::clear_syntax() { |
| 2362 | syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2363 | clear_has_syntax(); |
| 2364 | } |
| 2365 | const ::std::string& FileDescriptorProto::syntax() const { |
| 2366 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax) |
| 2367 | return syntax_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2368 | } |
| 2369 | void FileDescriptorProto::set_syntax(const ::std::string& value) { |
| 2370 | set_has_syntax(); |
| 2371 | syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 2372 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax) |
| 2373 | } |
| 2374 | void FileDescriptorProto::set_syntax(const char* value) { |
| 2375 | set_has_syntax(); |
| 2376 | syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2377 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax) |
| 2378 | } |
| 2379 | void FileDescriptorProto::set_syntax(const char* value, size_t size) { |
| 2380 | set_has_syntax(); |
| 2381 | syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2382 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2383 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax) |
| 2384 | } |
| 2385 | ::std::string* FileDescriptorProto::mutable_syntax() { |
| 2386 | set_has_syntax(); |
| 2387 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax) |
| 2388 | return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2389 | } |
| 2390 | ::std::string* FileDescriptorProto::release_syntax() { |
| 2391 | clear_has_syntax(); |
| 2392 | return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2393 | } |
| 2394 | void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { |
| 2395 | if (syntax != NULL) { |
| 2396 | set_has_syntax(); |
| 2397 | } else { |
| 2398 | clear_has_syntax(); |
| 2399 | } |
| 2400 | syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), syntax); |
| 2401 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax) |
| 2402 | } |
| 2403 | |
| 2404 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2405 | |
| 2406 | // =================================================================== |
| 2407 | |
| 2408 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2409 | const int DescriptorProto_ExtensionRange::kStartFieldNumber; |
| 2410 | const int DescriptorProto_ExtensionRange::kEndFieldNumber; |
| 2411 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2412 | |
| 2413 | DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange() |
| 2414 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 2415 | SharedCtor(); |
| 2416 | // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange) |
| 2417 | } |
| 2418 | |
| 2419 | void DescriptorProto_ExtensionRange::InitAsDefaultInstance() { |
| 2420 | } |
| 2421 | |
| 2422 | DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from) |
| 2423 | : ::google::protobuf::Message(), |
| 2424 | _internal_metadata_(NULL) { |
| 2425 | SharedCtor(); |
| 2426 | MergeFrom(from); |
| 2427 | // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange) |
| 2428 | } |
| 2429 | |
| 2430 | void DescriptorProto_ExtensionRange::SharedCtor() { |
| 2431 | _cached_size_ = 0; |
| 2432 | start_ = 0; |
| 2433 | end_ = 0; |
| 2434 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 2435 | } |
| 2436 | |
| 2437 | DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { |
| 2438 | // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange) |
| 2439 | SharedDtor(); |
| 2440 | } |
| 2441 | |
| 2442 | void DescriptorProto_ExtensionRange::SharedDtor() { |
| 2443 | if (this != default_instance_) { |
| 2444 | } |
| 2445 | } |
| 2446 | |
| 2447 | void DescriptorProto_ExtensionRange::SetCachedSize(int size) const { |
| 2448 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2449 | _cached_size_ = size; |
| 2450 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2451 | } |
| 2452 | const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() { |
| 2453 | protobuf_AssignDescriptorsOnce(); |
| 2454 | return DescriptorProto_ExtensionRange_descriptor_; |
| 2455 | } |
| 2456 | |
| 2457 | const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() { |
| 2458 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2459 | return *default_instance_; |
| 2460 | } |
| 2461 | |
| 2462 | DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL; |
| 2463 | |
| 2464 | DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::protobuf::Arena* arena) const { |
| 2465 | DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange; |
| 2466 | if (arena != NULL) { |
| 2467 | arena->Own(n); |
| 2468 | } |
| 2469 | return n; |
| 2470 | } |
| 2471 | |
| 2472 | void DescriptorProto_ExtensionRange::Clear() { |
| 2473 | #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 2474 | &reinterpret_cast<DescriptorProto_ExtensionRange*>(16)->f) |
| 2475 | |
| 2476 | #define ZR_(first, last) do {\ |
| 2477 | ::memset(&first, 0,\ |
| 2478 | ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 2479 | } while (0) |
| 2480 | |
| 2481 | ZR_(start_, end_); |
| 2482 | |
| 2483 | #undef ZR_HELPER_ |
| 2484 | #undef ZR_ |
| 2485 | |
| 2486 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 2487 | if (_internal_metadata_.have_unknown_fields()) { |
| 2488 | mutable_unknown_fields()->Clear(); |
| 2489 | } |
| 2490 | } |
| 2491 | |
| 2492 | bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( |
| 2493 | ::google::protobuf::io::CodedInputStream* input) { |
| 2494 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 2495 | ::google::protobuf::uint32 tag; |
| 2496 | // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2497 | for (;;) { |
| 2498 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 2499 | tag = p.first; |
| 2500 | if (!p.second) goto handle_unusual; |
| 2501 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2502 | // optional int32 start = 1; |
| 2503 | case 1: { |
| 2504 | if (tag == 8) { |
| 2505 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2506 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2507 | input, &start_))); |
| 2508 | set_has_start(); |
| 2509 | } else { |
| 2510 | goto handle_unusual; |
| 2511 | } |
| 2512 | if (input->ExpectTag(16)) goto parse_end; |
| 2513 | break; |
| 2514 | } |
| 2515 | |
| 2516 | // optional int32 end = 2; |
| 2517 | case 2: { |
| 2518 | if (tag == 16) { |
| 2519 | parse_end: |
| 2520 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2521 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2522 | input, &end_))); |
| 2523 | set_has_end(); |
| 2524 | } else { |
| 2525 | goto handle_unusual; |
| 2526 | } |
| 2527 | if (input->ExpectAtEnd()) goto success; |
| 2528 | break; |
| 2529 | } |
| 2530 | |
| 2531 | default: { |
| 2532 | handle_unusual: |
| 2533 | if (tag == 0 || |
| 2534 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 2535 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 2536 | goto success; |
| 2537 | } |
| 2538 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2539 | input, tag, mutable_unknown_fields())); |
| 2540 | break; |
| 2541 | } |
| 2542 | } |
| 2543 | } |
| 2544 | success: |
| 2545 | // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ExtensionRange) |
| 2546 | return true; |
| 2547 | failure: |
| 2548 | // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ExtensionRange) |
| 2549 | return false; |
| 2550 | #undef DO_ |
| 2551 | } |
| 2552 | |
| 2553 | void DescriptorProto_ExtensionRange::SerializeWithCachedSizes( |
| 2554 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2555 | // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2556 | // optional int32 start = 1; |
| 2557 | if (has_start()) { |
| 2558 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output); |
| 2559 | } |
| 2560 | |
| 2561 | // optional int32 end = 2; |
| 2562 | if (has_end()) { |
| 2563 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output); |
| 2564 | } |
| 2565 | |
| 2566 | if (_internal_metadata_.have_unknown_fields()) { |
| 2567 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2568 | unknown_fields(), output); |
| 2569 | } |
| 2570 | // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange) |
| 2571 | } |
| 2572 | |
| 2573 | ::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray( |
| 2574 | ::google::protobuf::uint8* target) const { |
| 2575 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2576 | // optional int32 start = 1; |
| 2577 | if (has_start()) { |
| 2578 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target); |
| 2579 | } |
| 2580 | |
| 2581 | // optional int32 end = 2; |
| 2582 | if (has_end()) { |
| 2583 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target); |
| 2584 | } |
| 2585 | |
| 2586 | if (_internal_metadata_.have_unknown_fields()) { |
| 2587 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2588 | unknown_fields(), target); |
| 2589 | } |
| 2590 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange) |
| 2591 | return target; |
| 2592 | } |
| 2593 | |
| 2594 | int DescriptorProto_ExtensionRange::ByteSize() const { |
| 2595 | int total_size = 0; |
| 2596 | |
| 2597 | if (_has_bits_[0 / 32] & 3u) { |
| 2598 | // optional int32 start = 1; |
| 2599 | if (has_start()) { |
| 2600 | total_size += 1 + |
| 2601 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2602 | this->start()); |
| 2603 | } |
| 2604 | |
| 2605 | // optional int32 end = 2; |
| 2606 | if (has_end()) { |
| 2607 | total_size += 1 + |
| 2608 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2609 | this->end()); |
| 2610 | } |
| 2611 | |
| 2612 | } |
| 2613 | if (_internal_metadata_.have_unknown_fields()) { |
| 2614 | total_size += |
| 2615 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2616 | unknown_fields()); |
| 2617 | } |
| 2618 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2619 | _cached_size_ = total_size; |
| 2620 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2621 | return total_size; |
| 2622 | } |
| 2623 | |
| 2624 | void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) { |
| 2625 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2626 | const DescriptorProto_ExtensionRange* source = |
| 2627 | ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ExtensionRange>( |
| 2628 | &from); |
| 2629 | if (source == NULL) { |
| 2630 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2631 | } else { |
| 2632 | MergeFrom(*source); |
| 2633 | } |
| 2634 | } |
| 2635 | |
| 2636 | void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) { |
| 2637 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2638 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 2639 | if (from.has_start()) { |
| 2640 | set_start(from.start()); |
| 2641 | } |
| 2642 | if (from.has_end()) { |
| 2643 | set_end(from.end()); |
| 2644 | } |
| 2645 | } |
| 2646 | if (from._internal_metadata_.have_unknown_fields()) { |
| 2647 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 2648 | } |
| 2649 | } |
| 2650 | |
| 2651 | void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) { |
| 2652 | if (&from == this) return; |
| 2653 | Clear(); |
| 2654 | MergeFrom(from); |
| 2655 | } |
| 2656 | |
| 2657 | void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) { |
| 2658 | if (&from == this) return; |
| 2659 | Clear(); |
| 2660 | MergeFrom(from); |
| 2661 | } |
| 2662 | |
| 2663 | bool DescriptorProto_ExtensionRange::IsInitialized() const { |
| 2664 | |
| 2665 | return true; |
| 2666 | } |
| 2667 | |
| 2668 | void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) { |
| 2669 | if (other == this) return; |
| 2670 | InternalSwap(other); |
| 2671 | } |
| 2672 | void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange* other) { |
| 2673 | std::swap(start_, other->start_); |
| 2674 | std::swap(end_, other->end_); |
| 2675 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 2676 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2677 | std::swap(_cached_size_, other->_cached_size_); |
| 2678 | } |
| 2679 | |
| 2680 | ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const { |
| 2681 | protobuf_AssignDescriptorsOnce(); |
| 2682 | ::google::protobuf::Metadata metadata; |
| 2683 | metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_; |
| 2684 | metadata.reflection = DescriptorProto_ExtensionRange_reflection_; |
| 2685 | return metadata; |
| 2686 | } |
| 2687 | |
| 2688 | |
| 2689 | // ------------------------------------------------------------------- |
| 2690 | |
| 2691 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2692 | const int DescriptorProto_ReservedRange::kStartFieldNumber; |
| 2693 | const int DescriptorProto_ReservedRange::kEndFieldNumber; |
| 2694 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2695 | |
| 2696 | DescriptorProto_ReservedRange::DescriptorProto_ReservedRange() |
| 2697 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 2698 | SharedCtor(); |
| 2699 | // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ReservedRange) |
| 2700 | } |
| 2701 | |
| 2702 | void DescriptorProto_ReservedRange::InitAsDefaultInstance() { |
| 2703 | } |
| 2704 | |
| 2705 | DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from) |
| 2706 | : ::google::protobuf::Message(), |
| 2707 | _internal_metadata_(NULL) { |
| 2708 | SharedCtor(); |
| 2709 | MergeFrom(from); |
| 2710 | // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange) |
| 2711 | } |
| 2712 | |
| 2713 | void DescriptorProto_ReservedRange::SharedCtor() { |
| 2714 | _cached_size_ = 0; |
| 2715 | start_ = 0; |
| 2716 | end_ = 0; |
| 2717 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 2718 | } |
| 2719 | |
| 2720 | DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { |
| 2721 | // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange) |
| 2722 | SharedDtor(); |
| 2723 | } |
| 2724 | |
| 2725 | void DescriptorProto_ReservedRange::SharedDtor() { |
| 2726 | if (this != default_instance_) { |
| 2727 | } |
| 2728 | } |
| 2729 | |
| 2730 | void DescriptorProto_ReservedRange::SetCachedSize(int size) const { |
| 2731 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2732 | _cached_size_ = size; |
| 2733 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2734 | } |
| 2735 | const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor() { |
| 2736 | protobuf_AssignDescriptorsOnce(); |
| 2737 | return DescriptorProto_ReservedRange_descriptor_; |
| 2738 | } |
| 2739 | |
| 2740 | const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_instance() { |
| 2741 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2742 | return *default_instance_; |
| 2743 | } |
| 2744 | |
| 2745 | DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::default_instance_ = NULL; |
| 2746 | |
| 2747 | DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::protobuf::Arena* arena) const { |
| 2748 | DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange; |
| 2749 | if (arena != NULL) { |
| 2750 | arena->Own(n); |
| 2751 | } |
| 2752 | return n; |
| 2753 | } |
| 2754 | |
| 2755 | void DescriptorProto_ReservedRange::Clear() { |
| 2756 | #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 2757 | &reinterpret_cast<DescriptorProto_ReservedRange*>(16)->f) |
| 2758 | |
| 2759 | #define ZR_(first, last) do {\ |
| 2760 | ::memset(&first, 0,\ |
| 2761 | ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 2762 | } while (0) |
| 2763 | |
| 2764 | ZR_(start_, end_); |
| 2765 | |
| 2766 | #undef ZR_HELPER_ |
| 2767 | #undef ZR_ |
| 2768 | |
| 2769 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 2770 | if (_internal_metadata_.have_unknown_fields()) { |
| 2771 | mutable_unknown_fields()->Clear(); |
| 2772 | } |
| 2773 | } |
| 2774 | |
| 2775 | bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( |
| 2776 | ::google::protobuf::io::CodedInputStream* input) { |
| 2777 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 2778 | ::google::protobuf::uint32 tag; |
| 2779 | // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ReservedRange) |
| 2780 | for (;;) { |
| 2781 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 2782 | tag = p.first; |
| 2783 | if (!p.second) goto handle_unusual; |
| 2784 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2785 | // optional int32 start = 1; |
| 2786 | case 1: { |
| 2787 | if (tag == 8) { |
| 2788 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2789 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2790 | input, &start_))); |
| 2791 | set_has_start(); |
| 2792 | } else { |
| 2793 | goto handle_unusual; |
| 2794 | } |
| 2795 | if (input->ExpectTag(16)) goto parse_end; |
| 2796 | break; |
| 2797 | } |
| 2798 | |
| 2799 | // optional int32 end = 2; |
| 2800 | case 2: { |
| 2801 | if (tag == 16) { |
| 2802 | parse_end: |
| 2803 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2804 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2805 | input, &end_))); |
| 2806 | set_has_end(); |
| 2807 | } else { |
| 2808 | goto handle_unusual; |
| 2809 | } |
| 2810 | if (input->ExpectAtEnd()) goto success; |
| 2811 | break; |
| 2812 | } |
| 2813 | |
| 2814 | default: { |
| 2815 | handle_unusual: |
| 2816 | if (tag == 0 || |
| 2817 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 2818 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 2819 | goto success; |
| 2820 | } |
| 2821 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2822 | input, tag, mutable_unknown_fields())); |
| 2823 | break; |
| 2824 | } |
| 2825 | } |
| 2826 | } |
| 2827 | success: |
| 2828 | // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ReservedRange) |
| 2829 | return true; |
| 2830 | failure: |
| 2831 | // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ReservedRange) |
| 2832 | return false; |
| 2833 | #undef DO_ |
| 2834 | } |
| 2835 | |
| 2836 | void DescriptorProto_ReservedRange::SerializeWithCachedSizes( |
| 2837 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2838 | // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ReservedRange) |
| 2839 | // optional int32 start = 1; |
| 2840 | if (has_start()) { |
| 2841 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output); |
| 2842 | } |
| 2843 | |
| 2844 | // optional int32 end = 2; |
| 2845 | if (has_end()) { |
| 2846 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output); |
| 2847 | } |
| 2848 | |
| 2849 | if (_internal_metadata_.have_unknown_fields()) { |
| 2850 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2851 | unknown_fields(), output); |
| 2852 | } |
| 2853 | // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ReservedRange) |
| 2854 | } |
| 2855 | |
| 2856 | ::google::protobuf::uint8* DescriptorProto_ReservedRange::SerializeWithCachedSizesToArray( |
| 2857 | ::google::protobuf::uint8* target) const { |
| 2858 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange) |
| 2859 | // optional int32 start = 1; |
| 2860 | if (has_start()) { |
| 2861 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target); |
| 2862 | } |
| 2863 | |
| 2864 | // optional int32 end = 2; |
| 2865 | if (has_end()) { |
| 2866 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target); |
| 2867 | } |
| 2868 | |
| 2869 | if (_internal_metadata_.have_unknown_fields()) { |
| 2870 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2871 | unknown_fields(), target); |
| 2872 | } |
| 2873 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ReservedRange) |
| 2874 | return target; |
| 2875 | } |
| 2876 | |
| 2877 | int DescriptorProto_ReservedRange::ByteSize() const { |
| 2878 | int total_size = 0; |
| 2879 | |
| 2880 | if (_has_bits_[0 / 32] & 3u) { |
| 2881 | // optional int32 start = 1; |
| 2882 | if (has_start()) { |
| 2883 | total_size += 1 + |
| 2884 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2885 | this->start()); |
| 2886 | } |
| 2887 | |
| 2888 | // optional int32 end = 2; |
| 2889 | if (has_end()) { |
| 2890 | total_size += 1 + |
| 2891 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2892 | this->end()); |
| 2893 | } |
| 2894 | |
| 2895 | } |
| 2896 | if (_internal_metadata_.have_unknown_fields()) { |
| 2897 | total_size += |
| 2898 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2899 | unknown_fields()); |
| 2900 | } |
| 2901 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2902 | _cached_size_ = total_size; |
| 2903 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2904 | return total_size; |
| 2905 | } |
| 2906 | |
| 2907 | void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) { |
| 2908 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2909 | const DescriptorProto_ReservedRange* source = |
| 2910 | ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ReservedRange>( |
| 2911 | &from); |
| 2912 | if (source == NULL) { |
| 2913 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2914 | } else { |
| 2915 | MergeFrom(*source); |
| 2916 | } |
| 2917 | } |
| 2918 | |
| 2919 | void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) { |
| 2920 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2921 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 2922 | if (from.has_start()) { |
| 2923 | set_start(from.start()); |
| 2924 | } |
| 2925 | if (from.has_end()) { |
| 2926 | set_end(from.end()); |
| 2927 | } |
| 2928 | } |
| 2929 | if (from._internal_metadata_.have_unknown_fields()) { |
| 2930 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 2931 | } |
| 2932 | } |
| 2933 | |
| 2934 | void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) { |
| 2935 | if (&from == this) return; |
| 2936 | Clear(); |
| 2937 | MergeFrom(from); |
| 2938 | } |
| 2939 | |
| 2940 | void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange& from) { |
| 2941 | if (&from == this) return; |
| 2942 | Clear(); |
| 2943 | MergeFrom(from); |
| 2944 | } |
| 2945 | |
| 2946 | bool DescriptorProto_ReservedRange::IsInitialized() const { |
| 2947 | |
| 2948 | return true; |
| 2949 | } |
| 2950 | |
| 2951 | void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) { |
| 2952 | if (other == this) return; |
| 2953 | InternalSwap(other); |
| 2954 | } |
| 2955 | void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) { |
| 2956 | std::swap(start_, other->start_); |
| 2957 | std::swap(end_, other->end_); |
| 2958 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 2959 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2960 | std::swap(_cached_size_, other->_cached_size_); |
| 2961 | } |
| 2962 | |
| 2963 | ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const { |
| 2964 | protobuf_AssignDescriptorsOnce(); |
| 2965 | ::google::protobuf::Metadata metadata; |
| 2966 | metadata.descriptor = DescriptorProto_ReservedRange_descriptor_; |
| 2967 | metadata.reflection = DescriptorProto_ReservedRange_reflection_; |
| 2968 | return metadata; |
| 2969 | } |
| 2970 | |
| 2971 | |
| 2972 | // ------------------------------------------------------------------- |
| 2973 | |
| 2974 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2975 | const int DescriptorProto::kNameFieldNumber; |
| 2976 | const int DescriptorProto::kFieldFieldNumber; |
| 2977 | const int DescriptorProto::kExtensionFieldNumber; |
| 2978 | const int DescriptorProto::kNestedTypeFieldNumber; |
| 2979 | const int DescriptorProto::kEnumTypeFieldNumber; |
| 2980 | const int DescriptorProto::kExtensionRangeFieldNumber; |
| 2981 | const int DescriptorProto::kOneofDeclFieldNumber; |
| 2982 | const int DescriptorProto::kOptionsFieldNumber; |
| 2983 | const int DescriptorProto::kReservedRangeFieldNumber; |
| 2984 | const int DescriptorProto::kReservedNameFieldNumber; |
| 2985 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2986 | |
| 2987 | DescriptorProto::DescriptorProto() |
| 2988 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 2989 | SharedCtor(); |
| 2990 | // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto) |
| 2991 | } |
| 2992 | |
| 2993 | void DescriptorProto::InitAsDefaultInstance() { |
| 2994 | options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance()); |
| 2995 | } |
| 2996 | |
| 2997 | DescriptorProto::DescriptorProto(const DescriptorProto& from) |
| 2998 | : ::google::protobuf::Message(), |
| 2999 | _internal_metadata_(NULL) { |
| 3000 | SharedCtor(); |
| 3001 | MergeFrom(from); |
| 3002 | // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) |
| 3003 | } |
| 3004 | |
| 3005 | void DescriptorProto::SharedCtor() { |
| 3006 | ::google::protobuf::internal::GetEmptyString(); |
| 3007 | _cached_size_ = 0; |
| 3008 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3009 | options_ = NULL; |
| 3010 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 3011 | } |
| 3012 | |
| 3013 | DescriptorProto::~DescriptorProto() { |
| 3014 | // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto) |
| 3015 | SharedDtor(); |
| 3016 | } |
| 3017 | |
| 3018 | void DescriptorProto::SharedDtor() { |
| 3019 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3020 | if (this != default_instance_) { |
| 3021 | delete options_; |
| 3022 | } |
| 3023 | } |
| 3024 | |
| 3025 | void DescriptorProto::SetCachedSize(int size) const { |
| 3026 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 3027 | _cached_size_ = size; |
| 3028 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 3029 | } |
| 3030 | const ::google::protobuf::Descriptor* DescriptorProto::descriptor() { |
| 3031 | protobuf_AssignDescriptorsOnce(); |
| 3032 | return DescriptorProto_descriptor_; |
| 3033 | } |
| 3034 | |
| 3035 | const DescriptorProto& DescriptorProto::default_instance() { |
| 3036 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 3037 | return *default_instance_; |
| 3038 | } |
| 3039 | |
| 3040 | DescriptorProto* DescriptorProto::default_instance_ = NULL; |
| 3041 | |
| 3042 | DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 3043 | DescriptorProto* n = new DescriptorProto; |
| 3044 | if (arena != NULL) { |
| 3045 | arena->Own(n); |
| 3046 | } |
| 3047 | return n; |
| 3048 | } |
| 3049 | |
| 3050 | void DescriptorProto::Clear() { |
| 3051 | if (_has_bits_[0 / 32] & 129u) { |
| 3052 | if (has_name()) { |
| 3053 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3054 | } |
| 3055 | if (has_options()) { |
| 3056 | if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); |
| 3057 | } |
| 3058 | } |
| 3059 | field_.Clear(); |
| 3060 | extension_.Clear(); |
| 3061 | nested_type_.Clear(); |
| 3062 | enum_type_.Clear(); |
| 3063 | extension_range_.Clear(); |
| 3064 | oneof_decl_.Clear(); |
| 3065 | reserved_range_.Clear(); |
| 3066 | reserved_name_.Clear(); |
| 3067 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 3068 | if (_internal_metadata_.have_unknown_fields()) { |
| 3069 | mutable_unknown_fields()->Clear(); |
| 3070 | } |
| 3071 | } |
| 3072 | |
| 3073 | bool DescriptorProto::MergePartialFromCodedStream( |
| 3074 | ::google::protobuf::io::CodedInputStream* input) { |
| 3075 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 3076 | ::google::protobuf::uint32 tag; |
| 3077 | // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto) |
| 3078 | for (;;) { |
| 3079 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 3080 | tag = p.first; |
| 3081 | if (!p.second) goto handle_unusual; |
| 3082 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3083 | // optional string name = 1; |
| 3084 | case 1: { |
| 3085 | if (tag == 10) { |
| 3086 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3087 | input, this->mutable_name())); |
| 3088 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3089 | this->name().data(), this->name().length(), |
| 3090 | ::google::protobuf::internal::WireFormat::PARSE, |
| 3091 | "google.protobuf.DescriptorProto.name"); |
| 3092 | } else { |
| 3093 | goto handle_unusual; |
| 3094 | } |
| 3095 | if (input->ExpectTag(18)) goto parse_field; |
| 3096 | break; |
| 3097 | } |
| 3098 | |
| 3099 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3100 | case 2: { |
| 3101 | if (tag == 18) { |
| 3102 | parse_field: |
| 3103 | DO_(input->IncrementRecursionDepth()); |
| 3104 | parse_loop_field: |
| 3105 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3106 | input, add_field())); |
| 3107 | } else { |
| 3108 | goto handle_unusual; |
| 3109 | } |
| 3110 | if (input->ExpectTag(18)) goto parse_loop_field; |
| 3111 | if (input->ExpectTag(26)) goto parse_loop_nested_type; |
| 3112 | input->UnsafeDecrementRecursionDepth(); |
| 3113 | break; |
| 3114 | } |
| 3115 | |
| 3116 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3117 | case 3: { |
| 3118 | if (tag == 26) { |
| 3119 | DO_(input->IncrementRecursionDepth()); |
| 3120 | parse_loop_nested_type: |
| 3121 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3122 | input, add_nested_type())); |
| 3123 | } else { |
| 3124 | goto handle_unusual; |
| 3125 | } |
| 3126 | if (input->ExpectTag(26)) goto parse_loop_nested_type; |
| 3127 | if (input->ExpectTag(34)) goto parse_loop_enum_type; |
| 3128 | input->UnsafeDecrementRecursionDepth(); |
| 3129 | break; |
| 3130 | } |
| 3131 | |
| 3132 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3133 | case 4: { |
| 3134 | if (tag == 34) { |
| 3135 | DO_(input->IncrementRecursionDepth()); |
| 3136 | parse_loop_enum_type: |
| 3137 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3138 | input, add_enum_type())); |
| 3139 | } else { |
| 3140 | goto handle_unusual; |
| 3141 | } |
| 3142 | if (input->ExpectTag(34)) goto parse_loop_enum_type; |
| 3143 | if (input->ExpectTag(42)) goto parse_loop_extension_range; |
| 3144 | input->UnsafeDecrementRecursionDepth(); |
| 3145 | break; |
| 3146 | } |
| 3147 | |
| 3148 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3149 | case 5: { |
| 3150 | if (tag == 42) { |
| 3151 | DO_(input->IncrementRecursionDepth()); |
| 3152 | parse_loop_extension_range: |
| 3153 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3154 | input, add_extension_range())); |
| 3155 | } else { |
| 3156 | goto handle_unusual; |
| 3157 | } |
| 3158 | if (input->ExpectTag(42)) goto parse_loop_extension_range; |
| 3159 | if (input->ExpectTag(50)) goto parse_loop_extension; |
| 3160 | input->UnsafeDecrementRecursionDepth(); |
| 3161 | break; |
| 3162 | } |
| 3163 | |
| 3164 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3165 | case 6: { |
| 3166 | if (tag == 50) { |
| 3167 | DO_(input->IncrementRecursionDepth()); |
| 3168 | parse_loop_extension: |
| 3169 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3170 | input, add_extension())); |
| 3171 | } else { |
| 3172 | goto handle_unusual; |
| 3173 | } |
| 3174 | if (input->ExpectTag(50)) goto parse_loop_extension; |
| 3175 | input->UnsafeDecrementRecursionDepth(); |
| 3176 | if (input->ExpectTag(58)) goto parse_options; |
| 3177 | break; |
| 3178 | } |
| 3179 | |
| 3180 | // optional .google.protobuf.MessageOptions options = 7; |
| 3181 | case 7: { |
| 3182 | if (tag == 58) { |
| 3183 | parse_options: |
| 3184 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 3185 | input, mutable_options())); |
| 3186 | } else { |
| 3187 | goto handle_unusual; |
| 3188 | } |
| 3189 | if (input->ExpectTag(66)) goto parse_oneof_decl; |
| 3190 | break; |
| 3191 | } |
| 3192 | |
| 3193 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3194 | case 8: { |
| 3195 | if (tag == 66) { |
| 3196 | parse_oneof_decl: |
| 3197 | DO_(input->IncrementRecursionDepth()); |
| 3198 | parse_loop_oneof_decl: |
| 3199 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3200 | input, add_oneof_decl())); |
| 3201 | } else { |
| 3202 | goto handle_unusual; |
| 3203 | } |
| 3204 | if (input->ExpectTag(66)) goto parse_loop_oneof_decl; |
| 3205 | if (input->ExpectTag(74)) goto parse_loop_reserved_range; |
| 3206 | input->UnsafeDecrementRecursionDepth(); |
| 3207 | break; |
| 3208 | } |
| 3209 | |
| 3210 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3211 | case 9: { |
| 3212 | if (tag == 74) { |
| 3213 | DO_(input->IncrementRecursionDepth()); |
| 3214 | parse_loop_reserved_range: |
| 3215 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3216 | input, add_reserved_range())); |
| 3217 | } else { |
| 3218 | goto handle_unusual; |
| 3219 | } |
| 3220 | if (input->ExpectTag(74)) goto parse_loop_reserved_range; |
| 3221 | input->UnsafeDecrementRecursionDepth(); |
| 3222 | if (input->ExpectTag(82)) goto parse_reserved_name; |
| 3223 | break; |
| 3224 | } |
| 3225 | |
| 3226 | // repeated string reserved_name = 10; |
| 3227 | case 10: { |
| 3228 | if (tag == 82) { |
| 3229 | parse_reserved_name: |
| 3230 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3231 | input, this->add_reserved_name())); |
| 3232 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3233 | this->reserved_name(this->reserved_name_size() - 1).data(), |
| 3234 | this->reserved_name(this->reserved_name_size() - 1).length(), |
| 3235 | ::google::protobuf::internal::WireFormat::PARSE, |
| 3236 | "google.protobuf.DescriptorProto.reserved_name"); |
| 3237 | } else { |
| 3238 | goto handle_unusual; |
| 3239 | } |
| 3240 | if (input->ExpectTag(82)) goto parse_reserved_name; |
| 3241 | if (input->ExpectAtEnd()) goto success; |
| 3242 | break; |
| 3243 | } |
| 3244 | |
| 3245 | default: { |
| 3246 | handle_unusual: |
| 3247 | if (tag == 0 || |
| 3248 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 3249 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 3250 | goto success; |
| 3251 | } |
| 3252 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3253 | input, tag, mutable_unknown_fields())); |
| 3254 | break; |
| 3255 | } |
| 3256 | } |
| 3257 | } |
| 3258 | success: |
| 3259 | // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto) |
| 3260 | return true; |
| 3261 | failure: |
| 3262 | // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto) |
| 3263 | return false; |
| 3264 | #undef DO_ |
| 3265 | } |
| 3266 | |
| 3267 | void DescriptorProto::SerializeWithCachedSizes( |
| 3268 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3269 | // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto) |
| 3270 | // optional string name = 1; |
| 3271 | if (has_name()) { |
| 3272 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3273 | this->name().data(), this->name().length(), |
| 3274 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3275 | "google.protobuf.DescriptorProto.name"); |
| 3276 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3277 | 1, this->name(), output); |
| 3278 | } |
| 3279 | |
| 3280 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3281 | for (unsigned int i = 0, n = this->field_size(); i < n; i++) { |
| 3282 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3283 | 2, this->field(i), output); |
| 3284 | } |
| 3285 | |
| 3286 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3287 | for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) { |
| 3288 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3289 | 3, this->nested_type(i), output); |
| 3290 | } |
| 3291 | |
| 3292 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3293 | for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 3294 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3295 | 4, this->enum_type(i), output); |
| 3296 | } |
| 3297 | |
| 3298 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3299 | for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) { |
| 3300 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3301 | 5, this->extension_range(i), output); |
| 3302 | } |
| 3303 | |
| 3304 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3305 | for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 3306 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3307 | 6, this->extension(i), output); |
| 3308 | } |
| 3309 | |
| 3310 | // optional .google.protobuf.MessageOptions options = 7; |
| 3311 | if (has_options()) { |
| 3312 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3313 | 7, *this->options_, output); |
| 3314 | } |
| 3315 | |
| 3316 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3317 | for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) { |
| 3318 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3319 | 8, this->oneof_decl(i), output); |
| 3320 | } |
| 3321 | |
| 3322 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3323 | for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) { |
| 3324 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3325 | 9, this->reserved_range(i), output); |
| 3326 | } |
| 3327 | |
| 3328 | // repeated string reserved_name = 10; |
| 3329 | for (int i = 0; i < this->reserved_name_size(); i++) { |
| 3330 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3331 | this->reserved_name(i).data(), this->reserved_name(i).length(), |
| 3332 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3333 | "google.protobuf.DescriptorProto.reserved_name"); |
| 3334 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 3335 | 10, this->reserved_name(i), output); |
| 3336 | } |
| 3337 | |
| 3338 | if (_internal_metadata_.have_unknown_fields()) { |
| 3339 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3340 | unknown_fields(), output); |
| 3341 | } |
| 3342 | // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto) |
| 3343 | } |
| 3344 | |
| 3345 | ::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray( |
| 3346 | ::google::protobuf::uint8* target) const { |
| 3347 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto) |
| 3348 | // optional string name = 1; |
| 3349 | if (has_name()) { |
| 3350 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3351 | this->name().data(), this->name().length(), |
| 3352 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3353 | "google.protobuf.DescriptorProto.name"); |
| 3354 | target = |
| 3355 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3356 | 1, this->name(), target); |
| 3357 | } |
| 3358 | |
| 3359 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3360 | for (unsigned int i = 0, n = this->field_size(); i < n; i++) { |
| 3361 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3362 | WriteMessageNoVirtualToArray( |
| 3363 | 2, this->field(i), target); |
| 3364 | } |
| 3365 | |
| 3366 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3367 | for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) { |
| 3368 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3369 | WriteMessageNoVirtualToArray( |
| 3370 | 3, this->nested_type(i), target); |
| 3371 | } |
| 3372 | |
| 3373 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3374 | for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 3375 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3376 | WriteMessageNoVirtualToArray( |
| 3377 | 4, this->enum_type(i), target); |
| 3378 | } |
| 3379 | |
| 3380 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3381 | for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) { |
| 3382 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3383 | WriteMessageNoVirtualToArray( |
| 3384 | 5, this->extension_range(i), target); |
| 3385 | } |
| 3386 | |
| 3387 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3388 | for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 3389 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3390 | WriteMessageNoVirtualToArray( |
| 3391 | 6, this->extension(i), target); |
| 3392 | } |
| 3393 | |
| 3394 | // optional .google.protobuf.MessageOptions options = 7; |
| 3395 | if (has_options()) { |
| 3396 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3397 | WriteMessageNoVirtualToArray( |
| 3398 | 7, *this->options_, target); |
| 3399 | } |
| 3400 | |
| 3401 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3402 | for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) { |
| 3403 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3404 | WriteMessageNoVirtualToArray( |
| 3405 | 8, this->oneof_decl(i), target); |
| 3406 | } |
| 3407 | |
| 3408 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3409 | for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) { |
| 3410 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3411 | WriteMessageNoVirtualToArray( |
| 3412 | 9, this->reserved_range(i), target); |
| 3413 | } |
| 3414 | |
| 3415 | // repeated string reserved_name = 10; |
| 3416 | for (int i = 0; i < this->reserved_name_size(); i++) { |
| 3417 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3418 | this->reserved_name(i).data(), this->reserved_name(i).length(), |
| 3419 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3420 | "google.protobuf.DescriptorProto.reserved_name"); |
| 3421 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3422 | WriteStringToArray(10, this->reserved_name(i), target); |
| 3423 | } |
| 3424 | |
| 3425 | if (_internal_metadata_.have_unknown_fields()) { |
| 3426 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3427 | unknown_fields(), target); |
| 3428 | } |
| 3429 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto) |
| 3430 | return target; |
| 3431 | } |
| 3432 | |
| 3433 | int DescriptorProto::ByteSize() const { |
| 3434 | int total_size = 0; |
| 3435 | |
| 3436 | if (_has_bits_[0 / 32] & 129u) { |
| 3437 | // optional string name = 1; |
| 3438 | if (has_name()) { |
| 3439 | total_size += 1 + |
| 3440 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3441 | this->name()); |
| 3442 | } |
| 3443 | |
| 3444 | // optional .google.protobuf.MessageOptions options = 7; |
| 3445 | if (has_options()) { |
| 3446 | total_size += 1 + |
| 3447 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3448 | *this->options_); |
| 3449 | } |
| 3450 | |
| 3451 | } |
| 3452 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3453 | total_size += 1 * this->field_size(); |
| 3454 | for (int i = 0; i < this->field_size(); i++) { |
| 3455 | total_size += |
| 3456 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3457 | this->field(i)); |
| 3458 | } |
| 3459 | |
| 3460 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3461 | total_size += 1 * this->extension_size(); |
| 3462 | for (int i = 0; i < this->extension_size(); i++) { |
| 3463 | total_size += |
| 3464 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3465 | this->extension(i)); |
| 3466 | } |
| 3467 | |
| 3468 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3469 | total_size += 1 * this->nested_type_size(); |
| 3470 | for (int i = 0; i < this->nested_type_size(); i++) { |
| 3471 | total_size += |
| 3472 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3473 | this->nested_type(i)); |
| 3474 | } |
| 3475 | |
| 3476 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3477 | total_size += 1 * this->enum_type_size(); |
| 3478 | for (int i = 0; i < this->enum_type_size(); i++) { |
| 3479 | total_size += |
| 3480 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3481 | this->enum_type(i)); |
| 3482 | } |
| 3483 | |
| 3484 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3485 | total_size += 1 * this->extension_range_size(); |
| 3486 | for (int i = 0; i < this->extension_range_size(); i++) { |
| 3487 | total_size += |
| 3488 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3489 | this->extension_range(i)); |
| 3490 | } |
| 3491 | |
| 3492 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3493 | total_size += 1 * this->oneof_decl_size(); |
| 3494 | for (int i = 0; i < this->oneof_decl_size(); i++) { |
| 3495 | total_size += |
| 3496 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3497 | this->oneof_decl(i)); |
| 3498 | } |
| 3499 | |
| 3500 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3501 | total_size += 1 * this->reserved_range_size(); |
| 3502 | for (int i = 0; i < this->reserved_range_size(); i++) { |
| 3503 | total_size += |
| 3504 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3505 | this->reserved_range(i)); |
| 3506 | } |
| 3507 | |
| 3508 | // repeated string reserved_name = 10; |
| 3509 | total_size += 1 * this->reserved_name_size(); |
| 3510 | for (int i = 0; i < this->reserved_name_size(); i++) { |
| 3511 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3512 | this->reserved_name(i)); |
| 3513 | } |
| 3514 | |
| 3515 | if (_internal_metadata_.have_unknown_fields()) { |
| 3516 | total_size += |
| 3517 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3518 | unknown_fields()); |
| 3519 | } |
| 3520 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 3521 | _cached_size_ = total_size; |
| 3522 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 3523 | return total_size; |
| 3524 | } |
| 3525 | |
| 3526 | void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 3527 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 3528 | const DescriptorProto* source = |
| 3529 | ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto>( |
| 3530 | &from); |
| 3531 | if (source == NULL) { |
| 3532 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3533 | } else { |
| 3534 | MergeFrom(*source); |
| 3535 | } |
| 3536 | } |
| 3537 | |
| 3538 | void DescriptorProto::MergeFrom(const DescriptorProto& from) { |
| 3539 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 3540 | field_.MergeFrom(from.field_); |
| 3541 | extension_.MergeFrom(from.extension_); |
| 3542 | nested_type_.MergeFrom(from.nested_type_); |
| 3543 | enum_type_.MergeFrom(from.enum_type_); |
| 3544 | extension_range_.MergeFrom(from.extension_range_); |
| 3545 | oneof_decl_.MergeFrom(from.oneof_decl_); |
| 3546 | reserved_range_.MergeFrom(from.reserved_range_); |
| 3547 | reserved_name_.MergeFrom(from.reserved_name_); |
| 3548 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 3549 | if (from.has_name()) { |
| 3550 | set_has_name(); |
| 3551 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 3552 | } |
| 3553 | if (from.has_options()) { |
| 3554 | mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options()); |
| 3555 | } |
| 3556 | } |
| 3557 | if (from._internal_metadata_.have_unknown_fields()) { |
| 3558 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 3559 | } |
| 3560 | } |
| 3561 | |
| 3562 | void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 3563 | if (&from == this) return; |
| 3564 | Clear(); |
| 3565 | MergeFrom(from); |
| 3566 | } |
| 3567 | |
| 3568 | void DescriptorProto::CopyFrom(const DescriptorProto& from) { |
| 3569 | if (&from == this) return; |
| 3570 | Clear(); |
| 3571 | MergeFrom(from); |
| 3572 | } |
| 3573 | |
| 3574 | bool DescriptorProto::IsInitialized() const { |
| 3575 | |
| 3576 | if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false; |
| 3577 | if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false; |
| 3578 | if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) return false; |
| 3579 | if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false; |
| 3580 | if (has_options()) { |
| 3581 | if (!this->options_->IsInitialized()) return false; |
| 3582 | } |
| 3583 | return true; |
| 3584 | } |
| 3585 | |
| 3586 | void DescriptorProto::Swap(DescriptorProto* other) { |
| 3587 | if (other == this) return; |
| 3588 | InternalSwap(other); |
| 3589 | } |
| 3590 | void DescriptorProto::InternalSwap(DescriptorProto* other) { |
| 3591 | name_.Swap(&other->name_); |
| 3592 | field_.UnsafeArenaSwap(&other->field_); |
| 3593 | extension_.UnsafeArenaSwap(&other->extension_); |
| 3594 | nested_type_.UnsafeArenaSwap(&other->nested_type_); |
| 3595 | enum_type_.UnsafeArenaSwap(&other->enum_type_); |
| 3596 | extension_range_.UnsafeArenaSwap(&other->extension_range_); |
| 3597 | oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_); |
| 3598 | std::swap(options_, other->options_); |
| 3599 | reserved_range_.UnsafeArenaSwap(&other->reserved_range_); |
| 3600 | reserved_name_.UnsafeArenaSwap(&other->reserved_name_); |
| 3601 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 3602 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3603 | std::swap(_cached_size_, other->_cached_size_); |
| 3604 | } |
| 3605 | |
| 3606 | ::google::protobuf::Metadata DescriptorProto::GetMetadata() const { |
| 3607 | protobuf_AssignDescriptorsOnce(); |
| 3608 | ::google::protobuf::Metadata metadata; |
| 3609 | metadata.descriptor = DescriptorProto_descriptor_; |
| 3610 | metadata.reflection = DescriptorProto_reflection_; |
| 3611 | return metadata; |
| 3612 | } |
| 3613 | |
| 3614 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 3615 | // DescriptorProto_ExtensionRange |
| 3616 | |
| 3617 | // optional int32 start = 1; |
| 3618 | bool DescriptorProto_ExtensionRange::has_start() const { |
| 3619 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3620 | } |
| 3621 | void DescriptorProto_ExtensionRange::set_has_start() { |
| 3622 | _has_bits_[0] |= 0x00000001u; |
| 3623 | } |
| 3624 | void DescriptorProto_ExtensionRange::clear_has_start() { |
| 3625 | _has_bits_[0] &= ~0x00000001u; |
| 3626 | } |
| 3627 | void DescriptorProto_ExtensionRange::clear_start() { |
| 3628 | start_ = 0; |
| 3629 | clear_has_start(); |
| 3630 | } |
| 3631 | ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const { |
| 3632 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start) |
| 3633 | return start_; |
| 3634 | } |
| 3635 | void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) { |
| 3636 | set_has_start(); |
| 3637 | start_ = value; |
| 3638 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start) |
| 3639 | } |
| 3640 | |
| 3641 | // optional int32 end = 2; |
| 3642 | bool DescriptorProto_ExtensionRange::has_end() const { |
| 3643 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 3644 | } |
| 3645 | void DescriptorProto_ExtensionRange::set_has_end() { |
| 3646 | _has_bits_[0] |= 0x00000002u; |
| 3647 | } |
| 3648 | void DescriptorProto_ExtensionRange::clear_has_end() { |
| 3649 | _has_bits_[0] &= ~0x00000002u; |
| 3650 | } |
| 3651 | void DescriptorProto_ExtensionRange::clear_end() { |
| 3652 | end_ = 0; |
| 3653 | clear_has_end(); |
| 3654 | } |
| 3655 | ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const { |
| 3656 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end) |
| 3657 | return end_; |
| 3658 | } |
| 3659 | void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) { |
| 3660 | set_has_end(); |
| 3661 | end_ = value; |
| 3662 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end) |
| 3663 | } |
| 3664 | |
| 3665 | // ------------------------------------------------------------------- |
| 3666 | |
| 3667 | // DescriptorProto_ReservedRange |
| 3668 | |
| 3669 | // optional int32 start = 1; |
| 3670 | bool DescriptorProto_ReservedRange::has_start() const { |
| 3671 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3672 | } |
| 3673 | void DescriptorProto_ReservedRange::set_has_start() { |
| 3674 | _has_bits_[0] |= 0x00000001u; |
| 3675 | } |
| 3676 | void DescriptorProto_ReservedRange::clear_has_start() { |
| 3677 | _has_bits_[0] &= ~0x00000001u; |
| 3678 | } |
| 3679 | void DescriptorProto_ReservedRange::clear_start() { |
| 3680 | start_ = 0; |
| 3681 | clear_has_start(); |
| 3682 | } |
| 3683 | ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const { |
| 3684 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start) |
| 3685 | return start_; |
| 3686 | } |
| 3687 | void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) { |
| 3688 | set_has_start(); |
| 3689 | start_ = value; |
| 3690 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start) |
| 3691 | } |
| 3692 | |
| 3693 | // optional int32 end = 2; |
| 3694 | bool DescriptorProto_ReservedRange::has_end() const { |
| 3695 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 3696 | } |
| 3697 | void DescriptorProto_ReservedRange::set_has_end() { |
| 3698 | _has_bits_[0] |= 0x00000002u; |
| 3699 | } |
| 3700 | void DescriptorProto_ReservedRange::clear_has_end() { |
| 3701 | _has_bits_[0] &= ~0x00000002u; |
| 3702 | } |
| 3703 | void DescriptorProto_ReservedRange::clear_end() { |
| 3704 | end_ = 0; |
| 3705 | clear_has_end(); |
| 3706 | } |
| 3707 | ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const { |
| 3708 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end) |
| 3709 | return end_; |
| 3710 | } |
| 3711 | void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) { |
| 3712 | set_has_end(); |
| 3713 | end_ = value; |
| 3714 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end) |
| 3715 | } |
| 3716 | |
| 3717 | // ------------------------------------------------------------------- |
| 3718 | |
| 3719 | // DescriptorProto |
| 3720 | |
| 3721 | // optional string name = 1; |
| 3722 | bool DescriptorProto::has_name() const { |
| 3723 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3724 | } |
| 3725 | void DescriptorProto::set_has_name() { |
| 3726 | _has_bits_[0] |= 0x00000001u; |
| 3727 | } |
| 3728 | void DescriptorProto::clear_has_name() { |
| 3729 | _has_bits_[0] &= ~0x00000001u; |
| 3730 | } |
| 3731 | void DescriptorProto::clear_name() { |
| 3732 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3733 | clear_has_name(); |
| 3734 | } |
| 3735 | const ::std::string& DescriptorProto::name() const { |
| 3736 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name) |
| 3737 | return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3738 | } |
| 3739 | void DescriptorProto::set_name(const ::std::string& value) { |
| 3740 | set_has_name(); |
| 3741 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 3742 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name) |
| 3743 | } |
| 3744 | void DescriptorProto::set_name(const char* value) { |
| 3745 | set_has_name(); |
| 3746 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 3747 | // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name) |
| 3748 | } |
| 3749 | void DescriptorProto::set_name(const char* value, size_t size) { |
| 3750 | set_has_name(); |
| 3751 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3752 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 3753 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name) |
| 3754 | } |
| 3755 | ::std::string* DescriptorProto::mutable_name() { |
| 3756 | set_has_name(); |
| 3757 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name) |
| 3758 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3759 | } |
| 3760 | ::std::string* DescriptorProto::release_name() { |
| 3761 | clear_has_name(); |
| 3762 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3763 | } |
| 3764 | void DescriptorProto::set_allocated_name(::std::string* name) { |
| 3765 | if (name != NULL) { |
| 3766 | set_has_name(); |
| 3767 | } else { |
| 3768 | clear_has_name(); |
| 3769 | } |
| 3770 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 3771 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name) |
| 3772 | } |
| 3773 | |
| 3774 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3775 | int DescriptorProto::field_size() const { |
| 3776 | return field_.size(); |
| 3777 | } |
| 3778 | void DescriptorProto::clear_field() { |
| 3779 | field_.Clear(); |
| 3780 | } |
| 3781 | const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const { |
| 3782 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field) |
| 3783 | return field_.Get(index); |
| 3784 | } |
| 3785 | ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) { |
| 3786 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field) |
| 3787 | return field_.Mutable(index); |
| 3788 | } |
| 3789 | ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() { |
| 3790 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field) |
| 3791 | return field_.Add(); |
| 3792 | } |
| 3793 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 3794 | DescriptorProto::mutable_field() { |
| 3795 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field) |
| 3796 | return &field_; |
| 3797 | } |
| 3798 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 3799 | DescriptorProto::field() const { |
| 3800 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field) |
| 3801 | return field_; |
| 3802 | } |
| 3803 | |
| 3804 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3805 | int DescriptorProto::extension_size() const { |
| 3806 | return extension_.size(); |
| 3807 | } |
| 3808 | void DescriptorProto::clear_extension() { |
| 3809 | extension_.Clear(); |
| 3810 | } |
| 3811 | const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const { |
| 3812 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension) |
| 3813 | return extension_.Get(index); |
| 3814 | } |
| 3815 | ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) { |
| 3816 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension) |
| 3817 | return extension_.Mutable(index); |
| 3818 | } |
| 3819 | ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() { |
| 3820 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension) |
| 3821 | return extension_.Add(); |
| 3822 | } |
| 3823 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 3824 | DescriptorProto::mutable_extension() { |
| 3825 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension) |
| 3826 | return &extension_; |
| 3827 | } |
| 3828 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 3829 | DescriptorProto::extension() const { |
| 3830 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension) |
| 3831 | return extension_; |
| 3832 | } |
| 3833 | |
| 3834 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3835 | int DescriptorProto::nested_type_size() const { |
| 3836 | return nested_type_.size(); |
| 3837 | } |
| 3838 | void DescriptorProto::clear_nested_type() { |
| 3839 | nested_type_.Clear(); |
| 3840 | } |
| 3841 | const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const { |
| 3842 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type) |
| 3843 | return nested_type_.Get(index); |
| 3844 | } |
| 3845 | ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) { |
| 3846 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type) |
| 3847 | return nested_type_.Mutable(index); |
| 3848 | } |
| 3849 | ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() { |
| 3850 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type) |
| 3851 | return nested_type_.Add(); |
| 3852 | } |
| 3853 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 3854 | DescriptorProto::mutable_nested_type() { |
| 3855 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type) |
| 3856 | return &nested_type_; |
| 3857 | } |
| 3858 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 3859 | DescriptorProto::nested_type() const { |
| 3860 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type) |
| 3861 | return nested_type_; |
| 3862 | } |
| 3863 | |
| 3864 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3865 | int DescriptorProto::enum_type_size() const { |
| 3866 | return enum_type_.size(); |
| 3867 | } |
| 3868 | void DescriptorProto::clear_enum_type() { |
| 3869 | enum_type_.Clear(); |
| 3870 | } |
| 3871 | const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const { |
| 3872 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type) |
| 3873 | return enum_type_.Get(index); |
| 3874 | } |
| 3875 | ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) { |
| 3876 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type) |
| 3877 | return enum_type_.Mutable(index); |
| 3878 | } |
| 3879 | ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() { |
| 3880 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type) |
| 3881 | return enum_type_.Add(); |
| 3882 | } |
| 3883 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 3884 | DescriptorProto::mutable_enum_type() { |
| 3885 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type) |
| 3886 | return &enum_type_; |
| 3887 | } |
| 3888 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 3889 | DescriptorProto::enum_type() const { |
| 3890 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type) |
| 3891 | return enum_type_; |
| 3892 | } |
| 3893 | |
| 3894 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3895 | int DescriptorProto::extension_range_size() const { |
| 3896 | return extension_range_.size(); |
| 3897 | } |
| 3898 | void DescriptorProto::clear_extension_range() { |
| 3899 | extension_range_.Clear(); |
| 3900 | } |
| 3901 | const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const { |
| 3902 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range) |
| 3903 | return extension_range_.Get(index); |
| 3904 | } |
| 3905 | ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) { |
| 3906 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range) |
| 3907 | return extension_range_.Mutable(index); |
| 3908 | } |
| 3909 | ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() { |
| 3910 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range) |
| 3911 | return extension_range_.Add(); |
| 3912 | } |
| 3913 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >* |
| 3914 | DescriptorProto::mutable_extension_range() { |
| 3915 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range) |
| 3916 | return &extension_range_; |
| 3917 | } |
| 3918 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >& |
| 3919 | DescriptorProto::extension_range() const { |
| 3920 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range) |
| 3921 | return extension_range_; |
| 3922 | } |
| 3923 | |
| 3924 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3925 | int DescriptorProto::oneof_decl_size() const { |
| 3926 | return oneof_decl_.size(); |
| 3927 | } |
| 3928 | void DescriptorProto::clear_oneof_decl() { |
| 3929 | oneof_decl_.Clear(); |
| 3930 | } |
| 3931 | const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const { |
| 3932 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl) |
| 3933 | return oneof_decl_.Get(index); |
| 3934 | } |
| 3935 | ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) { |
| 3936 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl) |
| 3937 | return oneof_decl_.Mutable(index); |
| 3938 | } |
| 3939 | ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() { |
| 3940 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl) |
| 3941 | return oneof_decl_.Add(); |
| 3942 | } |
| 3943 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >* |
| 3944 | DescriptorProto::mutable_oneof_decl() { |
| 3945 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl) |
| 3946 | return &oneof_decl_; |
| 3947 | } |
| 3948 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >& |
| 3949 | DescriptorProto::oneof_decl() const { |
| 3950 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl) |
| 3951 | return oneof_decl_; |
| 3952 | } |
| 3953 | |
| 3954 | // optional .google.protobuf.MessageOptions options = 7; |
| 3955 | bool DescriptorProto::has_options() const { |
| 3956 | return (_has_bits_[0] & 0x00000080u) != 0; |
| 3957 | } |
| 3958 | void DescriptorProto::set_has_options() { |
| 3959 | _has_bits_[0] |= 0x00000080u; |
| 3960 | } |
| 3961 | void DescriptorProto::clear_has_options() { |
| 3962 | _has_bits_[0] &= ~0x00000080u; |
| 3963 | } |
| 3964 | void DescriptorProto::clear_options() { |
| 3965 | if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); |
| 3966 | clear_has_options(); |
| 3967 | } |
| 3968 | const ::google::protobuf::MessageOptions& DescriptorProto::options() const { |
| 3969 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options) |
| 3970 | return options_ != NULL ? *options_ : *default_instance_->options_; |
| 3971 | } |
| 3972 | ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { |
| 3973 | set_has_options(); |
| 3974 | if (options_ == NULL) { |
| 3975 | options_ = new ::google::protobuf::MessageOptions; |
| 3976 | } |
| 3977 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options) |
| 3978 | return options_; |
| 3979 | } |
| 3980 | ::google::protobuf::MessageOptions* DescriptorProto::release_options() { |
| 3981 | clear_has_options(); |
| 3982 | ::google::protobuf::MessageOptions* temp = options_; |
| 3983 | options_ = NULL; |
| 3984 | return temp; |
| 3985 | } |
| 3986 | void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) { |
| 3987 | delete options_; |
| 3988 | options_ = options; |
| 3989 | if (options) { |
| 3990 | set_has_options(); |
| 3991 | } else { |
| 3992 | clear_has_options(); |
| 3993 | } |
| 3994 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options) |
| 3995 | } |
| 3996 | |
| 3997 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3998 | int DescriptorProto::reserved_range_size() const { |
| 3999 | return reserved_range_.size(); |
| 4000 | } |
| 4001 | void DescriptorProto::clear_reserved_range() { |
| 4002 | reserved_range_.Clear(); |
| 4003 | } |
| 4004 | const ::google::protobuf::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const { |
| 4005 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range) |
| 4006 | return reserved_range_.Get(index); |
| 4007 | } |
| 4008 | ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) { |
| 4009 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range) |
| 4010 | return reserved_range_.Mutable(index); |
| 4011 | } |
| 4012 | ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() { |
| 4013 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range) |
| 4014 | return reserved_range_.Add(); |
| 4015 | } |
| 4016 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >* |
| 4017 | DescriptorProto::mutable_reserved_range() { |
| 4018 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range) |
| 4019 | return &reserved_range_; |
| 4020 | } |
| 4021 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >& |
| 4022 | DescriptorProto::reserved_range() const { |
| 4023 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range) |
| 4024 | return reserved_range_; |
| 4025 | } |
| 4026 | |
| 4027 | // repeated string reserved_name = 10; |
| 4028 | int DescriptorProto::reserved_name_size() const { |
| 4029 | return reserved_name_.size(); |
| 4030 | } |
| 4031 | void DescriptorProto::clear_reserved_name() { |
| 4032 | reserved_name_.Clear(); |
| 4033 | } |
| 4034 | const ::std::string& DescriptorProto::reserved_name(int index) const { |
| 4035 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name) |
| 4036 | return reserved_name_.Get(index); |
| 4037 | } |
| 4038 | ::std::string* DescriptorProto::mutable_reserved_name(int index) { |
| 4039 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name) |
| 4040 | return reserved_name_.Mutable(index); |
| 4041 | } |
| 4042 | void DescriptorProto::set_reserved_name(int index, const ::std::string& value) { |
| 4043 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name) |
| 4044 | reserved_name_.Mutable(index)->assign(value); |
| 4045 | } |
| 4046 | void DescriptorProto::set_reserved_name(int index, const char* value) { |
| 4047 | reserved_name_.Mutable(index)->assign(value); |
| 4048 | // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name) |
| 4049 | } |
| 4050 | void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) { |
| 4051 | reserved_name_.Mutable(index)->assign( |
| 4052 | reinterpret_cast<const char*>(value), size); |
| 4053 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name) |
| 4054 | } |
| 4055 | ::std::string* DescriptorProto::add_reserved_name() { |
| 4056 | return reserved_name_.Add(); |
| 4057 | } |
| 4058 | void DescriptorProto::add_reserved_name(const ::std::string& value) { |
| 4059 | reserved_name_.Add()->assign(value); |
| 4060 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name) |
| 4061 | } |
| 4062 | void DescriptorProto::add_reserved_name(const char* value) { |
| 4063 | reserved_name_.Add()->assign(value); |
| 4064 | // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name) |
| 4065 | } |
| 4066 | void DescriptorProto::add_reserved_name(const char* value, size_t size) { |
| 4067 | reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 4068 | // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name) |
| 4069 | } |
| 4070 | const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 4071 | DescriptorProto::reserved_name() const { |
| 4072 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name) |
| 4073 | return reserved_name_; |
| 4074 | } |
| 4075 | ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 4076 | DescriptorProto::mutable_reserved_name() { |
| 4077 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name) |
| 4078 | return &reserved_name_; |
| 4079 | } |
| 4080 | |
| 4081 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 4082 | |
| 4083 | // =================================================================== |
| 4084 | |
| 4085 | const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() { |
| 4086 | protobuf_AssignDescriptorsOnce(); |
| 4087 | return FieldDescriptorProto_Type_descriptor_; |
| 4088 | } |
| 4089 | bool FieldDescriptorProto_Type_IsValid(int value) { |
| 4090 | switch(value) { |
| 4091 | case 1: |
| 4092 | case 2: |
| 4093 | case 3: |
| 4094 | case 4: |
| 4095 | case 5: |
| 4096 | case 6: |
| 4097 | case 7: |
| 4098 | case 8: |
| 4099 | case 9: |
| 4100 | case 10: |
| 4101 | case 11: |
| 4102 | case 12: |
| 4103 | case 13: |
| 4104 | case 14: |
| 4105 | case 15: |
| 4106 | case 16: |
| 4107 | case 17: |
| 4108 | case 18: |
| 4109 | return true; |
| 4110 | default: |
| 4111 | return false; |
| 4112 | } |
| 4113 | } |
| 4114 | |
| 4115 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4116 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE; |
| 4117 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT; |
| 4118 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64; |
| 4119 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64; |
| 4120 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32; |
| 4121 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64; |
| 4122 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32; |
| 4123 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL; |
| 4124 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING; |
| 4125 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP; |
| 4126 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE; |
| 4127 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES; |
| 4128 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32; |
| 4129 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM; |
| 4130 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32; |
| 4131 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64; |
| 4132 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32; |
| 4133 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64; |
| 4134 | const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN; |
| 4135 | const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX; |
| 4136 | const int FieldDescriptorProto::Type_ARRAYSIZE; |
| 4137 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4138 | const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() { |
| 4139 | protobuf_AssignDescriptorsOnce(); |
| 4140 | return FieldDescriptorProto_Label_descriptor_; |
| 4141 | } |
| 4142 | bool FieldDescriptorProto_Label_IsValid(int value) { |
| 4143 | switch(value) { |
| 4144 | case 1: |
| 4145 | case 2: |
| 4146 | case 3: |
| 4147 | return true; |
| 4148 | default: |
| 4149 | return false; |
| 4150 | } |
| 4151 | } |
| 4152 | |
| 4153 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4154 | const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL; |
| 4155 | const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED; |
| 4156 | const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED; |
| 4157 | const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN; |
| 4158 | const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX; |
| 4159 | const int FieldDescriptorProto::Label_ARRAYSIZE; |
| 4160 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4161 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4162 | const int FieldDescriptorProto::kNameFieldNumber; |
| 4163 | const int FieldDescriptorProto::kNumberFieldNumber; |
| 4164 | const int FieldDescriptorProto::kLabelFieldNumber; |
| 4165 | const int FieldDescriptorProto::kTypeFieldNumber; |
| 4166 | const int FieldDescriptorProto::kTypeNameFieldNumber; |
| 4167 | const int FieldDescriptorProto::kExtendeeFieldNumber; |
| 4168 | const int FieldDescriptorProto::kDefaultValueFieldNumber; |
| 4169 | const int FieldDescriptorProto::kOneofIndexFieldNumber; |
| 4170 | const int FieldDescriptorProto::kJsonNameFieldNumber; |
| 4171 | const int FieldDescriptorProto::kOptionsFieldNumber; |
| 4172 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4173 | |
| 4174 | FieldDescriptorProto::FieldDescriptorProto() |
| 4175 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 4176 | SharedCtor(); |
| 4177 | // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto) |
| 4178 | } |
| 4179 | |
| 4180 | void FieldDescriptorProto::InitAsDefaultInstance() { |
| 4181 | options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance()); |
| 4182 | } |
| 4183 | |
| 4184 | FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) |
| 4185 | : ::google::protobuf::Message(), |
| 4186 | _internal_metadata_(NULL) { |
| 4187 | SharedCtor(); |
| 4188 | MergeFrom(from); |
| 4189 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto) |
| 4190 | } |
| 4191 | |
| 4192 | void FieldDescriptorProto::SharedCtor() { |
| 4193 | ::google::protobuf::internal::GetEmptyString(); |
| 4194 | _cached_size_ = 0; |
| 4195 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4196 | number_ = 0; |
| 4197 | label_ = 1; |
| 4198 | type_ = 1; |
| 4199 | type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4200 | extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4201 | default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4202 | oneof_index_ = 0; |
| 4203 | json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4204 | options_ = NULL; |
| 4205 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 4206 | } |
| 4207 | |
| 4208 | FieldDescriptorProto::~FieldDescriptorProto() { |
| 4209 | // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto) |
| 4210 | SharedDtor(); |
| 4211 | } |
| 4212 | |
| 4213 | void FieldDescriptorProto::SharedDtor() { |
| 4214 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4215 | type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4216 | extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4217 | default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4218 | json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4219 | if (this != default_instance_) { |
| 4220 | delete options_; |
| 4221 | } |
| 4222 | } |
| 4223 | |
| 4224 | void FieldDescriptorProto::SetCachedSize(int size) const { |
| 4225 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 4226 | _cached_size_ = size; |
| 4227 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 4228 | } |
| 4229 | const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() { |
| 4230 | protobuf_AssignDescriptorsOnce(); |
| 4231 | return FieldDescriptorProto_descriptor_; |
| 4232 | } |
| 4233 | |
| 4234 | const FieldDescriptorProto& FieldDescriptorProto::default_instance() { |
| 4235 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 4236 | return *default_instance_; |
| 4237 | } |
| 4238 | |
| 4239 | FieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL; |
| 4240 | |
| 4241 | FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 4242 | FieldDescriptorProto* n = new FieldDescriptorProto; |
| 4243 | if (arena != NULL) { |
| 4244 | arena->Own(n); |
| 4245 | } |
| 4246 | return n; |
| 4247 | } |
| 4248 | |
| 4249 | void FieldDescriptorProto::Clear() { |
| 4250 | if (_has_bits_[0 / 32] & 255u) { |
| 4251 | if (has_name()) { |
| 4252 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4253 | } |
| 4254 | number_ = 0; |
| 4255 | label_ = 1; |
| 4256 | type_ = 1; |
| 4257 | if (has_type_name()) { |
| 4258 | type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4259 | } |
| 4260 | if (has_extendee()) { |
| 4261 | extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4262 | } |
| 4263 | if (has_default_value()) { |
| 4264 | default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4265 | } |
| 4266 | oneof_index_ = 0; |
| 4267 | } |
| 4268 | if (_has_bits_[8 / 32] & 768u) { |
| 4269 | if (has_json_name()) { |
| 4270 | json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4271 | } |
| 4272 | if (has_options()) { |
| 4273 | if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
| 4274 | } |
| 4275 | } |
| 4276 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 4277 | if (_internal_metadata_.have_unknown_fields()) { |
| 4278 | mutable_unknown_fields()->Clear(); |
| 4279 | } |
| 4280 | } |
| 4281 | |
| 4282 | bool FieldDescriptorProto::MergePartialFromCodedStream( |
| 4283 | ::google::protobuf::io::CodedInputStream* input) { |
| 4284 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 4285 | ::google::protobuf::uint32 tag; |
| 4286 | // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto) |
| 4287 | for (;;) { |
| 4288 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 4289 | tag = p.first; |
| 4290 | if (!p.second) goto handle_unusual; |
| 4291 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4292 | // optional string name = 1; |
| 4293 | case 1: { |
| 4294 | if (tag == 10) { |
| 4295 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4296 | input, this->mutable_name())); |
| 4297 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4298 | this->name().data(), this->name().length(), |
| 4299 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4300 | "google.protobuf.FieldDescriptorProto.name"); |
| 4301 | } else { |
| 4302 | goto handle_unusual; |
| 4303 | } |
| 4304 | if (input->ExpectTag(18)) goto parse_extendee; |
| 4305 | break; |
| 4306 | } |
| 4307 | |
| 4308 | // optional string extendee = 2; |
| 4309 | case 2: { |
| 4310 | if (tag == 18) { |
| 4311 | parse_extendee: |
| 4312 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4313 | input, this->mutable_extendee())); |
| 4314 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4315 | this->extendee().data(), this->extendee().length(), |
| 4316 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4317 | "google.protobuf.FieldDescriptorProto.extendee"); |
| 4318 | } else { |
| 4319 | goto handle_unusual; |
| 4320 | } |
| 4321 | if (input->ExpectTag(24)) goto parse_number; |
| 4322 | break; |
| 4323 | } |
| 4324 | |
| 4325 | // optional int32 number = 3; |
| 4326 | case 3: { |
| 4327 | if (tag == 24) { |
| 4328 | parse_number: |
| 4329 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4330 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 4331 | input, &number_))); |
| 4332 | set_has_number(); |
| 4333 | } else { |
| 4334 | goto handle_unusual; |
| 4335 | } |
| 4336 | if (input->ExpectTag(32)) goto parse_label; |
| 4337 | break; |
| 4338 | } |
| 4339 | |
| 4340 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4341 | case 4: { |
| 4342 | if (tag == 32) { |
| 4343 | parse_label: |
| 4344 | int value; |
| 4345 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4346 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4347 | input, &value))); |
| 4348 | if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { |
| 4349 | set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value)); |
| 4350 | } else { |
| 4351 | mutable_unknown_fields()->AddVarint(4, value); |
| 4352 | } |
| 4353 | } else { |
| 4354 | goto handle_unusual; |
| 4355 | } |
| 4356 | if (input->ExpectTag(40)) goto parse_type; |
| 4357 | break; |
| 4358 | } |
| 4359 | |
| 4360 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4361 | case 5: { |
| 4362 | if (tag == 40) { |
| 4363 | parse_type: |
| 4364 | int value; |
| 4365 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4366 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4367 | input, &value))); |
| 4368 | if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { |
| 4369 | set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value)); |
| 4370 | } else { |
| 4371 | mutable_unknown_fields()->AddVarint(5, value); |
| 4372 | } |
| 4373 | } else { |
| 4374 | goto handle_unusual; |
| 4375 | } |
| 4376 | if (input->ExpectTag(50)) goto parse_type_name; |
| 4377 | break; |
| 4378 | } |
| 4379 | |
| 4380 | // optional string type_name = 6; |
| 4381 | case 6: { |
| 4382 | if (tag == 50) { |
| 4383 | parse_type_name: |
| 4384 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4385 | input, this->mutable_type_name())); |
| 4386 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4387 | this->type_name().data(), this->type_name().length(), |
| 4388 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4389 | "google.protobuf.FieldDescriptorProto.type_name"); |
| 4390 | } else { |
| 4391 | goto handle_unusual; |
| 4392 | } |
| 4393 | if (input->ExpectTag(58)) goto parse_default_value; |
| 4394 | break; |
| 4395 | } |
| 4396 | |
| 4397 | // optional string default_value = 7; |
| 4398 | case 7: { |
| 4399 | if (tag == 58) { |
| 4400 | parse_default_value: |
| 4401 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4402 | input, this->mutable_default_value())); |
| 4403 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4404 | this->default_value().data(), this->default_value().length(), |
| 4405 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4406 | "google.protobuf.FieldDescriptorProto.default_value"); |
| 4407 | } else { |
| 4408 | goto handle_unusual; |
| 4409 | } |
| 4410 | if (input->ExpectTag(66)) goto parse_options; |
| 4411 | break; |
| 4412 | } |
| 4413 | |
| 4414 | // optional .google.protobuf.FieldOptions options = 8; |
| 4415 | case 8: { |
| 4416 | if (tag == 66) { |
| 4417 | parse_options: |
| 4418 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 4419 | input, mutable_options())); |
| 4420 | } else { |
| 4421 | goto handle_unusual; |
| 4422 | } |
| 4423 | if (input->ExpectTag(72)) goto parse_oneof_index; |
| 4424 | break; |
| 4425 | } |
| 4426 | |
| 4427 | // optional int32 oneof_index = 9; |
| 4428 | case 9: { |
| 4429 | if (tag == 72) { |
| 4430 | parse_oneof_index: |
| 4431 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4432 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 4433 | input, &oneof_index_))); |
| 4434 | set_has_oneof_index(); |
| 4435 | } else { |
| 4436 | goto handle_unusual; |
| 4437 | } |
| 4438 | if (input->ExpectTag(82)) goto parse_json_name; |
| 4439 | break; |
| 4440 | } |
| 4441 | |
| 4442 | // optional string json_name = 10; |
| 4443 | case 10: { |
| 4444 | if (tag == 82) { |
| 4445 | parse_json_name: |
| 4446 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4447 | input, this->mutable_json_name())); |
| 4448 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4449 | this->json_name().data(), this->json_name().length(), |
| 4450 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4451 | "google.protobuf.FieldDescriptorProto.json_name"); |
| 4452 | } else { |
| 4453 | goto handle_unusual; |
| 4454 | } |
| 4455 | if (input->ExpectAtEnd()) goto success; |
| 4456 | break; |
| 4457 | } |
| 4458 | |
| 4459 | default: { |
| 4460 | handle_unusual: |
| 4461 | if (tag == 0 || |
| 4462 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 4463 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 4464 | goto success; |
| 4465 | } |
| 4466 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4467 | input, tag, mutable_unknown_fields())); |
| 4468 | break; |
| 4469 | } |
| 4470 | } |
| 4471 | } |
| 4472 | success: |
| 4473 | // @@protoc_insertion_point(parse_success:google.protobuf.FieldDescriptorProto) |
| 4474 | return true; |
| 4475 | failure: |
| 4476 | // @@protoc_insertion_point(parse_failure:google.protobuf.FieldDescriptorProto) |
| 4477 | return false; |
| 4478 | #undef DO_ |
| 4479 | } |
| 4480 | |
| 4481 | void FieldDescriptorProto::SerializeWithCachedSizes( |
| 4482 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4483 | // @@protoc_insertion_point(serialize_start:google.protobuf.FieldDescriptorProto) |
| 4484 | // optional string name = 1; |
| 4485 | if (has_name()) { |
| 4486 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4487 | this->name().data(), this->name().length(), |
| 4488 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4489 | "google.protobuf.FieldDescriptorProto.name"); |
| 4490 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4491 | 1, this->name(), output); |
| 4492 | } |
| 4493 | |
| 4494 | // optional string extendee = 2; |
| 4495 | if (has_extendee()) { |
| 4496 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4497 | this->extendee().data(), this->extendee().length(), |
| 4498 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4499 | "google.protobuf.FieldDescriptorProto.extendee"); |
| 4500 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4501 | 2, this->extendee(), output); |
| 4502 | } |
| 4503 | |
| 4504 | // optional int32 number = 3; |
| 4505 | if (has_number()) { |
| 4506 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output); |
| 4507 | } |
| 4508 | |
| 4509 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4510 | if (has_label()) { |
| 4511 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4512 | 4, this->label(), output); |
| 4513 | } |
| 4514 | |
| 4515 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4516 | if (has_type()) { |
| 4517 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4518 | 5, this->type(), output); |
| 4519 | } |
| 4520 | |
| 4521 | // optional string type_name = 6; |
| 4522 | if (has_type_name()) { |
| 4523 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4524 | this->type_name().data(), this->type_name().length(), |
| 4525 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4526 | "google.protobuf.FieldDescriptorProto.type_name"); |
| 4527 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4528 | 6, this->type_name(), output); |
| 4529 | } |
| 4530 | |
| 4531 | // optional string default_value = 7; |
| 4532 | if (has_default_value()) { |
| 4533 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4534 | this->default_value().data(), this->default_value().length(), |
| 4535 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4536 | "google.protobuf.FieldDescriptorProto.default_value"); |
| 4537 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4538 | 7, this->default_value(), output); |
| 4539 | } |
| 4540 | |
| 4541 | // optional .google.protobuf.FieldOptions options = 8; |
| 4542 | if (has_options()) { |
| 4543 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4544 | 8, *this->options_, output); |
| 4545 | } |
| 4546 | |
| 4547 | // optional int32 oneof_index = 9; |
| 4548 | if (has_oneof_index()) { |
| 4549 | ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->oneof_index(), output); |
| 4550 | } |
| 4551 | |
| 4552 | // optional string json_name = 10; |
| 4553 | if (has_json_name()) { |
| 4554 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4555 | this->json_name().data(), this->json_name().length(), |
| 4556 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4557 | "google.protobuf.FieldDescriptorProto.json_name"); |
| 4558 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4559 | 10, this->json_name(), output); |
| 4560 | } |
| 4561 | |
| 4562 | if (_internal_metadata_.have_unknown_fields()) { |
| 4563 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4564 | unknown_fields(), output); |
| 4565 | } |
| 4566 | // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto) |
| 4567 | } |
| 4568 | |
| 4569 | ::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray( |
| 4570 | ::google::protobuf::uint8* target) const { |
| 4571 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto) |
| 4572 | // optional string name = 1; |
| 4573 | if (has_name()) { |
| 4574 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4575 | this->name().data(), this->name().length(), |
| 4576 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4577 | "google.protobuf.FieldDescriptorProto.name"); |
| 4578 | target = |
| 4579 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4580 | 1, this->name(), target); |
| 4581 | } |
| 4582 | |
| 4583 | // optional string extendee = 2; |
| 4584 | if (has_extendee()) { |
| 4585 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4586 | this->extendee().data(), this->extendee().length(), |
| 4587 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4588 | "google.protobuf.FieldDescriptorProto.extendee"); |
| 4589 | target = |
| 4590 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4591 | 2, this->extendee(), target); |
| 4592 | } |
| 4593 | |
| 4594 | // optional int32 number = 3; |
| 4595 | if (has_number()) { |
| 4596 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target); |
| 4597 | } |
| 4598 | |
| 4599 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4600 | if (has_label()) { |
| 4601 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4602 | 4, this->label(), target); |
| 4603 | } |
| 4604 | |
| 4605 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4606 | if (has_type()) { |
| 4607 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4608 | 5, this->type(), target); |
| 4609 | } |
| 4610 | |
| 4611 | // optional string type_name = 6; |
| 4612 | if (has_type_name()) { |
| 4613 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4614 | this->type_name().data(), this->type_name().length(), |
| 4615 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4616 | "google.protobuf.FieldDescriptorProto.type_name"); |
| 4617 | target = |
| 4618 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4619 | 6, this->type_name(), target); |
| 4620 | } |
| 4621 | |
| 4622 | // optional string default_value = 7; |
| 4623 | if (has_default_value()) { |
| 4624 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4625 | this->default_value().data(), this->default_value().length(), |
| 4626 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4627 | "google.protobuf.FieldDescriptorProto.default_value"); |
| 4628 | target = |
| 4629 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4630 | 7, this->default_value(), target); |
| 4631 | } |
| 4632 | |
| 4633 | // optional .google.protobuf.FieldOptions options = 8; |
| 4634 | if (has_options()) { |
| 4635 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4636 | WriteMessageNoVirtualToArray( |
| 4637 | 8, *this->options_, target); |
| 4638 | } |
| 4639 | |
| 4640 | // optional int32 oneof_index = 9; |
| 4641 | if (has_oneof_index()) { |
| 4642 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target); |
| 4643 | } |
| 4644 | |
| 4645 | // optional string json_name = 10; |
| 4646 | if (has_json_name()) { |
| 4647 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4648 | this->json_name().data(), this->json_name().length(), |
| 4649 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4650 | "google.protobuf.FieldDescriptorProto.json_name"); |
| 4651 | target = |
| 4652 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4653 | 10, this->json_name(), target); |
| 4654 | } |
| 4655 | |
| 4656 | if (_internal_metadata_.have_unknown_fields()) { |
| 4657 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4658 | unknown_fields(), target); |
| 4659 | } |
| 4660 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto) |
| 4661 | return target; |
| 4662 | } |
| 4663 | |
| 4664 | int FieldDescriptorProto::ByteSize() const { |
| 4665 | int total_size = 0; |
| 4666 | |
| 4667 | if (_has_bits_[0 / 32] & 255u) { |
| 4668 | // optional string name = 1; |
| 4669 | if (has_name()) { |
| 4670 | total_size += 1 + |
| 4671 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4672 | this->name()); |
| 4673 | } |
| 4674 | |
| 4675 | // optional int32 number = 3; |
| 4676 | if (has_number()) { |
| 4677 | total_size += 1 + |
| 4678 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 4679 | this->number()); |
| 4680 | } |
| 4681 | |
| 4682 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4683 | if (has_label()) { |
| 4684 | total_size += 1 + |
| 4685 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->label()); |
| 4686 | } |
| 4687 | |
| 4688 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4689 | if (has_type()) { |
| 4690 | total_size += 1 + |
| 4691 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
| 4692 | } |
| 4693 | |
| 4694 | // optional string type_name = 6; |
| 4695 | if (has_type_name()) { |
| 4696 | total_size += 1 + |
| 4697 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4698 | this->type_name()); |
| 4699 | } |
| 4700 | |
| 4701 | // optional string extendee = 2; |
| 4702 | if (has_extendee()) { |
| 4703 | total_size += 1 + |
| 4704 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4705 | this->extendee()); |
| 4706 | } |
| 4707 | |
| 4708 | // optional string default_value = 7; |
| 4709 | if (has_default_value()) { |
| 4710 | total_size += 1 + |
| 4711 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4712 | this->default_value()); |
| 4713 | } |
| 4714 | |
| 4715 | // optional int32 oneof_index = 9; |
| 4716 | if (has_oneof_index()) { |
| 4717 | total_size += 1 + |
| 4718 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 4719 | this->oneof_index()); |
| 4720 | } |
| 4721 | |
| 4722 | } |
| 4723 | if (_has_bits_[8 / 32] & 768u) { |
| 4724 | // optional string json_name = 10; |
| 4725 | if (has_json_name()) { |
| 4726 | total_size += 1 + |
| 4727 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4728 | this->json_name()); |
| 4729 | } |
| 4730 | |
| 4731 | // optional .google.protobuf.FieldOptions options = 8; |
| 4732 | if (has_options()) { |
| 4733 | total_size += 1 + |
| 4734 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 4735 | *this->options_); |
| 4736 | } |
| 4737 | |
| 4738 | } |
| 4739 | if (_internal_metadata_.have_unknown_fields()) { |
| 4740 | total_size += |
| 4741 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4742 | unknown_fields()); |
| 4743 | } |
| 4744 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 4745 | _cached_size_ = total_size; |
| 4746 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 4747 | return total_size; |
| 4748 | } |
| 4749 | |
| 4750 | void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 4751 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 4752 | const FieldDescriptorProto* source = |
| 4753 | ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptorProto>( |
| 4754 | &from); |
| 4755 | if (source == NULL) { |
| 4756 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4757 | } else { |
| 4758 | MergeFrom(*source); |
| 4759 | } |
| 4760 | } |
| 4761 | |
| 4762 | void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { |
| 4763 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 4764 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 4765 | if (from.has_name()) { |
| 4766 | set_has_name(); |
| 4767 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4768 | } |
| 4769 | if (from.has_number()) { |
| 4770 | set_number(from.number()); |
| 4771 | } |
| 4772 | if (from.has_label()) { |
| 4773 | set_label(from.label()); |
| 4774 | } |
| 4775 | if (from.has_type()) { |
| 4776 | set_type(from.type()); |
| 4777 | } |
| 4778 | if (from.has_type_name()) { |
| 4779 | set_has_type_name(); |
| 4780 | type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_); |
| 4781 | } |
| 4782 | if (from.has_extendee()) { |
| 4783 | set_has_extendee(); |
| 4784 | extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extendee_); |
| 4785 | } |
| 4786 | if (from.has_default_value()) { |
| 4787 | set_has_default_value(); |
| 4788 | default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_); |
| 4789 | } |
| 4790 | if (from.has_oneof_index()) { |
| 4791 | set_oneof_index(from.oneof_index()); |
| 4792 | } |
| 4793 | } |
| 4794 | if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
| 4795 | if (from.has_json_name()) { |
| 4796 | set_has_json_name(); |
| 4797 | json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name_); |
| 4798 | } |
| 4799 | if (from.has_options()) { |
| 4800 | mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options()); |
| 4801 | } |
| 4802 | } |
| 4803 | if (from._internal_metadata_.have_unknown_fields()) { |
| 4804 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 4805 | } |
| 4806 | } |
| 4807 | |
| 4808 | void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 4809 | if (&from == this) return; |
| 4810 | Clear(); |
| 4811 | MergeFrom(from); |
| 4812 | } |
| 4813 | |
| 4814 | void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { |
| 4815 | if (&from == this) return; |
| 4816 | Clear(); |
| 4817 | MergeFrom(from); |
| 4818 | } |
| 4819 | |
| 4820 | bool FieldDescriptorProto::IsInitialized() const { |
| 4821 | |
| 4822 | if (has_options()) { |
| 4823 | if (!this->options_->IsInitialized()) return false; |
| 4824 | } |
| 4825 | return true; |
| 4826 | } |
| 4827 | |
| 4828 | void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { |
| 4829 | if (other == this) return; |
| 4830 | InternalSwap(other); |
| 4831 | } |
| 4832 | void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { |
| 4833 | name_.Swap(&other->name_); |
| 4834 | std::swap(number_, other->number_); |
| 4835 | std::swap(label_, other->label_); |
| 4836 | std::swap(type_, other->type_); |
| 4837 | type_name_.Swap(&other->type_name_); |
| 4838 | extendee_.Swap(&other->extendee_); |
| 4839 | default_value_.Swap(&other->default_value_); |
| 4840 | std::swap(oneof_index_, other->oneof_index_); |
| 4841 | json_name_.Swap(&other->json_name_); |
| 4842 | std::swap(options_, other->options_); |
| 4843 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 4844 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4845 | std::swap(_cached_size_, other->_cached_size_); |
| 4846 | } |
| 4847 | |
| 4848 | ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const { |
| 4849 | protobuf_AssignDescriptorsOnce(); |
| 4850 | ::google::protobuf::Metadata metadata; |
| 4851 | metadata.descriptor = FieldDescriptorProto_descriptor_; |
| 4852 | metadata.reflection = FieldDescriptorProto_reflection_; |
| 4853 | return metadata; |
| 4854 | } |
| 4855 | |
| 4856 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 4857 | // FieldDescriptorProto |
| 4858 | |
| 4859 | // optional string name = 1; |
| 4860 | bool FieldDescriptorProto::has_name() const { |
| 4861 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 4862 | } |
| 4863 | void FieldDescriptorProto::set_has_name() { |
| 4864 | _has_bits_[0] |= 0x00000001u; |
| 4865 | } |
| 4866 | void FieldDescriptorProto::clear_has_name() { |
| 4867 | _has_bits_[0] &= ~0x00000001u; |
| 4868 | } |
| 4869 | void FieldDescriptorProto::clear_name() { |
| 4870 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4871 | clear_has_name(); |
| 4872 | } |
| 4873 | const ::std::string& FieldDescriptorProto::name() const { |
| 4874 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name) |
| 4875 | return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4876 | } |
| 4877 | void FieldDescriptorProto::set_name(const ::std::string& value) { |
| 4878 | set_has_name(); |
| 4879 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 4880 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name) |
| 4881 | } |
| 4882 | void FieldDescriptorProto::set_name(const char* value) { |
| 4883 | set_has_name(); |
| 4884 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 4885 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name) |
| 4886 | } |
| 4887 | void FieldDescriptorProto::set_name(const char* value, size_t size) { |
| 4888 | set_has_name(); |
| 4889 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4890 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 4891 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name) |
| 4892 | } |
| 4893 | ::std::string* FieldDescriptorProto::mutable_name() { |
| 4894 | set_has_name(); |
| 4895 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name) |
| 4896 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4897 | } |
| 4898 | ::std::string* FieldDescriptorProto::release_name() { |
| 4899 | clear_has_name(); |
| 4900 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4901 | } |
| 4902 | void FieldDescriptorProto::set_allocated_name(::std::string* name) { |
| 4903 | if (name != NULL) { |
| 4904 | set_has_name(); |
| 4905 | } else { |
| 4906 | clear_has_name(); |
| 4907 | } |
| 4908 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 4909 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name) |
| 4910 | } |
| 4911 | |
| 4912 | // optional int32 number = 3; |
| 4913 | bool FieldDescriptorProto::has_number() const { |
| 4914 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 4915 | } |
| 4916 | void FieldDescriptorProto::set_has_number() { |
| 4917 | _has_bits_[0] |= 0x00000002u; |
| 4918 | } |
| 4919 | void FieldDescriptorProto::clear_has_number() { |
| 4920 | _has_bits_[0] &= ~0x00000002u; |
| 4921 | } |
| 4922 | void FieldDescriptorProto::clear_number() { |
| 4923 | number_ = 0; |
| 4924 | clear_has_number(); |
| 4925 | } |
| 4926 | ::google::protobuf::int32 FieldDescriptorProto::number() const { |
| 4927 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number) |
| 4928 | return number_; |
| 4929 | } |
| 4930 | void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { |
| 4931 | set_has_number(); |
| 4932 | number_ = value; |
| 4933 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number) |
| 4934 | } |
| 4935 | |
| 4936 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4937 | bool FieldDescriptorProto::has_label() const { |
| 4938 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 4939 | } |
| 4940 | void FieldDescriptorProto::set_has_label() { |
| 4941 | _has_bits_[0] |= 0x00000004u; |
| 4942 | } |
| 4943 | void FieldDescriptorProto::clear_has_label() { |
| 4944 | _has_bits_[0] &= ~0x00000004u; |
| 4945 | } |
| 4946 | void FieldDescriptorProto::clear_label() { |
| 4947 | label_ = 1; |
| 4948 | clear_has_label(); |
| 4949 | } |
| 4950 | ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const { |
| 4951 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label) |
| 4952 | return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); |
| 4953 | } |
| 4954 | void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) { |
| 4955 | assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); |
| 4956 | set_has_label(); |
| 4957 | label_ = value; |
| 4958 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label) |
| 4959 | } |
| 4960 | |
| 4961 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4962 | bool FieldDescriptorProto::has_type() const { |
| 4963 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 4964 | } |
| 4965 | void FieldDescriptorProto::set_has_type() { |
| 4966 | _has_bits_[0] |= 0x00000008u; |
| 4967 | } |
| 4968 | void FieldDescriptorProto::clear_has_type() { |
| 4969 | _has_bits_[0] &= ~0x00000008u; |
| 4970 | } |
| 4971 | void FieldDescriptorProto::clear_type() { |
| 4972 | type_ = 1; |
| 4973 | clear_has_type(); |
| 4974 | } |
| 4975 | ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const { |
| 4976 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type) |
| 4977 | return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); |
| 4978 | } |
| 4979 | void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) { |
| 4980 | assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); |
| 4981 | set_has_type(); |
| 4982 | type_ = value; |
| 4983 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type) |
| 4984 | } |
| 4985 | |
| 4986 | // optional string type_name = 6; |
| 4987 | bool FieldDescriptorProto::has_type_name() const { |
| 4988 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 4989 | } |
| 4990 | void FieldDescriptorProto::set_has_type_name() { |
| 4991 | _has_bits_[0] |= 0x00000010u; |
| 4992 | } |
| 4993 | void FieldDescriptorProto::clear_has_type_name() { |
| 4994 | _has_bits_[0] &= ~0x00000010u; |
| 4995 | } |
| 4996 | void FieldDescriptorProto::clear_type_name() { |
| 4997 | type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4998 | clear_has_type_name(); |
| 4999 | } |
| 5000 | const ::std::string& FieldDescriptorProto::type_name() const { |
| 5001 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name) |
| 5002 | return type_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5003 | } |
| 5004 | void FieldDescriptorProto::set_type_name(const ::std::string& value) { |
| 5005 | set_has_type_name(); |
| 5006 | type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5007 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name) |
| 5008 | } |
| 5009 | void FieldDescriptorProto::set_type_name(const char* value) { |
| 5010 | set_has_type_name(); |
| 5011 | type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5012 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name) |
| 5013 | } |
| 5014 | void FieldDescriptorProto::set_type_name(const char* value, size_t size) { |
| 5015 | set_has_type_name(); |
| 5016 | type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5017 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5018 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name) |
| 5019 | } |
| 5020 | ::std::string* FieldDescriptorProto::mutable_type_name() { |
| 5021 | set_has_type_name(); |
| 5022 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name) |
| 5023 | return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5024 | } |
| 5025 | ::std::string* FieldDescriptorProto::release_type_name() { |
| 5026 | clear_has_type_name(); |
| 5027 | return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5028 | } |
| 5029 | void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { |
| 5030 | if (type_name != NULL) { |
| 5031 | set_has_type_name(); |
| 5032 | } else { |
| 5033 | clear_has_type_name(); |
| 5034 | } |
| 5035 | type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name); |
| 5036 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name) |
| 5037 | } |
| 5038 | |
| 5039 | // optional string extendee = 2; |
| 5040 | bool FieldDescriptorProto::has_extendee() const { |
| 5041 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 5042 | } |
| 5043 | void FieldDescriptorProto::set_has_extendee() { |
| 5044 | _has_bits_[0] |= 0x00000020u; |
| 5045 | } |
| 5046 | void FieldDescriptorProto::clear_has_extendee() { |
| 5047 | _has_bits_[0] &= ~0x00000020u; |
| 5048 | } |
| 5049 | void FieldDescriptorProto::clear_extendee() { |
| 5050 | extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5051 | clear_has_extendee(); |
| 5052 | } |
| 5053 | const ::std::string& FieldDescriptorProto::extendee() const { |
| 5054 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee) |
| 5055 | return extendee_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5056 | } |
| 5057 | void FieldDescriptorProto::set_extendee(const ::std::string& value) { |
| 5058 | set_has_extendee(); |
| 5059 | extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5060 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee) |
| 5061 | } |
| 5062 | void FieldDescriptorProto::set_extendee(const char* value) { |
| 5063 | set_has_extendee(); |
| 5064 | extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5065 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee) |
| 5066 | } |
| 5067 | void FieldDescriptorProto::set_extendee(const char* value, size_t size) { |
| 5068 | set_has_extendee(); |
| 5069 | extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5070 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5071 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee) |
| 5072 | } |
| 5073 | ::std::string* FieldDescriptorProto::mutable_extendee() { |
| 5074 | set_has_extendee(); |
| 5075 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee) |
| 5076 | return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5077 | } |
| 5078 | ::std::string* FieldDescriptorProto::release_extendee() { |
| 5079 | clear_has_extendee(); |
| 5080 | return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5081 | } |
| 5082 | void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { |
| 5083 | if (extendee != NULL) { |
| 5084 | set_has_extendee(); |
| 5085 | } else { |
| 5086 | clear_has_extendee(); |
| 5087 | } |
| 5088 | extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extendee); |
| 5089 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee) |
| 5090 | } |
| 5091 | |
| 5092 | // optional string default_value = 7; |
| 5093 | bool FieldDescriptorProto::has_default_value() const { |
| 5094 | return (_has_bits_[0] & 0x00000040u) != 0; |
| 5095 | } |
| 5096 | void FieldDescriptorProto::set_has_default_value() { |
| 5097 | _has_bits_[0] |= 0x00000040u; |
| 5098 | } |
| 5099 | void FieldDescriptorProto::clear_has_default_value() { |
| 5100 | _has_bits_[0] &= ~0x00000040u; |
| 5101 | } |
| 5102 | void FieldDescriptorProto::clear_default_value() { |
| 5103 | default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5104 | clear_has_default_value(); |
| 5105 | } |
| 5106 | const ::std::string& FieldDescriptorProto::default_value() const { |
| 5107 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value) |
| 5108 | return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5109 | } |
| 5110 | void FieldDescriptorProto::set_default_value(const ::std::string& value) { |
| 5111 | set_has_default_value(); |
| 5112 | default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5113 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value) |
| 5114 | } |
| 5115 | void FieldDescriptorProto::set_default_value(const char* value) { |
| 5116 | set_has_default_value(); |
| 5117 | default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5118 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value) |
| 5119 | } |
| 5120 | void FieldDescriptorProto::set_default_value(const char* value, size_t size) { |
| 5121 | set_has_default_value(); |
| 5122 | default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5123 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5124 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value) |
| 5125 | } |
| 5126 | ::std::string* FieldDescriptorProto::mutable_default_value() { |
| 5127 | set_has_default_value(); |
| 5128 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value) |
| 5129 | return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5130 | } |
| 5131 | ::std::string* FieldDescriptorProto::release_default_value() { |
| 5132 | clear_has_default_value(); |
| 5133 | return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5134 | } |
| 5135 | void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) { |
| 5136 | if (default_value != NULL) { |
| 5137 | set_has_default_value(); |
| 5138 | } else { |
| 5139 | clear_has_default_value(); |
| 5140 | } |
| 5141 | default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value); |
| 5142 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value) |
| 5143 | } |
| 5144 | |
| 5145 | // optional int32 oneof_index = 9; |
| 5146 | bool FieldDescriptorProto::has_oneof_index() const { |
| 5147 | return (_has_bits_[0] & 0x00000080u) != 0; |
| 5148 | } |
| 5149 | void FieldDescriptorProto::set_has_oneof_index() { |
| 5150 | _has_bits_[0] |= 0x00000080u; |
| 5151 | } |
| 5152 | void FieldDescriptorProto::clear_has_oneof_index() { |
| 5153 | _has_bits_[0] &= ~0x00000080u; |
| 5154 | } |
| 5155 | void FieldDescriptorProto::clear_oneof_index() { |
| 5156 | oneof_index_ = 0; |
| 5157 | clear_has_oneof_index(); |
| 5158 | } |
| 5159 | ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { |
| 5160 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index) |
| 5161 | return oneof_index_; |
| 5162 | } |
| 5163 | void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { |
| 5164 | set_has_oneof_index(); |
| 5165 | oneof_index_ = value; |
| 5166 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index) |
| 5167 | } |
| 5168 | |
| 5169 | // optional string json_name = 10; |
| 5170 | bool FieldDescriptorProto::has_json_name() const { |
| 5171 | return (_has_bits_[0] & 0x00000100u) != 0; |
| 5172 | } |
| 5173 | void FieldDescriptorProto::set_has_json_name() { |
| 5174 | _has_bits_[0] |= 0x00000100u; |
| 5175 | } |
| 5176 | void FieldDescriptorProto::clear_has_json_name() { |
| 5177 | _has_bits_[0] &= ~0x00000100u; |
| 5178 | } |
| 5179 | void FieldDescriptorProto::clear_json_name() { |
| 5180 | json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5181 | clear_has_json_name(); |
| 5182 | } |
| 5183 | const ::std::string& FieldDescriptorProto::json_name() const { |
| 5184 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name) |
| 5185 | return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5186 | } |
| 5187 | void FieldDescriptorProto::set_json_name(const ::std::string& value) { |
| 5188 | set_has_json_name(); |
| 5189 | json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5190 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name) |
| 5191 | } |
| 5192 | void FieldDescriptorProto::set_json_name(const char* value) { |
| 5193 | set_has_json_name(); |
| 5194 | json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5195 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name) |
| 5196 | } |
| 5197 | void FieldDescriptorProto::set_json_name(const char* value, size_t size) { |
| 5198 | set_has_json_name(); |
| 5199 | json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5200 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5201 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name) |
| 5202 | } |
| 5203 | ::std::string* FieldDescriptorProto::mutable_json_name() { |
| 5204 | set_has_json_name(); |
| 5205 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name) |
| 5206 | return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5207 | } |
| 5208 | ::std::string* FieldDescriptorProto::release_json_name() { |
| 5209 | clear_has_json_name(); |
| 5210 | return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5211 | } |
| 5212 | void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { |
| 5213 | if (json_name != NULL) { |
| 5214 | set_has_json_name(); |
| 5215 | } else { |
| 5216 | clear_has_json_name(); |
| 5217 | } |
| 5218 | json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name); |
| 5219 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name) |
| 5220 | } |
| 5221 | |
| 5222 | // optional .google.protobuf.FieldOptions options = 8; |
| 5223 | bool FieldDescriptorProto::has_options() const { |
| 5224 | return (_has_bits_[0] & 0x00000200u) != 0; |
| 5225 | } |
| 5226 | void FieldDescriptorProto::set_has_options() { |
| 5227 | _has_bits_[0] |= 0x00000200u; |
| 5228 | } |
| 5229 | void FieldDescriptorProto::clear_has_options() { |
| 5230 | _has_bits_[0] &= ~0x00000200u; |
| 5231 | } |
| 5232 | void FieldDescriptorProto::clear_options() { |
| 5233 | if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
| 5234 | clear_has_options(); |
| 5235 | } |
| 5236 | const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { |
| 5237 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options) |
| 5238 | return options_ != NULL ? *options_ : *default_instance_->options_; |
| 5239 | } |
| 5240 | ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { |
| 5241 | set_has_options(); |
| 5242 | if (options_ == NULL) { |
| 5243 | options_ = new ::google::protobuf::FieldOptions; |
| 5244 | } |
| 5245 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options) |
| 5246 | return options_; |
| 5247 | } |
| 5248 | ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() { |
| 5249 | clear_has_options(); |
| 5250 | ::google::protobuf::FieldOptions* temp = options_; |
| 5251 | options_ = NULL; |
| 5252 | return temp; |
| 5253 | } |
| 5254 | void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) { |
| 5255 | delete options_; |
| 5256 | options_ = options; |
| 5257 | if (options) { |
| 5258 | set_has_options(); |
| 5259 | } else { |
| 5260 | clear_has_options(); |
| 5261 | } |
| 5262 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options) |
| 5263 | } |
| 5264 | |
| 5265 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5266 | |
| 5267 | // =================================================================== |
| 5268 | |
| 5269 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5270 | const int OneofDescriptorProto::kNameFieldNumber; |
| 5271 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5272 | |
| 5273 | OneofDescriptorProto::OneofDescriptorProto() |
| 5274 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 5275 | SharedCtor(); |
| 5276 | // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto) |
| 5277 | } |
| 5278 | |
| 5279 | void OneofDescriptorProto::InitAsDefaultInstance() { |
| 5280 | } |
| 5281 | |
| 5282 | OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) |
| 5283 | : ::google::protobuf::Message(), |
| 5284 | _internal_metadata_(NULL) { |
| 5285 | SharedCtor(); |
| 5286 | MergeFrom(from); |
| 5287 | // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto) |
| 5288 | } |
| 5289 | |
| 5290 | void OneofDescriptorProto::SharedCtor() { |
| 5291 | ::google::protobuf::internal::GetEmptyString(); |
| 5292 | _cached_size_ = 0; |
| 5293 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5294 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 5295 | } |
| 5296 | |
| 5297 | OneofDescriptorProto::~OneofDescriptorProto() { |
| 5298 | // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto) |
| 5299 | SharedDtor(); |
| 5300 | } |
| 5301 | |
| 5302 | void OneofDescriptorProto::SharedDtor() { |
| 5303 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5304 | if (this != default_instance_) { |
| 5305 | } |
| 5306 | } |
| 5307 | |
| 5308 | void OneofDescriptorProto::SetCachedSize(int size) const { |
| 5309 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5310 | _cached_size_ = size; |
| 5311 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5312 | } |
| 5313 | const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() { |
| 5314 | protobuf_AssignDescriptorsOnce(); |
| 5315 | return OneofDescriptorProto_descriptor_; |
| 5316 | } |
| 5317 | |
| 5318 | const OneofDescriptorProto& OneofDescriptorProto::default_instance() { |
| 5319 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 5320 | return *default_instance_; |
| 5321 | } |
| 5322 | |
| 5323 | OneofDescriptorProto* OneofDescriptorProto::default_instance_ = NULL; |
| 5324 | |
| 5325 | OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 5326 | OneofDescriptorProto* n = new OneofDescriptorProto; |
| 5327 | if (arena != NULL) { |
| 5328 | arena->Own(n); |
| 5329 | } |
| 5330 | return n; |
| 5331 | } |
| 5332 | |
| 5333 | void OneofDescriptorProto::Clear() { |
| 5334 | if (has_name()) { |
| 5335 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5336 | } |
| 5337 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 5338 | if (_internal_metadata_.have_unknown_fields()) { |
| 5339 | mutable_unknown_fields()->Clear(); |
| 5340 | } |
| 5341 | } |
| 5342 | |
| 5343 | bool OneofDescriptorProto::MergePartialFromCodedStream( |
| 5344 | ::google::protobuf::io::CodedInputStream* input) { |
| 5345 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 5346 | ::google::protobuf::uint32 tag; |
| 5347 | // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto) |
| 5348 | for (;;) { |
| 5349 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 5350 | tag = p.first; |
| 5351 | if (!p.second) goto handle_unusual; |
| 5352 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5353 | // optional string name = 1; |
| 5354 | case 1: { |
| 5355 | if (tag == 10) { |
| 5356 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5357 | input, this->mutable_name())); |
| 5358 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5359 | this->name().data(), this->name().length(), |
| 5360 | ::google::protobuf::internal::WireFormat::PARSE, |
| 5361 | "google.protobuf.OneofDescriptorProto.name"); |
| 5362 | } else { |
| 5363 | goto handle_unusual; |
| 5364 | } |
| 5365 | if (input->ExpectAtEnd()) goto success; |
| 5366 | break; |
| 5367 | } |
| 5368 | |
| 5369 | default: { |
| 5370 | handle_unusual: |
| 5371 | if (tag == 0 || |
| 5372 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 5373 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 5374 | goto success; |
| 5375 | } |
| 5376 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5377 | input, tag, mutable_unknown_fields())); |
| 5378 | break; |
| 5379 | } |
| 5380 | } |
| 5381 | } |
| 5382 | success: |
| 5383 | // @@protoc_insertion_point(parse_success:google.protobuf.OneofDescriptorProto) |
| 5384 | return true; |
| 5385 | failure: |
| 5386 | // @@protoc_insertion_point(parse_failure:google.protobuf.OneofDescriptorProto) |
| 5387 | return false; |
| 5388 | #undef DO_ |
| 5389 | } |
| 5390 | |
| 5391 | void OneofDescriptorProto::SerializeWithCachedSizes( |
| 5392 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5393 | // @@protoc_insertion_point(serialize_start:google.protobuf.OneofDescriptorProto) |
| 5394 | // optional string name = 1; |
| 5395 | if (has_name()) { |
| 5396 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5397 | this->name().data(), this->name().length(), |
| 5398 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5399 | "google.protobuf.OneofDescriptorProto.name"); |
| 5400 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 5401 | 1, this->name(), output); |
| 5402 | } |
| 5403 | |
| 5404 | if (_internal_metadata_.have_unknown_fields()) { |
| 5405 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5406 | unknown_fields(), output); |
| 5407 | } |
| 5408 | // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto) |
| 5409 | } |
| 5410 | |
| 5411 | ::google::protobuf::uint8* OneofDescriptorProto::SerializeWithCachedSizesToArray( |
| 5412 | ::google::protobuf::uint8* target) const { |
| 5413 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto) |
| 5414 | // optional string name = 1; |
| 5415 | if (has_name()) { |
| 5416 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5417 | this->name().data(), this->name().length(), |
| 5418 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5419 | "google.protobuf.OneofDescriptorProto.name"); |
| 5420 | target = |
| 5421 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5422 | 1, this->name(), target); |
| 5423 | } |
| 5424 | |
| 5425 | if (_internal_metadata_.have_unknown_fields()) { |
| 5426 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5427 | unknown_fields(), target); |
| 5428 | } |
| 5429 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescriptorProto) |
| 5430 | return target; |
| 5431 | } |
| 5432 | |
| 5433 | int OneofDescriptorProto::ByteSize() const { |
| 5434 | int total_size = 0; |
| 5435 | |
| 5436 | // optional string name = 1; |
| 5437 | if (has_name()) { |
| 5438 | total_size += 1 + |
| 5439 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 5440 | this->name()); |
| 5441 | } |
| 5442 | |
| 5443 | if (_internal_metadata_.have_unknown_fields()) { |
| 5444 | total_size += |
| 5445 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5446 | unknown_fields()); |
| 5447 | } |
| 5448 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5449 | _cached_size_ = total_size; |
| 5450 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5451 | return total_size; |
| 5452 | } |
| 5453 | |
| 5454 | void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 5455 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 5456 | const OneofDescriptorProto* source = |
| 5457 | ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptorProto>( |
| 5458 | &from); |
| 5459 | if (source == NULL) { |
| 5460 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5461 | } else { |
| 5462 | MergeFrom(*source); |
| 5463 | } |
| 5464 | } |
| 5465 | |
| 5466 | void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) { |
| 5467 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 5468 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 5469 | if (from.has_name()) { |
| 5470 | set_has_name(); |
| 5471 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 5472 | } |
| 5473 | } |
| 5474 | if (from._internal_metadata_.have_unknown_fields()) { |
| 5475 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 5476 | } |
| 5477 | } |
| 5478 | |
| 5479 | void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 5480 | if (&from == this) return; |
| 5481 | Clear(); |
| 5482 | MergeFrom(from); |
| 5483 | } |
| 5484 | |
| 5485 | void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) { |
| 5486 | if (&from == this) return; |
| 5487 | Clear(); |
| 5488 | MergeFrom(from); |
| 5489 | } |
| 5490 | |
| 5491 | bool OneofDescriptorProto::IsInitialized() const { |
| 5492 | |
| 5493 | return true; |
| 5494 | } |
| 5495 | |
| 5496 | void OneofDescriptorProto::Swap(OneofDescriptorProto* other) { |
| 5497 | if (other == this) return; |
| 5498 | InternalSwap(other); |
| 5499 | } |
| 5500 | void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { |
| 5501 | name_.Swap(&other->name_); |
| 5502 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 5503 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5504 | std::swap(_cached_size_, other->_cached_size_); |
| 5505 | } |
| 5506 | |
| 5507 | ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const { |
| 5508 | protobuf_AssignDescriptorsOnce(); |
| 5509 | ::google::protobuf::Metadata metadata; |
| 5510 | metadata.descriptor = OneofDescriptorProto_descriptor_; |
| 5511 | metadata.reflection = OneofDescriptorProto_reflection_; |
| 5512 | return metadata; |
| 5513 | } |
| 5514 | |
| 5515 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5516 | // OneofDescriptorProto |
| 5517 | |
| 5518 | // optional string name = 1; |
| 5519 | bool OneofDescriptorProto::has_name() const { |
| 5520 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 5521 | } |
| 5522 | void OneofDescriptorProto::set_has_name() { |
| 5523 | _has_bits_[0] |= 0x00000001u; |
| 5524 | } |
| 5525 | void OneofDescriptorProto::clear_has_name() { |
| 5526 | _has_bits_[0] &= ~0x00000001u; |
| 5527 | } |
| 5528 | void OneofDescriptorProto::clear_name() { |
| 5529 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5530 | clear_has_name(); |
| 5531 | } |
| 5532 | const ::std::string& OneofDescriptorProto::name() const { |
| 5533 | // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name) |
| 5534 | return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5535 | } |
| 5536 | void OneofDescriptorProto::set_name(const ::std::string& value) { |
| 5537 | set_has_name(); |
| 5538 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5539 | // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name) |
| 5540 | } |
| 5541 | void OneofDescriptorProto::set_name(const char* value) { |
| 5542 | set_has_name(); |
| 5543 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5544 | // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name) |
| 5545 | } |
| 5546 | void OneofDescriptorProto::set_name(const char* value, size_t size) { |
| 5547 | set_has_name(); |
| 5548 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5549 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5550 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name) |
| 5551 | } |
| 5552 | ::std::string* OneofDescriptorProto::mutable_name() { |
| 5553 | set_has_name(); |
| 5554 | // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name) |
| 5555 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5556 | } |
| 5557 | ::std::string* OneofDescriptorProto::release_name() { |
| 5558 | clear_has_name(); |
| 5559 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5560 | } |
| 5561 | void OneofDescriptorProto::set_allocated_name(::std::string* name) { |
| 5562 | if (name != NULL) { |
| 5563 | set_has_name(); |
| 5564 | } else { |
| 5565 | clear_has_name(); |
| 5566 | } |
| 5567 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 5568 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name) |
| 5569 | } |
| 5570 | |
| 5571 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5572 | |
| 5573 | // =================================================================== |
| 5574 | |
| 5575 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5576 | const int EnumDescriptorProto::kNameFieldNumber; |
| 5577 | const int EnumDescriptorProto::kValueFieldNumber; |
| 5578 | const int EnumDescriptorProto::kOptionsFieldNumber; |
| 5579 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5580 | |
| 5581 | EnumDescriptorProto::EnumDescriptorProto() |
| 5582 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 5583 | SharedCtor(); |
| 5584 | // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) |
| 5585 | } |
| 5586 | |
| 5587 | void EnumDescriptorProto::InitAsDefaultInstance() { |
| 5588 | options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::EnumOptions::default_instance()); |
| 5589 | } |
| 5590 | |
| 5591 | EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) |
| 5592 | : ::google::protobuf::Message(), |
| 5593 | _internal_metadata_(NULL) { |
| 5594 | SharedCtor(); |
| 5595 | MergeFrom(from); |
| 5596 | // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto) |
| 5597 | } |
| 5598 | |
| 5599 | void EnumDescriptorProto::SharedCtor() { |
| 5600 | ::google::protobuf::internal::GetEmptyString(); |
| 5601 | _cached_size_ = 0; |
| 5602 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5603 | options_ = NULL; |
| 5604 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 5605 | } |
| 5606 | |
| 5607 | EnumDescriptorProto::~EnumDescriptorProto() { |
| 5608 | // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto) |
| 5609 | SharedDtor(); |
| 5610 | } |
| 5611 | |
| 5612 | void EnumDescriptorProto::SharedDtor() { |
| 5613 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5614 | if (this != default_instance_) { |
| 5615 | delete options_; |
| 5616 | } |
| 5617 | } |
| 5618 | |
| 5619 | void EnumDescriptorProto::SetCachedSize(int size) const { |
| 5620 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5621 | _cached_size_ = size; |
| 5622 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5623 | } |
| 5624 | const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() { |
| 5625 | protobuf_AssignDescriptorsOnce(); |
| 5626 | return EnumDescriptorProto_descriptor_; |
| 5627 | } |
| 5628 | |
| 5629 | const EnumDescriptorProto& EnumDescriptorProto::default_instance() { |
| 5630 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 5631 | return *default_instance_; |
| 5632 | } |
| 5633 | |
| 5634 | EnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL; |
| 5635 | |
| 5636 | EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 5637 | EnumDescriptorProto* n = new EnumDescriptorProto; |
| 5638 | if (arena != NULL) { |
| 5639 | arena->Own(n); |
| 5640 | } |
| 5641 | return n; |
| 5642 | } |
| 5643 | |
| 5644 | void EnumDescriptorProto::Clear() { |
| 5645 | if (_has_bits_[0 / 32] & 5u) { |
| 5646 | if (has_name()) { |
| 5647 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5648 | } |
| 5649 | if (has_options()) { |
| 5650 | if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); |
| 5651 | } |
| 5652 | } |
| 5653 | value_.Clear(); |
| 5654 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 5655 | if (_internal_metadata_.have_unknown_fields()) { |
| 5656 | mutable_unknown_fields()->Clear(); |
| 5657 | } |
| 5658 | } |
| 5659 | |
| 5660 | bool EnumDescriptorProto::MergePartialFromCodedStream( |
| 5661 | ::google::protobuf::io::CodedInputStream* input) { |
| 5662 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 5663 | ::google::protobuf::uint32 tag; |
| 5664 | // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto) |
| 5665 | for (;;) { |
| 5666 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 5667 | tag = p.first; |
| 5668 | if (!p.second) goto handle_unusual; |
| 5669 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5670 | // optional string name = 1; |
| 5671 | case 1: { |
| 5672 | if (tag == 10) { |
| 5673 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5674 | input, this->mutable_name())); |
| 5675 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5676 | this->name().data(), this->name().length(), |
| 5677 | ::google::protobuf::internal::WireFormat::PARSE, |
| 5678 | "google.protobuf.EnumDescriptorProto.name"); |
| 5679 | } else { |
| 5680 | goto handle_unusual; |
| 5681 | } |
| 5682 | if (input->ExpectTag(18)) goto parse_value; |
| 5683 | break; |
| 5684 | } |
| 5685 | |
| 5686 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5687 | case 2: { |
| 5688 | if (tag == 18) { |
| 5689 | parse_value: |
| 5690 | DO_(input->IncrementRecursionDepth()); |
| 5691 | parse_loop_value: |
| 5692 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 5693 | input, add_value())); |
| 5694 | } else { |
| 5695 | goto handle_unusual; |
| 5696 | } |
| 5697 | if (input->ExpectTag(18)) goto parse_loop_value; |
| 5698 | input->UnsafeDecrementRecursionDepth(); |
| 5699 | if (input->ExpectTag(26)) goto parse_options; |
| 5700 | break; |
| 5701 | } |
| 5702 | |
| 5703 | // optional .google.protobuf.EnumOptions options = 3; |
| 5704 | case 3: { |
| 5705 | if (tag == 26) { |
| 5706 | parse_options: |
| 5707 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 5708 | input, mutable_options())); |
| 5709 | } else { |
| 5710 | goto handle_unusual; |
| 5711 | } |
| 5712 | if (input->ExpectAtEnd()) goto success; |
| 5713 | break; |
| 5714 | } |
| 5715 | |
| 5716 | default: { |
| 5717 | handle_unusual: |
| 5718 | if (tag == 0 || |
| 5719 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 5720 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 5721 | goto success; |
| 5722 | } |
| 5723 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5724 | input, tag, mutable_unknown_fields())); |
| 5725 | break; |
| 5726 | } |
| 5727 | } |
| 5728 | } |
| 5729 | success: |
| 5730 | // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto) |
| 5731 | return true; |
| 5732 | failure: |
| 5733 | // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto) |
| 5734 | return false; |
| 5735 | #undef DO_ |
| 5736 | } |
| 5737 | |
| 5738 | void EnumDescriptorProto::SerializeWithCachedSizes( |
| 5739 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5740 | // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto) |
| 5741 | // optional string name = 1; |
| 5742 | if (has_name()) { |
| 5743 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5744 | this->name().data(), this->name().length(), |
| 5745 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5746 | "google.protobuf.EnumDescriptorProto.name"); |
| 5747 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 5748 | 1, this->name(), output); |
| 5749 | } |
| 5750 | |
| 5751 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5752 | for (unsigned int i = 0, n = this->value_size(); i < n; i++) { |
| 5753 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5754 | 2, this->value(i), output); |
| 5755 | } |
| 5756 | |
| 5757 | // optional .google.protobuf.EnumOptions options = 3; |
| 5758 | if (has_options()) { |
| 5759 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5760 | 3, *this->options_, output); |
| 5761 | } |
| 5762 | |
| 5763 | if (_internal_metadata_.have_unknown_fields()) { |
| 5764 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5765 | unknown_fields(), output); |
| 5766 | } |
| 5767 | // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto) |
| 5768 | } |
| 5769 | |
| 5770 | ::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray( |
| 5771 | ::google::protobuf::uint8* target) const { |
| 5772 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto) |
| 5773 | // optional string name = 1; |
| 5774 | if (has_name()) { |
| 5775 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5776 | this->name().data(), this->name().length(), |
| 5777 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5778 | "google.protobuf.EnumDescriptorProto.name"); |
| 5779 | target = |
| 5780 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5781 | 1, this->name(), target); |
| 5782 | } |
| 5783 | |
| 5784 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5785 | for (unsigned int i = 0, n = this->value_size(); i < n; i++) { |
| 5786 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5787 | WriteMessageNoVirtualToArray( |
| 5788 | 2, this->value(i), target); |
| 5789 | } |
| 5790 | |
| 5791 | // optional .google.protobuf.EnumOptions options = 3; |
| 5792 | if (has_options()) { |
| 5793 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5794 | WriteMessageNoVirtualToArray( |
| 5795 | 3, *this->options_, target); |
| 5796 | } |
| 5797 | |
| 5798 | if (_internal_metadata_.have_unknown_fields()) { |
| 5799 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5800 | unknown_fields(), target); |
| 5801 | } |
| 5802 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto) |
| 5803 | return target; |
| 5804 | } |
| 5805 | |
| 5806 | int EnumDescriptorProto::ByteSize() const { |
| 5807 | int total_size = 0; |
| 5808 | |
| 5809 | if (_has_bits_[0 / 32] & 5u) { |
| 5810 | // optional string name = 1; |
| 5811 | if (has_name()) { |
| 5812 | total_size += 1 + |
| 5813 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 5814 | this->name()); |
| 5815 | } |
| 5816 | |
| 5817 | // optional .google.protobuf.EnumOptions options = 3; |
| 5818 | if (has_options()) { |
| 5819 | total_size += 1 + |
| 5820 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 5821 | *this->options_); |
| 5822 | } |
| 5823 | |
| 5824 | } |
| 5825 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5826 | total_size += 1 * this->value_size(); |
| 5827 | for (int i = 0; i < this->value_size(); i++) { |
| 5828 | total_size += |
| 5829 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 5830 | this->value(i)); |
| 5831 | } |
| 5832 | |
| 5833 | if (_internal_metadata_.have_unknown_fields()) { |
| 5834 | total_size += |
| 5835 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5836 | unknown_fields()); |
| 5837 | } |
| 5838 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5839 | _cached_size_ = total_size; |
| 5840 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5841 | return total_size; |
| 5842 | } |
| 5843 | |
| 5844 | void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 5845 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 5846 | const EnumDescriptorProto* source = |
| 5847 | ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorProto>( |
| 5848 | &from); |
| 5849 | if (source == NULL) { |
| 5850 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5851 | } else { |
| 5852 | MergeFrom(*source); |
| 5853 | } |
| 5854 | } |
| 5855 | |
| 5856 | void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { |
| 5857 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 5858 | value_.MergeFrom(from.value_); |
| 5859 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 5860 | if (from.has_name()) { |
| 5861 | set_has_name(); |
| 5862 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 5863 | } |
| 5864 | if (from.has_options()) { |
| 5865 | mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options()); |
| 5866 | } |
| 5867 | } |
| 5868 | if (from._internal_metadata_.have_unknown_fields()) { |
| 5869 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 5870 | } |
| 5871 | } |
| 5872 | |
| 5873 | void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 5874 | if (&from == this) return; |
| 5875 | Clear(); |
| 5876 | MergeFrom(from); |
| 5877 | } |
| 5878 | |
| 5879 | void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { |
| 5880 | if (&from == this) return; |
| 5881 | Clear(); |
| 5882 | MergeFrom(from); |
| 5883 | } |
| 5884 | |
| 5885 | bool EnumDescriptorProto::IsInitialized() const { |
| 5886 | |
| 5887 | if (!::google::protobuf::internal::AllAreInitialized(this->value())) return false; |
| 5888 | if (has_options()) { |
| 5889 | if (!this->options_->IsInitialized()) return false; |
| 5890 | } |
| 5891 | return true; |
| 5892 | } |
| 5893 | |
| 5894 | void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { |
| 5895 | if (other == this) return; |
| 5896 | InternalSwap(other); |
| 5897 | } |
| 5898 | void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { |
| 5899 | name_.Swap(&other->name_); |
| 5900 | value_.UnsafeArenaSwap(&other->value_); |
| 5901 | std::swap(options_, other->options_); |
| 5902 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 5903 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5904 | std::swap(_cached_size_, other->_cached_size_); |
| 5905 | } |
| 5906 | |
| 5907 | ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const { |
| 5908 | protobuf_AssignDescriptorsOnce(); |
| 5909 | ::google::protobuf::Metadata metadata; |
| 5910 | metadata.descriptor = EnumDescriptorProto_descriptor_; |
| 5911 | metadata.reflection = EnumDescriptorProto_reflection_; |
| 5912 | return metadata; |
| 5913 | } |
| 5914 | |
| 5915 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5916 | // EnumDescriptorProto |
| 5917 | |
| 5918 | // optional string name = 1; |
| 5919 | bool EnumDescriptorProto::has_name() const { |
| 5920 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 5921 | } |
| 5922 | void EnumDescriptorProto::set_has_name() { |
| 5923 | _has_bits_[0] |= 0x00000001u; |
| 5924 | } |
| 5925 | void EnumDescriptorProto::clear_has_name() { |
| 5926 | _has_bits_[0] &= ~0x00000001u; |
| 5927 | } |
| 5928 | void EnumDescriptorProto::clear_name() { |
| 5929 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5930 | clear_has_name(); |
| 5931 | } |
| 5932 | const ::std::string& EnumDescriptorProto::name() const { |
| 5933 | // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name) |
| 5934 | return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5935 | } |
| 5936 | void EnumDescriptorProto::set_name(const ::std::string& value) { |
| 5937 | set_has_name(); |
| 5938 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5939 | // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name) |
| 5940 | } |
| 5941 | void EnumDescriptorProto::set_name(const char* value) { |
| 5942 | set_has_name(); |
| 5943 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5944 | // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name) |
| 5945 | } |
| 5946 | void EnumDescriptorProto::set_name(const char* value, size_t size) { |
| 5947 | set_has_name(); |
| 5948 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5949 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5950 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name) |
| 5951 | } |
| 5952 | ::std::string* EnumDescriptorProto::mutable_name() { |
| 5953 | set_has_name(); |
| 5954 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name) |
| 5955 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5956 | } |
| 5957 | ::std::string* EnumDescriptorProto::release_name() { |
| 5958 | clear_has_name(); |
| 5959 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5960 | } |
| 5961 | void EnumDescriptorProto::set_allocated_name(::std::string* name) { |
| 5962 | if (name != NULL) { |
| 5963 | set_has_name(); |
| 5964 | } else { |
| 5965 | clear_has_name(); |
| 5966 | } |
| 5967 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 5968 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name) |
| 5969 | } |
| 5970 | |
| 5971 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5972 | int EnumDescriptorProto::value_size() const { |
| 5973 | return value_.size(); |
| 5974 | } |
| 5975 | void EnumDescriptorProto::clear_value() { |
| 5976 | value_.Clear(); |
| 5977 | } |
| 5978 | const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const { |
| 5979 | // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value) |
| 5980 | return value_.Get(index); |
| 5981 | } |
| 5982 | ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) { |
| 5983 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value) |
| 5984 | return value_.Mutable(index); |
| 5985 | } |
| 5986 | ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() { |
| 5987 | // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value) |
| 5988 | return value_.Add(); |
| 5989 | } |
| 5990 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >* |
| 5991 | EnumDescriptorProto::mutable_value() { |
| 5992 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value) |
| 5993 | return &value_; |
| 5994 | } |
| 5995 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >& |
| 5996 | EnumDescriptorProto::value() const { |
| 5997 | // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value) |
| 5998 | return value_; |
| 5999 | } |
| 6000 | |
| 6001 | // optional .google.protobuf.EnumOptions options = 3; |
| 6002 | bool EnumDescriptorProto::has_options() const { |
| 6003 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 6004 | } |
| 6005 | void EnumDescriptorProto::set_has_options() { |
| 6006 | _has_bits_[0] |= 0x00000004u; |
| 6007 | } |
| 6008 | void EnumDescriptorProto::clear_has_options() { |
| 6009 | _has_bits_[0] &= ~0x00000004u; |
| 6010 | } |
| 6011 | void EnumDescriptorProto::clear_options() { |
| 6012 | if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); |
| 6013 | clear_has_options(); |
| 6014 | } |
| 6015 | const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { |
| 6016 | // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options) |
| 6017 | return options_ != NULL ? *options_ : *default_instance_->options_; |
| 6018 | } |
| 6019 | ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { |
| 6020 | set_has_options(); |
| 6021 | if (options_ == NULL) { |
| 6022 | options_ = new ::google::protobuf::EnumOptions; |
| 6023 | } |
| 6024 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options) |
| 6025 | return options_; |
| 6026 | } |
| 6027 | ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() { |
| 6028 | clear_has_options(); |
| 6029 | ::google::protobuf::EnumOptions* temp = options_; |
| 6030 | options_ = NULL; |
| 6031 | return temp; |
| 6032 | } |
| 6033 | void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) { |
| 6034 | delete options_; |
| 6035 | options_ = options; |
| 6036 | if (options) { |
| 6037 | set_has_options(); |
| 6038 | } else { |
| 6039 | clear_has_options(); |
| 6040 | } |
| 6041 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options) |
| 6042 | } |
| 6043 | |
| 6044 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6045 | |
| 6046 | // =================================================================== |
| 6047 | |
| 6048 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6049 | const int EnumValueDescriptorProto::kNameFieldNumber; |
| 6050 | const int EnumValueDescriptorProto::kNumberFieldNumber; |
| 6051 | const int EnumValueDescriptorProto::kOptionsFieldNumber; |
| 6052 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6053 | |
| 6054 | EnumValueDescriptorProto::EnumValueDescriptorProto() |
| 6055 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 6056 | SharedCtor(); |
| 6057 | // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorProto) |
| 6058 | } |
| 6059 | |
| 6060 | void EnumValueDescriptorProto::InitAsDefaultInstance() { |
| 6061 | options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::protobuf::EnumValueOptions::default_instance()); |
| 6062 | } |
| 6063 | |
| 6064 | EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from) |
| 6065 | : ::google::protobuf::Message(), |
| 6066 | _internal_metadata_(NULL) { |
| 6067 | SharedCtor(); |
| 6068 | MergeFrom(from); |
| 6069 | // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto) |
| 6070 | } |
| 6071 | |
| 6072 | void EnumValueDescriptorProto::SharedCtor() { |
| 6073 | ::google::protobuf::internal::GetEmptyString(); |
| 6074 | _cached_size_ = 0; |
| 6075 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6076 | number_ = 0; |
| 6077 | options_ = NULL; |
| 6078 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 6079 | } |
| 6080 | |
| 6081 | EnumValueDescriptorProto::~EnumValueDescriptorProto() { |
| 6082 | // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto) |
| 6083 | SharedDtor(); |
| 6084 | } |
| 6085 | |
| 6086 | void EnumValueDescriptorProto::SharedDtor() { |
| 6087 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6088 | if (this != default_instance_) { |
| 6089 | delete options_; |
| 6090 | } |
| 6091 | } |
| 6092 | |
| 6093 | void EnumValueDescriptorProto::SetCachedSize(int size) const { |
| 6094 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6095 | _cached_size_ = size; |
| 6096 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6097 | } |
| 6098 | const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() { |
| 6099 | protobuf_AssignDescriptorsOnce(); |
| 6100 | return EnumValueDescriptorProto_descriptor_; |
| 6101 | } |
| 6102 | |
| 6103 | const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() { |
| 6104 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 6105 | return *default_instance_; |
| 6106 | } |
| 6107 | |
| 6108 | EnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL; |
| 6109 | |
| 6110 | EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 6111 | EnumValueDescriptorProto* n = new EnumValueDescriptorProto; |
| 6112 | if (arena != NULL) { |
| 6113 | arena->Own(n); |
| 6114 | } |
| 6115 | return n; |
| 6116 | } |
| 6117 | |
| 6118 | void EnumValueDescriptorProto::Clear() { |
| 6119 | if (_has_bits_[0 / 32] & 7u) { |
| 6120 | if (has_name()) { |
| 6121 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6122 | } |
| 6123 | number_ = 0; |
| 6124 | if (has_options()) { |
| 6125 | if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); |
| 6126 | } |
| 6127 | } |
| 6128 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 6129 | if (_internal_metadata_.have_unknown_fields()) { |
| 6130 | mutable_unknown_fields()->Clear(); |
| 6131 | } |
| 6132 | } |
| 6133 | |
| 6134 | bool EnumValueDescriptorProto::MergePartialFromCodedStream( |
| 6135 | ::google::protobuf::io::CodedInputStream* input) { |
| 6136 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 6137 | ::google::protobuf::uint32 tag; |
| 6138 | // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorProto) |
| 6139 | for (;;) { |
| 6140 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 6141 | tag = p.first; |
| 6142 | if (!p.second) goto handle_unusual; |
| 6143 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6144 | // optional string name = 1; |
| 6145 | case 1: { |
| 6146 | if (tag == 10) { |
| 6147 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6148 | input, this->mutable_name())); |
| 6149 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6150 | this->name().data(), this->name().length(), |
| 6151 | ::google::protobuf::internal::WireFormat::PARSE, |
| 6152 | "google.protobuf.EnumValueDescriptorProto.name"); |
| 6153 | } else { |
| 6154 | goto handle_unusual; |
| 6155 | } |
| 6156 | if (input->ExpectTag(16)) goto parse_number; |
| 6157 | break; |
| 6158 | } |
| 6159 | |
| 6160 | // optional int32 number = 2; |
| 6161 | case 2: { |
| 6162 | if (tag == 16) { |
| 6163 | parse_number: |
| 6164 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6165 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 6166 | input, &number_))); |
| 6167 | set_has_number(); |
| 6168 | } else { |
| 6169 | goto handle_unusual; |
| 6170 | } |
| 6171 | if (input->ExpectTag(26)) goto parse_options; |
| 6172 | break; |
| 6173 | } |
| 6174 | |
| 6175 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6176 | case 3: { |
| 6177 | if (tag == 26) { |
| 6178 | parse_options: |
| 6179 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 6180 | input, mutable_options())); |
| 6181 | } else { |
| 6182 | goto handle_unusual; |
| 6183 | } |
| 6184 | if (input->ExpectAtEnd()) goto success; |
| 6185 | break; |
| 6186 | } |
| 6187 | |
| 6188 | default: { |
| 6189 | handle_unusual: |
| 6190 | if (tag == 0 || |
| 6191 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 6192 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 6193 | goto success; |
| 6194 | } |
| 6195 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6196 | input, tag, mutable_unknown_fields())); |
| 6197 | break; |
| 6198 | } |
| 6199 | } |
| 6200 | } |
| 6201 | success: |
| 6202 | // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueDescriptorProto) |
| 6203 | return true; |
| 6204 | failure: |
| 6205 | // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueDescriptorProto) |
| 6206 | return false; |
| 6207 | #undef DO_ |
| 6208 | } |
| 6209 | |
| 6210 | void EnumValueDescriptorProto::SerializeWithCachedSizes( |
| 6211 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6212 | // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueDescriptorProto) |
| 6213 | // optional string name = 1; |
| 6214 | if (has_name()) { |
| 6215 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6216 | this->name().data(), this->name().length(), |
| 6217 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6218 | "google.protobuf.EnumValueDescriptorProto.name"); |
| 6219 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6220 | 1, this->name(), output); |
| 6221 | } |
| 6222 | |
| 6223 | // optional int32 number = 2; |
| 6224 | if (has_number()) { |
| 6225 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output); |
| 6226 | } |
| 6227 | |
| 6228 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6229 | if (has_options()) { |
| 6230 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6231 | 3, *this->options_, output); |
| 6232 | } |
| 6233 | |
| 6234 | if (_internal_metadata_.have_unknown_fields()) { |
| 6235 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6236 | unknown_fields(), output); |
| 6237 | } |
| 6238 | // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorProto) |
| 6239 | } |
| 6240 | |
| 6241 | ::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToArray( |
| 6242 | ::google::protobuf::uint8* target) const { |
| 6243 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto) |
| 6244 | // optional string name = 1; |
| 6245 | if (has_name()) { |
| 6246 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6247 | this->name().data(), this->name().length(), |
| 6248 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6249 | "google.protobuf.EnumValueDescriptorProto.name"); |
| 6250 | target = |
| 6251 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6252 | 1, this->name(), target); |
| 6253 | } |
| 6254 | |
| 6255 | // optional int32 number = 2; |
| 6256 | if (has_number()) { |
| 6257 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target); |
| 6258 | } |
| 6259 | |
| 6260 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6261 | if (has_options()) { |
| 6262 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6263 | WriteMessageNoVirtualToArray( |
| 6264 | 3, *this->options_, target); |
| 6265 | } |
| 6266 | |
| 6267 | if (_internal_metadata_.have_unknown_fields()) { |
| 6268 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6269 | unknown_fields(), target); |
| 6270 | } |
| 6271 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDescriptorProto) |
| 6272 | return target; |
| 6273 | } |
| 6274 | |
| 6275 | int EnumValueDescriptorProto::ByteSize() const { |
| 6276 | int total_size = 0; |
| 6277 | |
| 6278 | if (_has_bits_[0 / 32] & 7u) { |
| 6279 | // optional string name = 1; |
| 6280 | if (has_name()) { |
| 6281 | total_size += 1 + |
| 6282 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6283 | this->name()); |
| 6284 | } |
| 6285 | |
| 6286 | // optional int32 number = 2; |
| 6287 | if (has_number()) { |
| 6288 | total_size += 1 + |
| 6289 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 6290 | this->number()); |
| 6291 | } |
| 6292 | |
| 6293 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6294 | if (has_options()) { |
| 6295 | total_size += 1 + |
| 6296 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6297 | *this->options_); |
| 6298 | } |
| 6299 | |
| 6300 | } |
| 6301 | if (_internal_metadata_.have_unknown_fields()) { |
| 6302 | total_size += |
| 6303 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6304 | unknown_fields()); |
| 6305 | } |
| 6306 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6307 | _cached_size_ = total_size; |
| 6308 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6309 | return total_size; |
| 6310 | } |
| 6311 | |
| 6312 | void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 6313 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 6314 | const EnumValueDescriptorProto* source = |
| 6315 | ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescriptorProto>( |
| 6316 | &from); |
| 6317 | if (source == NULL) { |
| 6318 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6319 | } else { |
| 6320 | MergeFrom(*source); |
| 6321 | } |
| 6322 | } |
| 6323 | |
| 6324 | void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { |
| 6325 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 6326 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 6327 | if (from.has_name()) { |
| 6328 | set_has_name(); |
| 6329 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 6330 | } |
| 6331 | if (from.has_number()) { |
| 6332 | set_number(from.number()); |
| 6333 | } |
| 6334 | if (from.has_options()) { |
| 6335 | mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options()); |
| 6336 | } |
| 6337 | } |
| 6338 | if (from._internal_metadata_.have_unknown_fields()) { |
| 6339 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 6340 | } |
| 6341 | } |
| 6342 | |
| 6343 | void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 6344 | if (&from == this) return; |
| 6345 | Clear(); |
| 6346 | MergeFrom(from); |
| 6347 | } |
| 6348 | |
| 6349 | void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { |
| 6350 | if (&from == this) return; |
| 6351 | Clear(); |
| 6352 | MergeFrom(from); |
| 6353 | } |
| 6354 | |
| 6355 | bool EnumValueDescriptorProto::IsInitialized() const { |
| 6356 | |
| 6357 | if (has_options()) { |
| 6358 | if (!this->options_->IsInitialized()) return false; |
| 6359 | } |
| 6360 | return true; |
| 6361 | } |
| 6362 | |
| 6363 | void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { |
| 6364 | if (other == this) return; |
| 6365 | InternalSwap(other); |
| 6366 | } |
| 6367 | void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { |
| 6368 | name_.Swap(&other->name_); |
| 6369 | std::swap(number_, other->number_); |
| 6370 | std::swap(options_, other->options_); |
| 6371 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 6372 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6373 | std::swap(_cached_size_, other->_cached_size_); |
| 6374 | } |
| 6375 | |
| 6376 | ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const { |
| 6377 | protobuf_AssignDescriptorsOnce(); |
| 6378 | ::google::protobuf::Metadata metadata; |
| 6379 | metadata.descriptor = EnumValueDescriptorProto_descriptor_; |
| 6380 | metadata.reflection = EnumValueDescriptorProto_reflection_; |
| 6381 | return metadata; |
| 6382 | } |
| 6383 | |
| 6384 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6385 | // EnumValueDescriptorProto |
| 6386 | |
| 6387 | // optional string name = 1; |
| 6388 | bool EnumValueDescriptorProto::has_name() const { |
| 6389 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 6390 | } |
| 6391 | void EnumValueDescriptorProto::set_has_name() { |
| 6392 | _has_bits_[0] |= 0x00000001u; |
| 6393 | } |
| 6394 | void EnumValueDescriptorProto::clear_has_name() { |
| 6395 | _has_bits_[0] &= ~0x00000001u; |
| 6396 | } |
| 6397 | void EnumValueDescriptorProto::clear_name() { |
| 6398 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6399 | clear_has_name(); |
| 6400 | } |
| 6401 | const ::std::string& EnumValueDescriptorProto::name() const { |
| 6402 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name) |
| 6403 | return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6404 | } |
| 6405 | void EnumValueDescriptorProto::set_name(const ::std::string& value) { |
| 6406 | set_has_name(); |
| 6407 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 6408 | // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name) |
| 6409 | } |
| 6410 | void EnumValueDescriptorProto::set_name(const char* value) { |
| 6411 | set_has_name(); |
| 6412 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 6413 | // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name) |
| 6414 | } |
| 6415 | void EnumValueDescriptorProto::set_name(const char* value, size_t size) { |
| 6416 | set_has_name(); |
| 6417 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6418 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 6419 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name) |
| 6420 | } |
| 6421 | ::std::string* EnumValueDescriptorProto::mutable_name() { |
| 6422 | set_has_name(); |
| 6423 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name) |
| 6424 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6425 | } |
| 6426 | ::std::string* EnumValueDescriptorProto::release_name() { |
| 6427 | clear_has_name(); |
| 6428 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6429 | } |
| 6430 | void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { |
| 6431 | if (name != NULL) { |
| 6432 | set_has_name(); |
| 6433 | } else { |
| 6434 | clear_has_name(); |
| 6435 | } |
| 6436 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 6437 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name) |
| 6438 | } |
| 6439 | |
| 6440 | // optional int32 number = 2; |
| 6441 | bool EnumValueDescriptorProto::has_number() const { |
| 6442 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 6443 | } |
| 6444 | void EnumValueDescriptorProto::set_has_number() { |
| 6445 | _has_bits_[0] |= 0x00000002u; |
| 6446 | } |
| 6447 | void EnumValueDescriptorProto::clear_has_number() { |
| 6448 | _has_bits_[0] &= ~0x00000002u; |
| 6449 | } |
| 6450 | void EnumValueDescriptorProto::clear_number() { |
| 6451 | number_ = 0; |
| 6452 | clear_has_number(); |
| 6453 | } |
| 6454 | ::google::protobuf::int32 EnumValueDescriptorProto::number() const { |
| 6455 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number) |
| 6456 | return number_; |
| 6457 | } |
| 6458 | void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { |
| 6459 | set_has_number(); |
| 6460 | number_ = value; |
| 6461 | // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number) |
| 6462 | } |
| 6463 | |
| 6464 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6465 | bool EnumValueDescriptorProto::has_options() const { |
| 6466 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 6467 | } |
| 6468 | void EnumValueDescriptorProto::set_has_options() { |
| 6469 | _has_bits_[0] |= 0x00000004u; |
| 6470 | } |
| 6471 | void EnumValueDescriptorProto::clear_has_options() { |
| 6472 | _has_bits_[0] &= ~0x00000004u; |
| 6473 | } |
| 6474 | void EnumValueDescriptorProto::clear_options() { |
| 6475 | if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); |
| 6476 | clear_has_options(); |
| 6477 | } |
| 6478 | const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const { |
| 6479 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options) |
| 6480 | return options_ != NULL ? *options_ : *default_instance_->options_; |
| 6481 | } |
| 6482 | ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() { |
| 6483 | set_has_options(); |
| 6484 | if (options_ == NULL) { |
| 6485 | options_ = new ::google::protobuf::EnumValueOptions; |
| 6486 | } |
| 6487 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options) |
| 6488 | return options_; |
| 6489 | } |
| 6490 | ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() { |
| 6491 | clear_has_options(); |
| 6492 | ::google::protobuf::EnumValueOptions* temp = options_; |
| 6493 | options_ = NULL; |
| 6494 | return temp; |
| 6495 | } |
| 6496 | void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumValueOptions* options) { |
| 6497 | delete options_; |
| 6498 | options_ = options; |
| 6499 | if (options) { |
| 6500 | set_has_options(); |
| 6501 | } else { |
| 6502 | clear_has_options(); |
| 6503 | } |
| 6504 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options) |
| 6505 | } |
| 6506 | |
| 6507 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6508 | |
| 6509 | // =================================================================== |
| 6510 | |
| 6511 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6512 | const int ServiceDescriptorProto::kNameFieldNumber; |
| 6513 | const int ServiceDescriptorProto::kMethodFieldNumber; |
| 6514 | const int ServiceDescriptorProto::kOptionsFieldNumber; |
| 6515 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6516 | |
| 6517 | ServiceDescriptorProto::ServiceDescriptorProto() |
| 6518 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 6519 | SharedCtor(); |
| 6520 | // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto) |
| 6521 | } |
| 6522 | |
| 6523 | void ServiceDescriptorProto::InitAsDefaultInstance() { |
| 6524 | options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobuf::ServiceOptions::default_instance()); |
| 6525 | } |
| 6526 | |
| 6527 | ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from) |
| 6528 | : ::google::protobuf::Message(), |
| 6529 | _internal_metadata_(NULL) { |
| 6530 | SharedCtor(); |
| 6531 | MergeFrom(from); |
| 6532 | // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto) |
| 6533 | } |
| 6534 | |
| 6535 | void ServiceDescriptorProto::SharedCtor() { |
| 6536 | ::google::protobuf::internal::GetEmptyString(); |
| 6537 | _cached_size_ = 0; |
| 6538 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6539 | options_ = NULL; |
| 6540 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 6541 | } |
| 6542 | |
| 6543 | ServiceDescriptorProto::~ServiceDescriptorProto() { |
| 6544 | // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto) |
| 6545 | SharedDtor(); |
| 6546 | } |
| 6547 | |
| 6548 | void ServiceDescriptorProto::SharedDtor() { |
| 6549 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6550 | if (this != default_instance_) { |
| 6551 | delete options_; |
| 6552 | } |
| 6553 | } |
| 6554 | |
| 6555 | void ServiceDescriptorProto::SetCachedSize(int size) const { |
| 6556 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6557 | _cached_size_ = size; |
| 6558 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6559 | } |
| 6560 | const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() { |
| 6561 | protobuf_AssignDescriptorsOnce(); |
| 6562 | return ServiceDescriptorProto_descriptor_; |
| 6563 | } |
| 6564 | |
| 6565 | const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() { |
| 6566 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 6567 | return *default_instance_; |
| 6568 | } |
| 6569 | |
| 6570 | ServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL; |
| 6571 | |
| 6572 | ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 6573 | ServiceDescriptorProto* n = new ServiceDescriptorProto; |
| 6574 | if (arena != NULL) { |
| 6575 | arena->Own(n); |
| 6576 | } |
| 6577 | return n; |
| 6578 | } |
| 6579 | |
| 6580 | void ServiceDescriptorProto::Clear() { |
| 6581 | if (_has_bits_[0 / 32] & 5u) { |
| 6582 | if (has_name()) { |
| 6583 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6584 | } |
| 6585 | if (has_options()) { |
| 6586 | if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); |
| 6587 | } |
| 6588 | } |
| 6589 | method_.Clear(); |
| 6590 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 6591 | if (_internal_metadata_.have_unknown_fields()) { |
| 6592 | mutable_unknown_fields()->Clear(); |
| 6593 | } |
| 6594 | } |
| 6595 | |
| 6596 | bool ServiceDescriptorProto::MergePartialFromCodedStream( |
| 6597 | ::google::protobuf::io::CodedInputStream* input) { |
| 6598 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 6599 | ::google::protobuf::uint32 tag; |
| 6600 | // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto) |
| 6601 | for (;;) { |
| 6602 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 6603 | tag = p.first; |
| 6604 | if (!p.second) goto handle_unusual; |
| 6605 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6606 | // optional string name = 1; |
| 6607 | case 1: { |
| 6608 | if (tag == 10) { |
| 6609 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6610 | input, this->mutable_name())); |
| 6611 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6612 | this->name().data(), this->name().length(), |
| 6613 | ::google::protobuf::internal::WireFormat::PARSE, |
| 6614 | "google.protobuf.ServiceDescriptorProto.name"); |
| 6615 | } else { |
| 6616 | goto handle_unusual; |
| 6617 | } |
| 6618 | if (input->ExpectTag(18)) goto parse_method; |
| 6619 | break; |
| 6620 | } |
| 6621 | |
| 6622 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6623 | case 2: { |
| 6624 | if (tag == 18) { |
| 6625 | parse_method: |
| 6626 | DO_(input->IncrementRecursionDepth()); |
| 6627 | parse_loop_method: |
| 6628 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 6629 | input, add_method())); |
| 6630 | } else { |
| 6631 | goto handle_unusual; |
| 6632 | } |
| 6633 | if (input->ExpectTag(18)) goto parse_loop_method; |
| 6634 | input->UnsafeDecrementRecursionDepth(); |
| 6635 | if (input->ExpectTag(26)) goto parse_options; |
| 6636 | break; |
| 6637 | } |
| 6638 | |
| 6639 | // optional .google.protobuf.ServiceOptions options = 3; |
| 6640 | case 3: { |
| 6641 | if (tag == 26) { |
| 6642 | parse_options: |
| 6643 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 6644 | input, mutable_options())); |
| 6645 | } else { |
| 6646 | goto handle_unusual; |
| 6647 | } |
| 6648 | if (input->ExpectAtEnd()) goto success; |
| 6649 | break; |
| 6650 | } |
| 6651 | |
| 6652 | default: { |
| 6653 | handle_unusual: |
| 6654 | if (tag == 0 || |
| 6655 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 6656 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 6657 | goto success; |
| 6658 | } |
| 6659 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6660 | input, tag, mutable_unknown_fields())); |
| 6661 | break; |
| 6662 | } |
| 6663 | } |
| 6664 | } |
| 6665 | success: |
| 6666 | // @@protoc_insertion_point(parse_success:google.protobuf.ServiceDescriptorProto) |
| 6667 | return true; |
| 6668 | failure: |
| 6669 | // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceDescriptorProto) |
| 6670 | return false; |
| 6671 | #undef DO_ |
| 6672 | } |
| 6673 | |
| 6674 | void ServiceDescriptorProto::SerializeWithCachedSizes( |
| 6675 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6676 | // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceDescriptorProto) |
| 6677 | // optional string name = 1; |
| 6678 | if (has_name()) { |
| 6679 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6680 | this->name().data(), this->name().length(), |
| 6681 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6682 | "google.protobuf.ServiceDescriptorProto.name"); |
| 6683 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6684 | 1, this->name(), output); |
| 6685 | } |
| 6686 | |
| 6687 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6688 | for (unsigned int i = 0, n = this->method_size(); i < n; i++) { |
| 6689 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6690 | 2, this->method(i), output); |
| 6691 | } |
| 6692 | |
| 6693 | // optional .google.protobuf.ServiceOptions options = 3; |
| 6694 | if (has_options()) { |
| 6695 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6696 | 3, *this->options_, output); |
| 6697 | } |
| 6698 | |
| 6699 | if (_internal_metadata_.have_unknown_fields()) { |
| 6700 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6701 | unknown_fields(), output); |
| 6702 | } |
| 6703 | // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorProto) |
| 6704 | } |
| 6705 | |
| 6706 | ::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArray( |
| 6707 | ::google::protobuf::uint8* target) const { |
| 6708 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto) |
| 6709 | // optional string name = 1; |
| 6710 | if (has_name()) { |
| 6711 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6712 | this->name().data(), this->name().length(), |
| 6713 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6714 | "google.protobuf.ServiceDescriptorProto.name"); |
| 6715 | target = |
| 6716 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6717 | 1, this->name(), target); |
| 6718 | } |
| 6719 | |
| 6720 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6721 | for (unsigned int i = 0, n = this->method_size(); i < n; i++) { |
| 6722 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6723 | WriteMessageNoVirtualToArray( |
| 6724 | 2, this->method(i), target); |
| 6725 | } |
| 6726 | |
| 6727 | // optional .google.protobuf.ServiceOptions options = 3; |
| 6728 | if (has_options()) { |
| 6729 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6730 | WriteMessageNoVirtualToArray( |
| 6731 | 3, *this->options_, target); |
| 6732 | } |
| 6733 | |
| 6734 | if (_internal_metadata_.have_unknown_fields()) { |
| 6735 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6736 | unknown_fields(), target); |
| 6737 | } |
| 6738 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDescriptorProto) |
| 6739 | return target; |
| 6740 | } |
| 6741 | |
| 6742 | int ServiceDescriptorProto::ByteSize() const { |
| 6743 | int total_size = 0; |
| 6744 | |
| 6745 | if (_has_bits_[0 / 32] & 5u) { |
| 6746 | // optional string name = 1; |
| 6747 | if (has_name()) { |
| 6748 | total_size += 1 + |
| 6749 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6750 | this->name()); |
| 6751 | } |
| 6752 | |
| 6753 | // optional .google.protobuf.ServiceOptions options = 3; |
| 6754 | if (has_options()) { |
| 6755 | total_size += 1 + |
| 6756 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6757 | *this->options_); |
| 6758 | } |
| 6759 | |
| 6760 | } |
| 6761 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6762 | total_size += 1 * this->method_size(); |
| 6763 | for (int i = 0; i < this->method_size(); i++) { |
| 6764 | total_size += |
| 6765 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6766 | this->method(i)); |
| 6767 | } |
| 6768 | |
| 6769 | if (_internal_metadata_.have_unknown_fields()) { |
| 6770 | total_size += |
| 6771 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6772 | unknown_fields()); |
| 6773 | } |
| 6774 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6775 | _cached_size_ = total_size; |
| 6776 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6777 | return total_size; |
| 6778 | } |
| 6779 | |
| 6780 | void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 6781 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 6782 | const ServiceDescriptorProto* source = |
| 6783 | ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescriptorProto>( |
| 6784 | &from); |
| 6785 | if (source == NULL) { |
| 6786 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6787 | } else { |
| 6788 | MergeFrom(*source); |
| 6789 | } |
| 6790 | } |
| 6791 | |
| 6792 | void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { |
| 6793 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 6794 | method_.MergeFrom(from.method_); |
| 6795 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 6796 | if (from.has_name()) { |
| 6797 | set_has_name(); |
| 6798 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 6799 | } |
| 6800 | if (from.has_options()) { |
| 6801 | mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options()); |
| 6802 | } |
| 6803 | } |
| 6804 | if (from._internal_metadata_.have_unknown_fields()) { |
| 6805 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 6806 | } |
| 6807 | } |
| 6808 | |
| 6809 | void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 6810 | if (&from == this) return; |
| 6811 | Clear(); |
| 6812 | MergeFrom(from); |
| 6813 | } |
| 6814 | |
| 6815 | void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { |
| 6816 | if (&from == this) return; |
| 6817 | Clear(); |
| 6818 | MergeFrom(from); |
| 6819 | } |
| 6820 | |
| 6821 | bool ServiceDescriptorProto::IsInitialized() const { |
| 6822 | |
| 6823 | if (!::google::protobuf::internal::AllAreInitialized(this->method())) return false; |
| 6824 | if (has_options()) { |
| 6825 | if (!this->options_->IsInitialized()) return false; |
| 6826 | } |
| 6827 | return true; |
| 6828 | } |
| 6829 | |
| 6830 | void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { |
| 6831 | if (other == this) return; |
| 6832 | InternalSwap(other); |
| 6833 | } |
| 6834 | void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { |
| 6835 | name_.Swap(&other->name_); |
| 6836 | method_.UnsafeArenaSwap(&other->method_); |
| 6837 | std::swap(options_, other->options_); |
| 6838 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 6839 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6840 | std::swap(_cached_size_, other->_cached_size_); |
| 6841 | } |
| 6842 | |
| 6843 | ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const { |
| 6844 | protobuf_AssignDescriptorsOnce(); |
| 6845 | ::google::protobuf::Metadata metadata; |
| 6846 | metadata.descriptor = ServiceDescriptorProto_descriptor_; |
| 6847 | metadata.reflection = ServiceDescriptorProto_reflection_; |
| 6848 | return metadata; |
| 6849 | } |
| 6850 | |
| 6851 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6852 | // ServiceDescriptorProto |
| 6853 | |
| 6854 | // optional string name = 1; |
| 6855 | bool ServiceDescriptorProto::has_name() const { |
| 6856 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 6857 | } |
| 6858 | void ServiceDescriptorProto::set_has_name() { |
| 6859 | _has_bits_[0] |= 0x00000001u; |
| 6860 | } |
| 6861 | void ServiceDescriptorProto::clear_has_name() { |
| 6862 | _has_bits_[0] &= ~0x00000001u; |
| 6863 | } |
| 6864 | void ServiceDescriptorProto::clear_name() { |
| 6865 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6866 | clear_has_name(); |
| 6867 | } |
| 6868 | const ::std::string& ServiceDescriptorProto::name() const { |
| 6869 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name) |
| 6870 | return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6871 | } |
| 6872 | void ServiceDescriptorProto::set_name(const ::std::string& value) { |
| 6873 | set_has_name(); |
| 6874 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 6875 | // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name) |
| 6876 | } |
| 6877 | void ServiceDescriptorProto::set_name(const char* value) { |
| 6878 | set_has_name(); |
| 6879 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 6880 | // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name) |
| 6881 | } |
| 6882 | void ServiceDescriptorProto::set_name(const char* value, size_t size) { |
| 6883 | set_has_name(); |
| 6884 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6885 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 6886 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name) |
| 6887 | } |
| 6888 | ::std::string* ServiceDescriptorProto::mutable_name() { |
| 6889 | set_has_name(); |
| 6890 | // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name) |
| 6891 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6892 | } |
| 6893 | ::std::string* ServiceDescriptorProto::release_name() { |
| 6894 | clear_has_name(); |
| 6895 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6896 | } |
| 6897 | void ServiceDescriptorProto::set_allocated_name(::std::string* name) { |
| 6898 | if (name != NULL) { |
| 6899 | set_has_name(); |
| 6900 | } else { |
| 6901 | clear_has_name(); |
| 6902 | } |
| 6903 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 6904 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name) |
| 6905 | } |
| 6906 | |
| 6907 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6908 | int ServiceDescriptorProto::method_size() const { |
| 6909 | return method_.size(); |
| 6910 | } |
| 6911 | void ServiceDescriptorProto::clear_method() { |
| 6912 | method_.Clear(); |
| 6913 | } |
| 6914 | const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const { |
| 6915 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method) |
| 6916 | return method_.Get(index); |
| 6917 | } |
| 6918 | ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) { |
| 6919 | // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method) |
| 6920 | return method_.Mutable(index); |
| 6921 | } |
| 6922 | ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() { |
| 6923 | // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method) |
| 6924 | return method_.Add(); |
| 6925 | } |
| 6926 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >* |
| 6927 | ServiceDescriptorProto::mutable_method() { |
| 6928 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method) |
| 6929 | return &method_; |
| 6930 | } |
| 6931 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >& |
| 6932 | ServiceDescriptorProto::method() const { |
| 6933 | // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method) |
| 6934 | return method_; |
| 6935 | } |
| 6936 | |
| 6937 | // optional .google.protobuf.ServiceOptions options = 3; |
| 6938 | bool ServiceDescriptorProto::has_options() const { |
| 6939 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 6940 | } |
| 6941 | void ServiceDescriptorProto::set_has_options() { |
| 6942 | _has_bits_[0] |= 0x00000004u; |
| 6943 | } |
| 6944 | void ServiceDescriptorProto::clear_has_options() { |
| 6945 | _has_bits_[0] &= ~0x00000004u; |
| 6946 | } |
| 6947 | void ServiceDescriptorProto::clear_options() { |
| 6948 | if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); |
| 6949 | clear_has_options(); |
| 6950 | } |
| 6951 | const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const { |
| 6952 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options) |
| 6953 | return options_ != NULL ? *options_ : *default_instance_->options_; |
| 6954 | } |
| 6955 | ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { |
| 6956 | set_has_options(); |
| 6957 | if (options_ == NULL) { |
| 6958 | options_ = new ::google::protobuf::ServiceOptions; |
| 6959 | } |
| 6960 | // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options) |
| 6961 | return options_; |
| 6962 | } |
| 6963 | ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() { |
| 6964 | clear_has_options(); |
| 6965 | ::google::protobuf::ServiceOptions* temp = options_; |
| 6966 | options_ = NULL; |
| 6967 | return temp; |
| 6968 | } |
| 6969 | void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOptions* options) { |
| 6970 | delete options_; |
| 6971 | options_ = options; |
| 6972 | if (options) { |
| 6973 | set_has_options(); |
| 6974 | } else { |
| 6975 | clear_has_options(); |
| 6976 | } |
| 6977 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options) |
| 6978 | } |
| 6979 | |
| 6980 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6981 | |
| 6982 | // =================================================================== |
| 6983 | |
| 6984 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6985 | const int MethodDescriptorProto::kNameFieldNumber; |
| 6986 | const int MethodDescriptorProto::kInputTypeFieldNumber; |
| 6987 | const int MethodDescriptorProto::kOutputTypeFieldNumber; |
| 6988 | const int MethodDescriptorProto::kOptionsFieldNumber; |
| 6989 | const int MethodDescriptorProto::kClientStreamingFieldNumber; |
| 6990 | const int MethodDescriptorProto::kServerStreamingFieldNumber; |
| 6991 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6992 | |
| 6993 | MethodDescriptorProto::MethodDescriptorProto() |
| 6994 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 6995 | SharedCtor(); |
| 6996 | // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto) |
| 6997 | } |
| 6998 | |
| 6999 | void MethodDescriptorProto::InitAsDefaultInstance() { |
| 7000 | options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf::MethodOptions::default_instance()); |
| 7001 | } |
| 7002 | |
| 7003 | MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) |
| 7004 | : ::google::protobuf::Message(), |
| 7005 | _internal_metadata_(NULL) { |
| 7006 | SharedCtor(); |
| 7007 | MergeFrom(from); |
| 7008 | // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto) |
| 7009 | } |
| 7010 | |
| 7011 | void MethodDescriptorProto::SharedCtor() { |
| 7012 | ::google::protobuf::internal::GetEmptyString(); |
| 7013 | _cached_size_ = 0; |
| 7014 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7015 | input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7016 | output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7017 | options_ = NULL; |
| 7018 | client_streaming_ = false; |
| 7019 | server_streaming_ = false; |
| 7020 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 7021 | } |
| 7022 | |
| 7023 | MethodDescriptorProto::~MethodDescriptorProto() { |
| 7024 | // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto) |
| 7025 | SharedDtor(); |
| 7026 | } |
| 7027 | |
| 7028 | void MethodDescriptorProto::SharedDtor() { |
| 7029 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7030 | input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7031 | output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7032 | if (this != default_instance_) { |
| 7033 | delete options_; |
| 7034 | } |
| 7035 | } |
| 7036 | |
| 7037 | void MethodDescriptorProto::SetCachedSize(int size) const { |
| 7038 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 7039 | _cached_size_ = size; |
| 7040 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 7041 | } |
| 7042 | const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() { |
| 7043 | protobuf_AssignDescriptorsOnce(); |
| 7044 | return MethodDescriptorProto_descriptor_; |
| 7045 | } |
| 7046 | |
| 7047 | const MethodDescriptorProto& MethodDescriptorProto::default_instance() { |
| 7048 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 7049 | return *default_instance_; |
| 7050 | } |
| 7051 | |
| 7052 | MethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL; |
| 7053 | |
| 7054 | MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 7055 | MethodDescriptorProto* n = new MethodDescriptorProto; |
| 7056 | if (arena != NULL) { |
| 7057 | arena->Own(n); |
| 7058 | } |
| 7059 | return n; |
| 7060 | } |
| 7061 | |
| 7062 | void MethodDescriptorProto::Clear() { |
| 7063 | #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 7064 | &reinterpret_cast<MethodDescriptorProto*>(16)->f) |
| 7065 | |
| 7066 | #define ZR_(first, last) do {\ |
| 7067 | ::memset(&first, 0,\ |
| 7068 | ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 7069 | } while (0) |
| 7070 | |
| 7071 | if (_has_bits_[0 / 32] & 63u) { |
| 7072 | ZR_(client_streaming_, server_streaming_); |
| 7073 | if (has_name()) { |
| 7074 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7075 | } |
| 7076 | if (has_input_type()) { |
| 7077 | input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7078 | } |
| 7079 | if (has_output_type()) { |
| 7080 | output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7081 | } |
| 7082 | if (has_options()) { |
| 7083 | if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); |
| 7084 | } |
| 7085 | } |
| 7086 | |
| 7087 | #undef ZR_HELPER_ |
| 7088 | #undef ZR_ |
| 7089 | |
| 7090 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 7091 | if (_internal_metadata_.have_unknown_fields()) { |
| 7092 | mutable_unknown_fields()->Clear(); |
| 7093 | } |
| 7094 | } |
| 7095 | |
| 7096 | bool MethodDescriptorProto::MergePartialFromCodedStream( |
| 7097 | ::google::protobuf::io::CodedInputStream* input) { |
| 7098 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 7099 | ::google::protobuf::uint32 tag; |
| 7100 | // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto) |
| 7101 | for (;;) { |
| 7102 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 7103 | tag = p.first; |
| 7104 | if (!p.second) goto handle_unusual; |
| 7105 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7106 | // optional string name = 1; |
| 7107 | case 1: { |
| 7108 | if (tag == 10) { |
| 7109 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7110 | input, this->mutable_name())); |
| 7111 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7112 | this->name().data(), this->name().length(), |
| 7113 | ::google::protobuf::internal::WireFormat::PARSE, |
| 7114 | "google.protobuf.MethodDescriptorProto.name"); |
| 7115 | } else { |
| 7116 | goto handle_unusual; |
| 7117 | } |
| 7118 | if (input->ExpectTag(18)) goto parse_input_type; |
| 7119 | break; |
| 7120 | } |
| 7121 | |
| 7122 | // optional string input_type = 2; |
| 7123 | case 2: { |
| 7124 | if (tag == 18) { |
| 7125 | parse_input_type: |
| 7126 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7127 | input, this->mutable_input_type())); |
| 7128 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7129 | this->input_type().data(), this->input_type().length(), |
| 7130 | ::google::protobuf::internal::WireFormat::PARSE, |
| 7131 | "google.protobuf.MethodDescriptorProto.input_type"); |
| 7132 | } else { |
| 7133 | goto handle_unusual; |
| 7134 | } |
| 7135 | if (input->ExpectTag(26)) goto parse_output_type; |
| 7136 | break; |
| 7137 | } |
| 7138 | |
| 7139 | // optional string output_type = 3; |
| 7140 | case 3: { |
| 7141 | if (tag == 26) { |
| 7142 | parse_output_type: |
| 7143 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7144 | input, this->mutable_output_type())); |
| 7145 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7146 | this->output_type().data(), this->output_type().length(), |
| 7147 | ::google::protobuf::internal::WireFormat::PARSE, |
| 7148 | "google.protobuf.MethodDescriptorProto.output_type"); |
| 7149 | } else { |
| 7150 | goto handle_unusual; |
| 7151 | } |
| 7152 | if (input->ExpectTag(34)) goto parse_options; |
| 7153 | break; |
| 7154 | } |
| 7155 | |
| 7156 | // optional .google.protobuf.MethodOptions options = 4; |
| 7157 | case 4: { |
| 7158 | if (tag == 34) { |
| 7159 | parse_options: |
| 7160 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 7161 | input, mutable_options())); |
| 7162 | } else { |
| 7163 | goto handle_unusual; |
| 7164 | } |
| 7165 | if (input->ExpectTag(40)) goto parse_client_streaming; |
| 7166 | break; |
| 7167 | } |
| 7168 | |
| 7169 | // optional bool client_streaming = 5 [default = false]; |
| 7170 | case 5: { |
| 7171 | if (tag == 40) { |
| 7172 | parse_client_streaming: |
| 7173 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7174 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 7175 | input, &client_streaming_))); |
| 7176 | set_has_client_streaming(); |
| 7177 | } else { |
| 7178 | goto handle_unusual; |
| 7179 | } |
| 7180 | if (input->ExpectTag(48)) goto parse_server_streaming; |
| 7181 | break; |
| 7182 | } |
| 7183 | |
| 7184 | // optional bool server_streaming = 6 [default = false]; |
| 7185 | case 6: { |
| 7186 | if (tag == 48) { |
| 7187 | parse_server_streaming: |
| 7188 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7189 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 7190 | input, &server_streaming_))); |
| 7191 | set_has_server_streaming(); |
| 7192 | } else { |
| 7193 | goto handle_unusual; |
| 7194 | } |
| 7195 | if (input->ExpectAtEnd()) goto success; |
| 7196 | break; |
| 7197 | } |
| 7198 | |
| 7199 | default: { |
| 7200 | handle_unusual: |
| 7201 | if (tag == 0 || |
| 7202 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 7203 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 7204 | goto success; |
| 7205 | } |
| 7206 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7207 | input, tag, mutable_unknown_fields())); |
| 7208 | break; |
| 7209 | } |
| 7210 | } |
| 7211 | } |
| 7212 | success: |
| 7213 | // @@protoc_insertion_point(parse_success:google.protobuf.MethodDescriptorProto) |
| 7214 | return true; |
| 7215 | failure: |
| 7216 | // @@protoc_insertion_point(parse_failure:google.protobuf.MethodDescriptorProto) |
| 7217 | return false; |
| 7218 | #undef DO_ |
| 7219 | } |
| 7220 | |
| 7221 | void MethodDescriptorProto::SerializeWithCachedSizes( |
| 7222 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7223 | // @@protoc_insertion_point(serialize_start:google.protobuf.MethodDescriptorProto) |
| 7224 | // optional string name = 1; |
| 7225 | if (has_name()) { |
| 7226 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7227 | this->name().data(), this->name().length(), |
| 7228 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7229 | "google.protobuf.MethodDescriptorProto.name"); |
| 7230 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7231 | 1, this->name(), output); |
| 7232 | } |
| 7233 | |
| 7234 | // optional string input_type = 2; |
| 7235 | if (has_input_type()) { |
| 7236 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7237 | this->input_type().data(), this->input_type().length(), |
| 7238 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7239 | "google.protobuf.MethodDescriptorProto.input_type"); |
| 7240 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7241 | 2, this->input_type(), output); |
| 7242 | } |
| 7243 | |
| 7244 | // optional string output_type = 3; |
| 7245 | if (has_output_type()) { |
| 7246 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7247 | this->output_type().data(), this->output_type().length(), |
| 7248 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7249 | "google.protobuf.MethodDescriptorProto.output_type"); |
| 7250 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7251 | 3, this->output_type(), output); |
| 7252 | } |
| 7253 | |
| 7254 | // optional .google.protobuf.MethodOptions options = 4; |
| 7255 | if (has_options()) { |
| 7256 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7257 | 4, *this->options_, output); |
| 7258 | } |
| 7259 | |
| 7260 | // optional bool client_streaming = 5 [default = false]; |
| 7261 | if (has_client_streaming()) { |
| 7262 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->client_streaming(), output); |
| 7263 | } |
| 7264 | |
| 7265 | // optional bool server_streaming = 6 [default = false]; |
| 7266 | if (has_server_streaming()) { |
| 7267 | ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_streaming(), output); |
| 7268 | } |
| 7269 | |
| 7270 | if (_internal_metadata_.have_unknown_fields()) { |
| 7271 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7272 | unknown_fields(), output); |
| 7273 | } |
| 7274 | // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProto) |
| 7275 | } |
| 7276 | |
| 7277 | ::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArray( |
| 7278 | ::google::protobuf::uint8* target) const { |
| 7279 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto) |
| 7280 | // optional string name = 1; |
| 7281 | if (has_name()) { |
| 7282 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7283 | this->name().data(), this->name().length(), |
| 7284 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7285 | "google.protobuf.MethodDescriptorProto.name"); |
| 7286 | target = |
| 7287 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7288 | 1, this->name(), target); |
| 7289 | } |
| 7290 | |
| 7291 | // optional string input_type = 2; |
| 7292 | if (has_input_type()) { |
| 7293 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7294 | this->input_type().data(), this->input_type().length(), |
| 7295 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7296 | "google.protobuf.MethodDescriptorProto.input_type"); |
| 7297 | target = |
| 7298 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7299 | 2, this->input_type(), target); |
| 7300 | } |
| 7301 | |
| 7302 | // optional string output_type = 3; |
| 7303 | if (has_output_type()) { |
| 7304 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7305 | this->output_type().data(), this->output_type().length(), |
| 7306 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7307 | "google.protobuf.MethodDescriptorProto.output_type"); |
| 7308 | target = |
| 7309 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7310 | 3, this->output_type(), target); |
| 7311 | } |
| 7312 | |
| 7313 | // optional .google.protobuf.MethodOptions options = 4; |
| 7314 | if (has_options()) { |
| 7315 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7316 | WriteMessageNoVirtualToArray( |
| 7317 | 4, *this->options_, target); |
| 7318 | } |
| 7319 | |
| 7320 | // optional bool client_streaming = 5 [default = false]; |
| 7321 | if (has_client_streaming()) { |
| 7322 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->client_streaming(), target); |
| 7323 | } |
| 7324 | |
| 7325 | // optional bool server_streaming = 6 [default = false]; |
| 7326 | if (has_server_streaming()) { |
| 7327 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->server_streaming(), target); |
| 7328 | } |
| 7329 | |
| 7330 | if (_internal_metadata_.have_unknown_fields()) { |
| 7331 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7332 | unknown_fields(), target); |
| 7333 | } |
| 7334 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescriptorProto) |
| 7335 | return target; |
| 7336 | } |
| 7337 | |
| 7338 | int MethodDescriptorProto::ByteSize() const { |
| 7339 | int total_size = 0; |
| 7340 | |
| 7341 | if (_has_bits_[0 / 32] & 63u) { |
| 7342 | // optional string name = 1; |
| 7343 | if (has_name()) { |
| 7344 | total_size += 1 + |
| 7345 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7346 | this->name()); |
| 7347 | } |
| 7348 | |
| 7349 | // optional string input_type = 2; |
| 7350 | if (has_input_type()) { |
| 7351 | total_size += 1 + |
| 7352 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7353 | this->input_type()); |
| 7354 | } |
| 7355 | |
| 7356 | // optional string output_type = 3; |
| 7357 | if (has_output_type()) { |
| 7358 | total_size += 1 + |
| 7359 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7360 | this->output_type()); |
| 7361 | } |
| 7362 | |
| 7363 | // optional .google.protobuf.MethodOptions options = 4; |
| 7364 | if (has_options()) { |
| 7365 | total_size += 1 + |
| 7366 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 7367 | *this->options_); |
| 7368 | } |
| 7369 | |
| 7370 | // optional bool client_streaming = 5 [default = false]; |
| 7371 | if (has_client_streaming()) { |
| 7372 | total_size += 1 + 1; |
| 7373 | } |
| 7374 | |
| 7375 | // optional bool server_streaming = 6 [default = false]; |
| 7376 | if (has_server_streaming()) { |
| 7377 | total_size += 1 + 1; |
| 7378 | } |
| 7379 | |
| 7380 | } |
| 7381 | if (_internal_metadata_.have_unknown_fields()) { |
| 7382 | total_size += |
| 7383 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7384 | unknown_fields()); |
| 7385 | } |
| 7386 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 7387 | _cached_size_ = total_size; |
| 7388 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 7389 | return total_size; |
| 7390 | } |
| 7391 | |
| 7392 | void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 7393 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 7394 | const MethodDescriptorProto* source = |
| 7395 | ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescriptorProto>( |
| 7396 | &from); |
| 7397 | if (source == NULL) { |
| 7398 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7399 | } else { |
| 7400 | MergeFrom(*source); |
| 7401 | } |
| 7402 | } |
| 7403 | |
| 7404 | void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { |
| 7405 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 7406 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 7407 | if (from.has_name()) { |
| 7408 | set_has_name(); |
| 7409 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 7410 | } |
| 7411 | if (from.has_input_type()) { |
| 7412 | set_has_input_type(); |
| 7413 | input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_type_); |
| 7414 | } |
| 7415 | if (from.has_output_type()) { |
| 7416 | set_has_output_type(); |
| 7417 | output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_type_); |
| 7418 | } |
| 7419 | if (from.has_options()) { |
| 7420 | mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options()); |
| 7421 | } |
| 7422 | if (from.has_client_streaming()) { |
| 7423 | set_client_streaming(from.client_streaming()); |
| 7424 | } |
| 7425 | if (from.has_server_streaming()) { |
| 7426 | set_server_streaming(from.server_streaming()); |
| 7427 | } |
| 7428 | } |
| 7429 | if (from._internal_metadata_.have_unknown_fields()) { |
| 7430 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 7431 | } |
| 7432 | } |
| 7433 | |
| 7434 | void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 7435 | if (&from == this) return; |
| 7436 | Clear(); |
| 7437 | MergeFrom(from); |
| 7438 | } |
| 7439 | |
| 7440 | void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { |
| 7441 | if (&from == this) return; |
| 7442 | Clear(); |
| 7443 | MergeFrom(from); |
| 7444 | } |
| 7445 | |
| 7446 | bool MethodDescriptorProto::IsInitialized() const { |
| 7447 | |
| 7448 | if (has_options()) { |
| 7449 | if (!this->options_->IsInitialized()) return false; |
| 7450 | } |
| 7451 | return true; |
| 7452 | } |
| 7453 | |
| 7454 | void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { |
| 7455 | if (other == this) return; |
| 7456 | InternalSwap(other); |
| 7457 | } |
| 7458 | void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { |
| 7459 | name_.Swap(&other->name_); |
| 7460 | input_type_.Swap(&other->input_type_); |
| 7461 | output_type_.Swap(&other->output_type_); |
| 7462 | std::swap(options_, other->options_); |
| 7463 | std::swap(client_streaming_, other->client_streaming_); |
| 7464 | std::swap(server_streaming_, other->server_streaming_); |
| 7465 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 7466 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7467 | std::swap(_cached_size_, other->_cached_size_); |
| 7468 | } |
| 7469 | |
| 7470 | ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const { |
| 7471 | protobuf_AssignDescriptorsOnce(); |
| 7472 | ::google::protobuf::Metadata metadata; |
| 7473 | metadata.descriptor = MethodDescriptorProto_descriptor_; |
| 7474 | metadata.reflection = MethodDescriptorProto_reflection_; |
| 7475 | return metadata; |
| 7476 | } |
| 7477 | |
| 7478 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 7479 | // MethodDescriptorProto |
| 7480 | |
| 7481 | // optional string name = 1; |
| 7482 | bool MethodDescriptorProto::has_name() const { |
| 7483 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 7484 | } |
| 7485 | void MethodDescriptorProto::set_has_name() { |
| 7486 | _has_bits_[0] |= 0x00000001u; |
| 7487 | } |
| 7488 | void MethodDescriptorProto::clear_has_name() { |
| 7489 | _has_bits_[0] &= ~0x00000001u; |
| 7490 | } |
| 7491 | void MethodDescriptorProto::clear_name() { |
| 7492 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7493 | clear_has_name(); |
| 7494 | } |
| 7495 | const ::std::string& MethodDescriptorProto::name() const { |
| 7496 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name) |
| 7497 | return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7498 | } |
| 7499 | void MethodDescriptorProto::set_name(const ::std::string& value) { |
| 7500 | set_has_name(); |
| 7501 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 7502 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name) |
| 7503 | } |
| 7504 | void MethodDescriptorProto::set_name(const char* value) { |
| 7505 | set_has_name(); |
| 7506 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 7507 | // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name) |
| 7508 | } |
| 7509 | void MethodDescriptorProto::set_name(const char* value, size_t size) { |
| 7510 | set_has_name(); |
| 7511 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7512 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7513 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name) |
| 7514 | } |
| 7515 | ::std::string* MethodDescriptorProto::mutable_name() { |
| 7516 | set_has_name(); |
| 7517 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name) |
| 7518 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7519 | } |
| 7520 | ::std::string* MethodDescriptorProto::release_name() { |
| 7521 | clear_has_name(); |
| 7522 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7523 | } |
| 7524 | void MethodDescriptorProto::set_allocated_name(::std::string* name) { |
| 7525 | if (name != NULL) { |
| 7526 | set_has_name(); |
| 7527 | } else { |
| 7528 | clear_has_name(); |
| 7529 | } |
| 7530 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 7531 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name) |
| 7532 | } |
| 7533 | |
| 7534 | // optional string input_type = 2; |
| 7535 | bool MethodDescriptorProto::has_input_type() const { |
| 7536 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 7537 | } |
| 7538 | void MethodDescriptorProto::set_has_input_type() { |
| 7539 | _has_bits_[0] |= 0x00000002u; |
| 7540 | } |
| 7541 | void MethodDescriptorProto::clear_has_input_type() { |
| 7542 | _has_bits_[0] &= ~0x00000002u; |
| 7543 | } |
| 7544 | void MethodDescriptorProto::clear_input_type() { |
| 7545 | input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7546 | clear_has_input_type(); |
| 7547 | } |
| 7548 | const ::std::string& MethodDescriptorProto::input_type() const { |
| 7549 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type) |
| 7550 | return input_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7551 | } |
| 7552 | void MethodDescriptorProto::set_input_type(const ::std::string& value) { |
| 7553 | set_has_input_type(); |
| 7554 | input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 7555 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type) |
| 7556 | } |
| 7557 | void MethodDescriptorProto::set_input_type(const char* value) { |
| 7558 | set_has_input_type(); |
| 7559 | input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 7560 | // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type) |
| 7561 | } |
| 7562 | void MethodDescriptorProto::set_input_type(const char* value, size_t size) { |
| 7563 | set_has_input_type(); |
| 7564 | input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7565 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7566 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type) |
| 7567 | } |
| 7568 | ::std::string* MethodDescriptorProto::mutable_input_type() { |
| 7569 | set_has_input_type(); |
| 7570 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type) |
| 7571 | return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7572 | } |
| 7573 | ::std::string* MethodDescriptorProto::release_input_type() { |
| 7574 | clear_has_input_type(); |
| 7575 | return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7576 | } |
| 7577 | void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) { |
| 7578 | if (input_type != NULL) { |
| 7579 | set_has_input_type(); |
| 7580 | } else { |
| 7581 | clear_has_input_type(); |
| 7582 | } |
| 7583 | input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_type); |
| 7584 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type) |
| 7585 | } |
| 7586 | |
| 7587 | // optional string output_type = 3; |
| 7588 | bool MethodDescriptorProto::has_output_type() const { |
| 7589 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 7590 | } |
| 7591 | void MethodDescriptorProto::set_has_output_type() { |
| 7592 | _has_bits_[0] |= 0x00000004u; |
| 7593 | } |
| 7594 | void MethodDescriptorProto::clear_has_output_type() { |
| 7595 | _has_bits_[0] &= ~0x00000004u; |
| 7596 | } |
| 7597 | void MethodDescriptorProto::clear_output_type() { |
| 7598 | output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7599 | clear_has_output_type(); |
| 7600 | } |
| 7601 | const ::std::string& MethodDescriptorProto::output_type() const { |
| 7602 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type) |
| 7603 | return output_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7604 | } |
| 7605 | void MethodDescriptorProto::set_output_type(const ::std::string& value) { |
| 7606 | set_has_output_type(); |
| 7607 | output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 7608 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type) |
| 7609 | } |
| 7610 | void MethodDescriptorProto::set_output_type(const char* value) { |
| 7611 | set_has_output_type(); |
| 7612 | output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 7613 | // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type) |
| 7614 | } |
| 7615 | void MethodDescriptorProto::set_output_type(const char* value, size_t size) { |
| 7616 | set_has_output_type(); |
| 7617 | output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7618 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7619 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type) |
| 7620 | } |
| 7621 | ::std::string* MethodDescriptorProto::mutable_output_type() { |
| 7622 | set_has_output_type(); |
| 7623 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type) |
| 7624 | return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7625 | } |
| 7626 | ::std::string* MethodDescriptorProto::release_output_type() { |
| 7627 | clear_has_output_type(); |
| 7628 | return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7629 | } |
| 7630 | void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) { |
| 7631 | if (output_type != NULL) { |
| 7632 | set_has_output_type(); |
| 7633 | } else { |
| 7634 | clear_has_output_type(); |
| 7635 | } |
| 7636 | output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_type); |
| 7637 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type) |
| 7638 | } |
| 7639 | |
| 7640 | // optional .google.protobuf.MethodOptions options = 4; |
| 7641 | bool MethodDescriptorProto::has_options() const { |
| 7642 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 7643 | } |
| 7644 | void MethodDescriptorProto::set_has_options() { |
| 7645 | _has_bits_[0] |= 0x00000008u; |
| 7646 | } |
| 7647 | void MethodDescriptorProto::clear_has_options() { |
| 7648 | _has_bits_[0] &= ~0x00000008u; |
| 7649 | } |
| 7650 | void MethodDescriptorProto::clear_options() { |
| 7651 | if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); |
| 7652 | clear_has_options(); |
| 7653 | } |
| 7654 | const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const { |
| 7655 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options) |
| 7656 | return options_ != NULL ? *options_ : *default_instance_->options_; |
| 7657 | } |
| 7658 | ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { |
| 7659 | set_has_options(); |
| 7660 | if (options_ == NULL) { |
| 7661 | options_ = new ::google::protobuf::MethodOptions; |
| 7662 | } |
| 7663 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options) |
| 7664 | return options_; |
| 7665 | } |
| 7666 | ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() { |
| 7667 | clear_has_options(); |
| 7668 | ::google::protobuf::MethodOptions* temp = options_; |
| 7669 | options_ = NULL; |
| 7670 | return temp; |
| 7671 | } |
| 7672 | void MethodDescriptorProto::set_allocated_options(::google::protobuf::MethodOptions* options) { |
| 7673 | delete options_; |
| 7674 | options_ = options; |
| 7675 | if (options) { |
| 7676 | set_has_options(); |
| 7677 | } else { |
| 7678 | clear_has_options(); |
| 7679 | } |
| 7680 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options) |
| 7681 | } |
| 7682 | |
| 7683 | // optional bool client_streaming = 5 [default = false]; |
| 7684 | bool MethodDescriptorProto::has_client_streaming() const { |
| 7685 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 7686 | } |
| 7687 | void MethodDescriptorProto::set_has_client_streaming() { |
| 7688 | _has_bits_[0] |= 0x00000010u; |
| 7689 | } |
| 7690 | void MethodDescriptorProto::clear_has_client_streaming() { |
| 7691 | _has_bits_[0] &= ~0x00000010u; |
| 7692 | } |
| 7693 | void MethodDescriptorProto::clear_client_streaming() { |
| 7694 | client_streaming_ = false; |
| 7695 | clear_has_client_streaming(); |
| 7696 | } |
| 7697 | bool MethodDescriptorProto::client_streaming() const { |
| 7698 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming) |
| 7699 | return client_streaming_; |
| 7700 | } |
| 7701 | void MethodDescriptorProto::set_client_streaming(bool value) { |
| 7702 | set_has_client_streaming(); |
| 7703 | client_streaming_ = value; |
| 7704 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming) |
| 7705 | } |
| 7706 | |
| 7707 | // optional bool server_streaming = 6 [default = false]; |
| 7708 | bool MethodDescriptorProto::has_server_streaming() const { |
| 7709 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 7710 | } |
| 7711 | void MethodDescriptorProto::set_has_server_streaming() { |
| 7712 | _has_bits_[0] |= 0x00000020u; |
| 7713 | } |
| 7714 | void MethodDescriptorProto::clear_has_server_streaming() { |
| 7715 | _has_bits_[0] &= ~0x00000020u; |
| 7716 | } |
| 7717 | void MethodDescriptorProto::clear_server_streaming() { |
| 7718 | server_streaming_ = false; |
| 7719 | clear_has_server_streaming(); |
| 7720 | } |
| 7721 | bool MethodDescriptorProto::server_streaming() const { |
| 7722 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming) |
| 7723 | return server_streaming_; |
| 7724 | } |
| 7725 | void MethodDescriptorProto::set_server_streaming(bool value) { |
| 7726 | set_has_server_streaming(); |
| 7727 | server_streaming_ = value; |
| 7728 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming) |
| 7729 | } |
| 7730 | |
| 7731 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 7732 | |
| 7733 | // =================================================================== |
| 7734 | |
| 7735 | const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() { |
| 7736 | protobuf_AssignDescriptorsOnce(); |
| 7737 | return FileOptions_OptimizeMode_descriptor_; |
| 7738 | } |
| 7739 | bool FileOptions_OptimizeMode_IsValid(int value) { |
| 7740 | switch(value) { |
| 7741 | case 1: |
| 7742 | case 2: |
| 7743 | case 3: |
| 7744 | return true; |
| 7745 | default: |
| 7746 | return false; |
| 7747 | } |
| 7748 | } |
| 7749 | |
| 7750 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7751 | const FileOptions_OptimizeMode FileOptions::SPEED; |
| 7752 | const FileOptions_OptimizeMode FileOptions::CODE_SIZE; |
| 7753 | const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME; |
| 7754 | const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN; |
| 7755 | const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX; |
| 7756 | const int FileOptions::OptimizeMode_ARRAYSIZE; |
| 7757 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7758 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7759 | const int FileOptions::kJavaPackageFieldNumber; |
| 7760 | const int FileOptions::kJavaOuterClassnameFieldNumber; |
| 7761 | const int FileOptions::kJavaMultipleFilesFieldNumber; |
| 7762 | const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; |
| 7763 | const int FileOptions::kJavaStringCheckUtf8FieldNumber; |
| 7764 | const int FileOptions::kOptimizeForFieldNumber; |
| 7765 | const int FileOptions::kGoPackageFieldNumber; |
| 7766 | const int FileOptions::kCcGenericServicesFieldNumber; |
| 7767 | const int FileOptions::kJavaGenericServicesFieldNumber; |
| 7768 | const int FileOptions::kPyGenericServicesFieldNumber; |
| 7769 | const int FileOptions::kDeprecatedFieldNumber; |
| 7770 | const int FileOptions::kCcEnableArenasFieldNumber; |
| 7771 | const int FileOptions::kObjcClassPrefixFieldNumber; |
| 7772 | const int FileOptions::kCsharpNamespaceFieldNumber; |
| 7773 | const int FileOptions::kJavananoUseDeprecatedPackageFieldNumber; |
| 7774 | const int FileOptions::kUninterpretedOptionFieldNumber; |
| 7775 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7776 | |
| 7777 | FileOptions::FileOptions() |
| 7778 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 7779 | SharedCtor(); |
| 7780 | // @@protoc_insertion_point(constructor:google.protobuf.FileOptions) |
| 7781 | } |
| 7782 | |
| 7783 | void FileOptions::InitAsDefaultInstance() { |
| 7784 | } |
| 7785 | |
| 7786 | FileOptions::FileOptions(const FileOptions& from) |
| 7787 | : ::google::protobuf::Message(), |
| 7788 | _internal_metadata_(NULL) { |
| 7789 | SharedCtor(); |
| 7790 | MergeFrom(from); |
| 7791 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) |
| 7792 | } |
| 7793 | |
| 7794 | void FileOptions::SharedCtor() { |
| 7795 | ::google::protobuf::internal::GetEmptyString(); |
| 7796 | _cached_size_ = 0; |
| 7797 | java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7798 | java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7799 | java_multiple_files_ = false; |
| 7800 | java_generate_equals_and_hash_ = false; |
| 7801 | java_string_check_utf8_ = false; |
| 7802 | optimize_for_ = 1; |
| 7803 | go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7804 | cc_generic_services_ = false; |
| 7805 | java_generic_services_ = false; |
| 7806 | py_generic_services_ = false; |
| 7807 | deprecated_ = false; |
| 7808 | cc_enable_arenas_ = false; |
| 7809 | objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7810 | csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7811 | javanano_use_deprecated_package_ = false; |
| 7812 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 7813 | } |
| 7814 | |
| 7815 | FileOptions::~FileOptions() { |
| 7816 | // @@protoc_insertion_point(destructor:google.protobuf.FileOptions) |
| 7817 | SharedDtor(); |
| 7818 | } |
| 7819 | |
| 7820 | void FileOptions::SharedDtor() { |
| 7821 | java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7822 | java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7823 | go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7824 | objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7825 | csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7826 | if (this != default_instance_) { |
| 7827 | } |
| 7828 | } |
| 7829 | |
| 7830 | void FileOptions::SetCachedSize(int size) const { |
| 7831 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 7832 | _cached_size_ = size; |
| 7833 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 7834 | } |
| 7835 | const ::google::protobuf::Descriptor* FileOptions::descriptor() { |
| 7836 | protobuf_AssignDescriptorsOnce(); |
| 7837 | return FileOptions_descriptor_; |
| 7838 | } |
| 7839 | |
| 7840 | const FileOptions& FileOptions::default_instance() { |
| 7841 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 7842 | return *default_instance_; |
| 7843 | } |
| 7844 | |
| 7845 | FileOptions* FileOptions::default_instance_ = NULL; |
| 7846 | |
| 7847 | FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const { |
| 7848 | FileOptions* n = new FileOptions; |
| 7849 | if (arena != NULL) { |
| 7850 | arena->Own(n); |
| 7851 | } |
| 7852 | return n; |
| 7853 | } |
| 7854 | |
| 7855 | void FileOptions::Clear() { |
| 7856 | _extensions_.Clear(); |
| 7857 | #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 7858 | &reinterpret_cast<FileOptions*>(16)->f) |
| 7859 | |
| 7860 | #define ZR_(first, last) do {\ |
| 7861 | ::memset(&first, 0,\ |
| 7862 | ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 7863 | } while (0) |
| 7864 | |
| 7865 | if (_has_bits_[0 / 32] & 255u) { |
| 7866 | ZR_(java_multiple_files_, cc_generic_services_); |
| 7867 | if (has_java_package()) { |
| 7868 | java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7869 | } |
| 7870 | if (has_java_outer_classname()) { |
| 7871 | java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7872 | } |
| 7873 | optimize_for_ = 1; |
| 7874 | if (has_go_package()) { |
| 7875 | go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7876 | } |
| 7877 | } |
| 7878 | if (_has_bits_[8 / 32] & 32512u) { |
| 7879 | ZR_(java_generic_services_, javanano_use_deprecated_package_); |
| 7880 | if (has_objc_class_prefix()) { |
| 7881 | objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7882 | } |
| 7883 | if (has_csharp_namespace()) { |
| 7884 | csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7885 | } |
| 7886 | } |
| 7887 | |
| 7888 | #undef ZR_HELPER_ |
| 7889 | #undef ZR_ |
| 7890 | |
| 7891 | uninterpreted_option_.Clear(); |
| 7892 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 7893 | if (_internal_metadata_.have_unknown_fields()) { |
| 7894 | mutable_unknown_fields()->Clear(); |
| 7895 | } |
| 7896 | } |
| 7897 | |
| 7898 | bool FileOptions::MergePartialFromCodedStream( |
| 7899 | ::google::protobuf::io::CodedInputStream* input) { |
| 7900 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 7901 | ::google::protobuf::uint32 tag; |
| 7902 | // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions) |
| 7903 | for (;;) { |
| 7904 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
| 7905 | tag = p.first; |
| 7906 | if (!p.second) goto handle_unusual; |
| 7907 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7908 | // optional string java_package = 1; |
| 7909 | case 1: { |
| 7910 | if (tag == 10) { |
| 7911 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7912 | input, this->mutable_java_package())); |
| 7913 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7914 | this->java_package().data(), this->java_package().length(), |
| 7915 | ::google::protobuf::internal::WireFormat::PARSE, |
| 7916 | "google.protobuf.FileOptions.java_package"); |
| 7917 | } else { |
| 7918 | goto handle_unusual; |
| 7919 | } |
| 7920 | if (input->ExpectTag(66)) goto parse_java_outer_classname; |
| 7921 | break; |
| 7922 | } |
| 7923 | |
| 7924 | // optional string java_outer_classname = 8; |
| 7925 | case 8: { |
| 7926 | if (tag == 66) { |
| 7927 | parse_java_outer_classname: |
| 7928 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7929 | input, this->mutable_java_outer_classname())); |
| 7930 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7931 | this->java_outer_classname().data(), this->java_outer_classname().length(), |
| 7932 | ::google::protobuf::internal::WireFormat::PARSE, |
| 7933 | "google.protobuf.FileOptions.java_outer_classname"); |
| 7934 | } else { |
| 7935 | goto handle_unusual; |
| 7936 | } |
| 7937 | if (input->ExpectTag(72)) goto parse_optimize_for; |
| 7938 | break; |
| 7939 | } |
| 7940 | |
| 7941 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 7942 | case 9: { |
| 7943 | if (tag == 72) { |
| 7944 | parse_optimize_for: |
| 7945 | int value; |
| 7946 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7947 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7948 | input, &value))); |
| 7949 | if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { |
| 7950 | set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value)); |
| 7951 | } else { |
| 7952 | mutable_unknown_fields()->AddVarint(9, value); |
| 7953 | } |
| 7954 | } else { |
| 7955 | goto handle_unusual; |
| 7956 | } |
| 7957 | if (input->ExpectTag(80)) goto parse_java_multiple_files; |
| 7958 | break; |
| 7959 | } |
| 7960 | |
| 7961 | // optional bool java_multiple_files = 10 [default = false]; |
| 7962 | case 10: { |
| 7963 | if (tag == 80) { |
| 7964 | parse_java_multiple_files: |
| 7965 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7966 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 7967 | input, &java_multiple_files_))); |
| 7968 | set_has_java_multiple_files(); |
| 7969 | } else { |
| 7970 | goto handle_unusual; |
| 7971 | } |
| 7972 | if (input->ExpectTag(90)) goto parse_go_package; |
| 7973 | break; |
| 7974 | } |
| 7975 | |
| 7976 | // optional string go_package = 11; |
| 7977 | case 11: { |
| 7978 | if (tag == 90) { |
| 7979 | parse_go_package: |
| 7980 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7981 | input, this->mutable_go_package())); |
| 7982 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7983 | this->go_package().data(), this->go_package().length(), |
| 7984 | ::google::protobuf::internal::WireFormat::PARSE, |
| 7985 | "google.protobuf.FileOptions.go_package"); |
| 7986 | } else { |
| 7987 | goto handle_unusual; |
| 7988 | } |
| 7989 | if (input->ExpectTag(128)) goto parse_cc_generic_services; |
| 7990 | break; |
| 7991 | } |
| 7992 | |
| 7993 | // optional bool cc_generic_services = 16 [default = false]; |
| 7994 | case 16: { |
| 7995 | if (tag == 128) { |
| 7996 | parse_cc_generic_services: |
| 7997 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7998 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 7999 | input, &cc_generic_services_))); |
| 8000 | set_has_cc_generic_services(); |
| 8001 | } else { |
| 8002 | goto handle_unusual; |
| 8003 | } |
| 8004 | if (input->ExpectTag(136)) goto parse_java_generic_services; |
| 8005 | break; |
| 8006 | } |
| 8007 | |
| 8008 | // optional bool java_generic_services = 17 [default = false]; |
| 8009 | case 17: { |
| 8010 | if (tag == 136) { |
| 8011 | parse_java_generic_services: |
| 8012 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8013 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8014 | input, &java_generic_services_))); |
| 8015 | set_has_java_generic_services(); |
| 8016 | } else { |
| 8017 | goto handle_unusual; |
| 8018 | } |
| 8019 | if (input->ExpectTag(144)) goto parse_py_generic_services; |
| 8020 | break; |
| 8021 | } |
| 8022 | |
| 8023 | // optional bool py_generic_services = 18 [default = false]; |
| 8024 | case 18: { |
| 8025 | if (tag == 144) { |
| 8026 | parse_py_generic_services: |
| 8027 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8028 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8029 | input, &py_generic_services_))); |
| 8030 | set_has_py_generic_services(); |
| 8031 | } else { |
| 8032 | goto handle_unusual; |
| 8033 | } |
| 8034 | if (input->ExpectTag(160)) goto parse_java_generate_equals_and_hash; |
| 8035 | break; |
| 8036 | } |
| 8037 | |
| 8038 | // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8039 | case 20: { |
| 8040 | if (tag == 160) { |
| 8041 | parse_java_generate_equals_and_hash: |
| 8042 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8043 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8044 | input, &java_generate_equals_and_hash_))); |
| 8045 | set_has_java_generate_equals_and_hash(); |
| 8046 | } else { |
| 8047 | goto handle_unusual; |
| 8048 | } |
| 8049 | if (input->ExpectTag(184)) goto parse_deprecated; |
| 8050 | break; |
| 8051 | } |
| 8052 | |
| 8053 | // optional bool deprecated = 23 [default = false]; |
| 8054 | case 23: { |
| 8055 | if (tag == 184) { |
| 8056 | parse_deprecated: |
| 8057 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8058 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8059 | input, &deprecated_))); |
| 8060 | set_has_deprecated(); |
| 8061 | } else { |
| 8062 | goto handle_unusual; |
| 8063 | } |
| 8064 | if (input->ExpectTag(216)) goto parse_java_string_check_utf8; |
| 8065 | break; |
| 8066 | } |
| 8067 | |
| 8068 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8069 | case 27: { |
| 8070 | if (tag == 216) { |
| 8071 | parse_java_string_check_utf8: |
| 8072 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8073 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8074 | input, &java_string_check_utf8_))); |
| 8075 | set_has_java_string_check_utf8(); |
| 8076 | } else { |
| 8077 | goto handle_unusual; |
| 8078 | } |
| 8079 | if (input->ExpectTag(248)) goto parse_cc_enable_arenas; |
| 8080 | break; |
| 8081 | } |
| 8082 | |
| 8083 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 8084 | case 31: { |
| 8085 | if (tag == 248) { |
| 8086 | parse_cc_enable_arenas: |
| 8087 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8088 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8089 | input, &cc_enable_arenas_))); |
| 8090 | set_has_cc_enable_arenas(); |
| 8091 | } else { |
| 8092 | goto handle_unusual; |
| 8093 | } |
| 8094 | if (input->ExpectTag(290)) goto parse_objc_class_prefix; |
| 8095 | break; |
| 8096 | } |
| 8097 | |
| 8098 | // optional string objc_class_prefix = 36; |
| 8099 | case 36: { |
| 8100 | if (tag == 290) { |
| 8101 | parse_objc_class_prefix: |
| 8102 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8103 | input, this->mutable_objc_class_prefix())); |
| 8104 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8105 | this->objc_class_prefix().data(), this->objc_class_prefix().length(), |
| 8106 | ::google::protobuf::internal::WireFormat::PARSE, |
| 8107 | "google.protobuf.FileOptions.objc_class_prefix"); |
| 8108 | } else { |
| 8109 | goto handle_unusual; |
| 8110 | } |
| 8111 | if (input->ExpectTag(298)) goto parse_csharp_namespace; |
| 8112 | break; |
| 8113 | } |
| 8114 | |
| 8115 | // optional string csharp_namespace = 37; |
| 8116 | case 37: { |
| 8117 | if (tag == 298) { |
| 8118 | parse_csharp_namespace: |
| 8119 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8120 | input, this->mutable_csharp_namespace())); |
| 8121 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8122 | this->csharp_namespace().data(), this->csharp_namespace().length(), |
| 8123 | ::google::protobuf::internal::WireFormat::PARSE, |
| 8124 | "google.protobuf.FileOptions.csharp_namespace"); |
| 8125 | } else { |
| 8126 | goto handle_unusual; |
| 8127 | } |
| 8128 | if (input->ExpectTag(304)) goto parse_javanano_use_deprecated_package; |
| 8129 | break; |
| 8130 | } |
| 8131 | |
| 8132 | // optional bool javanano_use_deprecated_package = 38 [deprecated = true]; |
| 8133 | case 38: { |
| 8134 | if (tag == 304) { |
| 8135 | parse_javanano_use_deprecated_package: |
| 8136 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8137 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8138 | input, &javanano_use_deprecated_package_))); |
| 8139 | set_has_javanano_use_deprecated_package(); |
| 8140 | } else { |
| 8141 | goto handle_unusual; |
| 8142 | } |
| 8143 | if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 8144 | break; |
| 8145 | } |
| 8146 | |
| 8147 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8148 | case 999: { |
| 8149 | if (tag == 7994) { |
| 8150 | parse_uninterpreted_option: |
| 8151 | DO_(input->IncrementRecursionDepth()); |
| 8152 | parse_loop_uninterpreted_option: |
| 8153 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 8154 | input, add_uninterpreted_option())); |
| 8155 | } else { |
| 8156 | goto handle_unusual; |
| 8157 | } |
| 8158 | if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 8159 | input->UnsafeDecrementRecursionDepth(); |
| 8160 | if (input->ExpectAtEnd()) goto success; |
| 8161 | break; |
| 8162 | } |
| 8163 | |
| 8164 | default: { |
| 8165 | handle_unusual: |
| 8166 | if (tag == 0 || |
| 8167 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 8168 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 8169 | goto success; |
| 8170 | } |
| 8171 | if ((8000u <= tag)) { |
| 8172 | DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 8173 | mutable_unknown_fields())); |
| 8174 | continue; |
| 8175 | } |
| 8176 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8177 | input, tag, mutable_unknown_fields())); |
| 8178 | break; |
| 8179 | } |
| 8180 | } |
| 8181 | } |
| 8182 | success: |
| 8183 | // @@protoc_insertion_point(parse_success:google.protobuf.FileOptions) |
| 8184 | return true; |
| 8185 | failure: |
| 8186 | // @@protoc_insertion_point(parse_failure:google.protobuf.FileOptions) |
| 8187 | return false; |
| 8188 | #undef DO_ |
| 8189 | } |
| 8190 | |
| 8191 | void FileOptions::SerializeWithCachedSizes( |
| 8192 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8193 | // @@protoc_insertion_point(serialize_start:google.protobuf.FileOptions) |
| 8194 | // optional string java_package = 1; |
| 8195 | if (has_java_package()) { |
| 8196 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8197 | this->java_package().data(), this->java_package().length(), |
| 8198 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8199 | "google.protobuf.FileOptions.java_package"); |
| 8200 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8201 | 1, this->java_package(), output); |
| 8202 | } |
| 8203 | |
| 8204 | // optional string java_outer_classname = 8; |
| 8205 | if (has_java_outer_classname()) { |
| 8206 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8207 | this->java_outer_classname().data(), this->java_outer_classname().length(), |
| 8208 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8209 | "google.protobuf.FileOptions.java_outer_classname"); |
| 8210 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8211 | 8, this->java_outer_classname(), output); |
| 8212 | } |
| 8213 | |
| 8214 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 8215 | if (has_optimize_for()) { |
| 8216 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8217 | 9, this->optimize_for(), output); |
| 8218 | } |
| 8219 | |
| 8220 | // optional bool java_multiple_files = 10 [default = false]; |
| 8221 | if (has_java_multiple_files()) { |
| 8222 | ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output); |
| 8223 | } |
| 8224 | |
| 8225 | // optional string go_package = 11; |
| 8226 | if (has_go_package()) { |
| 8227 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8228 | this->go_package().data(), this->go_package().length(), |
| 8229 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8230 | "google.protobuf.FileOptions.go_package"); |
| 8231 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8232 | 11, this->go_package(), output); |
| 8233 | } |
| 8234 | |
| 8235 | // optional bool cc_generic_services = 16 [default = false]; |
| 8236 | if (has_cc_generic_services()) { |
| 8237 | ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output); |
| 8238 | } |
| 8239 | |
| 8240 | // optional bool java_generic_services = 17 [default = false]; |
| 8241 | if (has_java_generic_services()) { |
| 8242 | ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output); |
| 8243 | } |
| 8244 | |
| 8245 | // optional bool py_generic_services = 18 [default = false]; |
| 8246 | if (has_py_generic_services()) { |
| 8247 | ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output); |
| 8248 | } |
| 8249 | |
| 8250 | // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8251 | if (has_java_generate_equals_and_hash()) { |
| 8252 | ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output); |
| 8253 | } |
| 8254 | |
| 8255 | // optional bool deprecated = 23 [default = false]; |
| 8256 | if (has_deprecated()) { |
| 8257 | ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated(), output); |
| 8258 | } |
| 8259 | |
| 8260 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8261 | if (has_java_string_check_utf8()) { |
| 8262 | ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output); |
| 8263 | } |
| 8264 | |
| 8265 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 8266 | if (has_cc_enable_arenas()) { |
| 8267 | ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->cc_enable_arenas(), output); |
| 8268 | } |
| 8269 | |
| 8270 | // optional string objc_class_prefix = 36; |
| 8271 | if (has_objc_class_prefix()) { |
| 8272 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8273 | this->objc_class_prefix().data(), this->objc_class_prefix().length(), |
| 8274 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8275 | "google.protobuf.FileOptions.objc_class_prefix"); |
| 8276 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8277 | 36, this->objc_class_prefix(), output); |
| 8278 | } |
| 8279 | |
| 8280 | // optional string csharp_namespace = 37; |
| 8281 | if (has_csharp_namespace()) { |
| 8282 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8283 | this->csharp_namespace().data(), this->csharp_namespace().length(), |
| 8284 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8285 | "google.protobuf.FileOptions.csharp_namespace"); |
| 8286 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8287 | 37, this->csharp_namespace(), output); |
| 8288 | } |
| 8289 | |
| 8290 | // optional bool javanano_use_deprecated_package = 38 [deprecated = true]; |
| 8291 | if (has_javanano_use_deprecated_package()) { |
| 8292 | ::google::protobuf::internal::WireFormatLite::WriteBool(38, this->javanano_use_deprecated_package(), output); |
| 8293 | } |
| 8294 | |
| 8295 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8296 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 8297 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8298 | 999, this->uninterpreted_option(i), output); |
| 8299 | } |
| 8300 | |
| 8301 | // Extension range [1000, 536870912) |
| 8302 | _extensions_.SerializeWithCachedSizes( |
| 8303 | 1000, 536870912, output); |
| 8304 | |
| 8305 | if (_internal_metadata_.have_unknown_fields()) { |
| 8306 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8307 | unknown_fields(), output); |
| 8308 | } |
| 8309 | // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions) |
| 8310 | } |
| 8311 | |
| 8312 | ::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray( |
| 8313 | ::google::protobuf::uint8* target) const { |
| 8314 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions) |
| 8315 | // optional string java_package = 1; |
| 8316 | if (has_java_package()) { |
| 8317 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8318 | this->java_package().data(), this->java_package().length(), |
| 8319 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8320 | "google.protobuf.FileOptions.java_package"); |
| 8321 | target = |
| 8322 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8323 | 1, this->java_package(), target); |
| 8324 | } |
| 8325 | |
| 8326 | // optional string java_outer_classname = 8; |
| 8327 | if (has_java_outer_classname()) { |
| 8328 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8329 | this->java_outer_classname().data(), this->java_outer_classname().length(), |
| 8330 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8331 | "google.protobuf.FileOptions.java_outer_classname"); |
| 8332 | target = |
| 8333 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8334 | 8, this->java_outer_classname(), target); |
| 8335 | } |
| 8336 | |
| 8337 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 8338 | if (has_optimize_for()) { |
| 8339 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8340 | 9, this->optimize_for(), target); |
| 8341 | } |
| 8342 | |
| 8343 | // optional bool java_multiple_files = 10 [default = false]; |
| 8344 | if (has_java_multiple_files()) { |
| 8345 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target); |
| 8346 | } |
| 8347 | |
| 8348 | // optional string go_package = 11; |
| 8349 | if (has_go_package()) { |
| 8350 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8351 | this->go_package().data(), this->go_package().length(), |
| 8352 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8353 | "google.protobuf.FileOptions.go_package"); |
| 8354 | target = |
| 8355 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8356 | 11, this->go_package(), target); |
| 8357 | } |
| 8358 | |
| 8359 | // optional bool cc_generic_services = 16 [default = false]; |
| 8360 | if (has_cc_generic_services()) { |
| 8361 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target); |
| 8362 | } |
| 8363 | |
| 8364 | // optional bool java_generic_services = 17 [default = false]; |
| 8365 | if (has_java_generic_services()) { |
| 8366 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target); |
| 8367 | } |
| 8368 | |
| 8369 | // optional bool py_generic_services = 18 [default = false]; |
| 8370 | if (has_py_generic_services()) { |
| 8371 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target); |
| 8372 | } |
| 8373 | |
| 8374 | // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8375 | if (has_java_generate_equals_and_hash()) { |
| 8376 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target); |
| 8377 | } |
| 8378 | |
| 8379 | // optional bool deprecated = 23 [default = false]; |
| 8380 | if (has_deprecated()) { |
| 8381 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target); |
| 8382 | } |
| 8383 | |
| 8384 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8385 | if (has_java_string_check_utf8()) { |
| 8386 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target); |
| 8387 | } |
| 8388 | |
| 8389 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 8390 | if (has_cc_enable_arenas()) { |
| 8391 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->cc_enable_arenas(), target); |
| 8392 | } |
| 8393 | |
| 8394 | // optional string objc_class_prefix = 36; |
| 8395 | if (has_objc_class_prefix()) { |
| 8396 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8397 | this->objc_class_prefix().data(), this->objc_class_prefix().length(), |
| 8398 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8399 | "google.protobuf.FileOptions.objc_class_prefix"); |
| 8400 | target = |
| 8401 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8402 | 36, this->objc_class_prefix(), target); |
| 8403 | } |
| 8404 | |
| 8405 | // optional string csharp_namespace = 37; |
| 8406 | if (has_csharp_namespace()) { |
| 8407 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8408 | this->csharp_namespace().data(), this->csharp_namespace().length(), |
| 8409 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8410 | "google.protobuf.FileOptions.csharp_namespace"); |
| 8411 | target = |
| 8412 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8413 | 37, this->csharp_namespace(), target); |
| 8414 | } |
| 8415 | |
| 8416 | // optional bool javanano_use_deprecated_package = 38 [deprecated = true]; |
| 8417 | if (has_javanano_use_deprecated_package()) { |
| 8418 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(38, this->javanano_use_deprecated_package(), target); |
| 8419 | } |
| 8420 | |
| 8421 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8422 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 8423 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8424 | WriteMessageNoVirtualToArray( |
| 8425 | 999, this->uninterpreted_option(i), target); |
| 8426 | } |
| 8427 | |
| 8428 | // Extension range [1000, 536870912) |
| 8429 | target = _extensions_.SerializeWithCachedSizesToArray( |
| 8430 | 1000, 536870912, target); |
| 8431 | |
| 8432 | if (_internal_metadata_.have_unknown_fields()) { |
| 8433 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8434 | unknown_fields(), target); |
| 8435 | } |
| 8436 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions) |
| 8437 | return target; |
| 8438 | } |
| 8439 | |
| 8440 | int FileOptions::ByteSize() const { |
| 8441 | int total_size = 0; |
| 8442 | |
| 8443 | if (_has_bits_[0 / 32] & 255u) { |
| 8444 | // optional string java_package = 1; |
| 8445 | if (has_java_package()) { |
| 8446 | total_size += 1 + |
| 8447 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8448 | this->java_package()); |
| 8449 | } |
| 8450 | |
| 8451 | // optional string java_outer_classname = 8; |
| 8452 | if (has_java_outer_classname()) { |
| 8453 | total_size += 1 + |
| 8454 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8455 | this->java_outer_classname()); |
| 8456 | } |
| 8457 | |
| 8458 | // optional bool java_multiple_files = 10 [default = false]; |
| 8459 | if (has_java_multiple_files()) { |
| 8460 | total_size += 1 + 1; |
| 8461 | } |
| 8462 | |
| 8463 | // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8464 | if (has_java_generate_equals_and_hash()) { |
| 8465 | total_size += 2 + 1; |
| 8466 | } |
| 8467 | |
| 8468 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8469 | if (has_java_string_check_utf8()) { |
| 8470 | total_size += 2 + 1; |
| 8471 | } |
| 8472 | |
| 8473 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 8474 | if (has_optimize_for()) { |
| 8475 | total_size += 1 + |
| 8476 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for()); |
| 8477 | } |
| 8478 | |
| 8479 | // optional string go_package = 11; |
| 8480 | if (has_go_package()) { |
| 8481 | total_size += 1 + |
| 8482 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8483 | this->go_package()); |
| 8484 | } |
| 8485 | |
| 8486 | // optional bool cc_generic_services = 16 [default = false]; |
| 8487 | if (has_cc_generic_services()) { |
| 8488 | total_size += 2 + 1; |
| 8489 | } |
| 8490 | |
| 8491 | } |
| 8492 | if (_has_bits_[8 / 32] & 32512u) { |
| 8493 | // optional bool java_generic_services = 17 [default = false]; |
| 8494 | if (has_java_generic_services()) { |
| 8495 | total_size += 2 + 1; |
| 8496 | } |
| 8497 | |
| 8498 | // optional bool py_generic_services = 18 [default = false]; |
| 8499 | if (has_py_generic_services()) { |
| 8500 | total_size += 2 + 1; |
| 8501 | } |
| 8502 | |
| 8503 | // optional bool deprecated = 23 [default = false]; |
| 8504 | if (has_deprecated()) { |
| 8505 | total_size += 2 + 1; |
| 8506 | } |
| 8507 | |
| 8508 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 8509 | if (has_cc_enable_arenas()) { |
| 8510 | total_size += 2 + 1; |
| 8511 | } |
| 8512 | |
| 8513 | // optional string objc_class_prefix = 36; |
| 8514 | if (has_objc_class_prefix()) { |
| 8515 | total_size += 2 + |
| 8516 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8517 | this->objc_class_prefix()); |
| 8518 | } |
| 8519 | |
| 8520 | // optional string csharp_namespace = 37; |
| 8521 | if (has_csharp_namespace()) { |
| 8522 | total_size += 2 + |
| 8523 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8524 | this->csharp_namespace()); |
| 8525 | } |
| 8526 | |
| 8527 | // optional bool javanano_use_deprecated_package = 38 [deprecated = true]; |
| 8528 | if (has_javanano_use_deprecated_package()) { |
| 8529 | total_size += 2 + 1; |
| 8530 | } |
| 8531 | |
| 8532 | } |
| 8533 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8534 | total_size += 2 * this->uninterpreted_option_size(); |
| 8535 | for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 8536 | total_size += |
| 8537 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 8538 | this->uninterpreted_option(i)); |
| 8539 | } |
| 8540 | |
| 8541 | total_size += _extensions_.ByteSize(); |
| 8542 | |
| 8543 | if (_internal_metadata_.have_unknown_fields()) { |
| 8544 | total_size += |
| 8545 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8546 | unknown_fields()); |
| 8547 | } |
| 8548 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 8549 | _cached_size_ = total_size; |
| 8550 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 8551 | return total_size; |
| 8552 | } |
| 8553 | |
| 8554 | void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 8555 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 8556 | const FileOptions* source = |
| 8557 | ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>( |
| 8558 | &from); |
| 8559 | if (source == NULL) { |
| 8560 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8561 | } else { |
| 8562 | MergeFrom(*source); |
| 8563 | } |
| 8564 | } |
| 8565 | |
| 8566 | void FileOptions::MergeFrom(const FileOptions& from) { |
| 8567 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 8568 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 8569 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 8570 | if (from.has_java_package()) { |
| 8571 | set_has_java_package(); |
| 8572 | java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_package_); |
| 8573 | } |
| 8574 | if (from.has_java_outer_classname()) { |
| 8575 | set_has_java_outer_classname(); |
| 8576 | java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_outer_classname_); |
| 8577 | } |
| 8578 | if (from.has_java_multiple_files()) { |
| 8579 | set_java_multiple_files(from.java_multiple_files()); |
| 8580 | } |
| 8581 | if (from.has_java_generate_equals_and_hash()) { |
| 8582 | set_java_generate_equals_and_hash(from.java_generate_equals_and_hash()); |
| 8583 | } |
| 8584 | if (from.has_java_string_check_utf8()) { |
| 8585 | set_java_string_check_utf8(from.java_string_check_utf8()); |
| 8586 | } |
| 8587 | if (from.has_optimize_for()) { |
| 8588 | set_optimize_for(from.optimize_for()); |
| 8589 | } |
| 8590 | if (from.has_go_package()) { |
| 8591 | set_has_go_package(); |
| 8592 | go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.go_package_); |
| 8593 | } |
| 8594 | if (from.has_cc_generic_services()) { |
| 8595 | set_cc_generic_services(from.cc_generic_services()); |
| 8596 | } |
| 8597 | } |
| 8598 | if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { |
| 8599 | if (from.has_java_generic_services()) { |
| 8600 | set_java_generic_services(from.java_generic_services()); |
| 8601 | } |
| 8602 | if (from.has_py_generic_services()) { |
| 8603 | set_py_generic_services(from.py_generic_services()); |
| 8604 | } |
| 8605 | if (from.has_deprecated()) { |
| 8606 | set_deprecated(from.deprecated()); |
| 8607 | } |
| 8608 | if (from.has_cc_enable_arenas()) { |
| 8609 | set_cc_enable_arenas(from.cc_enable_arenas()); |
| 8610 | } |
| 8611 | if (from.has_objc_class_prefix()) { |
| 8612 | set_has_objc_class_prefix(); |
| 8613 | objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.objc_class_prefix_); |
| 8614 | } |
| 8615 | if (from.has_csharp_namespace()) { |
| 8616 | set_has_csharp_namespace(); |
| 8617 | csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.csharp_namespace_); |
| 8618 | } |
| 8619 | if (from.has_javanano_use_deprecated_package()) { |
| 8620 | set_javanano_use_deprecated_package(from.javanano_use_deprecated_package()); |
| 8621 | } |
| 8622 | } |
| 8623 | _extensions_.MergeFrom(from._extensions_); |
| 8624 | if (from._internal_metadata_.have_unknown_fields()) { |
| 8625 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 8626 | } |
| 8627 | } |
| 8628 | |
| 8629 | void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 8630 | if (&from == this) return; |
| 8631 | Clear(); |
| 8632 | MergeFrom(from); |
| 8633 | } |
| 8634 | |
| 8635 | void FileOptions::CopyFrom(const FileOptions& from) { |
| 8636 | if (&from == this) return; |
| 8637 | Clear(); |
| 8638 | MergeFrom(from); |
| 8639 | } |
| 8640 | |
| 8641 | bool FileOptions::IsInitialized() const { |
| 8642 | |
| 8643 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 8644 | |
| 8645 | if (!_extensions_.IsInitialized()) return false; return true; |
| 8646 | } |
| 8647 | |
| 8648 | void FileOptions::Swap(FileOptions* other) { |
| 8649 | if (other == this) return; |
| 8650 | InternalSwap(other); |
| 8651 | } |
| 8652 | void FileOptions::InternalSwap(FileOptions* other) { |
| 8653 | java_package_.Swap(&other->java_package_); |
| 8654 | java_outer_classname_.Swap(&other->java_outer_classname_); |
| 8655 | std::swap(java_multiple_files_, other->java_multiple_files_); |
| 8656 | std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_); |
| 8657 | std::swap(java_string_check_utf8_, other->java_string_check_utf8_); |
| 8658 | std::swap(optimize_for_, other->optimize_for_); |
| 8659 | go_package_.Swap(&other->go_package_); |
| 8660 | std::swap(cc_generic_services_, other->cc_generic_services_); |
| 8661 | std::swap(java_generic_services_, other->java_generic_services_); |
| 8662 | std::swap(py_generic_services_, other->py_generic_services_); |
| 8663 | std::swap(deprecated_, other->deprecated_); |
| 8664 | std::swap(cc_enable_arenas_, other->cc_enable_arenas_); |
| 8665 | objc_class_prefix_.Swap(&other->objc_class_prefix_); |
| 8666 | csharp_namespace_.Swap(&other->csharp_namespace_); |
| 8667 | std::swap(javanano_use_deprecated_package_, other->javanano_use_deprecated_package_); |
| 8668 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 8669 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 8670 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8671 | std::swap(_cached_size_, other->_cached_size_); |
| 8672 | _extensions_.Swap(&other->_extensions_); |
| 8673 | } |
| 8674 | |
| 8675 | ::google::protobuf::Metadata FileOptions::GetMetadata() const { |
| 8676 | protobuf_AssignDescriptorsOnce(); |
| 8677 | ::google::protobuf::Metadata metadata; |
| 8678 | metadata.descriptor = FileOptions_descriptor_; |
| 8679 | metadata.reflection = FileOptions_reflection_; |
| 8680 | return metadata; |
| 8681 | } |
| 8682 | |
| 8683 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 8684 | // FileOptions |
| 8685 | |
| 8686 | // optional string java_package = 1; |
| 8687 | bool FileOptions::has_java_package() const { |
| 8688 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 8689 | } |
| 8690 | void FileOptions::set_has_java_package() { |
| 8691 | _has_bits_[0] |= 0x00000001u; |
| 8692 | } |
| 8693 | void FileOptions::clear_has_java_package() { |
| 8694 | _has_bits_[0] &= ~0x00000001u; |
| 8695 | } |
| 8696 | void FileOptions::clear_java_package() { |
| 8697 | java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8698 | clear_has_java_package(); |
| 8699 | } |
| 8700 | const ::std::string& FileOptions::java_package() const { |
| 8701 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package) |
| 8702 | return java_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8703 | } |
| 8704 | void FileOptions::set_java_package(const ::std::string& value) { |
| 8705 | set_has_java_package(); |
| 8706 | java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 8707 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package) |
| 8708 | } |
| 8709 | void FileOptions::set_java_package(const char* value) { |
| 8710 | set_has_java_package(); |
| 8711 | java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 8712 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package) |
| 8713 | } |
| 8714 | void FileOptions::set_java_package(const char* value, size_t size) { |
| 8715 | set_has_java_package(); |
| 8716 | java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8717 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 8718 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package) |
| 8719 | } |
| 8720 | ::std::string* FileOptions::mutable_java_package() { |
| 8721 | set_has_java_package(); |
| 8722 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package) |
| 8723 | return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8724 | } |
| 8725 | ::std::string* FileOptions::release_java_package() { |
| 8726 | clear_has_java_package(); |
| 8727 | return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8728 | } |
| 8729 | void FileOptions::set_allocated_java_package(::std::string* java_package) { |
| 8730 | if (java_package != NULL) { |
| 8731 | set_has_java_package(); |
| 8732 | } else { |
| 8733 | clear_has_java_package(); |
| 8734 | } |
| 8735 | java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_package); |
| 8736 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package) |
| 8737 | } |
| 8738 | |
| 8739 | // optional string java_outer_classname = 8; |
| 8740 | bool FileOptions::has_java_outer_classname() const { |
| 8741 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 8742 | } |
| 8743 | void FileOptions::set_has_java_outer_classname() { |
| 8744 | _has_bits_[0] |= 0x00000002u; |
| 8745 | } |
| 8746 | void FileOptions::clear_has_java_outer_classname() { |
| 8747 | _has_bits_[0] &= ~0x00000002u; |
| 8748 | } |
| 8749 | void FileOptions::clear_java_outer_classname() { |
| 8750 | java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8751 | clear_has_java_outer_classname(); |
| 8752 | } |
| 8753 | const ::std::string& FileOptions::java_outer_classname() const { |
| 8754 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname) |
| 8755 | return java_outer_classname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8756 | } |
| 8757 | void FileOptions::set_java_outer_classname(const ::std::string& value) { |
| 8758 | set_has_java_outer_classname(); |
| 8759 | java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 8760 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname) |
| 8761 | } |
| 8762 | void FileOptions::set_java_outer_classname(const char* value) { |
| 8763 | set_has_java_outer_classname(); |
| 8764 | java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 8765 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname) |
| 8766 | } |
| 8767 | void FileOptions::set_java_outer_classname(const char* value, size_t size) { |
| 8768 | set_has_java_outer_classname(); |
| 8769 | java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8770 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 8771 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname) |
| 8772 | } |
| 8773 | ::std::string* FileOptions::mutable_java_outer_classname() { |
| 8774 | set_has_java_outer_classname(); |
| 8775 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname) |
| 8776 | return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8777 | } |
| 8778 | ::std::string* FileOptions::release_java_outer_classname() { |
| 8779 | clear_has_java_outer_classname(); |
| 8780 | return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8781 | } |
| 8782 | void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) { |
| 8783 | if (java_outer_classname != NULL) { |
| 8784 | set_has_java_outer_classname(); |
| 8785 | } else { |
| 8786 | clear_has_java_outer_classname(); |
| 8787 | } |
| 8788 | java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_outer_classname); |
| 8789 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname) |
| 8790 | } |
| 8791 | |
| 8792 | // optional bool java_multiple_files = 10 [default = false]; |
| 8793 | bool FileOptions::has_java_multiple_files() const { |
| 8794 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 8795 | } |
| 8796 | void FileOptions::set_has_java_multiple_files() { |
| 8797 | _has_bits_[0] |= 0x00000004u; |
| 8798 | } |
| 8799 | void FileOptions::clear_has_java_multiple_files() { |
| 8800 | _has_bits_[0] &= ~0x00000004u; |
| 8801 | } |
| 8802 | void FileOptions::clear_java_multiple_files() { |
| 8803 | java_multiple_files_ = false; |
| 8804 | clear_has_java_multiple_files(); |
| 8805 | } |
| 8806 | bool FileOptions::java_multiple_files() const { |
| 8807 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files) |
| 8808 | return java_multiple_files_; |
| 8809 | } |
| 8810 | void FileOptions::set_java_multiple_files(bool value) { |
| 8811 | set_has_java_multiple_files(); |
| 8812 | java_multiple_files_ = value; |
| 8813 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files) |
| 8814 | } |
| 8815 | |
| 8816 | // optional bool java_generate_equals_and_hash = 20 [default = false]; |
| 8817 | bool FileOptions::has_java_generate_equals_and_hash() const { |
| 8818 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 8819 | } |
| 8820 | void FileOptions::set_has_java_generate_equals_and_hash() { |
| 8821 | _has_bits_[0] |= 0x00000008u; |
| 8822 | } |
| 8823 | void FileOptions::clear_has_java_generate_equals_and_hash() { |
| 8824 | _has_bits_[0] &= ~0x00000008u; |
| 8825 | } |
| 8826 | void FileOptions::clear_java_generate_equals_and_hash() { |
| 8827 | java_generate_equals_and_hash_ = false; |
| 8828 | clear_has_java_generate_equals_and_hash(); |
| 8829 | } |
| 8830 | bool FileOptions::java_generate_equals_and_hash() const { |
| 8831 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash) |
| 8832 | return java_generate_equals_and_hash_; |
| 8833 | } |
| 8834 | void FileOptions::set_java_generate_equals_and_hash(bool value) { |
| 8835 | set_has_java_generate_equals_and_hash(); |
| 8836 | java_generate_equals_and_hash_ = value; |
| 8837 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash) |
| 8838 | } |
| 8839 | |
| 8840 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8841 | bool FileOptions::has_java_string_check_utf8() const { |
| 8842 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 8843 | } |
| 8844 | void FileOptions::set_has_java_string_check_utf8() { |
| 8845 | _has_bits_[0] |= 0x00000010u; |
| 8846 | } |
| 8847 | void FileOptions::clear_has_java_string_check_utf8() { |
| 8848 | _has_bits_[0] &= ~0x00000010u; |
| 8849 | } |
| 8850 | void FileOptions::clear_java_string_check_utf8() { |
| 8851 | java_string_check_utf8_ = false; |
| 8852 | clear_has_java_string_check_utf8(); |
| 8853 | } |
| 8854 | bool FileOptions::java_string_check_utf8() const { |
| 8855 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8) |
| 8856 | return java_string_check_utf8_; |
| 8857 | } |
| 8858 | void FileOptions::set_java_string_check_utf8(bool value) { |
| 8859 | set_has_java_string_check_utf8(); |
| 8860 | java_string_check_utf8_ = value; |
| 8861 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8) |
| 8862 | } |
| 8863 | |
| 8864 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 8865 | bool FileOptions::has_optimize_for() const { |
| 8866 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 8867 | } |
| 8868 | void FileOptions::set_has_optimize_for() { |
| 8869 | _has_bits_[0] |= 0x00000020u; |
| 8870 | } |
| 8871 | void FileOptions::clear_has_optimize_for() { |
| 8872 | _has_bits_[0] &= ~0x00000020u; |
| 8873 | } |
| 8874 | void FileOptions::clear_optimize_for() { |
| 8875 | optimize_for_ = 1; |
| 8876 | clear_has_optimize_for(); |
| 8877 | } |
| 8878 | ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { |
| 8879 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for) |
| 8880 | return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_); |
| 8881 | } |
| 8882 | void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) { |
| 8883 | assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); |
| 8884 | set_has_optimize_for(); |
| 8885 | optimize_for_ = value; |
| 8886 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for) |
| 8887 | } |
| 8888 | |
| 8889 | // optional string go_package = 11; |
| 8890 | bool FileOptions::has_go_package() const { |
| 8891 | return (_has_bits_[0] & 0x00000040u) != 0; |
| 8892 | } |
| 8893 | void FileOptions::set_has_go_package() { |
| 8894 | _has_bits_[0] |= 0x00000040u; |
| 8895 | } |
| 8896 | void FileOptions::clear_has_go_package() { |
| 8897 | _has_bits_[0] &= ~0x00000040u; |
| 8898 | } |
| 8899 | void FileOptions::clear_go_package() { |
| 8900 | go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8901 | clear_has_go_package(); |
| 8902 | } |
| 8903 | const ::std::string& FileOptions::go_package() const { |
| 8904 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package) |
| 8905 | return go_package_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8906 | } |
| 8907 | void FileOptions::set_go_package(const ::std::string& value) { |
| 8908 | set_has_go_package(); |
| 8909 | go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 8910 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package) |
| 8911 | } |
| 8912 | void FileOptions::set_go_package(const char* value) { |
| 8913 | set_has_go_package(); |
| 8914 | go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 8915 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package) |
| 8916 | } |
| 8917 | void FileOptions::set_go_package(const char* value, size_t size) { |
| 8918 | set_has_go_package(); |
| 8919 | go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8920 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 8921 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package) |
| 8922 | } |
| 8923 | ::std::string* FileOptions::mutable_go_package() { |
| 8924 | set_has_go_package(); |
| 8925 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package) |
| 8926 | return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8927 | } |
| 8928 | ::std::string* FileOptions::release_go_package() { |
| 8929 | clear_has_go_package(); |
| 8930 | return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8931 | } |
| 8932 | void FileOptions::set_allocated_go_package(::std::string* go_package) { |
| 8933 | if (go_package != NULL) { |
| 8934 | set_has_go_package(); |
| 8935 | } else { |
| 8936 | clear_has_go_package(); |
| 8937 | } |
| 8938 | go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), go_package); |
| 8939 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package) |
| 8940 | } |
| 8941 | |
| 8942 | // optional bool cc_generic_services = 16 [default = false]; |
| 8943 | bool FileOptions::has_cc_generic_services() const { |
| 8944 | return (_has_bits_[0] & 0x00000080u) != 0; |
| 8945 | } |
| 8946 | void FileOptions::set_has_cc_generic_services() { |
| 8947 | _has_bits_[0] |= 0x00000080u; |
| 8948 | } |
| 8949 | void FileOptions::clear_has_cc_generic_services() { |
| 8950 | _has_bits_[0] &= ~0x00000080u; |
| 8951 | } |
| 8952 | void FileOptions::clear_cc_generic_services() { |
| 8953 | cc_generic_services_ = false; |
| 8954 | clear_has_cc_generic_services(); |
| 8955 | } |
| 8956 | bool FileOptions::cc_generic_services() const { |
| 8957 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services) |
| 8958 | return cc_generic_services_; |
| 8959 | } |
| 8960 | void FileOptions::set_cc_generic_services(bool value) { |
| 8961 | set_has_cc_generic_services(); |
| 8962 | cc_generic_services_ = value; |
| 8963 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services) |
| 8964 | } |
| 8965 | |
| 8966 | // optional bool java_generic_services = 17 [default = false]; |
| 8967 | bool FileOptions::has_java_generic_services() const { |
| 8968 | return (_has_bits_[0] & 0x00000100u) != 0; |
| 8969 | } |
| 8970 | void FileOptions::set_has_java_generic_services() { |
| 8971 | _has_bits_[0] |= 0x00000100u; |
| 8972 | } |
| 8973 | void FileOptions::clear_has_java_generic_services() { |
| 8974 | _has_bits_[0] &= ~0x00000100u; |
| 8975 | } |
| 8976 | void FileOptions::clear_java_generic_services() { |
| 8977 | java_generic_services_ = false; |
| 8978 | clear_has_java_generic_services(); |
| 8979 | } |
| 8980 | bool FileOptions::java_generic_services() const { |
| 8981 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services) |
| 8982 | return java_generic_services_; |
| 8983 | } |
| 8984 | void FileOptions::set_java_generic_services(bool value) { |
| 8985 | set_has_java_generic_services(); |
| 8986 | java_generic_services_ = value; |
| 8987 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services) |
| 8988 | } |
| 8989 | |
| 8990 | // optional bool py_generic_services = 18 [default = false]; |
| 8991 | bool FileOptions::has_py_generic_services() const { |
| 8992 | return (_has_bits_[0] & 0x00000200u) != 0; |
| 8993 | } |
| 8994 | void FileOptions::set_has_py_generic_services() { |
| 8995 | _has_bits_[0] |= 0x00000200u; |
| 8996 | } |
| 8997 | void FileOptions::clear_has_py_generic_services() { |
| 8998 | _has_bits_[0] &= ~0x00000200u; |
| 8999 | } |
| 9000 | void FileOptions::clear_py_generic_services() { |
| 9001 | py_generic_services_ = false; |
| 9002 | clear_has_py_generic_services(); |
| 9003 | } |
| 9004 | bool FileOptions::py_generic_services() const { |
| 9005 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services) |
| 9006 | return py_generic_services_; |
| 9007 | } |
| 9008 | void FileOptions::set_py_generic_services(bool value) { |
| 9009 | set_has_py_generic_services(); |
| 9010 | py_generic_services_ = value; |
| 9011 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services) |
| 9012 | } |
| 9013 | |
| 9014 | // optional bool deprecated = 23 [default = false]; |
| 9015 | bool FileOptions::has_deprecated() const { |
| 9016 | return (_has_bits_[0] & 0x00000400u) != 0; |
| 9017 | } |
| 9018 | void FileOptions::set_has_deprecated() { |
| 9019 | _has_bits_[0] |= 0x00000400u; |
| 9020 | } |
| 9021 | void FileOptions::clear_has_deprecated() { |
| 9022 | _has_bits_[0] &= ~0x00000400u; |
| 9023 | } |
| 9024 | void FileOptions::clear_deprecated() { |
| 9025 | deprecated_ = false; |
| 9026 | clear_has_deprecated(); |
| 9027 | } |
| 9028 | bool FileOptions::deprecated() const { |
| 9029 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated) |
| 9030 | return deprecated_; |
| 9031 | } |
| 9032 | void FileOptions::set_deprecated(bool value) { |
| 9033 | set_has_deprecated(); |
| 9034 | deprecated_ = value; |
| 9035 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated) |
| 9036 | } |
| 9037 | |
| 9038 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 9039 | bool FileOptions::has_cc_enable_arenas() const { |
| 9040 | return (_has_bits_[0] & 0x00000800u) != 0; |
| 9041 | } |
| 9042 | void FileOptions::set_has_cc_enable_arenas() { |
| 9043 | _has_bits_[0] |= 0x00000800u; |
| 9044 | } |
| 9045 | void FileOptions::clear_has_cc_enable_arenas() { |
| 9046 | _has_bits_[0] &= ~0x00000800u; |
| 9047 | } |
| 9048 | void FileOptions::clear_cc_enable_arenas() { |
| 9049 | cc_enable_arenas_ = false; |
| 9050 | clear_has_cc_enable_arenas(); |
| 9051 | } |
| 9052 | bool FileOptions::cc_enable_arenas() const { |
| 9053 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas) |
| 9054 | return cc_enable_arenas_; |
| 9055 | } |
| 9056 | void FileOptions::set_cc_enable_arenas(bool value) { |
| 9057 | set_has_cc_enable_arenas(); |
| 9058 | cc_enable_arenas_ = value; |
| 9059 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas) |
| 9060 | } |
| 9061 | |
| 9062 | // optional string objc_class_prefix = 36; |
| 9063 | bool FileOptions::has_objc_class_prefix() const { |
| 9064 | return (_has_bits_[0] & 0x00001000u) != 0; |
| 9065 | } |
| 9066 | void FileOptions::set_has_objc_class_prefix() { |
| 9067 | _has_bits_[0] |= 0x00001000u; |
| 9068 | } |
| 9069 | void FileOptions::clear_has_objc_class_prefix() { |
| 9070 | _has_bits_[0] &= ~0x00001000u; |
| 9071 | } |
| 9072 | void FileOptions::clear_objc_class_prefix() { |
| 9073 | objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9074 | clear_has_objc_class_prefix(); |
| 9075 | } |
| 9076 | const ::std::string& FileOptions::objc_class_prefix() const { |
| 9077 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix) |
| 9078 | return objc_class_prefix_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9079 | } |
| 9080 | void FileOptions::set_objc_class_prefix(const ::std::string& value) { |
| 9081 | set_has_objc_class_prefix(); |
| 9082 | objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 9083 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix) |
| 9084 | } |
| 9085 | void FileOptions::set_objc_class_prefix(const char* value) { |
| 9086 | set_has_objc_class_prefix(); |
| 9087 | objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 9088 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix) |
| 9089 | } |
| 9090 | void FileOptions::set_objc_class_prefix(const char* value, size_t size) { |
| 9091 | set_has_objc_class_prefix(); |
| 9092 | objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9093 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9094 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix) |
| 9095 | } |
| 9096 | ::std::string* FileOptions::mutable_objc_class_prefix() { |
| 9097 | set_has_objc_class_prefix(); |
| 9098 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix) |
| 9099 | return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9100 | } |
| 9101 | ::std::string* FileOptions::release_objc_class_prefix() { |
| 9102 | clear_has_objc_class_prefix(); |
| 9103 | return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9104 | } |
| 9105 | void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) { |
| 9106 | if (objc_class_prefix != NULL) { |
| 9107 | set_has_objc_class_prefix(); |
| 9108 | } else { |
| 9109 | clear_has_objc_class_prefix(); |
| 9110 | } |
| 9111 | objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), objc_class_prefix); |
| 9112 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix) |
| 9113 | } |
| 9114 | |
| 9115 | // optional string csharp_namespace = 37; |
| 9116 | bool FileOptions::has_csharp_namespace() const { |
| 9117 | return (_has_bits_[0] & 0x00002000u) != 0; |
| 9118 | } |
| 9119 | void FileOptions::set_has_csharp_namespace() { |
| 9120 | _has_bits_[0] |= 0x00002000u; |
| 9121 | } |
| 9122 | void FileOptions::clear_has_csharp_namespace() { |
| 9123 | _has_bits_[0] &= ~0x00002000u; |
| 9124 | } |
| 9125 | void FileOptions::clear_csharp_namespace() { |
| 9126 | csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9127 | clear_has_csharp_namespace(); |
| 9128 | } |
| 9129 | const ::std::string& FileOptions::csharp_namespace() const { |
| 9130 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace) |
| 9131 | return csharp_namespace_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9132 | } |
| 9133 | void FileOptions::set_csharp_namespace(const ::std::string& value) { |
| 9134 | set_has_csharp_namespace(); |
| 9135 | csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 9136 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace) |
| 9137 | } |
| 9138 | void FileOptions::set_csharp_namespace(const char* value) { |
| 9139 | set_has_csharp_namespace(); |
| 9140 | csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 9141 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace) |
| 9142 | } |
| 9143 | void FileOptions::set_csharp_namespace(const char* value, size_t size) { |
| 9144 | set_has_csharp_namespace(); |
| 9145 | csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9146 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9147 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace) |
| 9148 | } |
| 9149 | ::std::string* FileOptions::mutable_csharp_namespace() { |
| 9150 | set_has_csharp_namespace(); |
| 9151 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace) |
| 9152 | return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9153 | } |
| 9154 | ::std::string* FileOptions::release_csharp_namespace() { |
| 9155 | clear_has_csharp_namespace(); |
| 9156 | return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9157 | } |
| 9158 | void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) { |
| 9159 | if (csharp_namespace != NULL) { |
| 9160 | set_has_csharp_namespace(); |
| 9161 | } else { |
| 9162 | clear_has_csharp_namespace(); |
| 9163 | } |
| 9164 | csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), csharp_namespace); |
| 9165 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace) |
| 9166 | } |
| 9167 | |
| 9168 | // optional bool javanano_use_deprecated_package = 38 [deprecated = true]; |
| 9169 | bool FileOptions::has_javanano_use_deprecated_package() const { |
| 9170 | return (_has_bits_[0] & 0x00004000u) != 0; |
| 9171 | } |
| 9172 | void FileOptions::set_has_javanano_use_deprecated_package() { |
| 9173 | _has_bits_[0] |= 0x00004000u; |
| 9174 | } |
| 9175 | void FileOptions::clear_has_javanano_use_deprecated_package() { |
| 9176 | _has_bits_[0] &= ~0x00004000u; |
| 9177 | } |
| 9178 | void FileOptions::clear_javanano_use_deprecated_package() { |
| 9179 | javanano_use_deprecated_package_ = false; |
| 9180 | clear_has_javanano_use_deprecated_package(); |
| 9181 | } |
| 9182 | bool FileOptions::javanano_use_deprecated_package() const { |
| 9183 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.javanano_use_deprecated_package) |
| 9184 | return javanano_use_deprecated_package_; |
| 9185 | } |
| 9186 | void FileOptions::set_javanano_use_deprecated_package(bool value) { |
| 9187 | set_has_javanano_use_deprecated_package(); |
| 9188 | javanano_use_deprecated_package_ = value; |
| 9189 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.javanano_use_deprecated_package) |
| 9190 | } |
| 9191 | |
| 9192 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9193 | int FileOptions::uninterpreted_option_size() const { |
| 9194 | return uninterpreted_option_.size(); |
| 9195 | } |
| 9196 | void FileOptions::clear_uninterpreted_option() { |
| 9197 | uninterpreted_option_.Clear(); |
| 9198 | } |
| 9199 | const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const { |
| 9200 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option) |
| 9201 | return uninterpreted_option_.Get(index); |
| 9202 | } |
| 9203 | ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) { |
| 9204 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option) |
| 9205 | return uninterpreted_option_.Mutable(index); |
| 9206 | } |
| 9207 | ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() { |
| 9208 | // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option) |
| 9209 | return uninterpreted_option_.Add(); |
| 9210 | } |
| 9211 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 9212 | FileOptions::mutable_uninterpreted_option() { |
| 9213 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option) |
| 9214 | return &uninterpreted_option_; |
| 9215 | } |
| 9216 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 9217 | FileOptions::uninterpreted_option() const { |
| 9218 | // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option) |
| 9219 | return uninterpreted_option_; |
| 9220 | } |
| 9221 | |
| 9222 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 9223 | |
| 9224 | // =================================================================== |
| 9225 | |
| 9226 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9227 | const int MessageOptions::kMessageSetWireFormatFieldNumber; |
| 9228 | const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber; |
| 9229 | const int MessageOptions::kDeprecatedFieldNumber; |
| 9230 | const int MessageOptions::kMapEntryFieldNumber; |
| 9231 | const int MessageOptions::kUninterpretedOptionFieldNumber; |
| 9232 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9233 | |
| 9234 | MessageOptions::MessageOptions() |
| 9235 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 9236 | SharedCtor(); |
| 9237 | // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions) |
| 9238 | } |
| 9239 | |
| 9240 | void MessageOptions::InitAsDefaultInstance() { |
| 9241 | } |
| 9242 | |
| 9243 | MessageOptions::MessageOptions(const MessageOptions& from) |
| 9244 | : ::google::protobuf::Message(), |
| 9245 | _internal_metadata_(NULL) { |
| 9246 | SharedCtor(); |
| 9247 | MergeFrom(from); |
| 9248 | // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) |
| 9249 | } |
| 9250 | |
| 9251 | void MessageOptions::SharedCtor() { |
| 9252 | _cached_size_ = 0; |
| 9253 | message_set_wire_format_ = false; |
| 9254 | no_standard_descriptor_accessor_ = false; |
| 9255 | deprecated_ = false; |
| 9256 | map_entry_ = false; |
| 9257 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 9258 | } |
| 9259 | |
| 9260 | MessageOptions::~MessageOptions() { |
| 9261 | // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions) |
| 9262 | SharedDtor(); |
| 9263 | } |
| 9264 | |
| 9265 | void MessageOptions::SharedDtor() { |
| 9266 | if (this != default_instance_) { |
| 9267 | } |
| 9268 | } |
| 9269 | |
| 9270 | void MessageOptions::SetCachedSize(int size) const { |
| 9271 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 9272 | _cached_size_ = size; |
| 9273 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 9274 | } |
| 9275 | const ::google::protobuf::Descriptor* MessageOptions::descriptor() { |
| 9276 | protobuf_AssignDescriptorsOnce(); |
| 9277 | return MessageOptions_descriptor_; |
| 9278 | } |
| 9279 | |
| 9280 | const MessageOptions& MessageOptions::default_instance() { |
| 9281 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 9282 | return *default_instance_; |
| 9283 | } |
| 9284 | |
| 9285 | MessageOptions* MessageOptions::default_instance_ = NULL; |
| 9286 | |
| 9287 | MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const { |
| 9288 | MessageOptions* n = new MessageOptions; |
| 9289 | if (arena != NULL) { |
| 9290 | arena->Own(n); |
| 9291 | } |
| 9292 | return n; |
| 9293 | } |
| 9294 | |
| 9295 | void MessageOptions::Clear() { |
| 9296 | _extensions_.Clear(); |
| 9297 | #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 9298 | &reinterpret_cast<MessageOptions*>(16)->f) |
| 9299 | |
| 9300 | #define ZR_(first, last) do {\ |
| 9301 | ::memset(&first, 0,\ |
| 9302 | ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 9303 | } while (0) |
| 9304 | |
| 9305 | ZR_(message_set_wire_format_, map_entry_); |
| 9306 | |
| 9307 | #undef ZR_HELPER_ |
| 9308 | #undef ZR_ |
| 9309 | |
| 9310 | uninterpreted_option_.Clear(); |
| 9311 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 9312 | if (_internal_metadata_.have_unknown_fields()) { |
| 9313 | mutable_unknown_fields()->Clear(); |
| 9314 | } |
| 9315 | } |
| 9316 | |
| 9317 | bool MessageOptions::MergePartialFromCodedStream( |
| 9318 | ::google::protobuf::io::CodedInputStream* input) { |
| 9319 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 9320 | ::google::protobuf::uint32 tag; |
| 9321 | // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions) |
| 9322 | for (;;) { |
| 9323 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
| 9324 | tag = p.first; |
| 9325 | if (!p.second) goto handle_unusual; |
| 9326 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9327 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9328 | case 1: { |
| 9329 | if (tag == 8) { |
| 9330 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9331 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9332 | input, &message_set_wire_format_))); |
| 9333 | set_has_message_set_wire_format(); |
| 9334 | } else { |
| 9335 | goto handle_unusual; |
| 9336 | } |
| 9337 | if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor; |
| 9338 | break; |
| 9339 | } |
| 9340 | |
| 9341 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9342 | case 2: { |
| 9343 | if (tag == 16) { |
| 9344 | parse_no_standard_descriptor_accessor: |
| 9345 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9346 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9347 | input, &no_standard_descriptor_accessor_))); |
| 9348 | set_has_no_standard_descriptor_accessor(); |
| 9349 | } else { |
| 9350 | goto handle_unusual; |
| 9351 | } |
| 9352 | if (input->ExpectTag(24)) goto parse_deprecated; |
| 9353 | break; |
| 9354 | } |
| 9355 | |
| 9356 | // optional bool deprecated = 3 [default = false]; |
| 9357 | case 3: { |
| 9358 | if (tag == 24) { |
| 9359 | parse_deprecated: |
| 9360 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9361 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9362 | input, &deprecated_))); |
| 9363 | set_has_deprecated(); |
| 9364 | } else { |
| 9365 | goto handle_unusual; |
| 9366 | } |
| 9367 | if (input->ExpectTag(56)) goto parse_map_entry; |
| 9368 | break; |
| 9369 | } |
| 9370 | |
| 9371 | // optional bool map_entry = 7; |
| 9372 | case 7: { |
| 9373 | if (tag == 56) { |
| 9374 | parse_map_entry: |
| 9375 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9376 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9377 | input, &map_entry_))); |
| 9378 | set_has_map_entry(); |
| 9379 | } else { |
| 9380 | goto handle_unusual; |
| 9381 | } |
| 9382 | if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 9383 | break; |
| 9384 | } |
| 9385 | |
| 9386 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9387 | case 999: { |
| 9388 | if (tag == 7994) { |
| 9389 | parse_uninterpreted_option: |
| 9390 | DO_(input->IncrementRecursionDepth()); |
| 9391 | parse_loop_uninterpreted_option: |
| 9392 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 9393 | input, add_uninterpreted_option())); |
| 9394 | } else { |
| 9395 | goto handle_unusual; |
| 9396 | } |
| 9397 | if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 9398 | input->UnsafeDecrementRecursionDepth(); |
| 9399 | if (input->ExpectAtEnd()) goto success; |
| 9400 | break; |
| 9401 | } |
| 9402 | |
| 9403 | default: { |
| 9404 | handle_unusual: |
| 9405 | if (tag == 0 || |
| 9406 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 9407 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 9408 | goto success; |
| 9409 | } |
| 9410 | if ((8000u <= tag)) { |
| 9411 | DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 9412 | mutable_unknown_fields())); |
| 9413 | continue; |
| 9414 | } |
| 9415 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9416 | input, tag, mutable_unknown_fields())); |
| 9417 | break; |
| 9418 | } |
| 9419 | } |
| 9420 | } |
| 9421 | success: |
| 9422 | // @@protoc_insertion_point(parse_success:google.protobuf.MessageOptions) |
| 9423 | return true; |
| 9424 | failure: |
| 9425 | // @@protoc_insertion_point(parse_failure:google.protobuf.MessageOptions) |
| 9426 | return false; |
| 9427 | #undef DO_ |
| 9428 | } |
| 9429 | |
| 9430 | void MessageOptions::SerializeWithCachedSizes( |
| 9431 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9432 | // @@protoc_insertion_point(serialize_start:google.protobuf.MessageOptions) |
| 9433 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9434 | if (has_message_set_wire_format()) { |
| 9435 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output); |
| 9436 | } |
| 9437 | |
| 9438 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9439 | if (has_no_standard_descriptor_accessor()) { |
| 9440 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output); |
| 9441 | } |
| 9442 | |
| 9443 | // optional bool deprecated = 3 [default = false]; |
| 9444 | if (has_deprecated()) { |
| 9445 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output); |
| 9446 | } |
| 9447 | |
| 9448 | // optional bool map_entry = 7; |
| 9449 | if (has_map_entry()) { |
| 9450 | ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->map_entry(), output); |
| 9451 | } |
| 9452 | |
| 9453 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9454 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 9455 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9456 | 999, this->uninterpreted_option(i), output); |
| 9457 | } |
| 9458 | |
| 9459 | // Extension range [1000, 536870912) |
| 9460 | _extensions_.SerializeWithCachedSizes( |
| 9461 | 1000, 536870912, output); |
| 9462 | |
| 9463 | if (_internal_metadata_.have_unknown_fields()) { |
| 9464 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9465 | unknown_fields(), output); |
| 9466 | } |
| 9467 | // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions) |
| 9468 | } |
| 9469 | |
| 9470 | ::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray( |
| 9471 | ::google::protobuf::uint8* target) const { |
| 9472 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions) |
| 9473 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9474 | if (has_message_set_wire_format()) { |
| 9475 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target); |
| 9476 | } |
| 9477 | |
| 9478 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9479 | if (has_no_standard_descriptor_accessor()) { |
| 9480 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target); |
| 9481 | } |
| 9482 | |
| 9483 | // optional bool deprecated = 3 [default = false]; |
| 9484 | if (has_deprecated()) { |
| 9485 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target); |
| 9486 | } |
| 9487 | |
| 9488 | // optional bool map_entry = 7; |
| 9489 | if (has_map_entry()) { |
| 9490 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->map_entry(), target); |
| 9491 | } |
| 9492 | |
| 9493 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9494 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 9495 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9496 | WriteMessageNoVirtualToArray( |
| 9497 | 999, this->uninterpreted_option(i), target); |
| 9498 | } |
| 9499 | |
| 9500 | // Extension range [1000, 536870912) |
| 9501 | target = _extensions_.SerializeWithCachedSizesToArray( |
| 9502 | 1000, 536870912, target); |
| 9503 | |
| 9504 | if (_internal_metadata_.have_unknown_fields()) { |
| 9505 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9506 | unknown_fields(), target); |
| 9507 | } |
| 9508 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOptions) |
| 9509 | return target; |
| 9510 | } |
| 9511 | |
| 9512 | int MessageOptions::ByteSize() const { |
| 9513 | int total_size = 0; |
| 9514 | |
| 9515 | if (_has_bits_[0 / 32] & 15u) { |
| 9516 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9517 | if (has_message_set_wire_format()) { |
| 9518 | total_size += 1 + 1; |
| 9519 | } |
| 9520 | |
| 9521 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9522 | if (has_no_standard_descriptor_accessor()) { |
| 9523 | total_size += 1 + 1; |
| 9524 | } |
| 9525 | |
| 9526 | // optional bool deprecated = 3 [default = false]; |
| 9527 | if (has_deprecated()) { |
| 9528 | total_size += 1 + 1; |
| 9529 | } |
| 9530 | |
| 9531 | // optional bool map_entry = 7; |
| 9532 | if (has_map_entry()) { |
| 9533 | total_size += 1 + 1; |
| 9534 | } |
| 9535 | |
| 9536 | } |
| 9537 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9538 | total_size += 2 * this->uninterpreted_option_size(); |
| 9539 | for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 9540 | total_size += |
| 9541 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 9542 | this->uninterpreted_option(i)); |
| 9543 | } |
| 9544 | |
| 9545 | total_size += _extensions_.ByteSize(); |
| 9546 | |
| 9547 | if (_internal_metadata_.have_unknown_fields()) { |
| 9548 | total_size += |
| 9549 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9550 | unknown_fields()); |
| 9551 | } |
| 9552 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 9553 | _cached_size_ = total_size; |
| 9554 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 9555 | return total_size; |
| 9556 | } |
| 9557 | |
| 9558 | void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 9559 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 9560 | const MessageOptions* source = |
| 9561 | ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>( |
| 9562 | &from); |
| 9563 | if (source == NULL) { |
| 9564 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9565 | } else { |
| 9566 | MergeFrom(*source); |
| 9567 | } |
| 9568 | } |
| 9569 | |
| 9570 | void MessageOptions::MergeFrom(const MessageOptions& from) { |
| 9571 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 9572 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 9573 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 9574 | if (from.has_message_set_wire_format()) { |
| 9575 | set_message_set_wire_format(from.message_set_wire_format()); |
| 9576 | } |
| 9577 | if (from.has_no_standard_descriptor_accessor()) { |
| 9578 | set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor()); |
| 9579 | } |
| 9580 | if (from.has_deprecated()) { |
| 9581 | set_deprecated(from.deprecated()); |
| 9582 | } |
| 9583 | if (from.has_map_entry()) { |
| 9584 | set_map_entry(from.map_entry()); |
| 9585 | } |
| 9586 | } |
| 9587 | _extensions_.MergeFrom(from._extensions_); |
| 9588 | if (from._internal_metadata_.have_unknown_fields()) { |
| 9589 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 9590 | } |
| 9591 | } |
| 9592 | |
| 9593 | void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 9594 | if (&from == this) return; |
| 9595 | Clear(); |
| 9596 | MergeFrom(from); |
| 9597 | } |
| 9598 | |
| 9599 | void MessageOptions::CopyFrom(const MessageOptions& from) { |
| 9600 | if (&from == this) return; |
| 9601 | Clear(); |
| 9602 | MergeFrom(from); |
| 9603 | } |
| 9604 | |
| 9605 | bool MessageOptions::IsInitialized() const { |
| 9606 | |
| 9607 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 9608 | |
| 9609 | if (!_extensions_.IsInitialized()) return false; return true; |
| 9610 | } |
| 9611 | |
| 9612 | void MessageOptions::Swap(MessageOptions* other) { |
| 9613 | if (other == this) return; |
| 9614 | InternalSwap(other); |
| 9615 | } |
| 9616 | void MessageOptions::InternalSwap(MessageOptions* other) { |
| 9617 | std::swap(message_set_wire_format_, other->message_set_wire_format_); |
| 9618 | std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_); |
| 9619 | std::swap(deprecated_, other->deprecated_); |
| 9620 | std::swap(map_entry_, other->map_entry_); |
| 9621 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 9622 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 9623 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9624 | std::swap(_cached_size_, other->_cached_size_); |
| 9625 | _extensions_.Swap(&other->_extensions_); |
| 9626 | } |
| 9627 | |
| 9628 | ::google::protobuf::Metadata MessageOptions::GetMetadata() const { |
| 9629 | protobuf_AssignDescriptorsOnce(); |
| 9630 | ::google::protobuf::Metadata metadata; |
| 9631 | metadata.descriptor = MessageOptions_descriptor_; |
| 9632 | metadata.reflection = MessageOptions_reflection_; |
| 9633 | return metadata; |
| 9634 | } |
| 9635 | |
| 9636 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 9637 | // MessageOptions |
| 9638 | |
| 9639 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9640 | bool MessageOptions::has_message_set_wire_format() const { |
| 9641 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 9642 | } |
| 9643 | void MessageOptions::set_has_message_set_wire_format() { |
| 9644 | _has_bits_[0] |= 0x00000001u; |
| 9645 | } |
| 9646 | void MessageOptions::clear_has_message_set_wire_format() { |
| 9647 | _has_bits_[0] &= ~0x00000001u; |
| 9648 | } |
| 9649 | void MessageOptions::clear_message_set_wire_format() { |
| 9650 | message_set_wire_format_ = false; |
| 9651 | clear_has_message_set_wire_format(); |
| 9652 | } |
| 9653 | bool MessageOptions::message_set_wire_format() const { |
| 9654 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format) |
| 9655 | return message_set_wire_format_; |
| 9656 | } |
| 9657 | void MessageOptions::set_message_set_wire_format(bool value) { |
| 9658 | set_has_message_set_wire_format(); |
| 9659 | message_set_wire_format_ = value; |
| 9660 | // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format) |
| 9661 | } |
| 9662 | |
| 9663 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9664 | bool MessageOptions::has_no_standard_descriptor_accessor() const { |
| 9665 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 9666 | } |
| 9667 | void MessageOptions::set_has_no_standard_descriptor_accessor() { |
| 9668 | _has_bits_[0] |= 0x00000002u; |
| 9669 | } |
| 9670 | void MessageOptions::clear_has_no_standard_descriptor_accessor() { |
| 9671 | _has_bits_[0] &= ~0x00000002u; |
| 9672 | } |
| 9673 | void MessageOptions::clear_no_standard_descriptor_accessor() { |
| 9674 | no_standard_descriptor_accessor_ = false; |
| 9675 | clear_has_no_standard_descriptor_accessor(); |
| 9676 | } |
| 9677 | bool MessageOptions::no_standard_descriptor_accessor() const { |
| 9678 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor) |
| 9679 | return no_standard_descriptor_accessor_; |
| 9680 | } |
| 9681 | void MessageOptions::set_no_standard_descriptor_accessor(bool value) { |
| 9682 | set_has_no_standard_descriptor_accessor(); |
| 9683 | no_standard_descriptor_accessor_ = value; |
| 9684 | // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor) |
| 9685 | } |
| 9686 | |
| 9687 | // optional bool deprecated = 3 [default = false]; |
| 9688 | bool MessageOptions::has_deprecated() const { |
| 9689 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 9690 | } |
| 9691 | void MessageOptions::set_has_deprecated() { |
| 9692 | _has_bits_[0] |= 0x00000004u; |
| 9693 | } |
| 9694 | void MessageOptions::clear_has_deprecated() { |
| 9695 | _has_bits_[0] &= ~0x00000004u; |
| 9696 | } |
| 9697 | void MessageOptions::clear_deprecated() { |
| 9698 | deprecated_ = false; |
| 9699 | clear_has_deprecated(); |
| 9700 | } |
| 9701 | bool MessageOptions::deprecated() const { |
| 9702 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated) |
| 9703 | return deprecated_; |
| 9704 | } |
| 9705 | void MessageOptions::set_deprecated(bool value) { |
| 9706 | set_has_deprecated(); |
| 9707 | deprecated_ = value; |
| 9708 | // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated) |
| 9709 | } |
| 9710 | |
| 9711 | // optional bool map_entry = 7; |
| 9712 | bool MessageOptions::has_map_entry() const { |
| 9713 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 9714 | } |
| 9715 | void MessageOptions::set_has_map_entry() { |
| 9716 | _has_bits_[0] |= 0x00000008u; |
| 9717 | } |
| 9718 | void MessageOptions::clear_has_map_entry() { |
| 9719 | _has_bits_[0] &= ~0x00000008u; |
| 9720 | } |
| 9721 | void MessageOptions::clear_map_entry() { |
| 9722 | map_entry_ = false; |
| 9723 | clear_has_map_entry(); |
| 9724 | } |
| 9725 | bool MessageOptions::map_entry() const { |
| 9726 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry) |
| 9727 | return map_entry_; |
| 9728 | } |
| 9729 | void MessageOptions::set_map_entry(bool value) { |
| 9730 | set_has_map_entry(); |
| 9731 | map_entry_ = value; |
| 9732 | // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry) |
| 9733 | } |
| 9734 | |
| 9735 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9736 | int MessageOptions::uninterpreted_option_size() const { |
| 9737 | return uninterpreted_option_.size(); |
| 9738 | } |
| 9739 | void MessageOptions::clear_uninterpreted_option() { |
| 9740 | uninterpreted_option_.Clear(); |
| 9741 | } |
| 9742 | const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const { |
| 9743 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option) |
| 9744 | return uninterpreted_option_.Get(index); |
| 9745 | } |
| 9746 | ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) { |
| 9747 | // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option) |
| 9748 | return uninterpreted_option_.Mutable(index); |
| 9749 | } |
| 9750 | ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() { |
| 9751 | // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option) |
| 9752 | return uninterpreted_option_.Add(); |
| 9753 | } |
| 9754 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 9755 | MessageOptions::mutable_uninterpreted_option() { |
| 9756 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option) |
| 9757 | return &uninterpreted_option_; |
| 9758 | } |
| 9759 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 9760 | MessageOptions::uninterpreted_option() const { |
| 9761 | // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option) |
| 9762 | return uninterpreted_option_; |
| 9763 | } |
| 9764 | |
| 9765 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 9766 | |
| 9767 | // =================================================================== |
| 9768 | |
| 9769 | const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() { |
| 9770 | protobuf_AssignDescriptorsOnce(); |
| 9771 | return FieldOptions_CType_descriptor_; |
| 9772 | } |
| 9773 | bool FieldOptions_CType_IsValid(int value) { |
| 9774 | switch(value) { |
| 9775 | case 0: |
| 9776 | case 1: |
| 9777 | case 2: |
| 9778 | return true; |
| 9779 | default: |
| 9780 | return false; |
| 9781 | } |
| 9782 | } |
| 9783 | |
| 9784 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9785 | const FieldOptions_CType FieldOptions::STRING; |
| 9786 | const FieldOptions_CType FieldOptions::CORD; |
| 9787 | const FieldOptions_CType FieldOptions::STRING_PIECE; |
| 9788 | const FieldOptions_CType FieldOptions::CType_MIN; |
| 9789 | const FieldOptions_CType FieldOptions::CType_MAX; |
| 9790 | const int FieldOptions::CType_ARRAYSIZE; |
| 9791 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9792 | const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor() { |
| 9793 | protobuf_AssignDescriptorsOnce(); |
| 9794 | return FieldOptions_JSType_descriptor_; |
| 9795 | } |
| 9796 | bool FieldOptions_JSType_IsValid(int value) { |
| 9797 | switch(value) { |
| 9798 | case 0: |
| 9799 | case 1: |
| 9800 | case 2: |
| 9801 | return true; |
| 9802 | default: |
| 9803 | return false; |
| 9804 | } |
| 9805 | } |
| 9806 | |
| 9807 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9808 | const FieldOptions_JSType FieldOptions::JS_NORMAL; |
| 9809 | const FieldOptions_JSType FieldOptions::JS_STRING; |
| 9810 | const FieldOptions_JSType FieldOptions::JS_NUMBER; |
| 9811 | const FieldOptions_JSType FieldOptions::JSType_MIN; |
| 9812 | const FieldOptions_JSType FieldOptions::JSType_MAX; |
| 9813 | const int FieldOptions::JSType_ARRAYSIZE; |
| 9814 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9815 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9816 | const int FieldOptions::kCtypeFieldNumber; |
| 9817 | const int FieldOptions::kPackedFieldNumber; |
| 9818 | const int FieldOptions::kJstypeFieldNumber; |
| 9819 | const int FieldOptions::kLazyFieldNumber; |
| 9820 | const int FieldOptions::kDeprecatedFieldNumber; |
| 9821 | const int FieldOptions::kWeakFieldNumber; |
| 9822 | const int FieldOptions::kUninterpretedOptionFieldNumber; |
| 9823 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9824 | |
| 9825 | FieldOptions::FieldOptions() |
| 9826 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 9827 | SharedCtor(); |
| 9828 | // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions) |
| 9829 | } |
| 9830 | |
| 9831 | void FieldOptions::InitAsDefaultInstance() { |
| 9832 | } |
| 9833 | |
| 9834 | FieldOptions::FieldOptions(const FieldOptions& from) |
| 9835 | : ::google::protobuf::Message(), |
| 9836 | _internal_metadata_(NULL) { |
| 9837 | SharedCtor(); |
| 9838 | MergeFrom(from); |
| 9839 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) |
| 9840 | } |
| 9841 | |
| 9842 | void FieldOptions::SharedCtor() { |
| 9843 | _cached_size_ = 0; |
| 9844 | ctype_ = 0; |
| 9845 | packed_ = false; |
| 9846 | jstype_ = 0; |
| 9847 | lazy_ = false; |
| 9848 | deprecated_ = false; |
| 9849 | weak_ = false; |
| 9850 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 9851 | } |
| 9852 | |
| 9853 | FieldOptions::~FieldOptions() { |
| 9854 | // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions) |
| 9855 | SharedDtor(); |
| 9856 | } |
| 9857 | |
| 9858 | void FieldOptions::SharedDtor() { |
| 9859 | if (this != default_instance_) { |
| 9860 | } |
| 9861 | } |
| 9862 | |
| 9863 | void FieldOptions::SetCachedSize(int size) const { |
| 9864 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 9865 | _cached_size_ = size; |
| 9866 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 9867 | } |
| 9868 | const ::google::protobuf::Descriptor* FieldOptions::descriptor() { |
| 9869 | protobuf_AssignDescriptorsOnce(); |
| 9870 | return FieldOptions_descriptor_; |
| 9871 | } |
| 9872 | |
| 9873 | const FieldOptions& FieldOptions::default_instance() { |
| 9874 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 9875 | return *default_instance_; |
| 9876 | } |
| 9877 | |
| 9878 | FieldOptions* FieldOptions::default_instance_ = NULL; |
| 9879 | |
| 9880 | FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const { |
| 9881 | FieldOptions* n = new FieldOptions; |
| 9882 | if (arena != NULL) { |
| 9883 | arena->Own(n); |
| 9884 | } |
| 9885 | return n; |
| 9886 | } |
| 9887 | |
| 9888 | void FieldOptions::Clear() { |
| 9889 | _extensions_.Clear(); |
| 9890 | #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 9891 | &reinterpret_cast<FieldOptions*>(16)->f) |
| 9892 | |
| 9893 | #define ZR_(first, last) do {\ |
| 9894 | ::memset(&first, 0,\ |
| 9895 | ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 9896 | } while (0) |
| 9897 | |
| 9898 | if (_has_bits_[0 / 32] & 63u) { |
| 9899 | ZR_(ctype_, jstype_); |
| 9900 | ZR_(packed_, weak_); |
| 9901 | } |
| 9902 | |
| 9903 | #undef ZR_HELPER_ |
| 9904 | #undef ZR_ |
| 9905 | |
| 9906 | uninterpreted_option_.Clear(); |
| 9907 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 9908 | if (_internal_metadata_.have_unknown_fields()) { |
| 9909 | mutable_unknown_fields()->Clear(); |
| 9910 | } |
| 9911 | } |
| 9912 | |
| 9913 | bool FieldOptions::MergePartialFromCodedStream( |
| 9914 | ::google::protobuf::io::CodedInputStream* input) { |
| 9915 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 9916 | ::google::protobuf::uint32 tag; |
| 9917 | // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions) |
| 9918 | for (;;) { |
| 9919 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
| 9920 | tag = p.first; |
| 9921 | if (!p.second) goto handle_unusual; |
| 9922 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9923 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 9924 | case 1: { |
| 9925 | if (tag == 8) { |
| 9926 | int value; |
| 9927 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9928 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9929 | input, &value))); |
| 9930 | if (::google::protobuf::FieldOptions_CType_IsValid(value)) { |
| 9931 | set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value)); |
| 9932 | } else { |
| 9933 | mutable_unknown_fields()->AddVarint(1, value); |
| 9934 | } |
| 9935 | } else { |
| 9936 | goto handle_unusual; |
| 9937 | } |
| 9938 | if (input->ExpectTag(16)) goto parse_packed; |
| 9939 | break; |
| 9940 | } |
| 9941 | |
| 9942 | // optional bool packed = 2; |
| 9943 | case 2: { |
| 9944 | if (tag == 16) { |
| 9945 | parse_packed: |
| 9946 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9947 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9948 | input, &packed_))); |
| 9949 | set_has_packed(); |
| 9950 | } else { |
| 9951 | goto handle_unusual; |
| 9952 | } |
| 9953 | if (input->ExpectTag(24)) goto parse_deprecated; |
| 9954 | break; |
| 9955 | } |
| 9956 | |
| 9957 | // optional bool deprecated = 3 [default = false]; |
| 9958 | case 3: { |
| 9959 | if (tag == 24) { |
| 9960 | parse_deprecated: |
| 9961 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9962 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9963 | input, &deprecated_))); |
| 9964 | set_has_deprecated(); |
| 9965 | } else { |
| 9966 | goto handle_unusual; |
| 9967 | } |
| 9968 | if (input->ExpectTag(40)) goto parse_lazy; |
| 9969 | break; |
| 9970 | } |
| 9971 | |
| 9972 | // optional bool lazy = 5 [default = false]; |
| 9973 | case 5: { |
| 9974 | if (tag == 40) { |
| 9975 | parse_lazy: |
| 9976 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9977 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9978 | input, &lazy_))); |
| 9979 | set_has_lazy(); |
| 9980 | } else { |
| 9981 | goto handle_unusual; |
| 9982 | } |
| 9983 | if (input->ExpectTag(48)) goto parse_jstype; |
| 9984 | break; |
| 9985 | } |
| 9986 | |
| 9987 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 9988 | case 6: { |
| 9989 | if (tag == 48) { |
| 9990 | parse_jstype: |
| 9991 | int value; |
| 9992 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9993 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9994 | input, &value))); |
| 9995 | if (::google::protobuf::FieldOptions_JSType_IsValid(value)) { |
| 9996 | set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(value)); |
| 9997 | } else { |
| 9998 | mutable_unknown_fields()->AddVarint(6, value); |
| 9999 | } |
| 10000 | } else { |
| 10001 | goto handle_unusual; |
| 10002 | } |
| 10003 | if (input->ExpectTag(80)) goto parse_weak; |
| 10004 | break; |
| 10005 | } |
| 10006 | |
| 10007 | // optional bool weak = 10 [default = false]; |
| 10008 | case 10: { |
| 10009 | if (tag == 80) { |
| 10010 | parse_weak: |
| 10011 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10012 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 10013 | input, &weak_))); |
| 10014 | set_has_weak(); |
| 10015 | } else { |
| 10016 | goto handle_unusual; |
| 10017 | } |
| 10018 | if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 10019 | break; |
| 10020 | } |
| 10021 | |
| 10022 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10023 | case 999: { |
| 10024 | if (tag == 7994) { |
| 10025 | parse_uninterpreted_option: |
| 10026 | DO_(input->IncrementRecursionDepth()); |
| 10027 | parse_loop_uninterpreted_option: |
| 10028 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 10029 | input, add_uninterpreted_option())); |
| 10030 | } else { |
| 10031 | goto handle_unusual; |
| 10032 | } |
| 10033 | if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 10034 | input->UnsafeDecrementRecursionDepth(); |
| 10035 | if (input->ExpectAtEnd()) goto success; |
| 10036 | break; |
| 10037 | } |
| 10038 | |
| 10039 | default: { |
| 10040 | handle_unusual: |
| 10041 | if (tag == 0 || |
| 10042 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 10043 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 10044 | goto success; |
| 10045 | } |
| 10046 | if ((8000u <= tag)) { |
| 10047 | DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 10048 | mutable_unknown_fields())); |
| 10049 | continue; |
| 10050 | } |
| 10051 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10052 | input, tag, mutable_unknown_fields())); |
| 10053 | break; |
| 10054 | } |
| 10055 | } |
| 10056 | } |
| 10057 | success: |
| 10058 | // @@protoc_insertion_point(parse_success:google.protobuf.FieldOptions) |
| 10059 | return true; |
| 10060 | failure: |
| 10061 | // @@protoc_insertion_point(parse_failure:google.protobuf.FieldOptions) |
| 10062 | return false; |
| 10063 | #undef DO_ |
| 10064 | } |
| 10065 | |
| 10066 | void FieldOptions::SerializeWithCachedSizes( |
| 10067 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10068 | // @@protoc_insertion_point(serialize_start:google.protobuf.FieldOptions) |
| 10069 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10070 | if (has_ctype()) { |
| 10071 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 10072 | 1, this->ctype(), output); |
| 10073 | } |
| 10074 | |
| 10075 | // optional bool packed = 2; |
| 10076 | if (has_packed()) { |
| 10077 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output); |
| 10078 | } |
| 10079 | |
| 10080 | // optional bool deprecated = 3 [default = false]; |
| 10081 | if (has_deprecated()) { |
| 10082 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output); |
| 10083 | } |
| 10084 | |
| 10085 | // optional bool lazy = 5 [default = false]; |
| 10086 | if (has_lazy()) { |
| 10087 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), output); |
| 10088 | } |
| 10089 | |
| 10090 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 10091 | if (has_jstype()) { |
| 10092 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 10093 | 6, this->jstype(), output); |
| 10094 | } |
| 10095 | |
| 10096 | // optional bool weak = 10 [default = false]; |
| 10097 | if (has_weak()) { |
| 10098 | ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), output); |
| 10099 | } |
| 10100 | |
| 10101 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10102 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10103 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10104 | 999, this->uninterpreted_option(i), output); |
| 10105 | } |
| 10106 | |
| 10107 | // Extension range [1000, 536870912) |
| 10108 | _extensions_.SerializeWithCachedSizes( |
| 10109 | 1000, 536870912, output); |
| 10110 | |
| 10111 | if (_internal_metadata_.have_unknown_fields()) { |
| 10112 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10113 | unknown_fields(), output); |
| 10114 | } |
| 10115 | // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions) |
| 10116 | } |
| 10117 | |
| 10118 | ::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray( |
| 10119 | ::google::protobuf::uint8* target) const { |
| 10120 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions) |
| 10121 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10122 | if (has_ctype()) { |
| 10123 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 10124 | 1, this->ctype(), target); |
| 10125 | } |
| 10126 | |
| 10127 | // optional bool packed = 2; |
| 10128 | if (has_packed()) { |
| 10129 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target); |
| 10130 | } |
| 10131 | |
| 10132 | // optional bool deprecated = 3 [default = false]; |
| 10133 | if (has_deprecated()) { |
| 10134 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target); |
| 10135 | } |
| 10136 | |
| 10137 | // optional bool lazy = 5 [default = false]; |
| 10138 | if (has_lazy()) { |
| 10139 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target); |
| 10140 | } |
| 10141 | |
| 10142 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 10143 | if (has_jstype()) { |
| 10144 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 10145 | 6, this->jstype(), target); |
| 10146 | } |
| 10147 | |
| 10148 | // optional bool weak = 10 [default = false]; |
| 10149 | if (has_weak()) { |
| 10150 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target); |
| 10151 | } |
| 10152 | |
| 10153 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10154 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10155 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10156 | WriteMessageNoVirtualToArray( |
| 10157 | 999, this->uninterpreted_option(i), target); |
| 10158 | } |
| 10159 | |
| 10160 | // Extension range [1000, 536870912) |
| 10161 | target = _extensions_.SerializeWithCachedSizesToArray( |
| 10162 | 1000, 536870912, target); |
| 10163 | |
| 10164 | if (_internal_metadata_.have_unknown_fields()) { |
| 10165 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10166 | unknown_fields(), target); |
| 10167 | } |
| 10168 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions) |
| 10169 | return target; |
| 10170 | } |
| 10171 | |
| 10172 | int FieldOptions::ByteSize() const { |
| 10173 | int total_size = 0; |
| 10174 | |
| 10175 | if (_has_bits_[0 / 32] & 63u) { |
| 10176 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10177 | if (has_ctype()) { |
| 10178 | total_size += 1 + |
| 10179 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); |
| 10180 | } |
| 10181 | |
| 10182 | // optional bool packed = 2; |
| 10183 | if (has_packed()) { |
| 10184 | total_size += 1 + 1; |
| 10185 | } |
| 10186 | |
| 10187 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 10188 | if (has_jstype()) { |
| 10189 | total_size += 1 + |
| 10190 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype()); |
| 10191 | } |
| 10192 | |
| 10193 | // optional bool lazy = 5 [default = false]; |
| 10194 | if (has_lazy()) { |
| 10195 | total_size += 1 + 1; |
| 10196 | } |
| 10197 | |
| 10198 | // optional bool deprecated = 3 [default = false]; |
| 10199 | if (has_deprecated()) { |
| 10200 | total_size += 1 + 1; |
| 10201 | } |
| 10202 | |
| 10203 | // optional bool weak = 10 [default = false]; |
| 10204 | if (has_weak()) { |
| 10205 | total_size += 1 + 1; |
| 10206 | } |
| 10207 | |
| 10208 | } |
| 10209 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10210 | total_size += 2 * this->uninterpreted_option_size(); |
| 10211 | for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 10212 | total_size += |
| 10213 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 10214 | this->uninterpreted_option(i)); |
| 10215 | } |
| 10216 | |
| 10217 | total_size += _extensions_.ByteSize(); |
| 10218 | |
| 10219 | if (_internal_metadata_.have_unknown_fields()) { |
| 10220 | total_size += |
| 10221 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10222 | unknown_fields()); |
| 10223 | } |
| 10224 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10225 | _cached_size_ = total_size; |
| 10226 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10227 | return total_size; |
| 10228 | } |
| 10229 | |
| 10230 | void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 10231 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 10232 | const FieldOptions* source = |
| 10233 | ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>( |
| 10234 | &from); |
| 10235 | if (source == NULL) { |
| 10236 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10237 | } else { |
| 10238 | MergeFrom(*source); |
| 10239 | } |
| 10240 | } |
| 10241 | |
| 10242 | void FieldOptions::MergeFrom(const FieldOptions& from) { |
| 10243 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 10244 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 10245 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 10246 | if (from.has_ctype()) { |
| 10247 | set_ctype(from.ctype()); |
| 10248 | } |
| 10249 | if (from.has_packed()) { |
| 10250 | set_packed(from.packed()); |
| 10251 | } |
| 10252 | if (from.has_jstype()) { |
| 10253 | set_jstype(from.jstype()); |
| 10254 | } |
| 10255 | if (from.has_lazy()) { |
| 10256 | set_lazy(from.lazy()); |
| 10257 | } |
| 10258 | if (from.has_deprecated()) { |
| 10259 | set_deprecated(from.deprecated()); |
| 10260 | } |
| 10261 | if (from.has_weak()) { |
| 10262 | set_weak(from.weak()); |
| 10263 | } |
| 10264 | } |
| 10265 | _extensions_.MergeFrom(from._extensions_); |
| 10266 | if (from._internal_metadata_.have_unknown_fields()) { |
| 10267 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 10268 | } |
| 10269 | } |
| 10270 | |
| 10271 | void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 10272 | if (&from == this) return; |
| 10273 | Clear(); |
| 10274 | MergeFrom(from); |
| 10275 | } |
| 10276 | |
| 10277 | void FieldOptions::CopyFrom(const FieldOptions& from) { |
| 10278 | if (&from == this) return; |
| 10279 | Clear(); |
| 10280 | MergeFrom(from); |
| 10281 | } |
| 10282 | |
| 10283 | bool FieldOptions::IsInitialized() const { |
| 10284 | |
| 10285 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 10286 | |
| 10287 | if (!_extensions_.IsInitialized()) return false; return true; |
| 10288 | } |
| 10289 | |
| 10290 | void FieldOptions::Swap(FieldOptions* other) { |
| 10291 | if (other == this) return; |
| 10292 | InternalSwap(other); |
| 10293 | } |
| 10294 | void FieldOptions::InternalSwap(FieldOptions* other) { |
| 10295 | std::swap(ctype_, other->ctype_); |
| 10296 | std::swap(packed_, other->packed_); |
| 10297 | std::swap(jstype_, other->jstype_); |
| 10298 | std::swap(lazy_, other->lazy_); |
| 10299 | std::swap(deprecated_, other->deprecated_); |
| 10300 | std::swap(weak_, other->weak_); |
| 10301 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 10302 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 10303 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10304 | std::swap(_cached_size_, other->_cached_size_); |
| 10305 | _extensions_.Swap(&other->_extensions_); |
| 10306 | } |
| 10307 | |
| 10308 | ::google::protobuf::Metadata FieldOptions::GetMetadata() const { |
| 10309 | protobuf_AssignDescriptorsOnce(); |
| 10310 | ::google::protobuf::Metadata metadata; |
| 10311 | metadata.descriptor = FieldOptions_descriptor_; |
| 10312 | metadata.reflection = FieldOptions_reflection_; |
| 10313 | return metadata; |
| 10314 | } |
| 10315 | |
| 10316 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10317 | // FieldOptions |
| 10318 | |
| 10319 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10320 | bool FieldOptions::has_ctype() const { |
| 10321 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 10322 | } |
| 10323 | void FieldOptions::set_has_ctype() { |
| 10324 | _has_bits_[0] |= 0x00000001u; |
| 10325 | } |
| 10326 | void FieldOptions::clear_has_ctype() { |
| 10327 | _has_bits_[0] &= ~0x00000001u; |
| 10328 | } |
| 10329 | void FieldOptions::clear_ctype() { |
| 10330 | ctype_ = 0; |
| 10331 | clear_has_ctype(); |
| 10332 | } |
| 10333 | ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { |
| 10334 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype) |
| 10335 | return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); |
| 10336 | } |
| 10337 | void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { |
| 10338 | assert(::google::protobuf::FieldOptions_CType_IsValid(value)); |
| 10339 | set_has_ctype(); |
| 10340 | ctype_ = value; |
| 10341 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype) |
| 10342 | } |
| 10343 | |
| 10344 | // optional bool packed = 2; |
| 10345 | bool FieldOptions::has_packed() const { |
| 10346 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 10347 | } |
| 10348 | void FieldOptions::set_has_packed() { |
| 10349 | _has_bits_[0] |= 0x00000002u; |
| 10350 | } |
| 10351 | void FieldOptions::clear_has_packed() { |
| 10352 | _has_bits_[0] &= ~0x00000002u; |
| 10353 | } |
| 10354 | void FieldOptions::clear_packed() { |
| 10355 | packed_ = false; |
| 10356 | clear_has_packed(); |
| 10357 | } |
| 10358 | bool FieldOptions::packed() const { |
| 10359 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed) |
| 10360 | return packed_; |
| 10361 | } |
| 10362 | void FieldOptions::set_packed(bool value) { |
| 10363 | set_has_packed(); |
| 10364 | packed_ = value; |
| 10365 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed) |
| 10366 | } |
| 10367 | |
| 10368 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 10369 | bool FieldOptions::has_jstype() const { |
| 10370 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 10371 | } |
| 10372 | void FieldOptions::set_has_jstype() { |
| 10373 | _has_bits_[0] |= 0x00000004u; |
| 10374 | } |
| 10375 | void FieldOptions::clear_has_jstype() { |
| 10376 | _has_bits_[0] &= ~0x00000004u; |
| 10377 | } |
| 10378 | void FieldOptions::clear_jstype() { |
| 10379 | jstype_ = 0; |
| 10380 | clear_has_jstype(); |
| 10381 | } |
| 10382 | ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { |
| 10383 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype) |
| 10384 | return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_); |
| 10385 | } |
| 10386 | void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { |
| 10387 | assert(::google::protobuf::FieldOptions_JSType_IsValid(value)); |
| 10388 | set_has_jstype(); |
| 10389 | jstype_ = value; |
| 10390 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype) |
| 10391 | } |
| 10392 | |
| 10393 | // optional bool lazy = 5 [default = false]; |
| 10394 | bool FieldOptions::has_lazy() const { |
| 10395 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 10396 | } |
| 10397 | void FieldOptions::set_has_lazy() { |
| 10398 | _has_bits_[0] |= 0x00000008u; |
| 10399 | } |
| 10400 | void FieldOptions::clear_has_lazy() { |
| 10401 | _has_bits_[0] &= ~0x00000008u; |
| 10402 | } |
| 10403 | void FieldOptions::clear_lazy() { |
| 10404 | lazy_ = false; |
| 10405 | clear_has_lazy(); |
| 10406 | } |
| 10407 | bool FieldOptions::lazy() const { |
| 10408 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy) |
| 10409 | return lazy_; |
| 10410 | } |
| 10411 | void FieldOptions::set_lazy(bool value) { |
| 10412 | set_has_lazy(); |
| 10413 | lazy_ = value; |
| 10414 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy) |
| 10415 | } |
| 10416 | |
| 10417 | // optional bool deprecated = 3 [default = false]; |
| 10418 | bool FieldOptions::has_deprecated() const { |
| 10419 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 10420 | } |
| 10421 | void FieldOptions::set_has_deprecated() { |
| 10422 | _has_bits_[0] |= 0x00000010u; |
| 10423 | } |
| 10424 | void FieldOptions::clear_has_deprecated() { |
| 10425 | _has_bits_[0] &= ~0x00000010u; |
| 10426 | } |
| 10427 | void FieldOptions::clear_deprecated() { |
| 10428 | deprecated_ = false; |
| 10429 | clear_has_deprecated(); |
| 10430 | } |
| 10431 | bool FieldOptions::deprecated() const { |
| 10432 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated) |
| 10433 | return deprecated_; |
| 10434 | } |
| 10435 | void FieldOptions::set_deprecated(bool value) { |
| 10436 | set_has_deprecated(); |
| 10437 | deprecated_ = value; |
| 10438 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated) |
| 10439 | } |
| 10440 | |
| 10441 | // optional bool weak = 10 [default = false]; |
| 10442 | bool FieldOptions::has_weak() const { |
| 10443 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 10444 | } |
| 10445 | void FieldOptions::set_has_weak() { |
| 10446 | _has_bits_[0] |= 0x00000020u; |
| 10447 | } |
| 10448 | void FieldOptions::clear_has_weak() { |
| 10449 | _has_bits_[0] &= ~0x00000020u; |
| 10450 | } |
| 10451 | void FieldOptions::clear_weak() { |
| 10452 | weak_ = false; |
| 10453 | clear_has_weak(); |
| 10454 | } |
| 10455 | bool FieldOptions::weak() const { |
| 10456 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak) |
| 10457 | return weak_; |
| 10458 | } |
| 10459 | void FieldOptions::set_weak(bool value) { |
| 10460 | set_has_weak(); |
| 10461 | weak_ = value; |
| 10462 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak) |
| 10463 | } |
| 10464 | |
| 10465 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10466 | int FieldOptions::uninterpreted_option_size() const { |
| 10467 | return uninterpreted_option_.size(); |
| 10468 | } |
| 10469 | void FieldOptions::clear_uninterpreted_option() { |
| 10470 | uninterpreted_option_.Clear(); |
| 10471 | } |
| 10472 | const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const { |
| 10473 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option) |
| 10474 | return uninterpreted_option_.Get(index); |
| 10475 | } |
| 10476 | ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) { |
| 10477 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option) |
| 10478 | return uninterpreted_option_.Mutable(index); |
| 10479 | } |
| 10480 | ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() { |
| 10481 | // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option) |
| 10482 | return uninterpreted_option_.Add(); |
| 10483 | } |
| 10484 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 10485 | FieldOptions::mutable_uninterpreted_option() { |
| 10486 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option) |
| 10487 | return &uninterpreted_option_; |
| 10488 | } |
| 10489 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 10490 | FieldOptions::uninterpreted_option() const { |
| 10491 | // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option) |
| 10492 | return uninterpreted_option_; |
| 10493 | } |
| 10494 | |
| 10495 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10496 | |
| 10497 | // =================================================================== |
| 10498 | |
| 10499 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10500 | const int EnumOptions::kAllowAliasFieldNumber; |
| 10501 | const int EnumOptions::kDeprecatedFieldNumber; |
| 10502 | const int EnumOptions::kUninterpretedOptionFieldNumber; |
| 10503 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10504 | |
| 10505 | EnumOptions::EnumOptions() |
| 10506 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 10507 | SharedCtor(); |
| 10508 | // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) |
| 10509 | } |
| 10510 | |
| 10511 | void EnumOptions::InitAsDefaultInstance() { |
| 10512 | } |
| 10513 | |
| 10514 | EnumOptions::EnumOptions(const EnumOptions& from) |
| 10515 | : ::google::protobuf::Message(), |
| 10516 | _internal_metadata_(NULL) { |
| 10517 | SharedCtor(); |
| 10518 | MergeFrom(from); |
| 10519 | // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions) |
| 10520 | } |
| 10521 | |
| 10522 | void EnumOptions::SharedCtor() { |
| 10523 | _cached_size_ = 0; |
| 10524 | allow_alias_ = false; |
| 10525 | deprecated_ = false; |
| 10526 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 10527 | } |
| 10528 | |
| 10529 | EnumOptions::~EnumOptions() { |
| 10530 | // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions) |
| 10531 | SharedDtor(); |
| 10532 | } |
| 10533 | |
| 10534 | void EnumOptions::SharedDtor() { |
| 10535 | if (this != default_instance_) { |
| 10536 | } |
| 10537 | } |
| 10538 | |
| 10539 | void EnumOptions::SetCachedSize(int size) const { |
| 10540 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10541 | _cached_size_ = size; |
| 10542 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10543 | } |
| 10544 | const ::google::protobuf::Descriptor* EnumOptions::descriptor() { |
| 10545 | protobuf_AssignDescriptorsOnce(); |
| 10546 | return EnumOptions_descriptor_; |
| 10547 | } |
| 10548 | |
| 10549 | const EnumOptions& EnumOptions::default_instance() { |
| 10550 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 10551 | return *default_instance_; |
| 10552 | } |
| 10553 | |
| 10554 | EnumOptions* EnumOptions::default_instance_ = NULL; |
| 10555 | |
| 10556 | EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const { |
| 10557 | EnumOptions* n = new EnumOptions; |
| 10558 | if (arena != NULL) { |
| 10559 | arena->Own(n); |
| 10560 | } |
| 10561 | return n; |
| 10562 | } |
| 10563 | |
| 10564 | void EnumOptions::Clear() { |
| 10565 | _extensions_.Clear(); |
| 10566 | #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 10567 | &reinterpret_cast<EnumOptions*>(16)->f) |
| 10568 | |
| 10569 | #define ZR_(first, last) do {\ |
| 10570 | ::memset(&first, 0,\ |
| 10571 | ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 10572 | } while (0) |
| 10573 | |
| 10574 | ZR_(allow_alias_, deprecated_); |
| 10575 | |
| 10576 | #undef ZR_HELPER_ |
| 10577 | #undef ZR_ |
| 10578 | |
| 10579 | uninterpreted_option_.Clear(); |
| 10580 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 10581 | if (_internal_metadata_.have_unknown_fields()) { |
| 10582 | mutable_unknown_fields()->Clear(); |
| 10583 | } |
| 10584 | } |
| 10585 | |
| 10586 | bool EnumOptions::MergePartialFromCodedStream( |
| 10587 | ::google::protobuf::io::CodedInputStream* input) { |
| 10588 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 10589 | ::google::protobuf::uint32 tag; |
| 10590 | // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) |
| 10591 | for (;;) { |
| 10592 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
| 10593 | tag = p.first; |
| 10594 | if (!p.second) goto handle_unusual; |
| 10595 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10596 | // optional bool allow_alias = 2; |
| 10597 | case 2: { |
| 10598 | if (tag == 16) { |
| 10599 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10600 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 10601 | input, &allow_alias_))); |
| 10602 | set_has_allow_alias(); |
| 10603 | } else { |
| 10604 | goto handle_unusual; |
| 10605 | } |
| 10606 | if (input->ExpectTag(24)) goto parse_deprecated; |
| 10607 | break; |
| 10608 | } |
| 10609 | |
| 10610 | // optional bool deprecated = 3 [default = false]; |
| 10611 | case 3: { |
| 10612 | if (tag == 24) { |
| 10613 | parse_deprecated: |
| 10614 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10615 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 10616 | input, &deprecated_))); |
| 10617 | set_has_deprecated(); |
| 10618 | } else { |
| 10619 | goto handle_unusual; |
| 10620 | } |
| 10621 | if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 10622 | break; |
| 10623 | } |
| 10624 | |
| 10625 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10626 | case 999: { |
| 10627 | if (tag == 7994) { |
| 10628 | parse_uninterpreted_option: |
| 10629 | DO_(input->IncrementRecursionDepth()); |
| 10630 | parse_loop_uninterpreted_option: |
| 10631 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 10632 | input, add_uninterpreted_option())); |
| 10633 | } else { |
| 10634 | goto handle_unusual; |
| 10635 | } |
| 10636 | if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 10637 | input->UnsafeDecrementRecursionDepth(); |
| 10638 | if (input->ExpectAtEnd()) goto success; |
| 10639 | break; |
| 10640 | } |
| 10641 | |
| 10642 | default: { |
| 10643 | handle_unusual: |
| 10644 | if (tag == 0 || |
| 10645 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 10646 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 10647 | goto success; |
| 10648 | } |
| 10649 | if ((8000u <= tag)) { |
| 10650 | DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 10651 | mutable_unknown_fields())); |
| 10652 | continue; |
| 10653 | } |
| 10654 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10655 | input, tag, mutable_unknown_fields())); |
| 10656 | break; |
| 10657 | } |
| 10658 | } |
| 10659 | } |
| 10660 | success: |
| 10661 | // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions) |
| 10662 | return true; |
| 10663 | failure: |
| 10664 | // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions) |
| 10665 | return false; |
| 10666 | #undef DO_ |
| 10667 | } |
| 10668 | |
| 10669 | void EnumOptions::SerializeWithCachedSizes( |
| 10670 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10671 | // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions) |
| 10672 | // optional bool allow_alias = 2; |
| 10673 | if (has_allow_alias()) { |
| 10674 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output); |
| 10675 | } |
| 10676 | |
| 10677 | // optional bool deprecated = 3 [default = false]; |
| 10678 | if (has_deprecated()) { |
| 10679 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output); |
| 10680 | } |
| 10681 | |
| 10682 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10683 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10684 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10685 | 999, this->uninterpreted_option(i), output); |
| 10686 | } |
| 10687 | |
| 10688 | // Extension range [1000, 536870912) |
| 10689 | _extensions_.SerializeWithCachedSizes( |
| 10690 | 1000, 536870912, output); |
| 10691 | |
| 10692 | if (_internal_metadata_.have_unknown_fields()) { |
| 10693 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10694 | unknown_fields(), output); |
| 10695 | } |
| 10696 | // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions) |
| 10697 | } |
| 10698 | |
| 10699 | ::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray( |
| 10700 | ::google::protobuf::uint8* target) const { |
| 10701 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions) |
| 10702 | // optional bool allow_alias = 2; |
| 10703 | if (has_allow_alias()) { |
| 10704 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target); |
| 10705 | } |
| 10706 | |
| 10707 | // optional bool deprecated = 3 [default = false]; |
| 10708 | if (has_deprecated()) { |
| 10709 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target); |
| 10710 | } |
| 10711 | |
| 10712 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10713 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10714 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10715 | WriteMessageNoVirtualToArray( |
| 10716 | 999, this->uninterpreted_option(i), target); |
| 10717 | } |
| 10718 | |
| 10719 | // Extension range [1000, 536870912) |
| 10720 | target = _extensions_.SerializeWithCachedSizesToArray( |
| 10721 | 1000, 536870912, target); |
| 10722 | |
| 10723 | if (_internal_metadata_.have_unknown_fields()) { |
| 10724 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10725 | unknown_fields(), target); |
| 10726 | } |
| 10727 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions) |
| 10728 | return target; |
| 10729 | } |
| 10730 | |
| 10731 | int EnumOptions::ByteSize() const { |
| 10732 | int total_size = 0; |
| 10733 | |
| 10734 | if (_has_bits_[0 / 32] & 3u) { |
| 10735 | // optional bool allow_alias = 2; |
| 10736 | if (has_allow_alias()) { |
| 10737 | total_size += 1 + 1; |
| 10738 | } |
| 10739 | |
| 10740 | // optional bool deprecated = 3 [default = false]; |
| 10741 | if (has_deprecated()) { |
| 10742 | total_size += 1 + 1; |
| 10743 | } |
| 10744 | |
| 10745 | } |
| 10746 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10747 | total_size += 2 * this->uninterpreted_option_size(); |
| 10748 | for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 10749 | total_size += |
| 10750 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 10751 | this->uninterpreted_option(i)); |
| 10752 | } |
| 10753 | |
| 10754 | total_size += _extensions_.ByteSize(); |
| 10755 | |
| 10756 | if (_internal_metadata_.have_unknown_fields()) { |
| 10757 | total_size += |
| 10758 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10759 | unknown_fields()); |
| 10760 | } |
| 10761 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10762 | _cached_size_ = total_size; |
| 10763 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10764 | return total_size; |
| 10765 | } |
| 10766 | |
| 10767 | void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 10768 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 10769 | const EnumOptions* source = |
| 10770 | ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>( |
| 10771 | &from); |
| 10772 | if (source == NULL) { |
| 10773 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10774 | } else { |
| 10775 | MergeFrom(*source); |
| 10776 | } |
| 10777 | } |
| 10778 | |
| 10779 | void EnumOptions::MergeFrom(const EnumOptions& from) { |
| 10780 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 10781 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 10782 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 10783 | if (from.has_allow_alias()) { |
| 10784 | set_allow_alias(from.allow_alias()); |
| 10785 | } |
| 10786 | if (from.has_deprecated()) { |
| 10787 | set_deprecated(from.deprecated()); |
| 10788 | } |
| 10789 | } |
| 10790 | _extensions_.MergeFrom(from._extensions_); |
| 10791 | if (from._internal_metadata_.have_unknown_fields()) { |
| 10792 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 10793 | } |
| 10794 | } |
| 10795 | |
| 10796 | void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 10797 | if (&from == this) return; |
| 10798 | Clear(); |
| 10799 | MergeFrom(from); |
| 10800 | } |
| 10801 | |
| 10802 | void EnumOptions::CopyFrom(const EnumOptions& from) { |
| 10803 | if (&from == this) return; |
| 10804 | Clear(); |
| 10805 | MergeFrom(from); |
| 10806 | } |
| 10807 | |
| 10808 | bool EnumOptions::IsInitialized() const { |
| 10809 | |
| 10810 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 10811 | |
| 10812 | if (!_extensions_.IsInitialized()) return false; return true; |
| 10813 | } |
| 10814 | |
| 10815 | void EnumOptions::Swap(EnumOptions* other) { |
| 10816 | if (other == this) return; |
| 10817 | InternalSwap(other); |
| 10818 | } |
| 10819 | void EnumOptions::InternalSwap(EnumOptions* other) { |
| 10820 | std::swap(allow_alias_, other->allow_alias_); |
| 10821 | std::swap(deprecated_, other->deprecated_); |
| 10822 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 10823 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 10824 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10825 | std::swap(_cached_size_, other->_cached_size_); |
| 10826 | _extensions_.Swap(&other->_extensions_); |
| 10827 | } |
| 10828 | |
| 10829 | ::google::protobuf::Metadata EnumOptions::GetMetadata() const { |
| 10830 | protobuf_AssignDescriptorsOnce(); |
| 10831 | ::google::protobuf::Metadata metadata; |
| 10832 | metadata.descriptor = EnumOptions_descriptor_; |
| 10833 | metadata.reflection = EnumOptions_reflection_; |
| 10834 | return metadata; |
| 10835 | } |
| 10836 | |
| 10837 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10838 | // EnumOptions |
| 10839 | |
| 10840 | // optional bool allow_alias = 2; |
| 10841 | bool EnumOptions::has_allow_alias() const { |
| 10842 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 10843 | } |
| 10844 | void EnumOptions::set_has_allow_alias() { |
| 10845 | _has_bits_[0] |= 0x00000001u; |
| 10846 | } |
| 10847 | void EnumOptions::clear_has_allow_alias() { |
| 10848 | _has_bits_[0] &= ~0x00000001u; |
| 10849 | } |
| 10850 | void EnumOptions::clear_allow_alias() { |
| 10851 | allow_alias_ = false; |
| 10852 | clear_has_allow_alias(); |
| 10853 | } |
| 10854 | bool EnumOptions::allow_alias() const { |
| 10855 | // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias) |
| 10856 | return allow_alias_; |
| 10857 | } |
| 10858 | void EnumOptions::set_allow_alias(bool value) { |
| 10859 | set_has_allow_alias(); |
| 10860 | allow_alias_ = value; |
| 10861 | // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias) |
| 10862 | } |
| 10863 | |
| 10864 | // optional bool deprecated = 3 [default = false]; |
| 10865 | bool EnumOptions::has_deprecated() const { |
| 10866 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 10867 | } |
| 10868 | void EnumOptions::set_has_deprecated() { |
| 10869 | _has_bits_[0] |= 0x00000002u; |
| 10870 | } |
| 10871 | void EnumOptions::clear_has_deprecated() { |
| 10872 | _has_bits_[0] &= ~0x00000002u; |
| 10873 | } |
| 10874 | void EnumOptions::clear_deprecated() { |
| 10875 | deprecated_ = false; |
| 10876 | clear_has_deprecated(); |
| 10877 | } |
| 10878 | bool EnumOptions::deprecated() const { |
| 10879 | // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated) |
| 10880 | return deprecated_; |
| 10881 | } |
| 10882 | void EnumOptions::set_deprecated(bool value) { |
| 10883 | set_has_deprecated(); |
| 10884 | deprecated_ = value; |
| 10885 | // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated) |
| 10886 | } |
| 10887 | |
| 10888 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10889 | int EnumOptions::uninterpreted_option_size() const { |
| 10890 | return uninterpreted_option_.size(); |
| 10891 | } |
| 10892 | void EnumOptions::clear_uninterpreted_option() { |
| 10893 | uninterpreted_option_.Clear(); |
| 10894 | } |
| 10895 | const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const { |
| 10896 | // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option) |
| 10897 | return uninterpreted_option_.Get(index); |
| 10898 | } |
| 10899 | ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) { |
| 10900 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option) |
| 10901 | return uninterpreted_option_.Mutable(index); |
| 10902 | } |
| 10903 | ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() { |
| 10904 | // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option) |
| 10905 | return uninterpreted_option_.Add(); |
| 10906 | } |
| 10907 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 10908 | EnumOptions::mutable_uninterpreted_option() { |
| 10909 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option) |
| 10910 | return &uninterpreted_option_; |
| 10911 | } |
| 10912 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 10913 | EnumOptions::uninterpreted_option() const { |
| 10914 | // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option) |
| 10915 | return uninterpreted_option_; |
| 10916 | } |
| 10917 | |
| 10918 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10919 | |
| 10920 | // =================================================================== |
| 10921 | |
| 10922 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10923 | const int EnumValueOptions::kDeprecatedFieldNumber; |
| 10924 | const int EnumValueOptions::kUninterpretedOptionFieldNumber; |
| 10925 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10926 | |
| 10927 | EnumValueOptions::EnumValueOptions() |
| 10928 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 10929 | SharedCtor(); |
| 10930 | // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions) |
| 10931 | } |
| 10932 | |
| 10933 | void EnumValueOptions::InitAsDefaultInstance() { |
| 10934 | } |
| 10935 | |
| 10936 | EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) |
| 10937 | : ::google::protobuf::Message(), |
| 10938 | _internal_metadata_(NULL) { |
| 10939 | SharedCtor(); |
| 10940 | MergeFrom(from); |
| 10941 | // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions) |
| 10942 | } |
| 10943 | |
| 10944 | void EnumValueOptions::SharedCtor() { |
| 10945 | _cached_size_ = 0; |
| 10946 | deprecated_ = false; |
| 10947 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 10948 | } |
| 10949 | |
| 10950 | EnumValueOptions::~EnumValueOptions() { |
| 10951 | // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions) |
| 10952 | SharedDtor(); |
| 10953 | } |
| 10954 | |
| 10955 | void EnumValueOptions::SharedDtor() { |
| 10956 | if (this != default_instance_) { |
| 10957 | } |
| 10958 | } |
| 10959 | |
| 10960 | void EnumValueOptions::SetCachedSize(int size) const { |
| 10961 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10962 | _cached_size_ = size; |
| 10963 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10964 | } |
| 10965 | const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() { |
| 10966 | protobuf_AssignDescriptorsOnce(); |
| 10967 | return EnumValueOptions_descriptor_; |
| 10968 | } |
| 10969 | |
| 10970 | const EnumValueOptions& EnumValueOptions::default_instance() { |
| 10971 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 10972 | return *default_instance_; |
| 10973 | } |
| 10974 | |
| 10975 | EnumValueOptions* EnumValueOptions::default_instance_ = NULL; |
| 10976 | |
| 10977 | EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const { |
| 10978 | EnumValueOptions* n = new EnumValueOptions; |
| 10979 | if (arena != NULL) { |
| 10980 | arena->Own(n); |
| 10981 | } |
| 10982 | return n; |
| 10983 | } |
| 10984 | |
| 10985 | void EnumValueOptions::Clear() { |
| 10986 | _extensions_.Clear(); |
| 10987 | deprecated_ = false; |
| 10988 | uninterpreted_option_.Clear(); |
| 10989 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 10990 | if (_internal_metadata_.have_unknown_fields()) { |
| 10991 | mutable_unknown_fields()->Clear(); |
| 10992 | } |
| 10993 | } |
| 10994 | |
| 10995 | bool EnumValueOptions::MergePartialFromCodedStream( |
| 10996 | ::google::protobuf::io::CodedInputStream* input) { |
| 10997 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 10998 | ::google::protobuf::uint32 tag; |
| 10999 | // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions) |
| 11000 | for (;;) { |
| 11001 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
| 11002 | tag = p.first; |
| 11003 | if (!p.second) goto handle_unusual; |
| 11004 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 11005 | // optional bool deprecated = 1 [default = false]; |
| 11006 | case 1: { |
| 11007 | if (tag == 8) { |
| 11008 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11009 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 11010 | input, &deprecated_))); |
| 11011 | set_has_deprecated(); |
| 11012 | } else { |
| 11013 | goto handle_unusual; |
| 11014 | } |
| 11015 | if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 11016 | break; |
| 11017 | } |
| 11018 | |
| 11019 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11020 | case 999: { |
| 11021 | if (tag == 7994) { |
| 11022 | parse_uninterpreted_option: |
| 11023 | DO_(input->IncrementRecursionDepth()); |
| 11024 | parse_loop_uninterpreted_option: |
| 11025 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 11026 | input, add_uninterpreted_option())); |
| 11027 | } else { |
| 11028 | goto handle_unusual; |
| 11029 | } |
| 11030 | if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 11031 | input->UnsafeDecrementRecursionDepth(); |
| 11032 | if (input->ExpectAtEnd()) goto success; |
| 11033 | break; |
| 11034 | } |
| 11035 | |
| 11036 | default: { |
| 11037 | handle_unusual: |
| 11038 | if (tag == 0 || |
| 11039 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 11040 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 11041 | goto success; |
| 11042 | } |
| 11043 | if ((8000u <= tag)) { |
| 11044 | DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 11045 | mutable_unknown_fields())); |
| 11046 | continue; |
| 11047 | } |
| 11048 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11049 | input, tag, mutable_unknown_fields())); |
| 11050 | break; |
| 11051 | } |
| 11052 | } |
| 11053 | } |
| 11054 | success: |
| 11055 | // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions) |
| 11056 | return true; |
| 11057 | failure: |
| 11058 | // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions) |
| 11059 | return false; |
| 11060 | #undef DO_ |
| 11061 | } |
| 11062 | |
| 11063 | void EnumValueOptions::SerializeWithCachedSizes( |
| 11064 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11065 | // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions) |
| 11066 | // optional bool deprecated = 1 [default = false]; |
| 11067 | if (has_deprecated()) { |
| 11068 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(), output); |
| 11069 | } |
| 11070 | |
| 11071 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11072 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11073 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 11074 | 999, this->uninterpreted_option(i), output); |
| 11075 | } |
| 11076 | |
| 11077 | // Extension range [1000, 536870912) |
| 11078 | _extensions_.SerializeWithCachedSizes( |
| 11079 | 1000, 536870912, output); |
| 11080 | |
| 11081 | if (_internal_metadata_.have_unknown_fields()) { |
| 11082 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11083 | unknown_fields(), output); |
| 11084 | } |
| 11085 | // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions) |
| 11086 | } |
| 11087 | |
| 11088 | ::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray( |
| 11089 | ::google::protobuf::uint8* target) const { |
| 11090 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions) |
| 11091 | // optional bool deprecated = 1 [default = false]; |
| 11092 | if (has_deprecated()) { |
| 11093 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->deprecated(), target); |
| 11094 | } |
| 11095 | |
| 11096 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11097 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11098 | target = ::google::protobuf::internal::WireFormatLite:: |
| 11099 | WriteMessageNoVirtualToArray( |
| 11100 | 999, this->uninterpreted_option(i), target); |
| 11101 | } |
| 11102 | |
| 11103 | // Extension range [1000, 536870912) |
| 11104 | target = _extensions_.SerializeWithCachedSizesToArray( |
| 11105 | 1000, 536870912, target); |
| 11106 | |
| 11107 | if (_internal_metadata_.have_unknown_fields()) { |
| 11108 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11109 | unknown_fields(), target); |
| 11110 | } |
| 11111 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOptions) |
| 11112 | return target; |
| 11113 | } |
| 11114 | |
| 11115 | int EnumValueOptions::ByteSize() const { |
| 11116 | int total_size = 0; |
| 11117 | |
| 11118 | // optional bool deprecated = 1 [default = false]; |
| 11119 | if (has_deprecated()) { |
| 11120 | total_size += 1 + 1; |
| 11121 | } |
| 11122 | |
| 11123 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11124 | total_size += 2 * this->uninterpreted_option_size(); |
| 11125 | for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 11126 | total_size += |
| 11127 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 11128 | this->uninterpreted_option(i)); |
| 11129 | } |
| 11130 | |
| 11131 | total_size += _extensions_.ByteSize(); |
| 11132 | |
| 11133 | if (_internal_metadata_.have_unknown_fields()) { |
| 11134 | total_size += |
| 11135 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11136 | unknown_fields()); |
| 11137 | } |
| 11138 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11139 | _cached_size_ = total_size; |
| 11140 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11141 | return total_size; |
| 11142 | } |
| 11143 | |
| 11144 | void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 11145 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11146 | const EnumValueOptions* source = |
| 11147 | ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOptions>( |
| 11148 | &from); |
| 11149 | if (source == NULL) { |
| 11150 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11151 | } else { |
| 11152 | MergeFrom(*source); |
| 11153 | } |
| 11154 | } |
| 11155 | |
| 11156 | void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { |
| 11157 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11158 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 11159 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 11160 | if (from.has_deprecated()) { |
| 11161 | set_deprecated(from.deprecated()); |
| 11162 | } |
| 11163 | } |
| 11164 | _extensions_.MergeFrom(from._extensions_); |
| 11165 | if (from._internal_metadata_.have_unknown_fields()) { |
| 11166 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 11167 | } |
| 11168 | } |
| 11169 | |
| 11170 | void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 11171 | if (&from == this) return; |
| 11172 | Clear(); |
| 11173 | MergeFrom(from); |
| 11174 | } |
| 11175 | |
| 11176 | void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { |
| 11177 | if (&from == this) return; |
| 11178 | Clear(); |
| 11179 | MergeFrom(from); |
| 11180 | } |
| 11181 | |
| 11182 | bool EnumValueOptions::IsInitialized() const { |
| 11183 | |
| 11184 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 11185 | |
| 11186 | if (!_extensions_.IsInitialized()) return false; return true; |
| 11187 | } |
| 11188 | |
| 11189 | void EnumValueOptions::Swap(EnumValueOptions* other) { |
| 11190 | if (other == this) return; |
| 11191 | InternalSwap(other); |
| 11192 | } |
| 11193 | void EnumValueOptions::InternalSwap(EnumValueOptions* other) { |
| 11194 | std::swap(deprecated_, other->deprecated_); |
| 11195 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 11196 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 11197 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11198 | std::swap(_cached_size_, other->_cached_size_); |
| 11199 | _extensions_.Swap(&other->_extensions_); |
| 11200 | } |
| 11201 | |
| 11202 | ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const { |
| 11203 | protobuf_AssignDescriptorsOnce(); |
| 11204 | ::google::protobuf::Metadata metadata; |
| 11205 | metadata.descriptor = EnumValueOptions_descriptor_; |
| 11206 | metadata.reflection = EnumValueOptions_reflection_; |
| 11207 | return metadata; |
| 11208 | } |
| 11209 | |
| 11210 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11211 | // EnumValueOptions |
| 11212 | |
| 11213 | // optional bool deprecated = 1 [default = false]; |
| 11214 | bool EnumValueOptions::has_deprecated() const { |
| 11215 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 11216 | } |
| 11217 | void EnumValueOptions::set_has_deprecated() { |
| 11218 | _has_bits_[0] |= 0x00000001u; |
| 11219 | } |
| 11220 | void EnumValueOptions::clear_has_deprecated() { |
| 11221 | _has_bits_[0] &= ~0x00000001u; |
| 11222 | } |
| 11223 | void EnumValueOptions::clear_deprecated() { |
| 11224 | deprecated_ = false; |
| 11225 | clear_has_deprecated(); |
| 11226 | } |
| 11227 | bool EnumValueOptions::deprecated() const { |
| 11228 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated) |
| 11229 | return deprecated_; |
| 11230 | } |
| 11231 | void EnumValueOptions::set_deprecated(bool value) { |
| 11232 | set_has_deprecated(); |
| 11233 | deprecated_ = value; |
| 11234 | // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated) |
| 11235 | } |
| 11236 | |
| 11237 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11238 | int EnumValueOptions::uninterpreted_option_size() const { |
| 11239 | return uninterpreted_option_.size(); |
| 11240 | } |
| 11241 | void EnumValueOptions::clear_uninterpreted_option() { |
| 11242 | uninterpreted_option_.Clear(); |
| 11243 | } |
| 11244 | const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const { |
| 11245 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11246 | return uninterpreted_option_.Get(index); |
| 11247 | } |
| 11248 | ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) { |
| 11249 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11250 | return uninterpreted_option_.Mutable(index); |
| 11251 | } |
| 11252 | ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() { |
| 11253 | // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11254 | return uninterpreted_option_.Add(); |
| 11255 | } |
| 11256 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 11257 | EnumValueOptions::mutable_uninterpreted_option() { |
| 11258 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11259 | return &uninterpreted_option_; |
| 11260 | } |
| 11261 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 11262 | EnumValueOptions::uninterpreted_option() const { |
| 11263 | // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11264 | return uninterpreted_option_; |
| 11265 | } |
| 11266 | |
| 11267 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11268 | |
| 11269 | // =================================================================== |
| 11270 | |
| 11271 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11272 | const int ServiceOptions::kDeprecatedFieldNumber; |
| 11273 | const int ServiceOptions::kUninterpretedOptionFieldNumber; |
| 11274 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11275 | |
| 11276 | ServiceOptions::ServiceOptions() |
| 11277 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 11278 | SharedCtor(); |
| 11279 | // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions) |
| 11280 | } |
| 11281 | |
| 11282 | void ServiceOptions::InitAsDefaultInstance() { |
| 11283 | } |
| 11284 | |
| 11285 | ServiceOptions::ServiceOptions(const ServiceOptions& from) |
| 11286 | : ::google::protobuf::Message(), |
| 11287 | _internal_metadata_(NULL) { |
| 11288 | SharedCtor(); |
| 11289 | MergeFrom(from); |
| 11290 | // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions) |
| 11291 | } |
| 11292 | |
| 11293 | void ServiceOptions::SharedCtor() { |
| 11294 | _cached_size_ = 0; |
| 11295 | deprecated_ = false; |
| 11296 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11297 | } |
| 11298 | |
| 11299 | ServiceOptions::~ServiceOptions() { |
| 11300 | // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions) |
| 11301 | SharedDtor(); |
| 11302 | } |
| 11303 | |
| 11304 | void ServiceOptions::SharedDtor() { |
| 11305 | if (this != default_instance_) { |
| 11306 | } |
| 11307 | } |
| 11308 | |
| 11309 | void ServiceOptions::SetCachedSize(int size) const { |
| 11310 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11311 | _cached_size_ = size; |
| 11312 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11313 | } |
| 11314 | const ::google::protobuf::Descriptor* ServiceOptions::descriptor() { |
| 11315 | protobuf_AssignDescriptorsOnce(); |
| 11316 | return ServiceOptions_descriptor_; |
| 11317 | } |
| 11318 | |
| 11319 | const ServiceOptions& ServiceOptions::default_instance() { |
| 11320 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 11321 | return *default_instance_; |
| 11322 | } |
| 11323 | |
| 11324 | ServiceOptions* ServiceOptions::default_instance_ = NULL; |
| 11325 | |
| 11326 | ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const { |
| 11327 | ServiceOptions* n = new ServiceOptions; |
| 11328 | if (arena != NULL) { |
| 11329 | arena->Own(n); |
| 11330 | } |
| 11331 | return n; |
| 11332 | } |
| 11333 | |
| 11334 | void ServiceOptions::Clear() { |
| 11335 | _extensions_.Clear(); |
| 11336 | deprecated_ = false; |
| 11337 | uninterpreted_option_.Clear(); |
| 11338 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11339 | if (_internal_metadata_.have_unknown_fields()) { |
| 11340 | mutable_unknown_fields()->Clear(); |
| 11341 | } |
| 11342 | } |
| 11343 | |
| 11344 | bool ServiceOptions::MergePartialFromCodedStream( |
| 11345 | ::google::protobuf::io::CodedInputStream* input) { |
| 11346 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 11347 | ::google::protobuf::uint32 tag; |
| 11348 | // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions) |
| 11349 | for (;;) { |
| 11350 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
| 11351 | tag = p.first; |
| 11352 | if (!p.second) goto handle_unusual; |
| 11353 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 11354 | // optional bool deprecated = 33 [default = false]; |
| 11355 | case 33: { |
| 11356 | if (tag == 264) { |
| 11357 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11358 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 11359 | input, &deprecated_))); |
| 11360 | set_has_deprecated(); |
| 11361 | } else { |
| 11362 | goto handle_unusual; |
| 11363 | } |
| 11364 | if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 11365 | break; |
| 11366 | } |
| 11367 | |
| 11368 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11369 | case 999: { |
| 11370 | if (tag == 7994) { |
| 11371 | parse_uninterpreted_option: |
| 11372 | DO_(input->IncrementRecursionDepth()); |
| 11373 | parse_loop_uninterpreted_option: |
| 11374 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 11375 | input, add_uninterpreted_option())); |
| 11376 | } else { |
| 11377 | goto handle_unusual; |
| 11378 | } |
| 11379 | if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 11380 | input->UnsafeDecrementRecursionDepth(); |
| 11381 | if (input->ExpectAtEnd()) goto success; |
| 11382 | break; |
| 11383 | } |
| 11384 | |
| 11385 | default: { |
| 11386 | handle_unusual: |
| 11387 | if (tag == 0 || |
| 11388 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 11389 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 11390 | goto success; |
| 11391 | } |
| 11392 | if ((8000u <= tag)) { |
| 11393 | DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 11394 | mutable_unknown_fields())); |
| 11395 | continue; |
| 11396 | } |
| 11397 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11398 | input, tag, mutable_unknown_fields())); |
| 11399 | break; |
| 11400 | } |
| 11401 | } |
| 11402 | } |
| 11403 | success: |
| 11404 | // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions) |
| 11405 | return true; |
| 11406 | failure: |
| 11407 | // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions) |
| 11408 | return false; |
| 11409 | #undef DO_ |
| 11410 | } |
| 11411 | |
| 11412 | void ServiceOptions::SerializeWithCachedSizes( |
| 11413 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11414 | // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions) |
| 11415 | // optional bool deprecated = 33 [default = false]; |
| 11416 | if (has_deprecated()) { |
| 11417 | ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output); |
| 11418 | } |
| 11419 | |
| 11420 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11421 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11422 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 11423 | 999, this->uninterpreted_option(i), output); |
| 11424 | } |
| 11425 | |
| 11426 | // Extension range [1000, 536870912) |
| 11427 | _extensions_.SerializeWithCachedSizes( |
| 11428 | 1000, 536870912, output); |
| 11429 | |
| 11430 | if (_internal_metadata_.have_unknown_fields()) { |
| 11431 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11432 | unknown_fields(), output); |
| 11433 | } |
| 11434 | // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions) |
| 11435 | } |
| 11436 | |
| 11437 | ::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray( |
| 11438 | ::google::protobuf::uint8* target) const { |
| 11439 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions) |
| 11440 | // optional bool deprecated = 33 [default = false]; |
| 11441 | if (has_deprecated()) { |
| 11442 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target); |
| 11443 | } |
| 11444 | |
| 11445 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11446 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11447 | target = ::google::protobuf::internal::WireFormatLite:: |
| 11448 | WriteMessageNoVirtualToArray( |
| 11449 | 999, this->uninterpreted_option(i), target); |
| 11450 | } |
| 11451 | |
| 11452 | // Extension range [1000, 536870912) |
| 11453 | target = _extensions_.SerializeWithCachedSizesToArray( |
| 11454 | 1000, 536870912, target); |
| 11455 | |
| 11456 | if (_internal_metadata_.have_unknown_fields()) { |
| 11457 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11458 | unknown_fields(), target); |
| 11459 | } |
| 11460 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOptions) |
| 11461 | return target; |
| 11462 | } |
| 11463 | |
| 11464 | int ServiceOptions::ByteSize() const { |
| 11465 | int total_size = 0; |
| 11466 | |
| 11467 | // optional bool deprecated = 33 [default = false]; |
| 11468 | if (has_deprecated()) { |
| 11469 | total_size += 2 + 1; |
| 11470 | } |
| 11471 | |
| 11472 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11473 | total_size += 2 * this->uninterpreted_option_size(); |
| 11474 | for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 11475 | total_size += |
| 11476 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 11477 | this->uninterpreted_option(i)); |
| 11478 | } |
| 11479 | |
| 11480 | total_size += _extensions_.ByteSize(); |
| 11481 | |
| 11482 | if (_internal_metadata_.have_unknown_fields()) { |
| 11483 | total_size += |
| 11484 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11485 | unknown_fields()); |
| 11486 | } |
| 11487 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11488 | _cached_size_ = total_size; |
| 11489 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11490 | return total_size; |
| 11491 | } |
| 11492 | |
| 11493 | void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 11494 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11495 | const ServiceOptions* source = |
| 11496 | ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>( |
| 11497 | &from); |
| 11498 | if (source == NULL) { |
| 11499 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11500 | } else { |
| 11501 | MergeFrom(*source); |
| 11502 | } |
| 11503 | } |
| 11504 | |
| 11505 | void ServiceOptions::MergeFrom(const ServiceOptions& from) { |
| 11506 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11507 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 11508 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 11509 | if (from.has_deprecated()) { |
| 11510 | set_deprecated(from.deprecated()); |
| 11511 | } |
| 11512 | } |
| 11513 | _extensions_.MergeFrom(from._extensions_); |
| 11514 | if (from._internal_metadata_.have_unknown_fields()) { |
| 11515 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 11516 | } |
| 11517 | } |
| 11518 | |
| 11519 | void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 11520 | if (&from == this) return; |
| 11521 | Clear(); |
| 11522 | MergeFrom(from); |
| 11523 | } |
| 11524 | |
| 11525 | void ServiceOptions::CopyFrom(const ServiceOptions& from) { |
| 11526 | if (&from == this) return; |
| 11527 | Clear(); |
| 11528 | MergeFrom(from); |
| 11529 | } |
| 11530 | |
| 11531 | bool ServiceOptions::IsInitialized() const { |
| 11532 | |
| 11533 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 11534 | |
| 11535 | if (!_extensions_.IsInitialized()) return false; return true; |
| 11536 | } |
| 11537 | |
| 11538 | void ServiceOptions::Swap(ServiceOptions* other) { |
| 11539 | if (other == this) return; |
| 11540 | InternalSwap(other); |
| 11541 | } |
| 11542 | void ServiceOptions::InternalSwap(ServiceOptions* other) { |
| 11543 | std::swap(deprecated_, other->deprecated_); |
| 11544 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 11545 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 11546 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11547 | std::swap(_cached_size_, other->_cached_size_); |
| 11548 | _extensions_.Swap(&other->_extensions_); |
| 11549 | } |
| 11550 | |
| 11551 | ::google::protobuf::Metadata ServiceOptions::GetMetadata() const { |
| 11552 | protobuf_AssignDescriptorsOnce(); |
| 11553 | ::google::protobuf::Metadata metadata; |
| 11554 | metadata.descriptor = ServiceOptions_descriptor_; |
| 11555 | metadata.reflection = ServiceOptions_reflection_; |
| 11556 | return metadata; |
| 11557 | } |
| 11558 | |
| 11559 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11560 | // ServiceOptions |
| 11561 | |
| 11562 | // optional bool deprecated = 33 [default = false]; |
| 11563 | bool ServiceOptions::has_deprecated() const { |
| 11564 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 11565 | } |
| 11566 | void ServiceOptions::set_has_deprecated() { |
| 11567 | _has_bits_[0] |= 0x00000001u; |
| 11568 | } |
| 11569 | void ServiceOptions::clear_has_deprecated() { |
| 11570 | _has_bits_[0] &= ~0x00000001u; |
| 11571 | } |
| 11572 | void ServiceOptions::clear_deprecated() { |
| 11573 | deprecated_ = false; |
| 11574 | clear_has_deprecated(); |
| 11575 | } |
| 11576 | bool ServiceOptions::deprecated() const { |
| 11577 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated) |
| 11578 | return deprecated_; |
| 11579 | } |
| 11580 | void ServiceOptions::set_deprecated(bool value) { |
| 11581 | set_has_deprecated(); |
| 11582 | deprecated_ = value; |
| 11583 | // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated) |
| 11584 | } |
| 11585 | |
| 11586 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11587 | int ServiceOptions::uninterpreted_option_size() const { |
| 11588 | return uninterpreted_option_.size(); |
| 11589 | } |
| 11590 | void ServiceOptions::clear_uninterpreted_option() { |
| 11591 | uninterpreted_option_.Clear(); |
| 11592 | } |
| 11593 | const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const { |
| 11594 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option) |
| 11595 | return uninterpreted_option_.Get(index); |
| 11596 | } |
| 11597 | ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) { |
| 11598 | // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option) |
| 11599 | return uninterpreted_option_.Mutable(index); |
| 11600 | } |
| 11601 | ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() { |
| 11602 | // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option) |
| 11603 | return uninterpreted_option_.Add(); |
| 11604 | } |
| 11605 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 11606 | ServiceOptions::mutable_uninterpreted_option() { |
| 11607 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option) |
| 11608 | return &uninterpreted_option_; |
| 11609 | } |
| 11610 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 11611 | ServiceOptions::uninterpreted_option() const { |
| 11612 | // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option) |
| 11613 | return uninterpreted_option_; |
| 11614 | } |
| 11615 | |
| 11616 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11617 | |
| 11618 | // =================================================================== |
| 11619 | |
| 11620 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11621 | const int MethodOptions::kDeprecatedFieldNumber; |
| 11622 | const int MethodOptions::kUninterpretedOptionFieldNumber; |
| 11623 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11624 | |
| 11625 | MethodOptions::MethodOptions() |
| 11626 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 11627 | SharedCtor(); |
| 11628 | // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions) |
| 11629 | } |
| 11630 | |
| 11631 | void MethodOptions::InitAsDefaultInstance() { |
| 11632 | } |
| 11633 | |
| 11634 | MethodOptions::MethodOptions(const MethodOptions& from) |
| 11635 | : ::google::protobuf::Message(), |
| 11636 | _internal_metadata_(NULL) { |
| 11637 | SharedCtor(); |
| 11638 | MergeFrom(from); |
| 11639 | // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions) |
| 11640 | } |
| 11641 | |
| 11642 | void MethodOptions::SharedCtor() { |
| 11643 | _cached_size_ = 0; |
| 11644 | deprecated_ = false; |
| 11645 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11646 | } |
| 11647 | |
| 11648 | MethodOptions::~MethodOptions() { |
| 11649 | // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions) |
| 11650 | SharedDtor(); |
| 11651 | } |
| 11652 | |
| 11653 | void MethodOptions::SharedDtor() { |
| 11654 | if (this != default_instance_) { |
| 11655 | } |
| 11656 | } |
| 11657 | |
| 11658 | void MethodOptions::SetCachedSize(int size) const { |
| 11659 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11660 | _cached_size_ = size; |
| 11661 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11662 | } |
| 11663 | const ::google::protobuf::Descriptor* MethodOptions::descriptor() { |
| 11664 | protobuf_AssignDescriptorsOnce(); |
| 11665 | return MethodOptions_descriptor_; |
| 11666 | } |
| 11667 | |
| 11668 | const MethodOptions& MethodOptions::default_instance() { |
| 11669 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 11670 | return *default_instance_; |
| 11671 | } |
| 11672 | |
| 11673 | MethodOptions* MethodOptions::default_instance_ = NULL; |
| 11674 | |
| 11675 | MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const { |
| 11676 | MethodOptions* n = new MethodOptions; |
| 11677 | if (arena != NULL) { |
| 11678 | arena->Own(n); |
| 11679 | } |
| 11680 | return n; |
| 11681 | } |
| 11682 | |
| 11683 | void MethodOptions::Clear() { |
| 11684 | _extensions_.Clear(); |
| 11685 | deprecated_ = false; |
| 11686 | uninterpreted_option_.Clear(); |
| 11687 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11688 | if (_internal_metadata_.have_unknown_fields()) { |
| 11689 | mutable_unknown_fields()->Clear(); |
| 11690 | } |
| 11691 | } |
| 11692 | |
| 11693 | bool MethodOptions::MergePartialFromCodedStream( |
| 11694 | ::google::protobuf::io::CodedInputStream* input) { |
| 11695 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 11696 | ::google::protobuf::uint32 tag; |
| 11697 | // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions) |
| 11698 | for (;;) { |
| 11699 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); |
| 11700 | tag = p.first; |
| 11701 | if (!p.second) goto handle_unusual; |
| 11702 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 11703 | // optional bool deprecated = 33 [default = false]; |
| 11704 | case 33: { |
| 11705 | if (tag == 264) { |
| 11706 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11707 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 11708 | input, &deprecated_))); |
| 11709 | set_has_deprecated(); |
| 11710 | } else { |
| 11711 | goto handle_unusual; |
| 11712 | } |
| 11713 | if (input->ExpectTag(7994)) goto parse_uninterpreted_option; |
| 11714 | break; |
| 11715 | } |
| 11716 | |
| 11717 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11718 | case 999: { |
| 11719 | if (tag == 7994) { |
| 11720 | parse_uninterpreted_option: |
| 11721 | DO_(input->IncrementRecursionDepth()); |
| 11722 | parse_loop_uninterpreted_option: |
| 11723 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 11724 | input, add_uninterpreted_option())); |
| 11725 | } else { |
| 11726 | goto handle_unusual; |
| 11727 | } |
| 11728 | if (input->ExpectTag(7994)) goto parse_loop_uninterpreted_option; |
| 11729 | input->UnsafeDecrementRecursionDepth(); |
| 11730 | if (input->ExpectAtEnd()) goto success; |
| 11731 | break; |
| 11732 | } |
| 11733 | |
| 11734 | default: { |
| 11735 | handle_unusual: |
| 11736 | if (tag == 0 || |
| 11737 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 11738 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 11739 | goto success; |
| 11740 | } |
| 11741 | if ((8000u <= tag)) { |
| 11742 | DO_(_extensions_.ParseField(tag, input, default_instance_, |
| 11743 | mutable_unknown_fields())); |
| 11744 | continue; |
| 11745 | } |
| 11746 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11747 | input, tag, mutable_unknown_fields())); |
| 11748 | break; |
| 11749 | } |
| 11750 | } |
| 11751 | } |
| 11752 | success: |
| 11753 | // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions) |
| 11754 | return true; |
| 11755 | failure: |
| 11756 | // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions) |
| 11757 | return false; |
| 11758 | #undef DO_ |
| 11759 | } |
| 11760 | |
| 11761 | void MethodOptions::SerializeWithCachedSizes( |
| 11762 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11763 | // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions) |
| 11764 | // optional bool deprecated = 33 [default = false]; |
| 11765 | if (has_deprecated()) { |
| 11766 | ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output); |
| 11767 | } |
| 11768 | |
| 11769 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11770 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11771 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 11772 | 999, this->uninterpreted_option(i), output); |
| 11773 | } |
| 11774 | |
| 11775 | // Extension range [1000, 536870912) |
| 11776 | _extensions_.SerializeWithCachedSizes( |
| 11777 | 1000, 536870912, output); |
| 11778 | |
| 11779 | if (_internal_metadata_.have_unknown_fields()) { |
| 11780 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11781 | unknown_fields(), output); |
| 11782 | } |
| 11783 | // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions) |
| 11784 | } |
| 11785 | |
| 11786 | ::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray( |
| 11787 | ::google::protobuf::uint8* target) const { |
| 11788 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions) |
| 11789 | // optional bool deprecated = 33 [default = false]; |
| 11790 | if (has_deprecated()) { |
| 11791 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target); |
| 11792 | } |
| 11793 | |
| 11794 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11795 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11796 | target = ::google::protobuf::internal::WireFormatLite:: |
| 11797 | WriteMessageNoVirtualToArray( |
| 11798 | 999, this->uninterpreted_option(i), target); |
| 11799 | } |
| 11800 | |
| 11801 | // Extension range [1000, 536870912) |
| 11802 | target = _extensions_.SerializeWithCachedSizesToArray( |
| 11803 | 1000, 536870912, target); |
| 11804 | |
| 11805 | if (_internal_metadata_.have_unknown_fields()) { |
| 11806 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11807 | unknown_fields(), target); |
| 11808 | } |
| 11809 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptions) |
| 11810 | return target; |
| 11811 | } |
| 11812 | |
| 11813 | int MethodOptions::ByteSize() const { |
| 11814 | int total_size = 0; |
| 11815 | |
| 11816 | // optional bool deprecated = 33 [default = false]; |
| 11817 | if (has_deprecated()) { |
| 11818 | total_size += 2 + 1; |
| 11819 | } |
| 11820 | |
| 11821 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11822 | total_size += 2 * this->uninterpreted_option_size(); |
| 11823 | for (int i = 0; i < this->uninterpreted_option_size(); i++) { |
| 11824 | total_size += |
| 11825 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 11826 | this->uninterpreted_option(i)); |
| 11827 | } |
| 11828 | |
| 11829 | total_size += _extensions_.ByteSize(); |
| 11830 | |
| 11831 | if (_internal_metadata_.have_unknown_fields()) { |
| 11832 | total_size += |
| 11833 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11834 | unknown_fields()); |
| 11835 | } |
| 11836 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11837 | _cached_size_ = total_size; |
| 11838 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11839 | return total_size; |
| 11840 | } |
| 11841 | |
| 11842 | void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 11843 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11844 | const MethodOptions* source = |
| 11845 | ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>( |
| 11846 | &from); |
| 11847 | if (source == NULL) { |
| 11848 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11849 | } else { |
| 11850 | MergeFrom(*source); |
| 11851 | } |
| 11852 | } |
| 11853 | |
| 11854 | void MethodOptions::MergeFrom(const MethodOptions& from) { |
| 11855 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 11856 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 11857 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 11858 | if (from.has_deprecated()) { |
| 11859 | set_deprecated(from.deprecated()); |
| 11860 | } |
| 11861 | } |
| 11862 | _extensions_.MergeFrom(from._extensions_); |
| 11863 | if (from._internal_metadata_.have_unknown_fields()) { |
| 11864 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 11865 | } |
| 11866 | } |
| 11867 | |
| 11868 | void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 11869 | if (&from == this) return; |
| 11870 | Clear(); |
| 11871 | MergeFrom(from); |
| 11872 | } |
| 11873 | |
| 11874 | void MethodOptions::CopyFrom(const MethodOptions& from) { |
| 11875 | if (&from == this) return; |
| 11876 | Clear(); |
| 11877 | MergeFrom(from); |
| 11878 | } |
| 11879 | |
| 11880 | bool MethodOptions::IsInitialized() const { |
| 11881 | |
| 11882 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 11883 | |
| 11884 | if (!_extensions_.IsInitialized()) return false; return true; |
| 11885 | } |
| 11886 | |
| 11887 | void MethodOptions::Swap(MethodOptions* other) { |
| 11888 | if (other == this) return; |
| 11889 | InternalSwap(other); |
| 11890 | } |
| 11891 | void MethodOptions::InternalSwap(MethodOptions* other) { |
| 11892 | std::swap(deprecated_, other->deprecated_); |
| 11893 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 11894 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 11895 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11896 | std::swap(_cached_size_, other->_cached_size_); |
| 11897 | _extensions_.Swap(&other->_extensions_); |
| 11898 | } |
| 11899 | |
| 11900 | ::google::protobuf::Metadata MethodOptions::GetMetadata() const { |
| 11901 | protobuf_AssignDescriptorsOnce(); |
| 11902 | ::google::protobuf::Metadata metadata; |
| 11903 | metadata.descriptor = MethodOptions_descriptor_; |
| 11904 | metadata.reflection = MethodOptions_reflection_; |
| 11905 | return metadata; |
| 11906 | } |
| 11907 | |
| 11908 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11909 | // MethodOptions |
| 11910 | |
| 11911 | // optional bool deprecated = 33 [default = false]; |
| 11912 | bool MethodOptions::has_deprecated() const { |
| 11913 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 11914 | } |
| 11915 | void MethodOptions::set_has_deprecated() { |
| 11916 | _has_bits_[0] |= 0x00000001u; |
| 11917 | } |
| 11918 | void MethodOptions::clear_has_deprecated() { |
| 11919 | _has_bits_[0] &= ~0x00000001u; |
| 11920 | } |
| 11921 | void MethodOptions::clear_deprecated() { |
| 11922 | deprecated_ = false; |
| 11923 | clear_has_deprecated(); |
| 11924 | } |
| 11925 | bool MethodOptions::deprecated() const { |
| 11926 | // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated) |
| 11927 | return deprecated_; |
| 11928 | } |
| 11929 | void MethodOptions::set_deprecated(bool value) { |
| 11930 | set_has_deprecated(); |
| 11931 | deprecated_ = value; |
| 11932 | // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated) |
| 11933 | } |
| 11934 | |
| 11935 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11936 | int MethodOptions::uninterpreted_option_size() const { |
| 11937 | return uninterpreted_option_.size(); |
| 11938 | } |
| 11939 | void MethodOptions::clear_uninterpreted_option() { |
| 11940 | uninterpreted_option_.Clear(); |
| 11941 | } |
| 11942 | const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const { |
| 11943 | // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option) |
| 11944 | return uninterpreted_option_.Get(index); |
| 11945 | } |
| 11946 | ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) { |
| 11947 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option) |
| 11948 | return uninterpreted_option_.Mutable(index); |
| 11949 | } |
| 11950 | ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() { |
| 11951 | // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option) |
| 11952 | return uninterpreted_option_.Add(); |
| 11953 | } |
| 11954 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 11955 | MethodOptions::mutable_uninterpreted_option() { |
| 11956 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option) |
| 11957 | return &uninterpreted_option_; |
| 11958 | } |
| 11959 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 11960 | MethodOptions::uninterpreted_option() const { |
| 11961 | // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option) |
| 11962 | return uninterpreted_option_; |
| 11963 | } |
| 11964 | |
| 11965 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11966 | |
| 11967 | // =================================================================== |
| 11968 | |
| 11969 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11970 | const int UninterpretedOption_NamePart::kNamePartFieldNumber; |
| 11971 | const int UninterpretedOption_NamePart::kIsExtensionFieldNumber; |
| 11972 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11973 | |
| 11974 | UninterpretedOption_NamePart::UninterpretedOption_NamePart() |
| 11975 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 11976 | SharedCtor(); |
| 11977 | // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.NamePart) |
| 11978 | } |
| 11979 | |
| 11980 | void UninterpretedOption_NamePart::InitAsDefaultInstance() { |
| 11981 | } |
| 11982 | |
| 11983 | UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from) |
| 11984 | : ::google::protobuf::Message(), |
| 11985 | _internal_metadata_(NULL) { |
| 11986 | SharedCtor(); |
| 11987 | MergeFrom(from); |
| 11988 | // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart) |
| 11989 | } |
| 11990 | |
| 11991 | void UninterpretedOption_NamePart::SharedCtor() { |
| 11992 | ::google::protobuf::internal::GetEmptyString(); |
| 11993 | _cached_size_ = 0; |
| 11994 | name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 11995 | is_extension_ = false; |
| 11996 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 11997 | } |
| 11998 | |
| 11999 | UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { |
| 12000 | // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart) |
| 12001 | SharedDtor(); |
| 12002 | } |
| 12003 | |
| 12004 | void UninterpretedOption_NamePart::SharedDtor() { |
| 12005 | name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12006 | if (this != default_instance_) { |
| 12007 | } |
| 12008 | } |
| 12009 | |
| 12010 | void UninterpretedOption_NamePart::SetCachedSize(int size) const { |
| 12011 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12012 | _cached_size_ = size; |
| 12013 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12014 | } |
| 12015 | const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() { |
| 12016 | protobuf_AssignDescriptorsOnce(); |
| 12017 | return UninterpretedOption_NamePart_descriptor_; |
| 12018 | } |
| 12019 | |
| 12020 | const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() { |
| 12021 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 12022 | return *default_instance_; |
| 12023 | } |
| 12024 | |
| 12025 | UninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL; |
| 12026 | |
| 12027 | UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protobuf::Arena* arena) const { |
| 12028 | UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart; |
| 12029 | if (arena != NULL) { |
| 12030 | arena->Own(n); |
| 12031 | } |
| 12032 | return n; |
| 12033 | } |
| 12034 | |
| 12035 | void UninterpretedOption_NamePart::Clear() { |
| 12036 | if (_has_bits_[0 / 32] & 3u) { |
| 12037 | if (has_name_part()) { |
| 12038 | name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12039 | } |
| 12040 | is_extension_ = false; |
| 12041 | } |
| 12042 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 12043 | if (_internal_metadata_.have_unknown_fields()) { |
| 12044 | mutable_unknown_fields()->Clear(); |
| 12045 | } |
| 12046 | } |
| 12047 | |
| 12048 | bool UninterpretedOption_NamePart::MergePartialFromCodedStream( |
| 12049 | ::google::protobuf::io::CodedInputStream* input) { |
| 12050 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 12051 | ::google::protobuf::uint32 tag; |
| 12052 | // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.NamePart) |
| 12053 | for (;;) { |
| 12054 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 12055 | tag = p.first; |
| 12056 | if (!p.second) goto handle_unusual; |
| 12057 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 12058 | // required string name_part = 1; |
| 12059 | case 1: { |
| 12060 | if (tag == 10) { |
| 12061 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 12062 | input, this->mutable_name_part())); |
| 12063 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12064 | this->name_part().data(), this->name_part().length(), |
| 12065 | ::google::protobuf::internal::WireFormat::PARSE, |
| 12066 | "google.protobuf.UninterpretedOption.NamePart.name_part"); |
| 12067 | } else { |
| 12068 | goto handle_unusual; |
| 12069 | } |
| 12070 | if (input->ExpectTag(16)) goto parse_is_extension; |
| 12071 | break; |
| 12072 | } |
| 12073 | |
| 12074 | // required bool is_extension = 2; |
| 12075 | case 2: { |
| 12076 | if (tag == 16) { |
| 12077 | parse_is_extension: |
| 12078 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12079 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 12080 | input, &is_extension_))); |
| 12081 | set_has_is_extension(); |
| 12082 | } else { |
| 12083 | goto handle_unusual; |
| 12084 | } |
| 12085 | if (input->ExpectAtEnd()) goto success; |
| 12086 | break; |
| 12087 | } |
| 12088 | |
| 12089 | default: { |
| 12090 | handle_unusual: |
| 12091 | if (tag == 0 || |
| 12092 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 12093 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 12094 | goto success; |
| 12095 | } |
| 12096 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 12097 | input, tag, mutable_unknown_fields())); |
| 12098 | break; |
| 12099 | } |
| 12100 | } |
| 12101 | } |
| 12102 | success: |
| 12103 | // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.NamePart) |
| 12104 | return true; |
| 12105 | failure: |
| 12106 | // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.NamePart) |
| 12107 | return false; |
| 12108 | #undef DO_ |
| 12109 | } |
| 12110 | |
| 12111 | void UninterpretedOption_NamePart::SerializeWithCachedSizes( |
| 12112 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 12113 | // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption.NamePart) |
| 12114 | // required string name_part = 1; |
| 12115 | if (has_name_part()) { |
| 12116 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12117 | this->name_part().data(), this->name_part().length(), |
| 12118 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 12119 | "google.protobuf.UninterpretedOption.NamePart.name_part"); |
| 12120 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 12121 | 1, this->name_part(), output); |
| 12122 | } |
| 12123 | |
| 12124 | // required bool is_extension = 2; |
| 12125 | if (has_is_extension()) { |
| 12126 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output); |
| 12127 | } |
| 12128 | |
| 12129 | if (_internal_metadata_.have_unknown_fields()) { |
| 12130 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 12131 | unknown_fields(), output); |
| 12132 | } |
| 12133 | // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.NamePart) |
| 12134 | } |
| 12135 | |
| 12136 | ::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSizesToArray( |
| 12137 | ::google::protobuf::uint8* target) const { |
| 12138 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart) |
| 12139 | // required string name_part = 1; |
| 12140 | if (has_name_part()) { |
| 12141 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12142 | this->name_part().data(), this->name_part().length(), |
| 12143 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 12144 | "google.protobuf.UninterpretedOption.NamePart.name_part"); |
| 12145 | target = |
| 12146 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 12147 | 1, this->name_part(), target); |
| 12148 | } |
| 12149 | |
| 12150 | // required bool is_extension = 2; |
| 12151 | if (has_is_extension()) { |
| 12152 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target); |
| 12153 | } |
| 12154 | |
| 12155 | if (_internal_metadata_.have_unknown_fields()) { |
| 12156 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 12157 | unknown_fields(), target); |
| 12158 | } |
| 12159 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption.NamePart) |
| 12160 | return target; |
| 12161 | } |
| 12162 | |
| 12163 | int UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { |
| 12164 | int total_size = 0; |
| 12165 | |
| 12166 | if (has_name_part()) { |
| 12167 | // required string name_part = 1; |
| 12168 | total_size += 1 + |
| 12169 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12170 | this->name_part()); |
| 12171 | } |
| 12172 | |
| 12173 | if (has_is_extension()) { |
| 12174 | // required bool is_extension = 2; |
| 12175 | total_size += 1 + 1; |
| 12176 | } |
| 12177 | |
| 12178 | return total_size; |
| 12179 | } |
| 12180 | int UninterpretedOption_NamePart::ByteSize() const { |
| 12181 | int total_size = 0; |
| 12182 | |
| 12183 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
| 12184 | // required string name_part = 1; |
| 12185 | total_size += 1 + |
| 12186 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12187 | this->name_part()); |
| 12188 | |
| 12189 | // required bool is_extension = 2; |
| 12190 | total_size += 1 + 1; |
| 12191 | |
| 12192 | } else { |
| 12193 | total_size += RequiredFieldsByteSizeFallback(); |
| 12194 | } |
| 12195 | if (_internal_metadata_.have_unknown_fields()) { |
| 12196 | total_size += |
| 12197 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 12198 | unknown_fields()); |
| 12199 | } |
| 12200 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12201 | _cached_size_ = total_size; |
| 12202 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12203 | return total_size; |
| 12204 | } |
| 12205 | |
| 12206 | void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) { |
| 12207 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 12208 | const UninterpretedOption_NamePart* source = |
| 12209 | ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption_NamePart>( |
| 12210 | &from); |
| 12211 | if (source == NULL) { |
| 12212 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 12213 | } else { |
| 12214 | MergeFrom(*source); |
| 12215 | } |
| 12216 | } |
| 12217 | |
| 12218 | void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) { |
| 12219 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 12220 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { |
| 12221 | if (from.has_name_part()) { |
| 12222 | set_has_name_part(); |
| 12223 | name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_part_); |
| 12224 | } |
| 12225 | if (from.has_is_extension()) { |
| 12226 | set_is_extension(from.is_extension()); |
| 12227 | } |
| 12228 | } |
| 12229 | if (from._internal_metadata_.have_unknown_fields()) { |
| 12230 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 12231 | } |
| 12232 | } |
| 12233 | |
| 12234 | void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) { |
| 12235 | if (&from == this) return; |
| 12236 | Clear(); |
| 12237 | MergeFrom(from); |
| 12238 | } |
| 12239 | |
| 12240 | void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) { |
| 12241 | if (&from == this) return; |
| 12242 | Clear(); |
| 12243 | MergeFrom(from); |
| 12244 | } |
| 12245 | |
| 12246 | bool UninterpretedOption_NamePart::IsInitialized() const { |
| 12247 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
| 12248 | |
| 12249 | return true; |
| 12250 | } |
| 12251 | |
| 12252 | void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { |
| 12253 | if (other == this) return; |
| 12254 | InternalSwap(other); |
| 12255 | } |
| 12256 | void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* other) { |
| 12257 | name_part_.Swap(&other->name_part_); |
| 12258 | std::swap(is_extension_, other->is_extension_); |
| 12259 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 12260 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12261 | std::swap(_cached_size_, other->_cached_size_); |
| 12262 | } |
| 12263 | |
| 12264 | ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const { |
| 12265 | protobuf_AssignDescriptorsOnce(); |
| 12266 | ::google::protobuf::Metadata metadata; |
| 12267 | metadata.descriptor = UninterpretedOption_NamePart_descriptor_; |
| 12268 | metadata.reflection = UninterpretedOption_NamePart_reflection_; |
| 12269 | return metadata; |
| 12270 | } |
| 12271 | |
| 12272 | |
| 12273 | // ------------------------------------------------------------------- |
| 12274 | |
| 12275 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12276 | const int UninterpretedOption::kNameFieldNumber; |
| 12277 | const int UninterpretedOption::kIdentifierValueFieldNumber; |
| 12278 | const int UninterpretedOption::kPositiveIntValueFieldNumber; |
| 12279 | const int UninterpretedOption::kNegativeIntValueFieldNumber; |
| 12280 | const int UninterpretedOption::kDoubleValueFieldNumber; |
| 12281 | const int UninterpretedOption::kStringValueFieldNumber; |
| 12282 | const int UninterpretedOption::kAggregateValueFieldNumber; |
| 12283 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12284 | |
| 12285 | UninterpretedOption::UninterpretedOption() |
| 12286 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 12287 | SharedCtor(); |
| 12288 | // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption) |
| 12289 | } |
| 12290 | |
| 12291 | void UninterpretedOption::InitAsDefaultInstance() { |
| 12292 | } |
| 12293 | |
| 12294 | UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) |
| 12295 | : ::google::protobuf::Message(), |
| 12296 | _internal_metadata_(NULL) { |
| 12297 | SharedCtor(); |
| 12298 | MergeFrom(from); |
| 12299 | // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption) |
| 12300 | } |
| 12301 | |
| 12302 | void UninterpretedOption::SharedCtor() { |
| 12303 | ::google::protobuf::internal::GetEmptyString(); |
| 12304 | _cached_size_ = 0; |
| 12305 | identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12306 | positive_int_value_ = GOOGLE_ULONGLONG(0); |
| 12307 | negative_int_value_ = GOOGLE_LONGLONG(0); |
| 12308 | double_value_ = 0; |
| 12309 | string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12310 | aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12311 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 12312 | } |
| 12313 | |
| 12314 | UninterpretedOption::~UninterpretedOption() { |
| 12315 | // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption) |
| 12316 | SharedDtor(); |
| 12317 | } |
| 12318 | |
| 12319 | void UninterpretedOption::SharedDtor() { |
| 12320 | identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12321 | string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12322 | aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12323 | if (this != default_instance_) { |
| 12324 | } |
| 12325 | } |
| 12326 | |
| 12327 | void UninterpretedOption::SetCachedSize(int size) const { |
| 12328 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12329 | _cached_size_ = size; |
| 12330 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12331 | } |
| 12332 | const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() { |
| 12333 | protobuf_AssignDescriptorsOnce(); |
| 12334 | return UninterpretedOption_descriptor_; |
| 12335 | } |
| 12336 | |
| 12337 | const UninterpretedOption& UninterpretedOption::default_instance() { |
| 12338 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 12339 | return *default_instance_; |
| 12340 | } |
| 12341 | |
| 12342 | UninterpretedOption* UninterpretedOption::default_instance_ = NULL; |
| 12343 | |
| 12344 | UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const { |
| 12345 | UninterpretedOption* n = new UninterpretedOption; |
| 12346 | if (arena != NULL) { |
| 12347 | arena->Own(n); |
| 12348 | } |
| 12349 | return n; |
| 12350 | } |
| 12351 | |
| 12352 | void UninterpretedOption::Clear() { |
| 12353 | #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 12354 | &reinterpret_cast<UninterpretedOption*>(16)->f) |
| 12355 | |
| 12356 | #define ZR_(first, last) do {\ |
| 12357 | ::memset(&first, 0,\ |
| 12358 | ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 12359 | } while (0) |
| 12360 | |
| 12361 | if (_has_bits_[0 / 32] & 126u) { |
| 12362 | ZR_(positive_int_value_, double_value_); |
| 12363 | if (has_identifier_value()) { |
| 12364 | identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12365 | } |
| 12366 | if (has_string_value()) { |
| 12367 | string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12368 | } |
| 12369 | if (has_aggregate_value()) { |
| 12370 | aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12371 | } |
| 12372 | } |
| 12373 | |
| 12374 | #undef ZR_HELPER_ |
| 12375 | #undef ZR_ |
| 12376 | |
| 12377 | name_.Clear(); |
| 12378 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 12379 | if (_internal_metadata_.have_unknown_fields()) { |
| 12380 | mutable_unknown_fields()->Clear(); |
| 12381 | } |
| 12382 | } |
| 12383 | |
| 12384 | bool UninterpretedOption::MergePartialFromCodedStream( |
| 12385 | ::google::protobuf::io::CodedInputStream* input) { |
| 12386 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 12387 | ::google::protobuf::uint32 tag; |
| 12388 | // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption) |
| 12389 | for (;;) { |
| 12390 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 12391 | tag = p.first; |
| 12392 | if (!p.second) goto handle_unusual; |
| 12393 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 12394 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 12395 | case 2: { |
| 12396 | if (tag == 18) { |
| 12397 | DO_(input->IncrementRecursionDepth()); |
| 12398 | parse_loop_name: |
| 12399 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 12400 | input, add_name())); |
| 12401 | } else { |
| 12402 | goto handle_unusual; |
| 12403 | } |
| 12404 | if (input->ExpectTag(18)) goto parse_loop_name; |
| 12405 | input->UnsafeDecrementRecursionDepth(); |
| 12406 | if (input->ExpectTag(26)) goto parse_identifier_value; |
| 12407 | break; |
| 12408 | } |
| 12409 | |
| 12410 | // optional string identifier_value = 3; |
| 12411 | case 3: { |
| 12412 | if (tag == 26) { |
| 12413 | parse_identifier_value: |
| 12414 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 12415 | input, this->mutable_identifier_value())); |
| 12416 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12417 | this->identifier_value().data(), this->identifier_value().length(), |
| 12418 | ::google::protobuf::internal::WireFormat::PARSE, |
| 12419 | "google.protobuf.UninterpretedOption.identifier_value"); |
| 12420 | } else { |
| 12421 | goto handle_unusual; |
| 12422 | } |
| 12423 | if (input->ExpectTag(32)) goto parse_positive_int_value; |
| 12424 | break; |
| 12425 | } |
| 12426 | |
| 12427 | // optional uint64 positive_int_value = 4; |
| 12428 | case 4: { |
| 12429 | if (tag == 32) { |
| 12430 | parse_positive_int_value: |
| 12431 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12432 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
| 12433 | input, &positive_int_value_))); |
| 12434 | set_has_positive_int_value(); |
| 12435 | } else { |
| 12436 | goto handle_unusual; |
| 12437 | } |
| 12438 | if (input->ExpectTag(40)) goto parse_negative_int_value; |
| 12439 | break; |
| 12440 | } |
| 12441 | |
| 12442 | // optional int64 negative_int_value = 5; |
| 12443 | case 5: { |
| 12444 | if (tag == 40) { |
| 12445 | parse_negative_int_value: |
| 12446 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12447 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
| 12448 | input, &negative_int_value_))); |
| 12449 | set_has_negative_int_value(); |
| 12450 | } else { |
| 12451 | goto handle_unusual; |
| 12452 | } |
| 12453 | if (input->ExpectTag(49)) goto parse_double_value; |
| 12454 | break; |
| 12455 | } |
| 12456 | |
| 12457 | // optional double double_value = 6; |
| 12458 | case 6: { |
| 12459 | if (tag == 49) { |
| 12460 | parse_double_value: |
| 12461 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12462 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
| 12463 | input, &double_value_))); |
| 12464 | set_has_double_value(); |
| 12465 | } else { |
| 12466 | goto handle_unusual; |
| 12467 | } |
| 12468 | if (input->ExpectTag(58)) goto parse_string_value; |
| 12469 | break; |
| 12470 | } |
| 12471 | |
| 12472 | // optional bytes string_value = 7; |
| 12473 | case 7: { |
| 12474 | if (tag == 58) { |
| 12475 | parse_string_value: |
| 12476 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
| 12477 | input, this->mutable_string_value())); |
| 12478 | } else { |
| 12479 | goto handle_unusual; |
| 12480 | } |
| 12481 | if (input->ExpectTag(66)) goto parse_aggregate_value; |
| 12482 | break; |
| 12483 | } |
| 12484 | |
| 12485 | // optional string aggregate_value = 8; |
| 12486 | case 8: { |
| 12487 | if (tag == 66) { |
| 12488 | parse_aggregate_value: |
| 12489 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 12490 | input, this->mutable_aggregate_value())); |
| 12491 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12492 | this->aggregate_value().data(), this->aggregate_value().length(), |
| 12493 | ::google::protobuf::internal::WireFormat::PARSE, |
| 12494 | "google.protobuf.UninterpretedOption.aggregate_value"); |
| 12495 | } else { |
| 12496 | goto handle_unusual; |
| 12497 | } |
| 12498 | if (input->ExpectAtEnd()) goto success; |
| 12499 | break; |
| 12500 | } |
| 12501 | |
| 12502 | default: { |
| 12503 | handle_unusual: |
| 12504 | if (tag == 0 || |
| 12505 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 12506 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 12507 | goto success; |
| 12508 | } |
| 12509 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 12510 | input, tag, mutable_unknown_fields())); |
| 12511 | break; |
| 12512 | } |
| 12513 | } |
| 12514 | } |
| 12515 | success: |
| 12516 | // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption) |
| 12517 | return true; |
| 12518 | failure: |
| 12519 | // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption) |
| 12520 | return false; |
| 12521 | #undef DO_ |
| 12522 | } |
| 12523 | |
| 12524 | void UninterpretedOption::SerializeWithCachedSizes( |
| 12525 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 12526 | // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption) |
| 12527 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 12528 | for (unsigned int i = 0, n = this->name_size(); i < n; i++) { |
| 12529 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 12530 | 2, this->name(i), output); |
| 12531 | } |
| 12532 | |
| 12533 | // optional string identifier_value = 3; |
| 12534 | if (has_identifier_value()) { |
| 12535 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12536 | this->identifier_value().data(), this->identifier_value().length(), |
| 12537 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 12538 | "google.protobuf.UninterpretedOption.identifier_value"); |
| 12539 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 12540 | 3, this->identifier_value(), output); |
| 12541 | } |
| 12542 | |
| 12543 | // optional uint64 positive_int_value = 4; |
| 12544 | if (has_positive_int_value()) { |
| 12545 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output); |
| 12546 | } |
| 12547 | |
| 12548 | // optional int64 negative_int_value = 5; |
| 12549 | if (has_negative_int_value()) { |
| 12550 | ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output); |
| 12551 | } |
| 12552 | |
| 12553 | // optional double double_value = 6; |
| 12554 | if (has_double_value()) { |
| 12555 | ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output); |
| 12556 | } |
| 12557 | |
| 12558 | // optional bytes string_value = 7; |
| 12559 | if (has_string_value()) { |
| 12560 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
| 12561 | 7, this->string_value(), output); |
| 12562 | } |
| 12563 | |
| 12564 | // optional string aggregate_value = 8; |
| 12565 | if (has_aggregate_value()) { |
| 12566 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12567 | this->aggregate_value().data(), this->aggregate_value().length(), |
| 12568 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 12569 | "google.protobuf.UninterpretedOption.aggregate_value"); |
| 12570 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 12571 | 8, this->aggregate_value(), output); |
| 12572 | } |
| 12573 | |
| 12574 | if (_internal_metadata_.have_unknown_fields()) { |
| 12575 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 12576 | unknown_fields(), output); |
| 12577 | } |
| 12578 | // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption) |
| 12579 | } |
| 12580 | |
| 12581 | ::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray( |
| 12582 | ::google::protobuf::uint8* target) const { |
| 12583 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption) |
| 12584 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 12585 | for (unsigned int i = 0, n = this->name_size(); i < n; i++) { |
| 12586 | target = ::google::protobuf::internal::WireFormatLite:: |
| 12587 | WriteMessageNoVirtualToArray( |
| 12588 | 2, this->name(i), target); |
| 12589 | } |
| 12590 | |
| 12591 | // optional string identifier_value = 3; |
| 12592 | if (has_identifier_value()) { |
| 12593 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12594 | this->identifier_value().data(), this->identifier_value().length(), |
| 12595 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 12596 | "google.protobuf.UninterpretedOption.identifier_value"); |
| 12597 | target = |
| 12598 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 12599 | 3, this->identifier_value(), target); |
| 12600 | } |
| 12601 | |
| 12602 | // optional uint64 positive_int_value = 4; |
| 12603 | if (has_positive_int_value()) { |
| 12604 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target); |
| 12605 | } |
| 12606 | |
| 12607 | // optional int64 negative_int_value = 5; |
| 12608 | if (has_negative_int_value()) { |
| 12609 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target); |
| 12610 | } |
| 12611 | |
| 12612 | // optional double double_value = 6; |
| 12613 | if (has_double_value()) { |
| 12614 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target); |
| 12615 | } |
| 12616 | |
| 12617 | // optional bytes string_value = 7; |
| 12618 | if (has_string_value()) { |
| 12619 | target = |
| 12620 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
| 12621 | 7, this->string_value(), target); |
| 12622 | } |
| 12623 | |
| 12624 | // optional string aggregate_value = 8; |
| 12625 | if (has_aggregate_value()) { |
| 12626 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12627 | this->aggregate_value().data(), this->aggregate_value().length(), |
| 12628 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 12629 | "google.protobuf.UninterpretedOption.aggregate_value"); |
| 12630 | target = |
| 12631 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 12632 | 8, this->aggregate_value(), target); |
| 12633 | } |
| 12634 | |
| 12635 | if (_internal_metadata_.have_unknown_fields()) { |
| 12636 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 12637 | unknown_fields(), target); |
| 12638 | } |
| 12639 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption) |
| 12640 | return target; |
| 12641 | } |
| 12642 | |
| 12643 | int UninterpretedOption::ByteSize() const { |
| 12644 | int total_size = 0; |
| 12645 | |
| 12646 | if (_has_bits_[1 / 32] & 126u) { |
| 12647 | // optional string identifier_value = 3; |
| 12648 | if (has_identifier_value()) { |
| 12649 | total_size += 1 + |
| 12650 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12651 | this->identifier_value()); |
| 12652 | } |
| 12653 | |
| 12654 | // optional uint64 positive_int_value = 4; |
| 12655 | if (has_positive_int_value()) { |
| 12656 | total_size += 1 + |
| 12657 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
| 12658 | this->positive_int_value()); |
| 12659 | } |
| 12660 | |
| 12661 | // optional int64 negative_int_value = 5; |
| 12662 | if (has_negative_int_value()) { |
| 12663 | total_size += 1 + |
| 12664 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
| 12665 | this->negative_int_value()); |
| 12666 | } |
| 12667 | |
| 12668 | // optional double double_value = 6; |
| 12669 | if (has_double_value()) { |
| 12670 | total_size += 1 + 8; |
| 12671 | } |
| 12672 | |
| 12673 | // optional bytes string_value = 7; |
| 12674 | if (has_string_value()) { |
| 12675 | total_size += 1 + |
| 12676 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
| 12677 | this->string_value()); |
| 12678 | } |
| 12679 | |
| 12680 | // optional string aggregate_value = 8; |
| 12681 | if (has_aggregate_value()) { |
| 12682 | total_size += 1 + |
| 12683 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12684 | this->aggregate_value()); |
| 12685 | } |
| 12686 | |
| 12687 | } |
| 12688 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 12689 | total_size += 1 * this->name_size(); |
| 12690 | for (int i = 0; i < this->name_size(); i++) { |
| 12691 | total_size += |
| 12692 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 12693 | this->name(i)); |
| 12694 | } |
| 12695 | |
| 12696 | if (_internal_metadata_.have_unknown_fields()) { |
| 12697 | total_size += |
| 12698 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 12699 | unknown_fields()); |
| 12700 | } |
| 12701 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12702 | _cached_size_ = total_size; |
| 12703 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12704 | return total_size; |
| 12705 | } |
| 12706 | |
| 12707 | void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { |
| 12708 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 12709 | const UninterpretedOption* source = |
| 12710 | ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption>( |
| 12711 | &from); |
| 12712 | if (source == NULL) { |
| 12713 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 12714 | } else { |
| 12715 | MergeFrom(*source); |
| 12716 | } |
| 12717 | } |
| 12718 | |
| 12719 | void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { |
| 12720 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 12721 | name_.MergeFrom(from.name_); |
| 12722 | if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
| 12723 | if (from.has_identifier_value()) { |
| 12724 | set_has_identifier_value(); |
| 12725 | identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_value_); |
| 12726 | } |
| 12727 | if (from.has_positive_int_value()) { |
| 12728 | set_positive_int_value(from.positive_int_value()); |
| 12729 | } |
| 12730 | if (from.has_negative_int_value()) { |
| 12731 | set_negative_int_value(from.negative_int_value()); |
| 12732 | } |
| 12733 | if (from.has_double_value()) { |
| 12734 | set_double_value(from.double_value()); |
| 12735 | } |
| 12736 | if (from.has_string_value()) { |
| 12737 | set_has_string_value(); |
| 12738 | string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_value_); |
| 12739 | } |
| 12740 | if (from.has_aggregate_value()) { |
| 12741 | set_has_aggregate_value(); |
| 12742 | aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.aggregate_value_); |
| 12743 | } |
| 12744 | } |
| 12745 | if (from._internal_metadata_.have_unknown_fields()) { |
| 12746 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 12747 | } |
| 12748 | } |
| 12749 | |
| 12750 | void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) { |
| 12751 | if (&from == this) return; |
| 12752 | Clear(); |
| 12753 | MergeFrom(from); |
| 12754 | } |
| 12755 | |
| 12756 | void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { |
| 12757 | if (&from == this) return; |
| 12758 | Clear(); |
| 12759 | MergeFrom(from); |
| 12760 | } |
| 12761 | |
| 12762 | bool UninterpretedOption::IsInitialized() const { |
| 12763 | |
| 12764 | if (!::google::protobuf::internal::AllAreInitialized(this->name())) return false; |
| 12765 | return true; |
| 12766 | } |
| 12767 | |
| 12768 | void UninterpretedOption::Swap(UninterpretedOption* other) { |
| 12769 | if (other == this) return; |
| 12770 | InternalSwap(other); |
| 12771 | } |
| 12772 | void UninterpretedOption::InternalSwap(UninterpretedOption* other) { |
| 12773 | name_.UnsafeArenaSwap(&other->name_); |
| 12774 | identifier_value_.Swap(&other->identifier_value_); |
| 12775 | std::swap(positive_int_value_, other->positive_int_value_); |
| 12776 | std::swap(negative_int_value_, other->negative_int_value_); |
| 12777 | std::swap(double_value_, other->double_value_); |
| 12778 | string_value_.Swap(&other->string_value_); |
| 12779 | aggregate_value_.Swap(&other->aggregate_value_); |
| 12780 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 12781 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12782 | std::swap(_cached_size_, other->_cached_size_); |
| 12783 | } |
| 12784 | |
| 12785 | ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const { |
| 12786 | protobuf_AssignDescriptorsOnce(); |
| 12787 | ::google::protobuf::Metadata metadata; |
| 12788 | metadata.descriptor = UninterpretedOption_descriptor_; |
| 12789 | metadata.reflection = UninterpretedOption_reflection_; |
| 12790 | return metadata; |
| 12791 | } |
| 12792 | |
| 12793 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 12794 | // UninterpretedOption_NamePart |
| 12795 | |
| 12796 | // required string name_part = 1; |
| 12797 | bool UninterpretedOption_NamePart::has_name_part() const { |
| 12798 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 12799 | } |
| 12800 | void UninterpretedOption_NamePart::set_has_name_part() { |
| 12801 | _has_bits_[0] |= 0x00000001u; |
| 12802 | } |
| 12803 | void UninterpretedOption_NamePart::clear_has_name_part() { |
| 12804 | _has_bits_[0] &= ~0x00000001u; |
| 12805 | } |
| 12806 | void UninterpretedOption_NamePart::clear_name_part() { |
| 12807 | name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12808 | clear_has_name_part(); |
| 12809 | } |
| 12810 | const ::std::string& UninterpretedOption_NamePart::name_part() const { |
| 12811 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12812 | return name_part_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12813 | } |
| 12814 | void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { |
| 12815 | set_has_name_part(); |
| 12816 | name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 12817 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12818 | } |
| 12819 | void UninterpretedOption_NamePart::set_name_part(const char* value) { |
| 12820 | set_has_name_part(); |
| 12821 | name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 12822 | // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12823 | } |
| 12824 | void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) { |
| 12825 | set_has_name_part(); |
| 12826 | name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12827 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 12828 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12829 | } |
| 12830 | ::std::string* UninterpretedOption_NamePart::mutable_name_part() { |
| 12831 | set_has_name_part(); |
| 12832 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12833 | return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12834 | } |
| 12835 | ::std::string* UninterpretedOption_NamePart::release_name_part() { |
| 12836 | clear_has_name_part(); |
| 12837 | return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12838 | } |
| 12839 | void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) { |
| 12840 | if (name_part != NULL) { |
| 12841 | set_has_name_part(); |
| 12842 | } else { |
| 12843 | clear_has_name_part(); |
| 12844 | } |
| 12845 | name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_part); |
| 12846 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12847 | } |
| 12848 | |
| 12849 | // required bool is_extension = 2; |
| 12850 | bool UninterpretedOption_NamePart::has_is_extension() const { |
| 12851 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 12852 | } |
| 12853 | void UninterpretedOption_NamePart::set_has_is_extension() { |
| 12854 | _has_bits_[0] |= 0x00000002u; |
| 12855 | } |
| 12856 | void UninterpretedOption_NamePart::clear_has_is_extension() { |
| 12857 | _has_bits_[0] &= ~0x00000002u; |
| 12858 | } |
| 12859 | void UninterpretedOption_NamePart::clear_is_extension() { |
| 12860 | is_extension_ = false; |
| 12861 | clear_has_is_extension(); |
| 12862 | } |
| 12863 | bool UninterpretedOption_NamePart::is_extension() const { |
| 12864 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension) |
| 12865 | return is_extension_; |
| 12866 | } |
| 12867 | void UninterpretedOption_NamePart::set_is_extension(bool value) { |
| 12868 | set_has_is_extension(); |
| 12869 | is_extension_ = value; |
| 12870 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension) |
| 12871 | } |
| 12872 | |
| 12873 | // ------------------------------------------------------------------- |
| 12874 | |
| 12875 | // UninterpretedOption |
| 12876 | |
| 12877 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 12878 | int UninterpretedOption::name_size() const { |
| 12879 | return name_.size(); |
| 12880 | } |
| 12881 | void UninterpretedOption::clear_name() { |
| 12882 | name_.Clear(); |
| 12883 | } |
| 12884 | const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const { |
| 12885 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name) |
| 12886 | return name_.Get(index); |
| 12887 | } |
| 12888 | ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) { |
| 12889 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name) |
| 12890 | return name_.Mutable(index); |
| 12891 | } |
| 12892 | ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() { |
| 12893 | // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name) |
| 12894 | return name_.Add(); |
| 12895 | } |
| 12896 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >* |
| 12897 | UninterpretedOption::mutable_name() { |
| 12898 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name) |
| 12899 | return &name_; |
| 12900 | } |
| 12901 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >& |
| 12902 | UninterpretedOption::name() const { |
| 12903 | // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name) |
| 12904 | return name_; |
| 12905 | } |
| 12906 | |
| 12907 | // optional string identifier_value = 3; |
| 12908 | bool UninterpretedOption::has_identifier_value() const { |
| 12909 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 12910 | } |
| 12911 | void UninterpretedOption::set_has_identifier_value() { |
| 12912 | _has_bits_[0] |= 0x00000002u; |
| 12913 | } |
| 12914 | void UninterpretedOption::clear_has_identifier_value() { |
| 12915 | _has_bits_[0] &= ~0x00000002u; |
| 12916 | } |
| 12917 | void UninterpretedOption::clear_identifier_value() { |
| 12918 | identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12919 | clear_has_identifier_value(); |
| 12920 | } |
| 12921 | const ::std::string& UninterpretedOption::identifier_value() const { |
| 12922 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value) |
| 12923 | return identifier_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12924 | } |
| 12925 | void UninterpretedOption::set_identifier_value(const ::std::string& value) { |
| 12926 | set_has_identifier_value(); |
| 12927 | identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 12928 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value) |
| 12929 | } |
| 12930 | void UninterpretedOption::set_identifier_value(const char* value) { |
| 12931 | set_has_identifier_value(); |
| 12932 | identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 12933 | // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value) |
| 12934 | } |
| 12935 | void UninterpretedOption::set_identifier_value(const char* value, size_t size) { |
| 12936 | set_has_identifier_value(); |
| 12937 | identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12938 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 12939 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value) |
| 12940 | } |
| 12941 | ::std::string* UninterpretedOption::mutable_identifier_value() { |
| 12942 | set_has_identifier_value(); |
| 12943 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value) |
| 12944 | return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12945 | } |
| 12946 | ::std::string* UninterpretedOption::release_identifier_value() { |
| 12947 | clear_has_identifier_value(); |
| 12948 | return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12949 | } |
| 12950 | void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) { |
| 12951 | if (identifier_value != NULL) { |
| 12952 | set_has_identifier_value(); |
| 12953 | } else { |
| 12954 | clear_has_identifier_value(); |
| 12955 | } |
| 12956 | identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), identifier_value); |
| 12957 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value) |
| 12958 | } |
| 12959 | |
| 12960 | // optional uint64 positive_int_value = 4; |
| 12961 | bool UninterpretedOption::has_positive_int_value() const { |
| 12962 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 12963 | } |
| 12964 | void UninterpretedOption::set_has_positive_int_value() { |
| 12965 | _has_bits_[0] |= 0x00000004u; |
| 12966 | } |
| 12967 | void UninterpretedOption::clear_has_positive_int_value() { |
| 12968 | _has_bits_[0] &= ~0x00000004u; |
| 12969 | } |
| 12970 | void UninterpretedOption::clear_positive_int_value() { |
| 12971 | positive_int_value_ = GOOGLE_ULONGLONG(0); |
| 12972 | clear_has_positive_int_value(); |
| 12973 | } |
| 12974 | ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { |
| 12975 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value) |
| 12976 | return positive_int_value_; |
| 12977 | } |
| 12978 | void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) { |
| 12979 | set_has_positive_int_value(); |
| 12980 | positive_int_value_ = value; |
| 12981 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value) |
| 12982 | } |
| 12983 | |
| 12984 | // optional int64 negative_int_value = 5; |
| 12985 | bool UninterpretedOption::has_negative_int_value() const { |
| 12986 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 12987 | } |
| 12988 | void UninterpretedOption::set_has_negative_int_value() { |
| 12989 | _has_bits_[0] |= 0x00000008u; |
| 12990 | } |
| 12991 | void UninterpretedOption::clear_has_negative_int_value() { |
| 12992 | _has_bits_[0] &= ~0x00000008u; |
| 12993 | } |
| 12994 | void UninterpretedOption::clear_negative_int_value() { |
| 12995 | negative_int_value_ = GOOGLE_LONGLONG(0); |
| 12996 | clear_has_negative_int_value(); |
| 12997 | } |
| 12998 | ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { |
| 12999 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value) |
| 13000 | return negative_int_value_; |
| 13001 | } |
| 13002 | void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) { |
| 13003 | set_has_negative_int_value(); |
| 13004 | negative_int_value_ = value; |
| 13005 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value) |
| 13006 | } |
| 13007 | |
| 13008 | // optional double double_value = 6; |
| 13009 | bool UninterpretedOption::has_double_value() const { |
| 13010 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 13011 | } |
| 13012 | void UninterpretedOption::set_has_double_value() { |
| 13013 | _has_bits_[0] |= 0x00000010u; |
| 13014 | } |
| 13015 | void UninterpretedOption::clear_has_double_value() { |
| 13016 | _has_bits_[0] &= ~0x00000010u; |
| 13017 | } |
| 13018 | void UninterpretedOption::clear_double_value() { |
| 13019 | double_value_ = 0; |
| 13020 | clear_has_double_value(); |
| 13021 | } |
| 13022 | double UninterpretedOption::double_value() const { |
| 13023 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value) |
| 13024 | return double_value_; |
| 13025 | } |
| 13026 | void UninterpretedOption::set_double_value(double value) { |
| 13027 | set_has_double_value(); |
| 13028 | double_value_ = value; |
| 13029 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value) |
| 13030 | } |
| 13031 | |
| 13032 | // optional bytes string_value = 7; |
| 13033 | bool UninterpretedOption::has_string_value() const { |
| 13034 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 13035 | } |
| 13036 | void UninterpretedOption::set_has_string_value() { |
| 13037 | _has_bits_[0] |= 0x00000020u; |
| 13038 | } |
| 13039 | void UninterpretedOption::clear_has_string_value() { |
| 13040 | _has_bits_[0] &= ~0x00000020u; |
| 13041 | } |
| 13042 | void UninterpretedOption::clear_string_value() { |
| 13043 | string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13044 | clear_has_string_value(); |
| 13045 | } |
| 13046 | const ::std::string& UninterpretedOption::string_value() const { |
| 13047 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value) |
| 13048 | return string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13049 | } |
| 13050 | void UninterpretedOption::set_string_value(const ::std::string& value) { |
| 13051 | set_has_string_value(); |
| 13052 | string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 13053 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value) |
| 13054 | } |
| 13055 | void UninterpretedOption::set_string_value(const char* value) { |
| 13056 | set_has_string_value(); |
| 13057 | string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 13058 | // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value) |
| 13059 | } |
| 13060 | void UninterpretedOption::set_string_value(const void* value, size_t size) { |
| 13061 | set_has_string_value(); |
| 13062 | string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13063 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13064 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value) |
| 13065 | } |
| 13066 | ::std::string* UninterpretedOption::mutable_string_value() { |
| 13067 | set_has_string_value(); |
| 13068 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value) |
| 13069 | return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13070 | } |
| 13071 | ::std::string* UninterpretedOption::release_string_value() { |
| 13072 | clear_has_string_value(); |
| 13073 | return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13074 | } |
| 13075 | void UninterpretedOption::set_allocated_string_value(::std::string* string_value) { |
| 13076 | if (string_value != NULL) { |
| 13077 | set_has_string_value(); |
| 13078 | } else { |
| 13079 | clear_has_string_value(); |
| 13080 | } |
| 13081 | string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value); |
| 13082 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value) |
| 13083 | } |
| 13084 | |
| 13085 | // optional string aggregate_value = 8; |
| 13086 | bool UninterpretedOption::has_aggregate_value() const { |
| 13087 | return (_has_bits_[0] & 0x00000040u) != 0; |
| 13088 | } |
| 13089 | void UninterpretedOption::set_has_aggregate_value() { |
| 13090 | _has_bits_[0] |= 0x00000040u; |
| 13091 | } |
| 13092 | void UninterpretedOption::clear_has_aggregate_value() { |
| 13093 | _has_bits_[0] &= ~0x00000040u; |
| 13094 | } |
| 13095 | void UninterpretedOption::clear_aggregate_value() { |
| 13096 | aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13097 | clear_has_aggregate_value(); |
| 13098 | } |
| 13099 | const ::std::string& UninterpretedOption::aggregate_value() const { |
| 13100 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value) |
| 13101 | return aggregate_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13102 | } |
| 13103 | void UninterpretedOption::set_aggregate_value(const ::std::string& value) { |
| 13104 | set_has_aggregate_value(); |
| 13105 | aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 13106 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value) |
| 13107 | } |
| 13108 | void UninterpretedOption::set_aggregate_value(const char* value) { |
| 13109 | set_has_aggregate_value(); |
| 13110 | aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 13111 | // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value) |
| 13112 | } |
| 13113 | void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { |
| 13114 | set_has_aggregate_value(); |
| 13115 | aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13116 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13117 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value) |
| 13118 | } |
| 13119 | ::std::string* UninterpretedOption::mutable_aggregate_value() { |
| 13120 | set_has_aggregate_value(); |
| 13121 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value) |
| 13122 | return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13123 | } |
| 13124 | ::std::string* UninterpretedOption::release_aggregate_value() { |
| 13125 | clear_has_aggregate_value(); |
| 13126 | return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13127 | } |
| 13128 | void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) { |
| 13129 | if (aggregate_value != NULL) { |
| 13130 | set_has_aggregate_value(); |
| 13131 | } else { |
| 13132 | clear_has_aggregate_value(); |
| 13133 | } |
| 13134 | aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), aggregate_value); |
| 13135 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value) |
| 13136 | } |
| 13137 | |
| 13138 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 13139 | |
| 13140 | // =================================================================== |
| 13141 | |
| 13142 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13143 | const int SourceCodeInfo_Location::kPathFieldNumber; |
| 13144 | const int SourceCodeInfo_Location::kSpanFieldNumber; |
| 13145 | const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber; |
| 13146 | const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber; |
| 13147 | const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber; |
| 13148 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13149 | |
| 13150 | SourceCodeInfo_Location::SourceCodeInfo_Location() |
| 13151 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 13152 | SharedCtor(); |
| 13153 | // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Location) |
| 13154 | } |
| 13155 | |
| 13156 | void SourceCodeInfo_Location::InitAsDefaultInstance() { |
| 13157 | } |
| 13158 | |
| 13159 | SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from) |
| 13160 | : ::google::protobuf::Message(), |
| 13161 | _internal_metadata_(NULL) { |
| 13162 | SharedCtor(); |
| 13163 | MergeFrom(from); |
| 13164 | // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location) |
| 13165 | } |
| 13166 | |
| 13167 | void SourceCodeInfo_Location::SharedCtor() { |
| 13168 | ::google::protobuf::internal::GetEmptyString(); |
| 13169 | _cached_size_ = 0; |
| 13170 | leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13171 | trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13172 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 13173 | } |
| 13174 | |
| 13175 | SourceCodeInfo_Location::~SourceCodeInfo_Location() { |
| 13176 | // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location) |
| 13177 | SharedDtor(); |
| 13178 | } |
| 13179 | |
| 13180 | void SourceCodeInfo_Location::SharedDtor() { |
| 13181 | leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13182 | trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13183 | if (this != default_instance_) { |
| 13184 | } |
| 13185 | } |
| 13186 | |
| 13187 | void SourceCodeInfo_Location::SetCachedSize(int size) const { |
| 13188 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13189 | _cached_size_ = size; |
| 13190 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13191 | } |
| 13192 | const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { |
| 13193 | protobuf_AssignDescriptorsOnce(); |
| 13194 | return SourceCodeInfo_Location_descriptor_; |
| 13195 | } |
| 13196 | |
| 13197 | const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { |
| 13198 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 13199 | return *default_instance_; |
| 13200 | } |
| 13201 | |
| 13202 | SourceCodeInfo_Location* SourceCodeInfo_Location::default_instance_ = NULL; |
| 13203 | |
| 13204 | SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const { |
| 13205 | SourceCodeInfo_Location* n = new SourceCodeInfo_Location; |
| 13206 | if (arena != NULL) { |
| 13207 | arena->Own(n); |
| 13208 | } |
| 13209 | return n; |
| 13210 | } |
| 13211 | |
| 13212 | void SourceCodeInfo_Location::Clear() { |
| 13213 | if (_has_bits_[0 / 32] & 12u) { |
| 13214 | if (has_leading_comments()) { |
| 13215 | leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13216 | } |
| 13217 | if (has_trailing_comments()) { |
| 13218 | trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13219 | } |
| 13220 | } |
| 13221 | path_.Clear(); |
| 13222 | span_.Clear(); |
| 13223 | leading_detached_comments_.Clear(); |
| 13224 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 13225 | if (_internal_metadata_.have_unknown_fields()) { |
| 13226 | mutable_unknown_fields()->Clear(); |
| 13227 | } |
| 13228 | } |
| 13229 | |
| 13230 | bool SourceCodeInfo_Location::MergePartialFromCodedStream( |
| 13231 | ::google::protobuf::io::CodedInputStream* input) { |
| 13232 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 13233 | ::google::protobuf::uint32 tag; |
| 13234 | // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Location) |
| 13235 | for (;;) { |
| 13236 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 13237 | tag = p.first; |
| 13238 | if (!p.second) goto handle_unusual; |
| 13239 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 13240 | // repeated int32 path = 1 [packed = true]; |
| 13241 | case 1: { |
| 13242 | if (tag == 10) { |
| 13243 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 13244 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 13245 | input, this->mutable_path()))); |
| 13246 | } else if (tag == 8) { |
| 13247 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 13248 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 13249 | 1, 10, input, this->mutable_path()))); |
| 13250 | } else { |
| 13251 | goto handle_unusual; |
| 13252 | } |
| 13253 | if (input->ExpectTag(18)) goto parse_span; |
| 13254 | break; |
| 13255 | } |
| 13256 | |
| 13257 | // repeated int32 span = 2 [packed = true]; |
| 13258 | case 2: { |
| 13259 | if (tag == 18) { |
| 13260 | parse_span: |
| 13261 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 13262 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 13263 | input, this->mutable_span()))); |
| 13264 | } else if (tag == 16) { |
| 13265 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 13266 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 13267 | 1, 18, input, this->mutable_span()))); |
| 13268 | } else { |
| 13269 | goto handle_unusual; |
| 13270 | } |
| 13271 | if (input->ExpectTag(26)) goto parse_leading_comments; |
| 13272 | break; |
| 13273 | } |
| 13274 | |
| 13275 | // optional string leading_comments = 3; |
| 13276 | case 3: { |
| 13277 | if (tag == 26) { |
| 13278 | parse_leading_comments: |
| 13279 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13280 | input, this->mutable_leading_comments())); |
| 13281 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13282 | this->leading_comments().data(), this->leading_comments().length(), |
| 13283 | ::google::protobuf::internal::WireFormat::PARSE, |
| 13284 | "google.protobuf.SourceCodeInfo.Location.leading_comments"); |
| 13285 | } else { |
| 13286 | goto handle_unusual; |
| 13287 | } |
| 13288 | if (input->ExpectTag(34)) goto parse_trailing_comments; |
| 13289 | break; |
| 13290 | } |
| 13291 | |
| 13292 | // optional string trailing_comments = 4; |
| 13293 | case 4: { |
| 13294 | if (tag == 34) { |
| 13295 | parse_trailing_comments: |
| 13296 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13297 | input, this->mutable_trailing_comments())); |
| 13298 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13299 | this->trailing_comments().data(), this->trailing_comments().length(), |
| 13300 | ::google::protobuf::internal::WireFormat::PARSE, |
| 13301 | "google.protobuf.SourceCodeInfo.Location.trailing_comments"); |
| 13302 | } else { |
| 13303 | goto handle_unusual; |
| 13304 | } |
| 13305 | if (input->ExpectTag(50)) goto parse_leading_detached_comments; |
| 13306 | break; |
| 13307 | } |
| 13308 | |
| 13309 | // repeated string leading_detached_comments = 6; |
| 13310 | case 6: { |
| 13311 | if (tag == 50) { |
| 13312 | parse_leading_detached_comments: |
| 13313 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13314 | input, this->add_leading_detached_comments())); |
| 13315 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13316 | this->leading_detached_comments(this->leading_detached_comments_size() - 1).data(), |
| 13317 | this->leading_detached_comments(this->leading_detached_comments_size() - 1).length(), |
| 13318 | ::google::protobuf::internal::WireFormat::PARSE, |
| 13319 | "google.protobuf.SourceCodeInfo.Location.leading_detached_comments"); |
| 13320 | } else { |
| 13321 | goto handle_unusual; |
| 13322 | } |
| 13323 | if (input->ExpectTag(50)) goto parse_leading_detached_comments; |
| 13324 | if (input->ExpectAtEnd()) goto success; |
| 13325 | break; |
| 13326 | } |
| 13327 | |
| 13328 | default: { |
| 13329 | handle_unusual: |
| 13330 | if (tag == 0 || |
| 13331 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 13332 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 13333 | goto success; |
| 13334 | } |
| 13335 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 13336 | input, tag, mutable_unknown_fields())); |
| 13337 | break; |
| 13338 | } |
| 13339 | } |
| 13340 | } |
| 13341 | success: |
| 13342 | // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Location) |
| 13343 | return true; |
| 13344 | failure: |
| 13345 | // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Location) |
| 13346 | return false; |
| 13347 | #undef DO_ |
| 13348 | } |
| 13349 | |
| 13350 | void SourceCodeInfo_Location::SerializeWithCachedSizes( |
| 13351 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 13352 | // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Location) |
| 13353 | // repeated int32 path = 1 [packed = true]; |
| 13354 | if (this->path_size() > 0) { |
| 13355 | ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 13356 | output->WriteVarint32(_path_cached_byte_size_); |
| 13357 | } |
| 13358 | for (int i = 0; i < this->path_size(); i++) { |
| 13359 | ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
| 13360 | this->path(i), output); |
| 13361 | } |
| 13362 | |
| 13363 | // repeated int32 span = 2 [packed = true]; |
| 13364 | if (this->span_size() > 0) { |
| 13365 | ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 13366 | output->WriteVarint32(_span_cached_byte_size_); |
| 13367 | } |
| 13368 | for (int i = 0; i < this->span_size(); i++) { |
| 13369 | ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
| 13370 | this->span(i), output); |
| 13371 | } |
| 13372 | |
| 13373 | // optional string leading_comments = 3; |
| 13374 | if (has_leading_comments()) { |
| 13375 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13376 | this->leading_comments().data(), this->leading_comments().length(), |
| 13377 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13378 | "google.protobuf.SourceCodeInfo.Location.leading_comments"); |
| 13379 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 13380 | 3, this->leading_comments(), output); |
| 13381 | } |
| 13382 | |
| 13383 | // optional string trailing_comments = 4; |
| 13384 | if (has_trailing_comments()) { |
| 13385 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13386 | this->trailing_comments().data(), this->trailing_comments().length(), |
| 13387 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13388 | "google.protobuf.SourceCodeInfo.Location.trailing_comments"); |
| 13389 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 13390 | 4, this->trailing_comments(), output); |
| 13391 | } |
| 13392 | |
| 13393 | // repeated string leading_detached_comments = 6; |
| 13394 | for (int i = 0; i < this->leading_detached_comments_size(); i++) { |
| 13395 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13396 | this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(), |
| 13397 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13398 | "google.protobuf.SourceCodeInfo.Location.leading_detached_comments"); |
| 13399 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 13400 | 6, this->leading_detached_comments(i), output); |
| 13401 | } |
| 13402 | |
| 13403 | if (_internal_metadata_.have_unknown_fields()) { |
| 13404 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 13405 | unknown_fields(), output); |
| 13406 | } |
| 13407 | // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Location) |
| 13408 | } |
| 13409 | |
| 13410 | ::google::protobuf::uint8* SourceCodeInfo_Location::SerializeWithCachedSizesToArray( |
| 13411 | ::google::protobuf::uint8* target) const { |
| 13412 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location) |
| 13413 | // repeated int32 path = 1 [packed = true]; |
| 13414 | if (this->path_size() > 0) { |
| 13415 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 13416 | 1, |
| 13417 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 13418 | target); |
| 13419 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 13420 | _path_cached_byte_size_, target); |
| 13421 | } |
| 13422 | for (int i = 0; i < this->path_size(); i++) { |
| 13423 | target = ::google::protobuf::internal::WireFormatLite:: |
| 13424 | WriteInt32NoTagToArray(this->path(i), target); |
| 13425 | } |
| 13426 | |
| 13427 | // repeated int32 span = 2 [packed = true]; |
| 13428 | if (this->span_size() > 0) { |
| 13429 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 13430 | 2, |
| 13431 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 13432 | target); |
| 13433 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 13434 | _span_cached_byte_size_, target); |
| 13435 | } |
| 13436 | for (int i = 0; i < this->span_size(); i++) { |
| 13437 | target = ::google::protobuf::internal::WireFormatLite:: |
| 13438 | WriteInt32NoTagToArray(this->span(i), target); |
| 13439 | } |
| 13440 | |
| 13441 | // optional string leading_comments = 3; |
| 13442 | if (has_leading_comments()) { |
| 13443 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13444 | this->leading_comments().data(), this->leading_comments().length(), |
| 13445 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13446 | "google.protobuf.SourceCodeInfo.Location.leading_comments"); |
| 13447 | target = |
| 13448 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 13449 | 3, this->leading_comments(), target); |
| 13450 | } |
| 13451 | |
| 13452 | // optional string trailing_comments = 4; |
| 13453 | if (has_trailing_comments()) { |
| 13454 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13455 | this->trailing_comments().data(), this->trailing_comments().length(), |
| 13456 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13457 | "google.protobuf.SourceCodeInfo.Location.trailing_comments"); |
| 13458 | target = |
| 13459 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 13460 | 4, this->trailing_comments(), target); |
| 13461 | } |
| 13462 | |
| 13463 | // repeated string leading_detached_comments = 6; |
| 13464 | for (int i = 0; i < this->leading_detached_comments_size(); i++) { |
| 13465 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13466 | this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(), |
| 13467 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13468 | "google.protobuf.SourceCodeInfo.Location.leading_detached_comments"); |
| 13469 | target = ::google::protobuf::internal::WireFormatLite:: |
| 13470 | WriteStringToArray(6, this->leading_detached_comments(i), target); |
| 13471 | } |
| 13472 | |
| 13473 | if (_internal_metadata_.have_unknown_fields()) { |
| 13474 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 13475 | unknown_fields(), target); |
| 13476 | } |
| 13477 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo.Location) |
| 13478 | return target; |
| 13479 | } |
| 13480 | |
| 13481 | int SourceCodeInfo_Location::ByteSize() const { |
| 13482 | int total_size = 0; |
| 13483 | |
| 13484 | if (_has_bits_[2 / 32] & 12u) { |
| 13485 | // optional string leading_comments = 3; |
| 13486 | if (has_leading_comments()) { |
| 13487 | total_size += 1 + |
| 13488 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13489 | this->leading_comments()); |
| 13490 | } |
| 13491 | |
| 13492 | // optional string trailing_comments = 4; |
| 13493 | if (has_trailing_comments()) { |
| 13494 | total_size += 1 + |
| 13495 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13496 | this->trailing_comments()); |
| 13497 | } |
| 13498 | |
| 13499 | } |
| 13500 | // repeated int32 path = 1 [packed = true]; |
| 13501 | { |
| 13502 | int data_size = 0; |
| 13503 | for (int i = 0; i < this->path_size(); i++) { |
| 13504 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 13505 | Int32Size(this->path(i)); |
| 13506 | } |
| 13507 | if (data_size > 0) { |
| 13508 | total_size += 1 + |
| 13509 | ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| 13510 | } |
| 13511 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13512 | _path_cached_byte_size_ = data_size; |
| 13513 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13514 | total_size += data_size; |
| 13515 | } |
| 13516 | |
| 13517 | // repeated int32 span = 2 [packed = true]; |
| 13518 | { |
| 13519 | int data_size = 0; |
| 13520 | for (int i = 0; i < this->span_size(); i++) { |
| 13521 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 13522 | Int32Size(this->span(i)); |
| 13523 | } |
| 13524 | if (data_size > 0) { |
| 13525 | total_size += 1 + |
| 13526 | ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| 13527 | } |
| 13528 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13529 | _span_cached_byte_size_ = data_size; |
| 13530 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13531 | total_size += data_size; |
| 13532 | } |
| 13533 | |
| 13534 | // repeated string leading_detached_comments = 6; |
| 13535 | total_size += 1 * this->leading_detached_comments_size(); |
| 13536 | for (int i = 0; i < this->leading_detached_comments_size(); i++) { |
| 13537 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13538 | this->leading_detached_comments(i)); |
| 13539 | } |
| 13540 | |
| 13541 | if (_internal_metadata_.have_unknown_fields()) { |
| 13542 | total_size += |
| 13543 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 13544 | unknown_fields()); |
| 13545 | } |
| 13546 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13547 | _cached_size_ = total_size; |
| 13548 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13549 | return total_size; |
| 13550 | } |
| 13551 | |
| 13552 | void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) { |
| 13553 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 13554 | const SourceCodeInfo_Location* source = |
| 13555 | ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_Location>( |
| 13556 | &from); |
| 13557 | if (source == NULL) { |
| 13558 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 13559 | } else { |
| 13560 | MergeFrom(*source); |
| 13561 | } |
| 13562 | } |
| 13563 | |
| 13564 | void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { |
| 13565 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 13566 | path_.MergeFrom(from.path_); |
| 13567 | span_.MergeFrom(from.span_); |
| 13568 | leading_detached_comments_.MergeFrom(from.leading_detached_comments_); |
| 13569 | if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) { |
| 13570 | if (from.has_leading_comments()) { |
| 13571 | set_has_leading_comments(); |
| 13572 | leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leading_comments_); |
| 13573 | } |
| 13574 | if (from.has_trailing_comments()) { |
| 13575 | set_has_trailing_comments(); |
| 13576 | trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trailing_comments_); |
| 13577 | } |
| 13578 | } |
| 13579 | if (from._internal_metadata_.have_unknown_fields()) { |
| 13580 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 13581 | } |
| 13582 | } |
| 13583 | |
| 13584 | void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) { |
| 13585 | if (&from == this) return; |
| 13586 | Clear(); |
| 13587 | MergeFrom(from); |
| 13588 | } |
| 13589 | |
| 13590 | void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { |
| 13591 | if (&from == this) return; |
| 13592 | Clear(); |
| 13593 | MergeFrom(from); |
| 13594 | } |
| 13595 | |
| 13596 | bool SourceCodeInfo_Location::IsInitialized() const { |
| 13597 | |
| 13598 | return true; |
| 13599 | } |
| 13600 | |
| 13601 | void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { |
| 13602 | if (other == this) return; |
| 13603 | InternalSwap(other); |
| 13604 | } |
| 13605 | void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { |
| 13606 | path_.UnsafeArenaSwap(&other->path_); |
| 13607 | span_.UnsafeArenaSwap(&other->span_); |
| 13608 | leading_comments_.Swap(&other->leading_comments_); |
| 13609 | trailing_comments_.Swap(&other->trailing_comments_); |
| 13610 | leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_); |
| 13611 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 13612 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 13613 | std::swap(_cached_size_, other->_cached_size_); |
| 13614 | } |
| 13615 | |
| 13616 | ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { |
| 13617 | protobuf_AssignDescriptorsOnce(); |
| 13618 | ::google::protobuf::Metadata metadata; |
| 13619 | metadata.descriptor = SourceCodeInfo_Location_descriptor_; |
| 13620 | metadata.reflection = SourceCodeInfo_Location_reflection_; |
| 13621 | return metadata; |
| 13622 | } |
| 13623 | |
| 13624 | |
| 13625 | // ------------------------------------------------------------------- |
| 13626 | |
| 13627 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13628 | const int SourceCodeInfo::kLocationFieldNumber; |
| 13629 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13630 | |
| 13631 | SourceCodeInfo::SourceCodeInfo() |
| 13632 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 13633 | SharedCtor(); |
| 13634 | // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo) |
| 13635 | } |
| 13636 | |
| 13637 | void SourceCodeInfo::InitAsDefaultInstance() { |
| 13638 | } |
| 13639 | |
| 13640 | SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from) |
| 13641 | : ::google::protobuf::Message(), |
| 13642 | _internal_metadata_(NULL) { |
| 13643 | SharedCtor(); |
| 13644 | MergeFrom(from); |
| 13645 | // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo) |
| 13646 | } |
| 13647 | |
| 13648 | void SourceCodeInfo::SharedCtor() { |
| 13649 | _cached_size_ = 0; |
| 13650 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 13651 | } |
| 13652 | |
| 13653 | SourceCodeInfo::~SourceCodeInfo() { |
| 13654 | // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo) |
| 13655 | SharedDtor(); |
| 13656 | } |
| 13657 | |
| 13658 | void SourceCodeInfo::SharedDtor() { |
| 13659 | if (this != default_instance_) { |
| 13660 | } |
| 13661 | } |
| 13662 | |
| 13663 | void SourceCodeInfo::SetCachedSize(int size) const { |
| 13664 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13665 | _cached_size_ = size; |
| 13666 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13667 | } |
| 13668 | const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() { |
| 13669 | protobuf_AssignDescriptorsOnce(); |
| 13670 | return SourceCodeInfo_descriptor_; |
| 13671 | } |
| 13672 | |
| 13673 | const SourceCodeInfo& SourceCodeInfo::default_instance() { |
| 13674 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 13675 | return *default_instance_; |
| 13676 | } |
| 13677 | |
| 13678 | SourceCodeInfo* SourceCodeInfo::default_instance_ = NULL; |
| 13679 | |
| 13680 | SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const { |
| 13681 | SourceCodeInfo* n = new SourceCodeInfo; |
| 13682 | if (arena != NULL) { |
| 13683 | arena->Own(n); |
| 13684 | } |
| 13685 | return n; |
| 13686 | } |
| 13687 | |
| 13688 | void SourceCodeInfo::Clear() { |
| 13689 | location_.Clear(); |
| 13690 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 13691 | if (_internal_metadata_.have_unknown_fields()) { |
| 13692 | mutable_unknown_fields()->Clear(); |
| 13693 | } |
| 13694 | } |
| 13695 | |
| 13696 | bool SourceCodeInfo::MergePartialFromCodedStream( |
| 13697 | ::google::protobuf::io::CodedInputStream* input) { |
| 13698 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 13699 | ::google::protobuf::uint32 tag; |
| 13700 | // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo) |
| 13701 | for (;;) { |
| 13702 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 13703 | tag = p.first; |
| 13704 | if (!p.second) goto handle_unusual; |
| 13705 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 13706 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 13707 | case 1: { |
| 13708 | if (tag == 10) { |
| 13709 | DO_(input->IncrementRecursionDepth()); |
| 13710 | parse_loop_location: |
| 13711 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 13712 | input, add_location())); |
| 13713 | } else { |
| 13714 | goto handle_unusual; |
| 13715 | } |
| 13716 | if (input->ExpectTag(10)) goto parse_loop_location; |
| 13717 | input->UnsafeDecrementRecursionDepth(); |
| 13718 | if (input->ExpectAtEnd()) goto success; |
| 13719 | break; |
| 13720 | } |
| 13721 | |
| 13722 | default: { |
| 13723 | handle_unusual: |
| 13724 | if (tag == 0 || |
| 13725 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 13726 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 13727 | goto success; |
| 13728 | } |
| 13729 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 13730 | input, tag, mutable_unknown_fields())); |
| 13731 | break; |
| 13732 | } |
| 13733 | } |
| 13734 | } |
| 13735 | success: |
| 13736 | // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo) |
| 13737 | return true; |
| 13738 | failure: |
| 13739 | // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo) |
| 13740 | return false; |
| 13741 | #undef DO_ |
| 13742 | } |
| 13743 | |
| 13744 | void SourceCodeInfo::SerializeWithCachedSizes( |
| 13745 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 13746 | // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo) |
| 13747 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 13748 | for (unsigned int i = 0, n = this->location_size(); i < n; i++) { |
| 13749 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 13750 | 1, this->location(i), output); |
| 13751 | } |
| 13752 | |
| 13753 | if (_internal_metadata_.have_unknown_fields()) { |
| 13754 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 13755 | unknown_fields(), output); |
| 13756 | } |
| 13757 | // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo) |
| 13758 | } |
| 13759 | |
| 13760 | ::google::protobuf::uint8* SourceCodeInfo::SerializeWithCachedSizesToArray( |
| 13761 | ::google::protobuf::uint8* target) const { |
| 13762 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo) |
| 13763 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 13764 | for (unsigned int i = 0, n = this->location_size(); i < n; i++) { |
| 13765 | target = ::google::protobuf::internal::WireFormatLite:: |
| 13766 | WriteMessageNoVirtualToArray( |
| 13767 | 1, this->location(i), target); |
| 13768 | } |
| 13769 | |
| 13770 | if (_internal_metadata_.have_unknown_fields()) { |
| 13771 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 13772 | unknown_fields(), target); |
| 13773 | } |
| 13774 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo) |
| 13775 | return target; |
| 13776 | } |
| 13777 | |
| 13778 | int SourceCodeInfo::ByteSize() const { |
| 13779 | int total_size = 0; |
| 13780 | |
| 13781 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 13782 | total_size += 1 * this->location_size(); |
| 13783 | for (int i = 0; i < this->location_size(); i++) { |
| 13784 | total_size += |
| 13785 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 13786 | this->location(i)); |
| 13787 | } |
| 13788 | |
| 13789 | if (_internal_metadata_.have_unknown_fields()) { |
| 13790 | total_size += |
| 13791 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 13792 | unknown_fields()); |
| 13793 | } |
| 13794 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13795 | _cached_size_ = total_size; |
| 13796 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13797 | return total_size; |
| 13798 | } |
| 13799 | |
| 13800 | void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 13801 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 13802 | const SourceCodeInfo* source = |
| 13803 | ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>( |
| 13804 | &from); |
| 13805 | if (source == NULL) { |
| 13806 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 13807 | } else { |
| 13808 | MergeFrom(*source); |
| 13809 | } |
| 13810 | } |
| 13811 | |
| 13812 | void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) { |
| 13813 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 13814 | location_.MergeFrom(from.location_); |
| 13815 | if (from._internal_metadata_.have_unknown_fields()) { |
| 13816 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 13817 | } |
| 13818 | } |
| 13819 | |
| 13820 | void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 13821 | if (&from == this) return; |
| 13822 | Clear(); |
| 13823 | MergeFrom(from); |
| 13824 | } |
| 13825 | |
| 13826 | void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) { |
| 13827 | if (&from == this) return; |
| 13828 | Clear(); |
| 13829 | MergeFrom(from); |
| 13830 | } |
| 13831 | |
| 13832 | bool SourceCodeInfo::IsInitialized() const { |
| 13833 | |
| 13834 | return true; |
| 13835 | } |
| 13836 | |
| 13837 | void SourceCodeInfo::Swap(SourceCodeInfo* other) { |
| 13838 | if (other == this) return; |
| 13839 | InternalSwap(other); |
| 13840 | } |
| 13841 | void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) { |
| 13842 | location_.UnsafeArenaSwap(&other->location_); |
| 13843 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 13844 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 13845 | std::swap(_cached_size_, other->_cached_size_); |
| 13846 | } |
| 13847 | |
| 13848 | ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const { |
| 13849 | protobuf_AssignDescriptorsOnce(); |
| 13850 | ::google::protobuf::Metadata metadata; |
| 13851 | metadata.descriptor = SourceCodeInfo_descriptor_; |
| 13852 | metadata.reflection = SourceCodeInfo_reflection_; |
| 13853 | return metadata; |
| 13854 | } |
| 13855 | |
| 13856 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 13857 | // SourceCodeInfo_Location |
| 13858 | |
| 13859 | // repeated int32 path = 1 [packed = true]; |
| 13860 | int SourceCodeInfo_Location::path_size() const { |
| 13861 | return path_.size(); |
| 13862 | } |
| 13863 | void SourceCodeInfo_Location::clear_path() { |
| 13864 | path_.Clear(); |
| 13865 | } |
| 13866 | ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { |
| 13867 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path) |
| 13868 | return path_.Get(index); |
| 13869 | } |
| 13870 | void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) { |
| 13871 | path_.Set(index, value); |
| 13872 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path) |
| 13873 | } |
| 13874 | void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { |
| 13875 | path_.Add(value); |
| 13876 | // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path) |
| 13877 | } |
| 13878 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 13879 | SourceCodeInfo_Location::path() const { |
| 13880 | // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path) |
| 13881 | return path_; |
| 13882 | } |
| 13883 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 13884 | SourceCodeInfo_Location::mutable_path() { |
| 13885 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path) |
| 13886 | return &path_; |
| 13887 | } |
| 13888 | |
| 13889 | // repeated int32 span = 2 [packed = true]; |
| 13890 | int SourceCodeInfo_Location::span_size() const { |
| 13891 | return span_.size(); |
| 13892 | } |
| 13893 | void SourceCodeInfo_Location::clear_span() { |
| 13894 | span_.Clear(); |
| 13895 | } |
| 13896 | ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { |
| 13897 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span) |
| 13898 | return span_.Get(index); |
| 13899 | } |
| 13900 | void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) { |
| 13901 | span_.Set(index, value); |
| 13902 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span) |
| 13903 | } |
| 13904 | void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { |
| 13905 | span_.Add(value); |
| 13906 | // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span) |
| 13907 | } |
| 13908 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 13909 | SourceCodeInfo_Location::span() const { |
| 13910 | // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span) |
| 13911 | return span_; |
| 13912 | } |
| 13913 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 13914 | SourceCodeInfo_Location::mutable_span() { |
| 13915 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span) |
| 13916 | return &span_; |
| 13917 | } |
| 13918 | |
| 13919 | // optional string leading_comments = 3; |
| 13920 | bool SourceCodeInfo_Location::has_leading_comments() const { |
| 13921 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 13922 | } |
| 13923 | void SourceCodeInfo_Location::set_has_leading_comments() { |
| 13924 | _has_bits_[0] |= 0x00000004u; |
| 13925 | } |
| 13926 | void SourceCodeInfo_Location::clear_has_leading_comments() { |
| 13927 | _has_bits_[0] &= ~0x00000004u; |
| 13928 | } |
| 13929 | void SourceCodeInfo_Location::clear_leading_comments() { |
| 13930 | leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13931 | clear_has_leading_comments(); |
| 13932 | } |
| 13933 | const ::std::string& SourceCodeInfo_Location::leading_comments() const { |
| 13934 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 13935 | return leading_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13936 | } |
| 13937 | void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) { |
| 13938 | set_has_leading_comments(); |
| 13939 | leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 13940 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 13941 | } |
| 13942 | void SourceCodeInfo_Location::set_leading_comments(const char* value) { |
| 13943 | set_has_leading_comments(); |
| 13944 | leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 13945 | // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 13946 | } |
| 13947 | void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t size) { |
| 13948 | set_has_leading_comments(); |
| 13949 | leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13950 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13951 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 13952 | } |
| 13953 | ::std::string* SourceCodeInfo_Location::mutable_leading_comments() { |
| 13954 | set_has_leading_comments(); |
| 13955 | // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 13956 | return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13957 | } |
| 13958 | ::std::string* SourceCodeInfo_Location::release_leading_comments() { |
| 13959 | clear_has_leading_comments(); |
| 13960 | return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13961 | } |
| 13962 | void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) { |
| 13963 | if (leading_comments != NULL) { |
| 13964 | set_has_leading_comments(); |
| 13965 | } else { |
| 13966 | clear_has_leading_comments(); |
| 13967 | } |
| 13968 | leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leading_comments); |
| 13969 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 13970 | } |
| 13971 | |
| 13972 | // optional string trailing_comments = 4; |
| 13973 | bool SourceCodeInfo_Location::has_trailing_comments() const { |
| 13974 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 13975 | } |
| 13976 | void SourceCodeInfo_Location::set_has_trailing_comments() { |
| 13977 | _has_bits_[0] |= 0x00000008u; |
| 13978 | } |
| 13979 | void SourceCodeInfo_Location::clear_has_trailing_comments() { |
| 13980 | _has_bits_[0] &= ~0x00000008u; |
| 13981 | } |
| 13982 | void SourceCodeInfo_Location::clear_trailing_comments() { |
| 13983 | trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13984 | clear_has_trailing_comments(); |
| 13985 | } |
| 13986 | const ::std::string& SourceCodeInfo_Location::trailing_comments() const { |
| 13987 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 13988 | return trailing_comments_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13989 | } |
| 13990 | void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) { |
| 13991 | set_has_trailing_comments(); |
| 13992 | trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 13993 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 13994 | } |
| 13995 | void SourceCodeInfo_Location::set_trailing_comments(const char* value) { |
| 13996 | set_has_trailing_comments(); |
| 13997 | trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 13998 | // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 13999 | } |
| 14000 | void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t size) { |
| 14001 | set_has_trailing_comments(); |
| 14002 | trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 14003 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 14004 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14005 | } |
| 14006 | ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { |
| 14007 | set_has_trailing_comments(); |
| 14008 | // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14009 | return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14010 | } |
| 14011 | ::std::string* SourceCodeInfo_Location::release_trailing_comments() { |
| 14012 | clear_has_trailing_comments(); |
| 14013 | return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14014 | } |
| 14015 | void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) { |
| 14016 | if (trailing_comments != NULL) { |
| 14017 | set_has_trailing_comments(); |
| 14018 | } else { |
| 14019 | clear_has_trailing_comments(); |
| 14020 | } |
| 14021 | trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trailing_comments); |
| 14022 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14023 | } |
| 14024 | |
| 14025 | // repeated string leading_detached_comments = 6; |
| 14026 | int SourceCodeInfo_Location::leading_detached_comments_size() const { |
| 14027 | return leading_detached_comments_.size(); |
| 14028 | } |
| 14029 | void SourceCodeInfo_Location::clear_leading_detached_comments() { |
| 14030 | leading_detached_comments_.Clear(); |
| 14031 | } |
| 14032 | const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const { |
| 14033 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14034 | return leading_detached_comments_.Get(index); |
| 14035 | } |
| 14036 | ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) { |
| 14037 | // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14038 | return leading_detached_comments_.Mutable(index); |
| 14039 | } |
| 14040 | void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) { |
| 14041 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14042 | leading_detached_comments_.Mutable(index)->assign(value); |
| 14043 | } |
| 14044 | void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) { |
| 14045 | leading_detached_comments_.Mutable(index)->assign(value); |
| 14046 | // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14047 | } |
| 14048 | void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) { |
| 14049 | leading_detached_comments_.Mutable(index)->assign( |
| 14050 | reinterpret_cast<const char*>(value), size); |
| 14051 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14052 | } |
| 14053 | ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { |
| 14054 | return leading_detached_comments_.Add(); |
| 14055 | } |
| 14056 | void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) { |
| 14057 | leading_detached_comments_.Add()->assign(value); |
| 14058 | // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14059 | } |
| 14060 | void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) { |
| 14061 | leading_detached_comments_.Add()->assign(value); |
| 14062 | // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14063 | } |
| 14064 | void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) { |
| 14065 | leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 14066 | // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14067 | } |
| 14068 | const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 14069 | SourceCodeInfo_Location::leading_detached_comments() const { |
| 14070 | // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14071 | return leading_detached_comments_; |
| 14072 | } |
| 14073 | ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 14074 | SourceCodeInfo_Location::mutable_leading_detached_comments() { |
| 14075 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14076 | return &leading_detached_comments_; |
| 14077 | } |
| 14078 | |
| 14079 | // ------------------------------------------------------------------- |
| 14080 | |
| 14081 | // SourceCodeInfo |
| 14082 | |
| 14083 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 14084 | int SourceCodeInfo::location_size() const { |
| 14085 | return location_.size(); |
| 14086 | } |
| 14087 | void SourceCodeInfo::clear_location() { |
| 14088 | location_.Clear(); |
| 14089 | } |
| 14090 | const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const { |
| 14091 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location) |
| 14092 | return location_.Get(index); |
| 14093 | } |
| 14094 | ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) { |
| 14095 | // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location) |
| 14096 | return location_.Mutable(index); |
| 14097 | } |
| 14098 | ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() { |
| 14099 | // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location) |
| 14100 | return location_.Add(); |
| 14101 | } |
| 14102 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >* |
| 14103 | SourceCodeInfo::mutable_location() { |
| 14104 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location) |
| 14105 | return &location_; |
| 14106 | } |
| 14107 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >& |
| 14108 | SourceCodeInfo::location() const { |
| 14109 | // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location) |
| 14110 | return location_; |
| 14111 | } |
| 14112 | |
| 14113 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 14114 | |
| 14115 | // =================================================================== |
| 14116 | |
| 14117 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14118 | const int GeneratedCodeInfo_Annotation::kPathFieldNumber; |
| 14119 | const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber; |
| 14120 | const int GeneratedCodeInfo_Annotation::kBeginFieldNumber; |
| 14121 | const int GeneratedCodeInfo_Annotation::kEndFieldNumber; |
| 14122 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14123 | |
| 14124 | GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation() |
| 14125 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 14126 | SharedCtor(); |
| 14127 | // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14128 | } |
| 14129 | |
| 14130 | void GeneratedCodeInfo_Annotation::InitAsDefaultInstance() { |
| 14131 | } |
| 14132 | |
| 14133 | GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from) |
| 14134 | : ::google::protobuf::Message(), |
| 14135 | _internal_metadata_(NULL) { |
| 14136 | SharedCtor(); |
| 14137 | MergeFrom(from); |
| 14138 | // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14139 | } |
| 14140 | |
| 14141 | void GeneratedCodeInfo_Annotation::SharedCtor() { |
| 14142 | ::google::protobuf::internal::GetEmptyString(); |
| 14143 | _cached_size_ = 0; |
| 14144 | source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14145 | begin_ = 0; |
| 14146 | end_ = 0; |
| 14147 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 14148 | } |
| 14149 | |
| 14150 | GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { |
| 14151 | // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14152 | SharedDtor(); |
| 14153 | } |
| 14154 | |
| 14155 | void GeneratedCodeInfo_Annotation::SharedDtor() { |
| 14156 | source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14157 | if (this != default_instance_) { |
| 14158 | } |
| 14159 | } |
| 14160 | |
| 14161 | void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { |
| 14162 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14163 | _cached_size_ = size; |
| 14164 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14165 | } |
| 14166 | const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor() { |
| 14167 | protobuf_AssignDescriptorsOnce(); |
| 14168 | return GeneratedCodeInfo_Annotation_descriptor_; |
| 14169 | } |
| 14170 | |
| 14171 | const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instance() { |
| 14172 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 14173 | return *default_instance_; |
| 14174 | } |
| 14175 | |
| 14176 | GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::default_instance_ = NULL; |
| 14177 | |
| 14178 | GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protobuf::Arena* arena) const { |
| 14179 | GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation; |
| 14180 | if (arena != NULL) { |
| 14181 | arena->Own(n); |
| 14182 | } |
| 14183 | return n; |
| 14184 | } |
| 14185 | |
| 14186 | void GeneratedCodeInfo_Annotation::Clear() { |
| 14187 | #define ZR_HELPER_(f) reinterpret_cast<char*>(\ |
| 14188 | &reinterpret_cast<GeneratedCodeInfo_Annotation*>(16)->f) |
| 14189 | |
| 14190 | #define ZR_(first, last) do {\ |
| 14191 | ::memset(&first, 0,\ |
| 14192 | ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ |
| 14193 | } while (0) |
| 14194 | |
| 14195 | if (_has_bits_[0 / 32] & 14u) { |
| 14196 | ZR_(begin_, end_); |
| 14197 | if (has_source_file()) { |
| 14198 | source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14199 | } |
| 14200 | } |
| 14201 | |
| 14202 | #undef ZR_HELPER_ |
| 14203 | #undef ZR_ |
| 14204 | |
| 14205 | path_.Clear(); |
| 14206 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 14207 | if (_internal_metadata_.have_unknown_fields()) { |
| 14208 | mutable_unknown_fields()->Clear(); |
| 14209 | } |
| 14210 | } |
| 14211 | |
| 14212 | bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( |
| 14213 | ::google::protobuf::io::CodedInputStream* input) { |
| 14214 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 14215 | ::google::protobuf::uint32 tag; |
| 14216 | // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14217 | for (;;) { |
| 14218 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 14219 | tag = p.first; |
| 14220 | if (!p.second) goto handle_unusual; |
| 14221 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 14222 | // repeated int32 path = 1 [packed = true]; |
| 14223 | case 1: { |
| 14224 | if (tag == 10) { |
| 14225 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 14226 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 14227 | input, this->mutable_path()))); |
| 14228 | } else if (tag == 8) { |
| 14229 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 14230 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 14231 | 1, 10, input, this->mutable_path()))); |
| 14232 | } else { |
| 14233 | goto handle_unusual; |
| 14234 | } |
| 14235 | if (input->ExpectTag(18)) goto parse_source_file; |
| 14236 | break; |
| 14237 | } |
| 14238 | |
| 14239 | // optional string source_file = 2; |
| 14240 | case 2: { |
| 14241 | if (tag == 18) { |
| 14242 | parse_source_file: |
| 14243 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 14244 | input, this->mutable_source_file())); |
| 14245 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14246 | this->source_file().data(), this->source_file().length(), |
| 14247 | ::google::protobuf::internal::WireFormat::PARSE, |
| 14248 | "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); |
| 14249 | } else { |
| 14250 | goto handle_unusual; |
| 14251 | } |
| 14252 | if (input->ExpectTag(24)) goto parse_begin; |
| 14253 | break; |
| 14254 | } |
| 14255 | |
| 14256 | // optional int32 begin = 3; |
| 14257 | case 3: { |
| 14258 | if (tag == 24) { |
| 14259 | parse_begin: |
| 14260 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 14261 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 14262 | input, &begin_))); |
| 14263 | set_has_begin(); |
| 14264 | } else { |
| 14265 | goto handle_unusual; |
| 14266 | } |
| 14267 | if (input->ExpectTag(32)) goto parse_end; |
| 14268 | break; |
| 14269 | } |
| 14270 | |
| 14271 | // optional int32 end = 4; |
| 14272 | case 4: { |
| 14273 | if (tag == 32) { |
| 14274 | parse_end: |
| 14275 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 14276 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 14277 | input, &end_))); |
| 14278 | set_has_end(); |
| 14279 | } else { |
| 14280 | goto handle_unusual; |
| 14281 | } |
| 14282 | if (input->ExpectAtEnd()) goto success; |
| 14283 | break; |
| 14284 | } |
| 14285 | |
| 14286 | default: { |
| 14287 | handle_unusual: |
| 14288 | if (tag == 0 || |
| 14289 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 14290 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 14291 | goto success; |
| 14292 | } |
| 14293 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 14294 | input, tag, mutable_unknown_fields())); |
| 14295 | break; |
| 14296 | } |
| 14297 | } |
| 14298 | } |
| 14299 | success: |
| 14300 | // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14301 | return true; |
| 14302 | failure: |
| 14303 | // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14304 | return false; |
| 14305 | #undef DO_ |
| 14306 | } |
| 14307 | |
| 14308 | void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes( |
| 14309 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 14310 | // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14311 | // repeated int32 path = 1 [packed = true]; |
| 14312 | if (this->path_size() > 0) { |
| 14313 | ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 14314 | output->WriteVarint32(_path_cached_byte_size_); |
| 14315 | } |
| 14316 | for (int i = 0; i < this->path_size(); i++) { |
| 14317 | ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
| 14318 | this->path(i), output); |
| 14319 | } |
| 14320 | |
| 14321 | // optional string source_file = 2; |
| 14322 | if (has_source_file()) { |
| 14323 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14324 | this->source_file().data(), this->source_file().length(), |
| 14325 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 14326 | "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); |
| 14327 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 14328 | 2, this->source_file(), output); |
| 14329 | } |
| 14330 | |
| 14331 | // optional int32 begin = 3; |
| 14332 | if (has_begin()) { |
| 14333 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->begin(), output); |
| 14334 | } |
| 14335 | |
| 14336 | // optional int32 end = 4; |
| 14337 | if (has_end()) { |
| 14338 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), output); |
| 14339 | } |
| 14340 | |
| 14341 | if (_internal_metadata_.have_unknown_fields()) { |
| 14342 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 14343 | unknown_fields(), output); |
| 14344 | } |
| 14345 | // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14346 | } |
| 14347 | |
| 14348 | ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::SerializeWithCachedSizesToArray( |
| 14349 | ::google::protobuf::uint8* target) const { |
| 14350 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14351 | // repeated int32 path = 1 [packed = true]; |
| 14352 | if (this->path_size() > 0) { |
| 14353 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 14354 | 1, |
| 14355 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 14356 | target); |
| 14357 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 14358 | _path_cached_byte_size_, target); |
| 14359 | } |
| 14360 | for (int i = 0; i < this->path_size(); i++) { |
| 14361 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14362 | WriteInt32NoTagToArray(this->path(i), target); |
| 14363 | } |
| 14364 | |
| 14365 | // optional string source_file = 2; |
| 14366 | if (has_source_file()) { |
| 14367 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14368 | this->source_file().data(), this->source_file().length(), |
| 14369 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 14370 | "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); |
| 14371 | target = |
| 14372 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 14373 | 2, this->source_file(), target); |
| 14374 | } |
| 14375 | |
| 14376 | // optional int32 begin = 3; |
| 14377 | if (has_begin()) { |
| 14378 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->begin(), target); |
| 14379 | } |
| 14380 | |
| 14381 | // optional int32 end = 4; |
| 14382 | if (has_end()) { |
| 14383 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->end(), target); |
| 14384 | } |
| 14385 | |
| 14386 | if (_internal_metadata_.have_unknown_fields()) { |
| 14387 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 14388 | unknown_fields(), target); |
| 14389 | } |
| 14390 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14391 | return target; |
| 14392 | } |
| 14393 | |
| 14394 | int GeneratedCodeInfo_Annotation::ByteSize() const { |
| 14395 | int total_size = 0; |
| 14396 | |
| 14397 | if (_has_bits_[1 / 32] & 14u) { |
| 14398 | // optional string source_file = 2; |
| 14399 | if (has_source_file()) { |
| 14400 | total_size += 1 + |
| 14401 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 14402 | this->source_file()); |
| 14403 | } |
| 14404 | |
| 14405 | // optional int32 begin = 3; |
| 14406 | if (has_begin()) { |
| 14407 | total_size += 1 + |
| 14408 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 14409 | this->begin()); |
| 14410 | } |
| 14411 | |
| 14412 | // optional int32 end = 4; |
| 14413 | if (has_end()) { |
| 14414 | total_size += 1 + |
| 14415 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 14416 | this->end()); |
| 14417 | } |
| 14418 | |
| 14419 | } |
| 14420 | // repeated int32 path = 1 [packed = true]; |
| 14421 | { |
| 14422 | int data_size = 0; |
| 14423 | for (int i = 0; i < this->path_size(); i++) { |
| 14424 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 14425 | Int32Size(this->path(i)); |
| 14426 | } |
| 14427 | if (data_size > 0) { |
| 14428 | total_size += 1 + |
| 14429 | ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| 14430 | } |
| 14431 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14432 | _path_cached_byte_size_ = data_size; |
| 14433 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14434 | total_size += data_size; |
| 14435 | } |
| 14436 | |
| 14437 | if (_internal_metadata_.have_unknown_fields()) { |
| 14438 | total_size += |
| 14439 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 14440 | unknown_fields()); |
| 14441 | } |
| 14442 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14443 | _cached_size_ = total_size; |
| 14444 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14445 | return total_size; |
| 14446 | } |
| 14447 | |
| 14448 | void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& from) { |
| 14449 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 14450 | const GeneratedCodeInfo_Annotation* source = |
| 14451 | ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo_Annotation>( |
| 14452 | &from); |
| 14453 | if (source == NULL) { |
| 14454 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 14455 | } else { |
| 14456 | MergeFrom(*source); |
| 14457 | } |
| 14458 | } |
| 14459 | |
| 14460 | void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) { |
| 14461 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 14462 | path_.MergeFrom(from.path_); |
| 14463 | if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) { |
| 14464 | if (from.has_source_file()) { |
| 14465 | set_has_source_file(); |
| 14466 | source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_file_); |
| 14467 | } |
| 14468 | if (from.has_begin()) { |
| 14469 | set_begin(from.begin()); |
| 14470 | } |
| 14471 | if (from.has_end()) { |
| 14472 | set_end(from.end()); |
| 14473 | } |
| 14474 | } |
| 14475 | if (from._internal_metadata_.have_unknown_fields()) { |
| 14476 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 14477 | } |
| 14478 | } |
| 14479 | |
| 14480 | void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& from) { |
| 14481 | if (&from == this) return; |
| 14482 | Clear(); |
| 14483 | MergeFrom(from); |
| 14484 | } |
| 14485 | |
| 14486 | void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) { |
| 14487 | if (&from == this) return; |
| 14488 | Clear(); |
| 14489 | MergeFrom(from); |
| 14490 | } |
| 14491 | |
| 14492 | bool GeneratedCodeInfo_Annotation::IsInitialized() const { |
| 14493 | |
| 14494 | return true; |
| 14495 | } |
| 14496 | |
| 14497 | void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) { |
| 14498 | if (other == this) return; |
| 14499 | InternalSwap(other); |
| 14500 | } |
| 14501 | void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* other) { |
| 14502 | path_.UnsafeArenaSwap(&other->path_); |
| 14503 | source_file_.Swap(&other->source_file_); |
| 14504 | std::swap(begin_, other->begin_); |
| 14505 | std::swap(end_, other->end_); |
| 14506 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 14507 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 14508 | std::swap(_cached_size_, other->_cached_size_); |
| 14509 | } |
| 14510 | |
| 14511 | ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const { |
| 14512 | protobuf_AssignDescriptorsOnce(); |
| 14513 | ::google::protobuf::Metadata metadata; |
| 14514 | metadata.descriptor = GeneratedCodeInfo_Annotation_descriptor_; |
| 14515 | metadata.reflection = GeneratedCodeInfo_Annotation_reflection_; |
| 14516 | return metadata; |
| 14517 | } |
| 14518 | |
| 14519 | |
| 14520 | // ------------------------------------------------------------------- |
| 14521 | |
| 14522 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14523 | const int GeneratedCodeInfo::kAnnotationFieldNumber; |
| 14524 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14525 | |
| 14526 | GeneratedCodeInfo::GeneratedCodeInfo() |
| 14527 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 14528 | SharedCtor(); |
| 14529 | // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo) |
| 14530 | } |
| 14531 | |
| 14532 | void GeneratedCodeInfo::InitAsDefaultInstance() { |
| 14533 | } |
| 14534 | |
| 14535 | GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) |
| 14536 | : ::google::protobuf::Message(), |
| 14537 | _internal_metadata_(NULL) { |
| 14538 | SharedCtor(); |
| 14539 | MergeFrom(from); |
| 14540 | // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo) |
| 14541 | } |
| 14542 | |
| 14543 | void GeneratedCodeInfo::SharedCtor() { |
| 14544 | _cached_size_ = 0; |
| 14545 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 14546 | } |
| 14547 | |
| 14548 | GeneratedCodeInfo::~GeneratedCodeInfo() { |
| 14549 | // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo) |
| 14550 | SharedDtor(); |
| 14551 | } |
| 14552 | |
| 14553 | void GeneratedCodeInfo::SharedDtor() { |
| 14554 | if (this != default_instance_) { |
| 14555 | } |
| 14556 | } |
| 14557 | |
| 14558 | void GeneratedCodeInfo::SetCachedSize(int size) const { |
| 14559 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14560 | _cached_size_ = size; |
| 14561 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14562 | } |
| 14563 | const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() { |
| 14564 | protobuf_AssignDescriptorsOnce(); |
| 14565 | return GeneratedCodeInfo_descriptor_; |
| 14566 | } |
| 14567 | |
| 14568 | const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() { |
| 14569 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 14570 | return *default_instance_; |
| 14571 | } |
| 14572 | |
| 14573 | GeneratedCodeInfo* GeneratedCodeInfo::default_instance_ = NULL; |
| 14574 | |
| 14575 | GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) const { |
| 14576 | GeneratedCodeInfo* n = new GeneratedCodeInfo; |
| 14577 | if (arena != NULL) { |
| 14578 | arena->Own(n); |
| 14579 | } |
| 14580 | return n; |
| 14581 | } |
| 14582 | |
| 14583 | void GeneratedCodeInfo::Clear() { |
| 14584 | annotation_.Clear(); |
| 14585 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); |
| 14586 | if (_internal_metadata_.have_unknown_fields()) { |
| 14587 | mutable_unknown_fields()->Clear(); |
| 14588 | } |
| 14589 | } |
| 14590 | |
| 14591 | bool GeneratedCodeInfo::MergePartialFromCodedStream( |
| 14592 | ::google::protobuf::io::CodedInputStream* input) { |
| 14593 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 14594 | ::google::protobuf::uint32 tag; |
| 14595 | // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo) |
| 14596 | for (;;) { |
| 14597 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 14598 | tag = p.first; |
| 14599 | if (!p.second) goto handle_unusual; |
| 14600 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 14601 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 14602 | case 1: { |
| 14603 | if (tag == 10) { |
| 14604 | DO_(input->IncrementRecursionDepth()); |
| 14605 | parse_loop_annotation: |
| 14606 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 14607 | input, add_annotation())); |
| 14608 | } else { |
| 14609 | goto handle_unusual; |
| 14610 | } |
| 14611 | if (input->ExpectTag(10)) goto parse_loop_annotation; |
| 14612 | input->UnsafeDecrementRecursionDepth(); |
| 14613 | if (input->ExpectAtEnd()) goto success; |
| 14614 | break; |
| 14615 | } |
| 14616 | |
| 14617 | default: { |
| 14618 | handle_unusual: |
| 14619 | if (tag == 0 || |
| 14620 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 14621 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 14622 | goto success; |
| 14623 | } |
| 14624 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 14625 | input, tag, mutable_unknown_fields())); |
| 14626 | break; |
| 14627 | } |
| 14628 | } |
| 14629 | } |
| 14630 | success: |
| 14631 | // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo) |
| 14632 | return true; |
| 14633 | failure: |
| 14634 | // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo) |
| 14635 | return false; |
| 14636 | #undef DO_ |
| 14637 | } |
| 14638 | |
| 14639 | void GeneratedCodeInfo::SerializeWithCachedSizes( |
| 14640 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 14641 | // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo) |
| 14642 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 14643 | for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) { |
| 14644 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 14645 | 1, this->annotation(i), output); |
| 14646 | } |
| 14647 | |
| 14648 | if (_internal_metadata_.have_unknown_fields()) { |
| 14649 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 14650 | unknown_fields(), output); |
| 14651 | } |
| 14652 | // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo) |
| 14653 | } |
| 14654 | |
| 14655 | ::google::protobuf::uint8* GeneratedCodeInfo::SerializeWithCachedSizesToArray( |
| 14656 | ::google::protobuf::uint8* target) const { |
| 14657 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo) |
| 14658 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 14659 | for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) { |
| 14660 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14661 | WriteMessageNoVirtualToArray( |
| 14662 | 1, this->annotation(i), target); |
| 14663 | } |
| 14664 | |
| 14665 | if (_internal_metadata_.have_unknown_fields()) { |
| 14666 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 14667 | unknown_fields(), target); |
| 14668 | } |
| 14669 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo) |
| 14670 | return target; |
| 14671 | } |
| 14672 | |
| 14673 | int GeneratedCodeInfo::ByteSize() const { |
| 14674 | int total_size = 0; |
| 14675 | |
| 14676 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 14677 | total_size += 1 * this->annotation_size(); |
| 14678 | for (int i = 0; i < this->annotation_size(); i++) { |
| 14679 | total_size += |
| 14680 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 14681 | this->annotation(i)); |
| 14682 | } |
| 14683 | |
| 14684 | if (_internal_metadata_.have_unknown_fields()) { |
| 14685 | total_size += |
| 14686 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 14687 | unknown_fields()); |
| 14688 | } |
| 14689 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14690 | _cached_size_ = total_size; |
| 14691 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14692 | return total_size; |
| 14693 | } |
| 14694 | |
| 14695 | void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 14696 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 14697 | const GeneratedCodeInfo* source = |
| 14698 | ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo>( |
| 14699 | &from); |
| 14700 | if (source == NULL) { |
| 14701 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 14702 | } else { |
| 14703 | MergeFrom(*source); |
| 14704 | } |
| 14705 | } |
| 14706 | |
| 14707 | void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) { |
| 14708 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 14709 | annotation_.MergeFrom(from.annotation_); |
| 14710 | if (from._internal_metadata_.have_unknown_fields()) { |
| 14711 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); |
| 14712 | } |
| 14713 | } |
| 14714 | |
| 14715 | void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 14716 | if (&from == this) return; |
| 14717 | Clear(); |
| 14718 | MergeFrom(from); |
| 14719 | } |
| 14720 | |
| 14721 | void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) { |
| 14722 | if (&from == this) return; |
| 14723 | Clear(); |
| 14724 | MergeFrom(from); |
| 14725 | } |
| 14726 | |
| 14727 | bool GeneratedCodeInfo::IsInitialized() const { |
| 14728 | |
| 14729 | return true; |
| 14730 | } |
| 14731 | |
| 14732 | void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) { |
| 14733 | if (other == this) return; |
| 14734 | InternalSwap(other); |
| 14735 | } |
| 14736 | void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) { |
| 14737 | annotation_.UnsafeArenaSwap(&other->annotation_); |
| 14738 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 14739 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 14740 | std::swap(_cached_size_, other->_cached_size_); |
| 14741 | } |
| 14742 | |
| 14743 | ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const { |
| 14744 | protobuf_AssignDescriptorsOnce(); |
| 14745 | ::google::protobuf::Metadata metadata; |
| 14746 | metadata.descriptor = GeneratedCodeInfo_descriptor_; |
| 14747 | metadata.reflection = GeneratedCodeInfo_reflection_; |
| 14748 | return metadata; |
| 14749 | } |
| 14750 | |
| 14751 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 14752 | // GeneratedCodeInfo_Annotation |
| 14753 | |
| 14754 | // repeated int32 path = 1 [packed = true]; |
| 14755 | int GeneratedCodeInfo_Annotation::path_size() const { |
| 14756 | return path_.size(); |
| 14757 | } |
| 14758 | void GeneratedCodeInfo_Annotation::clear_path() { |
| 14759 | path_.Clear(); |
| 14760 | } |
| 14761 | ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const { |
| 14762 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 14763 | return path_.Get(index); |
| 14764 | } |
| 14765 | void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32 value) { |
| 14766 | path_.Set(index, value); |
| 14767 | // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 14768 | } |
| 14769 | void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) { |
| 14770 | path_.Add(value); |
| 14771 | // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 14772 | } |
| 14773 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 14774 | GeneratedCodeInfo_Annotation::path() const { |
| 14775 | // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 14776 | return path_; |
| 14777 | } |
| 14778 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 14779 | GeneratedCodeInfo_Annotation::mutable_path() { |
| 14780 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 14781 | return &path_; |
| 14782 | } |
| 14783 | |
| 14784 | // optional string source_file = 2; |
| 14785 | bool GeneratedCodeInfo_Annotation::has_source_file() const { |
| 14786 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 14787 | } |
| 14788 | void GeneratedCodeInfo_Annotation::set_has_source_file() { |
| 14789 | _has_bits_[0] |= 0x00000002u; |
| 14790 | } |
| 14791 | void GeneratedCodeInfo_Annotation::clear_has_source_file() { |
| 14792 | _has_bits_[0] &= ~0x00000002u; |
| 14793 | } |
| 14794 | void GeneratedCodeInfo_Annotation::clear_source_file() { |
| 14795 | source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14796 | clear_has_source_file(); |
| 14797 | } |
| 14798 | const ::std::string& GeneratedCodeInfo_Annotation::source_file() const { |
| 14799 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 14800 | return source_file_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14801 | } |
| 14802 | void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) { |
| 14803 | set_has_source_file(); |
| 14804 | source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 14805 | // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 14806 | } |
| 14807 | void GeneratedCodeInfo_Annotation::set_source_file(const char* value) { |
| 14808 | set_has_source_file(); |
| 14809 | source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 14810 | // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 14811 | } |
| 14812 | void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t size) { |
| 14813 | set_has_source_file(); |
| 14814 | source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 14815 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 14816 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 14817 | } |
| 14818 | ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() { |
| 14819 | set_has_source_file(); |
| 14820 | // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 14821 | return source_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14822 | } |
| 14823 | ::std::string* GeneratedCodeInfo_Annotation::release_source_file() { |
| 14824 | clear_has_source_file(); |
| 14825 | return source_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14826 | } |
| 14827 | void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* source_file) { |
| 14828 | if (source_file != NULL) { |
| 14829 | set_has_source_file(); |
| 14830 | } else { |
| 14831 | clear_has_source_file(); |
| 14832 | } |
| 14833 | source_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_file); |
| 14834 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 14835 | } |
| 14836 | |
| 14837 | // optional int32 begin = 3; |
| 14838 | bool GeneratedCodeInfo_Annotation::has_begin() const { |
| 14839 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 14840 | } |
| 14841 | void GeneratedCodeInfo_Annotation::set_has_begin() { |
| 14842 | _has_bits_[0] |= 0x00000004u; |
| 14843 | } |
| 14844 | void GeneratedCodeInfo_Annotation::clear_has_begin() { |
| 14845 | _has_bits_[0] &= ~0x00000004u; |
| 14846 | } |
| 14847 | void GeneratedCodeInfo_Annotation::clear_begin() { |
| 14848 | begin_ = 0; |
| 14849 | clear_has_begin(); |
| 14850 | } |
| 14851 | ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const { |
| 14852 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin) |
| 14853 | return begin_; |
| 14854 | } |
| 14855 | void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) { |
| 14856 | set_has_begin(); |
| 14857 | begin_ = value; |
| 14858 | // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin) |
| 14859 | } |
| 14860 | |
| 14861 | // optional int32 end = 4; |
| 14862 | bool GeneratedCodeInfo_Annotation::has_end() const { |
| 14863 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 14864 | } |
| 14865 | void GeneratedCodeInfo_Annotation::set_has_end() { |
| 14866 | _has_bits_[0] |= 0x00000008u; |
| 14867 | } |
| 14868 | void GeneratedCodeInfo_Annotation::clear_has_end() { |
| 14869 | _has_bits_[0] &= ~0x00000008u; |
| 14870 | } |
| 14871 | void GeneratedCodeInfo_Annotation::clear_end() { |
| 14872 | end_ = 0; |
| 14873 | clear_has_end(); |
| 14874 | } |
| 14875 | ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const { |
| 14876 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end) |
| 14877 | return end_; |
| 14878 | } |
| 14879 | void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) { |
| 14880 | set_has_end(); |
| 14881 | end_ = value; |
| 14882 | // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end) |
| 14883 | } |
| 14884 | |
| 14885 | // ------------------------------------------------------------------- |
| 14886 | |
| 14887 | // GeneratedCodeInfo |
| 14888 | |
| 14889 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 14890 | int GeneratedCodeInfo::annotation_size() const { |
| 14891 | return annotation_.size(); |
| 14892 | } |
| 14893 | void GeneratedCodeInfo::clear_annotation() { |
| 14894 | annotation_.Clear(); |
| 14895 | } |
| 14896 | const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const { |
| 14897 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation) |
| 14898 | return annotation_.Get(index); |
| 14899 | } |
| 14900 | ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) { |
| 14901 | // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation) |
| 14902 | return annotation_.Mutable(index); |
| 14903 | } |
| 14904 | ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() { |
| 14905 | // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation) |
| 14906 | return annotation_.Add(); |
| 14907 | } |
| 14908 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >* |
| 14909 | GeneratedCodeInfo::mutable_annotation() { |
| 14910 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation) |
| 14911 | return &annotation_; |
| 14912 | } |
| 14913 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >& |
| 14914 | GeneratedCodeInfo::annotation() const { |
| 14915 | // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation) |
| 14916 | return annotation_; |
| 14917 | } |
| 14918 | |
| 14919 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 14920 | |
| 14921 | // @@protoc_insertion_point(namespace_scope) |
| 14922 | |
| 14923 | } // namespace protobuf |
| 14924 | } // namespace google |
| 14925 | |
| 14926 | // @@protoc_insertion_point(global_scope) |