| 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 | class FileDescriptorSetDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<FileDescriptorSet> {}; |
| 23 | FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_; |
| 24 | class FileDescriptorProtoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<FileDescriptorProto> {}; |
| 25 | FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_; |
| 26 | class DescriptorProto_ExtensionRangeDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<DescriptorProto_ExtensionRange> {}; |
| 27 | DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_; |
| 28 | class DescriptorProto_ReservedRangeDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<DescriptorProto_ReservedRange> {}; |
| 29 | DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_; |
| 30 | class DescriptorProtoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<DescriptorProto> {}; |
| 31 | DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_; |
| 32 | class FieldDescriptorProtoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<FieldDescriptorProto> {}; |
| 33 | FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_; |
| 34 | class OneofDescriptorProtoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<OneofDescriptorProto> {}; |
| 35 | OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_; |
| 36 | class EnumDescriptorProtoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<EnumDescriptorProto> {}; |
| 37 | EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_; |
| 38 | class EnumValueDescriptorProtoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<EnumValueDescriptorProto> {}; |
| 39 | EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_; |
| 40 | class ServiceDescriptorProtoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ServiceDescriptorProto> {}; |
| 41 | ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_; |
| 42 | class MethodDescriptorProtoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<MethodDescriptorProto> {}; |
| 43 | MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_; |
| 44 | class FileOptionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<FileOptions> {}; |
| 45 | FileOptionsDefaultTypeInternal _FileOptions_default_instance_; |
| 46 | class MessageOptionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<MessageOptions> {}; |
| 47 | MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_; |
| 48 | class FieldOptionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<FieldOptions> {}; |
| 49 | FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_; |
| 50 | class OneofOptionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<OneofOptions> {}; |
| 51 | OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_; |
| 52 | class EnumOptionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<EnumOptions> {}; |
| 53 | EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_; |
| 54 | class EnumValueOptionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<EnumValueOptions> {}; |
| 55 | EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_; |
| 56 | class ServiceOptionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ServiceOptions> {}; |
| 57 | ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_; |
| 58 | class MethodOptionsDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<MethodOptions> {}; |
| 59 | MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_; |
| 60 | class UninterpretedOption_NamePartDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<UninterpretedOption_NamePart> {}; |
| 61 | UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_; |
| 62 | class UninterpretedOptionDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<UninterpretedOption> {}; |
| 63 | UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_; |
| 64 | class SourceCodeInfo_LocationDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SourceCodeInfo_Location> {}; |
| 65 | SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_; |
| 66 | class SourceCodeInfoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<SourceCodeInfo> {}; |
| 67 | SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_; |
| 68 | class GeneratedCodeInfo_AnnotationDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<GeneratedCodeInfo_Annotation> {}; |
| 69 | GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_; |
| 70 | class GeneratedCodeInfoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<GeneratedCodeInfo> {}; |
| 71 | GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_; |
| 72 | |
| 73 | namespace { |
| 74 | |
| 75 | ::google::protobuf::Metadata file_level_metadata[25]; |
| 76 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[6]; |
| 77 | |
| 78 | } // namespace |
| 79 | |
| 80 | |
| 81 | const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fdescriptor_2eproto() GOOGLE_ATTRIBUTE_COLD; |
| 82 | const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fdescriptor_2eproto() { |
| 83 | static const ::google::protobuf::uint32 offsets[] = { |
| 84 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_), |
| 85 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _internal_metadata_), |
| 86 | ~0u, // no _extensions_ |
| 87 | ~0u, // no _oneof_case_ |
| 88 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_), |
| 89 | 0, |
| 90 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_), |
| 91 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _internal_metadata_), |
| 92 | ~0u, // no _extensions_ |
| 93 | ~0u, // no _oneof_case_ |
| 94 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_), |
| 95 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_), |
| 96 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_), |
| 97 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, public_dependency_), |
| 98 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, weak_dependency_), |
| 99 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_), |
| 100 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_), |
| 101 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_), |
| 102 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_), |
| 103 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_), |
| 104 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, source_code_info_), |
| 105 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, syntax_), |
| 106 | 0, |
| 107 | 1, |
| 108 | 5, |
| 109 | 6, |
| 110 | 7, |
| 111 | 8, |
| 112 | 9, |
| 113 | 10, |
| 114 | 11, |
| 115 | 3, |
| 116 | 4, |
| 117 | 2, |
| 118 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_), |
| 119 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _internal_metadata_), |
| 120 | ~0u, // no _extensions_ |
| 121 | ~0u, // no _oneof_case_ |
| 122 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_), |
| 123 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_), |
| 124 | 0, |
| 125 | 1, |
| 126 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _has_bits_), |
| 127 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, _internal_metadata_), |
| 128 | ~0u, // no _extensions_ |
| 129 | ~0u, // no _oneof_case_ |
| 130 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, start_), |
| 131 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ReservedRange, end_), |
| 132 | 0, |
| 133 | 1, |
| 134 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_), |
| 135 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _internal_metadata_), |
| 136 | ~0u, // no _extensions_ |
| 137 | ~0u, // no _oneof_case_ |
| 138 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_), |
| 139 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_), |
| 140 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_), |
| 141 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_), |
| 142 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_), |
| 143 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_), |
| 144 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, oneof_decl_), |
| 145 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_), |
| 146 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_range_), |
| 147 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, reserved_name_), |
| 148 | 0, |
| 149 | 2, |
| 150 | 3, |
| 151 | 4, |
| 152 | 5, |
| 153 | 6, |
| 154 | 7, |
| 155 | 1, |
| 156 | 8, |
| 157 | 9, |
| 158 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_), |
| 159 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _internal_metadata_), |
| 160 | ~0u, // no _extensions_ |
| 161 | ~0u, // no _oneof_case_ |
| 162 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_), |
| 163 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_), |
| 164 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_), |
| 165 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_), |
| 166 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_), |
| 167 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_), |
| 168 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_), |
| 169 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_index_), |
| 170 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_name_), |
| 171 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_), |
| 172 | 0, |
| 173 | 6, |
| 174 | 8, |
| 175 | 9, |
| 176 | 1, |
| 177 | 2, |
| 178 | 3, |
| 179 | 7, |
| 180 | 4, |
| 181 | 5, |
| 182 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _has_bits_), |
| 183 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, _internal_metadata_), |
| 184 | ~0u, // no _extensions_ |
| 185 | ~0u, // no _oneof_case_ |
| 186 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, name_), |
| 187 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofDescriptorProto, options_), |
| 188 | 0, |
| 189 | 1, |
| 190 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_), |
| 191 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _internal_metadata_), |
| 192 | ~0u, // no _extensions_ |
| 193 | ~0u, // no _oneof_case_ |
| 194 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_), |
| 195 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_), |
| 196 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_), |
| 197 | 0, |
| 198 | 2, |
| 199 | 1, |
| 200 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_), |
| 201 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _internal_metadata_), |
| 202 | ~0u, // no _extensions_ |
| 203 | ~0u, // no _oneof_case_ |
| 204 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_), |
| 205 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_), |
| 206 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_), |
| 207 | 0, |
| 208 | 2, |
| 209 | 1, |
| 210 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_), |
| 211 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _internal_metadata_), |
| 212 | ~0u, // no _extensions_ |
| 213 | ~0u, // no _oneof_case_ |
| 214 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_), |
| 215 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_), |
| 216 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_), |
| 217 | 0, |
| 218 | 2, |
| 219 | 1, |
| 220 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_), |
| 221 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _internal_metadata_), |
| 222 | ~0u, // no _extensions_ |
| 223 | ~0u, // no _oneof_case_ |
| 224 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_), |
| 225 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_), |
| 226 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_), |
| 227 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_), |
| 228 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, client_streaming_), |
| 229 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, server_streaming_), |
| 230 | 0, |
| 231 | 1, |
| 232 | 2, |
| 233 | 3, |
| 234 | 4, |
| 235 | 5, |
| 236 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_), |
| 237 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _internal_metadata_), |
| 238 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_), |
| 239 | ~0u, // no _oneof_case_ |
| 240 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_), |
| 241 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_), |
| 242 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_), |
| 243 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generate_equals_and_hash_), |
| 244 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_string_check_utf8_), |
| 245 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_), |
| 246 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, go_package_), |
| 247 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_), |
| 248 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_), |
| 249 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_), |
| 250 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, deprecated_), |
| 251 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_enable_arenas_), |
| 252 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, objc_class_prefix_), |
| 253 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, csharp_namespace_), |
| 254 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, swift_prefix_), |
| 255 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_), |
| 256 | 0, |
| 257 | 1, |
| 258 | 6, |
| 259 | 7, |
| 260 | 8, |
| 261 | 14, |
| 262 | 2, |
| 263 | 9, |
| 264 | 10, |
| 265 | 11, |
| 266 | 12, |
| 267 | 13, |
| 268 | 3, |
| 269 | 4, |
| 270 | 5, |
| 271 | 15, |
| 272 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_), |
| 273 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _internal_metadata_), |
| 274 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_), |
| 275 | ~0u, // no _oneof_case_ |
| 276 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_), |
| 277 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_), |
| 278 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, deprecated_), |
| 279 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, map_entry_), |
| 280 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_), |
| 281 | 0, |
| 282 | 1, |
| 283 | 2, |
| 284 | 3, |
| 285 | 4, |
| 286 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_), |
| 287 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _internal_metadata_), |
| 288 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_), |
| 289 | ~0u, // no _oneof_case_ |
| 290 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_), |
| 291 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_), |
| 292 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, jstype_), |
| 293 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, lazy_), |
| 294 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_), |
| 295 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, weak_), |
| 296 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_), |
| 297 | 0, |
| 298 | 2, |
| 299 | 1, |
| 300 | 3, |
| 301 | 4, |
| 302 | 5, |
| 303 | 6, |
| 304 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _has_bits_), |
| 305 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _internal_metadata_), |
| 306 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, _extensions_), |
| 307 | ~0u, // no _oneof_case_ |
| 308 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OneofOptions, uninterpreted_option_), |
| 309 | 0, |
| 310 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_), |
| 311 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _internal_metadata_), |
| 312 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_), |
| 313 | ~0u, // no _oneof_case_ |
| 314 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, allow_alias_), |
| 315 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, deprecated_), |
| 316 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_), |
| 317 | 0, |
| 318 | 1, |
| 319 | 2, |
| 320 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_), |
| 321 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _internal_metadata_), |
| 322 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_), |
| 323 | ~0u, // no _oneof_case_ |
| 324 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, deprecated_), |
| 325 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_), |
| 326 | 0, |
| 327 | 1, |
| 328 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_), |
| 329 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _internal_metadata_), |
| 330 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_), |
| 331 | ~0u, // no _oneof_case_ |
| 332 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, deprecated_), |
| 333 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_), |
| 334 | 0, |
| 335 | 1, |
| 336 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_), |
| 337 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _internal_metadata_), |
| 338 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_), |
| 339 | ~0u, // no _oneof_case_ |
| 340 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, deprecated_), |
| 341 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, idempotency_level_), |
| 342 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_), |
| 343 | 0, |
| 344 | 1, |
| 345 | 2, |
| 346 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_), |
| 347 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _internal_metadata_), |
| 348 | ~0u, // no _extensions_ |
| 349 | ~0u, // no _oneof_case_ |
| 350 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_), |
| 351 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_), |
| 352 | 0, |
| 353 | 1, |
| 354 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_), |
| 355 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _internal_metadata_), |
| 356 | ~0u, // no _extensions_ |
| 357 | ~0u, // no _oneof_case_ |
| 358 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_), |
| 359 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_), |
| 360 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_), |
| 361 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_), |
| 362 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_), |
| 363 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_), |
| 364 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, aggregate_value_), |
| 365 | 6, |
| 366 | 0, |
| 367 | 3, |
| 368 | 4, |
| 369 | 5, |
| 370 | 1, |
| 371 | 2, |
| 372 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _has_bits_), |
| 373 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, _internal_metadata_), |
| 374 | ~0u, // no _extensions_ |
| 375 | ~0u, // no _oneof_case_ |
| 376 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, path_), |
| 377 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, span_), |
| 378 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_comments_), |
| 379 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, trailing_comments_), |
| 380 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo_Location, leading_detached_comments_), |
| 381 | 2, |
| 382 | 3, |
| 383 | 0, |
| 384 | 1, |
| 385 | 4, |
| 386 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _has_bits_), |
| 387 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, _internal_metadata_), |
| 388 | ~0u, // no _extensions_ |
| 389 | ~0u, // no _oneof_case_ |
| 390 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SourceCodeInfo, location_), |
| 391 | 0, |
| 392 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _has_bits_), |
| 393 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _internal_metadata_), |
| 394 | ~0u, // no _extensions_ |
| 395 | ~0u, // no _oneof_case_ |
| 396 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, path_), |
| 397 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, source_file_), |
| 398 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, begin_), |
| 399 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo_Annotation, end_), |
| 400 | 3, |
| 401 | 0, |
| 402 | 1, |
| 403 | 2, |
| 404 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _has_bits_), |
| 405 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, _internal_metadata_), |
| 406 | ~0u, // no _extensions_ |
| 407 | ~0u, // no _oneof_case_ |
| 408 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GeneratedCodeInfo, annotation_), |
| 409 | 0, |
| 410 | }; |
| 411 | return offsets; |
| 412 | } |
| 413 | |
| 414 | static const ::google::protobuf::internal::MigrationSchema schemas[] = { |
| 415 | { 0, 5, sizeof(FileDescriptorSet)}, |
| 416 | { 6, 22, sizeof(FileDescriptorProto)}, |
| 417 | { 34, 40, sizeof(DescriptorProto_ExtensionRange)}, |
| 418 | { 42, 48, sizeof(DescriptorProto_ReservedRange)}, |
| 419 | { 50, 64, sizeof(DescriptorProto)}, |
| 420 | { 74, 88, sizeof(FieldDescriptorProto)}, |
| 421 | { 98, 104, sizeof(OneofDescriptorProto)}, |
| 422 | { 106, 113, sizeof(EnumDescriptorProto)}, |
| 423 | { 116, 123, sizeof(EnumValueDescriptorProto)}, |
| 424 | { 126, 133, sizeof(ServiceDescriptorProto)}, |
| 425 | { 136, 146, sizeof(MethodDescriptorProto)}, |
| 426 | { 152, 172, sizeof(FileOptions)}, |
| 427 | { 188, 197, sizeof(MessageOptions)}, |
| 428 | { 202, 213, sizeof(FieldOptions)}, |
| 429 | { 220, 225, sizeof(OneofOptions)}, |
| 430 | { 226, 233, sizeof(EnumOptions)}, |
| 431 | { 236, 242, sizeof(EnumValueOptions)}, |
| 432 | { 244, 250, sizeof(ServiceOptions)}, |
| 433 | { 252, 259, sizeof(MethodOptions)}, |
| 434 | { 262, 268, sizeof(UninterpretedOption_NamePart)}, |
| 435 | { 270, 281, sizeof(UninterpretedOption)}, |
| 436 | { 288, 297, sizeof(SourceCodeInfo_Location)}, |
| 437 | { 302, 307, sizeof(SourceCodeInfo)}, |
| 438 | { 308, 316, sizeof(GeneratedCodeInfo_Annotation)}, |
| 439 | { 320, 325, sizeof(GeneratedCodeInfo)}, |
| 440 | }; |
| 441 | |
| 442 | static const ::google::protobuf::internal::DefaultInstanceData file_default_instances[] = { |
| 443 | {reinterpret_cast<const ::google::protobuf::Message*>(&_FileDescriptorSet_default_instance_), NULL}, |
| 444 | {reinterpret_cast<const ::google::protobuf::Message*>(&_FileDescriptorProto_default_instance_), NULL}, |
| 445 | {reinterpret_cast<const ::google::protobuf::Message*>(&_DescriptorProto_ExtensionRange_default_instance_), NULL}, |
| 446 | {reinterpret_cast<const ::google::protobuf::Message*>(&_DescriptorProto_ReservedRange_default_instance_), NULL}, |
| 447 | {reinterpret_cast<const ::google::protobuf::Message*>(&_DescriptorProto_default_instance_), NULL}, |
| 448 | {reinterpret_cast<const ::google::protobuf::Message*>(&_FieldDescriptorProto_default_instance_), NULL}, |
| 449 | {reinterpret_cast<const ::google::protobuf::Message*>(&_OneofDescriptorProto_default_instance_), NULL}, |
| 450 | {reinterpret_cast<const ::google::protobuf::Message*>(&_EnumDescriptorProto_default_instance_), NULL}, |
| 451 | {reinterpret_cast<const ::google::protobuf::Message*>(&_EnumValueDescriptorProto_default_instance_), NULL}, |
| 452 | {reinterpret_cast<const ::google::protobuf::Message*>(&_ServiceDescriptorProto_default_instance_), NULL}, |
| 453 | {reinterpret_cast<const ::google::protobuf::Message*>(&_MethodDescriptorProto_default_instance_), NULL}, |
| 454 | {reinterpret_cast<const ::google::protobuf::Message*>(&_FileOptions_default_instance_), NULL}, |
| 455 | {reinterpret_cast<const ::google::protobuf::Message*>(&_MessageOptions_default_instance_), NULL}, |
| 456 | {reinterpret_cast<const ::google::protobuf::Message*>(&_FieldOptions_default_instance_), NULL}, |
| 457 | {reinterpret_cast<const ::google::protobuf::Message*>(&_OneofOptions_default_instance_), NULL}, |
| 458 | {reinterpret_cast<const ::google::protobuf::Message*>(&_EnumOptions_default_instance_), NULL}, |
| 459 | {reinterpret_cast<const ::google::protobuf::Message*>(&_EnumValueOptions_default_instance_), NULL}, |
| 460 | {reinterpret_cast<const ::google::protobuf::Message*>(&_ServiceOptions_default_instance_), NULL}, |
| 461 | {reinterpret_cast<const ::google::protobuf::Message*>(&_MethodOptions_default_instance_), NULL}, |
| 462 | {reinterpret_cast<const ::google::protobuf::Message*>(&_UninterpretedOption_NamePart_default_instance_), NULL}, |
| 463 | {reinterpret_cast<const ::google::protobuf::Message*>(&_UninterpretedOption_default_instance_), NULL}, |
| 464 | {reinterpret_cast<const ::google::protobuf::Message*>(&_SourceCodeInfo_Location_default_instance_), NULL}, |
| 465 | {reinterpret_cast<const ::google::protobuf::Message*>(&_SourceCodeInfo_default_instance_), NULL}, |
| 466 | {reinterpret_cast<const ::google::protobuf::Message*>(&_GeneratedCodeInfo_Annotation_default_instance_), NULL}, |
| 467 | {reinterpret_cast<const ::google::protobuf::Message*>(&_GeneratedCodeInfo_default_instance_), NULL}, |
| 468 | }; |
| 469 | |
| 470 | namespace { |
| 471 | |
| 472 | void protobuf_AssignDescriptors() { |
| 473 | protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 474 | ::google::protobuf::MessageFactory* factory = NULL; |
| 475 | AssignDescriptors( |
| 476 | "google/protobuf/descriptor.proto", schemas, file_default_instances, protobuf_Offsets_google_2fprotobuf_2fdescriptor_2eproto(), factory, |
| 477 | file_level_metadata, file_level_enum_descriptors, NULL); |
| 478 | } |
| 479 | |
| 480 | void protobuf_AssignDescriptorsOnce() { |
| 481 | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
| 482 | ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); |
| 483 | } |
| 484 | |
| 485 | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; |
| 486 | void protobuf_RegisterTypes(const ::std::string&) { |
| 487 | protobuf_AssignDescriptorsOnce(); |
| 488 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 25); |
| 489 | } |
| 490 | |
| 491 | } // namespace |
| 492 | |
| 493 | void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() { |
| 494 | _FileDescriptorSet_default_instance_.Shutdown(); |
| 495 | delete file_level_metadata[0].reflection; |
| 496 | _FileDescriptorProto_default_instance_.Shutdown(); |
| 497 | delete file_level_metadata[1].reflection; |
| 498 | _DescriptorProto_ExtensionRange_default_instance_.Shutdown(); |
| 499 | delete file_level_metadata[2].reflection; |
| 500 | _DescriptorProto_ReservedRange_default_instance_.Shutdown(); |
| 501 | delete file_level_metadata[3].reflection; |
| 502 | _DescriptorProto_default_instance_.Shutdown(); |
| 503 | delete file_level_metadata[4].reflection; |
| 504 | _FieldDescriptorProto_default_instance_.Shutdown(); |
| 505 | delete file_level_metadata[5].reflection; |
| 506 | _OneofDescriptorProto_default_instance_.Shutdown(); |
| 507 | delete file_level_metadata[6].reflection; |
| 508 | _EnumDescriptorProto_default_instance_.Shutdown(); |
| 509 | delete file_level_metadata[7].reflection; |
| 510 | _EnumValueDescriptorProto_default_instance_.Shutdown(); |
| 511 | delete file_level_metadata[8].reflection; |
| 512 | _ServiceDescriptorProto_default_instance_.Shutdown(); |
| 513 | delete file_level_metadata[9].reflection; |
| 514 | _MethodDescriptorProto_default_instance_.Shutdown(); |
| 515 | delete file_level_metadata[10].reflection; |
| 516 | _FileOptions_default_instance_.Shutdown(); |
| 517 | delete file_level_metadata[11].reflection; |
| 518 | _MessageOptions_default_instance_.Shutdown(); |
| 519 | delete file_level_metadata[12].reflection; |
| 520 | _FieldOptions_default_instance_.Shutdown(); |
| 521 | delete file_level_metadata[13].reflection; |
| 522 | _OneofOptions_default_instance_.Shutdown(); |
| 523 | delete file_level_metadata[14].reflection; |
| 524 | _EnumOptions_default_instance_.Shutdown(); |
| 525 | delete file_level_metadata[15].reflection; |
| 526 | _EnumValueOptions_default_instance_.Shutdown(); |
| 527 | delete file_level_metadata[16].reflection; |
| 528 | _ServiceOptions_default_instance_.Shutdown(); |
| 529 | delete file_level_metadata[17].reflection; |
| 530 | _MethodOptions_default_instance_.Shutdown(); |
| 531 | delete file_level_metadata[18].reflection; |
| 532 | _UninterpretedOption_NamePart_default_instance_.Shutdown(); |
| 533 | delete file_level_metadata[19].reflection; |
| 534 | _UninterpretedOption_default_instance_.Shutdown(); |
| 535 | delete file_level_metadata[20].reflection; |
| 536 | _SourceCodeInfo_Location_default_instance_.Shutdown(); |
| 537 | delete file_level_metadata[21].reflection; |
| 538 | _SourceCodeInfo_default_instance_.Shutdown(); |
| 539 | delete file_level_metadata[22].reflection; |
| 540 | _GeneratedCodeInfo_Annotation_default_instance_.Shutdown(); |
| 541 | delete file_level_metadata[23].reflection; |
| 542 | _GeneratedCodeInfo_default_instance_.Shutdown(); |
| 543 | delete file_level_metadata[24].reflection; |
| 544 | } |
| 545 | |
| 546 | void protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto_impl() { |
| 547 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 548 | |
| 549 | ::google::protobuf::internal::InitProtobufDefaults(); |
| 550 | _FileDescriptorSet_default_instance_.DefaultConstruct(); |
| 551 | _FileDescriptorProto_default_instance_.DefaultConstruct(); |
| 552 | _DescriptorProto_ExtensionRange_default_instance_.DefaultConstruct(); |
| 553 | _DescriptorProto_ReservedRange_default_instance_.DefaultConstruct(); |
| 554 | _DescriptorProto_default_instance_.DefaultConstruct(); |
| 555 | _FieldDescriptorProto_default_instance_.DefaultConstruct(); |
| 556 | _OneofDescriptorProto_default_instance_.DefaultConstruct(); |
| 557 | _EnumDescriptorProto_default_instance_.DefaultConstruct(); |
| 558 | _EnumValueDescriptorProto_default_instance_.DefaultConstruct(); |
| 559 | _ServiceDescriptorProto_default_instance_.DefaultConstruct(); |
| 560 | _MethodDescriptorProto_default_instance_.DefaultConstruct(); |
| 561 | _FileOptions_default_instance_.DefaultConstruct(); |
| 562 | _MessageOptions_default_instance_.DefaultConstruct(); |
| 563 | _FieldOptions_default_instance_.DefaultConstruct(); |
| 564 | _OneofOptions_default_instance_.DefaultConstruct(); |
| 565 | _EnumOptions_default_instance_.DefaultConstruct(); |
| 566 | _EnumValueOptions_default_instance_.DefaultConstruct(); |
| 567 | _ServiceOptions_default_instance_.DefaultConstruct(); |
| 568 | _MethodOptions_default_instance_.DefaultConstruct(); |
| 569 | _UninterpretedOption_NamePart_default_instance_.DefaultConstruct(); |
| 570 | _UninterpretedOption_default_instance_.DefaultConstruct(); |
| 571 | _SourceCodeInfo_Location_default_instance_.DefaultConstruct(); |
| 572 | _SourceCodeInfo_default_instance_.DefaultConstruct(); |
| 573 | _GeneratedCodeInfo_Annotation_default_instance_.DefaultConstruct(); |
| 574 | _GeneratedCodeInfo_default_instance_.DefaultConstruct(); |
| 575 | _FileDescriptorProto_default_instance_.get_mutable()->options_ = const_cast< ::google::protobuf::FileOptions*>( |
| 576 | ::google::protobuf::FileOptions::internal_default_instance()); |
| 577 | _FileDescriptorProto_default_instance_.get_mutable()->source_code_info_ = const_cast< ::google::protobuf::SourceCodeInfo*>( |
| 578 | ::google::protobuf::SourceCodeInfo::internal_default_instance()); |
| 579 | _DescriptorProto_default_instance_.get_mutable()->options_ = const_cast< ::google::protobuf::MessageOptions*>( |
| 580 | ::google::protobuf::MessageOptions::internal_default_instance()); |
| 581 | _FieldDescriptorProto_default_instance_.get_mutable()->options_ = const_cast< ::google::protobuf::FieldOptions*>( |
| 582 | ::google::protobuf::FieldOptions::internal_default_instance()); |
| 583 | _OneofDescriptorProto_default_instance_.get_mutable()->options_ = const_cast< ::google::protobuf::OneofOptions*>( |
| 584 | ::google::protobuf::OneofOptions::internal_default_instance()); |
| 585 | _EnumDescriptorProto_default_instance_.get_mutable()->options_ = const_cast< ::google::protobuf::EnumOptions*>( |
| 586 | ::google::protobuf::EnumOptions::internal_default_instance()); |
| 587 | _EnumValueDescriptorProto_default_instance_.get_mutable()->options_ = const_cast< ::google::protobuf::EnumValueOptions*>( |
| 588 | ::google::protobuf::EnumValueOptions::internal_default_instance()); |
| 589 | _ServiceDescriptorProto_default_instance_.get_mutable()->options_ = const_cast< ::google::protobuf::ServiceOptions*>( |
| 590 | ::google::protobuf::ServiceOptions::internal_default_instance()); |
| 591 | _MethodDescriptorProto_default_instance_.get_mutable()->options_ = const_cast< ::google::protobuf::MethodOptions*>( |
| 592 | ::google::protobuf::MethodOptions::internal_default_instance()); |
| 593 | } |
| 594 | |
| 595 | void protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto() { |
| 596 | static GOOGLE_PROTOBUF_DECLARE_ONCE(once); |
| 597 | ::google::protobuf::GoogleOnceInit(&once, &protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto_impl); |
| 598 | } |
| 599 | void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_impl() { |
| 600 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 601 | static const char descriptor[] = { |
| 602 | "\n google/protobuf/descriptor.proto\022\017goog" |
| 603 | "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file" |
| 604 | "\030\001 \003(\0132$.google.protobuf.FileDescriptorP" |
| 605 | "roto\"\333\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001" |
| 606 | "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022" |
| 607 | "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen" |
| 608 | "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog" |
| 609 | "le.protobuf.DescriptorProto\0227\n\tenum_type" |
| 610 | "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP" |
| 611 | "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf." |
| 612 | "ServiceDescriptorProto\0228\n\textension\030\007 \003(" |
| 613 | "\0132%.google.protobuf.FieldDescriptorProto" |
| 614 | "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File" |
| 615 | "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog" |
| 616 | "le.protobuf.SourceCodeInfo\022\016\n\006syntax\030\014 \001" |
| 617 | "(\t\"\360\004\n\017DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005" |
| 618 | "field\030\002 \003(\0132%.google.protobuf.FieldDescr" |
| 619 | "iptorProto\0228\n\textension\030\006 \003(\0132%.google.p" |
| 620 | "rotobuf.FieldDescriptorProto\0225\n\013nested_t" |
| 621 | "ype\030\003 \003(\0132 .google.protobuf.DescriptorPr" |
| 622 | "oto\0227\n\tenum_type\030\004 \003(\0132$.google.protobuf" |
| 623 | ".EnumDescriptorProto\022H\n\017extension_range\030" |
| 624 | "\005 \003(\0132/.google.protobuf.DescriptorProto." |
| 625 | "ExtensionRange\0229\n\noneof_decl\030\010 \003(\0132%.goo" |
| 626 | "gle.protobuf.OneofDescriptorProto\0220\n\007opt" |
| 627 | "ions\030\007 \001(\0132\037.google.protobuf.MessageOpti" |
| 628 | "ons\022F\n\016reserved_range\030\t \003(\0132..google.pro" |
| 629 | "tobuf.DescriptorProto.ReservedRange\022\025\n\rr" |
| 630 | "eserved_name\030\n \003(\t\032,\n\016ExtensionRange\022\r\n\005" |
| 631 | "start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\032+\n\rReservedRang" |
| 632 | "e\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\274\005\n\024FieldD" |
| 633 | "escriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003" |
| 634 | " \001(\005\022:\n\005label\030\004 \001(\0162+.google.protobuf.Fi" |
| 635 | "eldDescriptorProto.Label\0228\n\004type\030\005 \001(\0162*" |
| 636 | ".google.protobuf.FieldDescriptorProto.Ty" |
| 637 | "pe\022\021\n\ttype_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022" |
| 638 | "\025\n\rdefault_value\030\007 \001(\t\022\023\n\013oneof_index\030\t " |
| 639 | "\001(\005\022\021\n\tjson_name\030\n \001(\t\022.\n\007options\030\010 \001(\0132" |
| 640 | "\035.google.protobuf.FieldOptions\"\266\002\n\004Type\022" |
| 641 | "\017\n\013TYPE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE" |
| 642 | "_INT64\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020" |
| 643 | "\005\022\020\n\014TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n" |
| 644 | "\tTYPE_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GR" |
| 645 | "OUP\020\n\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022" |
| 646 | "\017\n\013TYPE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_" |
| 647 | "SFIXED32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SI" |
| 648 | "NT32\020\021\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LABE" |
| 649 | "L_OPTIONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABE" |
| 650 | "L_REPEATED\020\003\"T\n\024OneofDescriptorProto\022\014\n\004" |
| 651 | "name\030\001 \001(\t\022.\n\007options\030\002 \001(\0132\035.google.pro" |
| 652 | "tobuf.OneofOptions\"\214\001\n\023EnumDescriptorPro" |
| 653 | "to\022\014\n\004name\030\001 \001(\t\0228\n\005value\030\002 \003(\0132).google" |
| 654 | ".protobuf.EnumValueDescriptorProto\022-\n\007op" |
| 655 | "tions\030\003 \001(\0132\034.google.protobuf.EnumOption" |
| 656 | "s\"l\n\030EnumValueDescriptorProto\022\014\n\004name\030\001 " |
| 657 | "\001(\t\022\016\n\006number\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.g" |
| 658 | "oogle.protobuf.EnumValueOptions\"\220\001\n\026Serv" |
| 659 | "iceDescriptorProto\022\014\n\004name\030\001 \001(\t\0226\n\006meth" |
| 660 | "od\030\002 \003(\0132&.google.protobuf.MethodDescrip" |
| 661 | "torProto\0220\n\007options\030\003 \001(\0132\037.google.proto" |
| 662 | "buf.ServiceOptions\"\301\001\n\025MethodDescriptorP" |
| 663 | "roto\022\014\n\004name\030\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023" |
| 664 | "\n\013output_type\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.g" |
| 665 | "oogle.protobuf.MethodOptions\022\037\n\020client_s" |
| 666 | "treaming\030\005 \001(\010:\005false\022\037\n\020server_streamin" |
| 667 | "g\030\006 \001(\010:\005false\"\232\005\n\013FileOptions\022\024\n\014java_p" |
| 668 | "ackage\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 \001" |
| 669 | "(\t\022\"\n\023java_multiple_files\030\n \001(\010:\005false\022)" |
| 670 | "\n\035java_generate_equals_and_hash\030\024 \001(\010B\002\030" |
| 671 | "\001\022%\n\026java_string_check_utf8\030\033 \001(\010:\005false" |
| 672 | "\022F\n\014optimize_for\030\t \001(\0162).google.protobuf" |
| 673 | ".FileOptions.OptimizeMode:\005SPEED\022\022\n\ngo_p" |
| 674 | "ackage\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(" |
| 675 | "\010:\005false\022$\n\025java_generic_services\030\021 \001(\010:" |
| 676 | "\005false\022\"\n\023py_generic_services\030\022 \001(\010:\005fal" |
| 677 | "se\022\031\n\ndeprecated\030\027 \001(\010:\005false\022\037\n\020cc_enab" |
| 678 | "le_arenas\030\037 \001(\010:\005false\022\031\n\021objc_class_pre" |
| 679 | "fix\030$ \001(\t\022\030\n\020csharp_namespace\030% \001(\t\022\024\n\014s" |
| 680 | "wift_prefix\030\' \001(\t\022C\n\024uninterpreted_optio" |
| 681 | "n\030\347\007 \003(\0132$.google.protobuf.Uninterpreted" |
| 682 | "Option\":\n\014OptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCOD" |
| 683 | "E_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002J\004\010" |
| 684 | "&\020\'\"\354\001\n\016MessageOptions\022&\n\027message_set_wi" |
| 685 | "re_format\030\001 \001(\010:\005false\022.\n\037no_standard_de" |
| 686 | "scriptor_accessor\030\002 \001(\010:\005false\022\031\n\ndeprec" |
| 687 | "ated\030\003 \001(\010:\005false\022\021\n\tmap_entry\030\007 \001(\010\022C\n\024" |
| 688 | "uninterpreted_option\030\347\007 \003(\0132$.google.pro" |
| 689 | "tobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002J\004\010\010" |
| 690 | "\020\t\"\236\003\n\014FieldOptions\022:\n\005ctype\030\001 \001(\0162#.goo" |
| 691 | "gle.protobuf.FieldOptions.CType:\006STRING\022" |
| 692 | "\016\n\006packed\030\002 \001(\010\022\?\n\006jstype\030\006 \001(\0162$.google" |
| 693 | ".protobuf.FieldOptions.JSType:\tJS_NORMAL" |
| 694 | "\022\023\n\004lazy\030\005 \001(\010:\005false\022\031\n\ndeprecated\030\003 \001(" |
| 695 | "\010:\005false\022\023\n\004weak\030\n \001(\010:\005false\022C\n\024uninter" |
| 696 | "preted_option\030\347\007 \003(\0132$.google.protobuf.U" |
| 697 | "ninterpretedOption\"/\n\005CType\022\n\n\006STRING\020\000\022" |
| 698 | "\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002\"5\n\006JSType\022\r\n" |
| 699 | "\tJS_NORMAL\020\000\022\r\n\tJS_STRING\020\001\022\r\n\tJS_NUMBER" |
| 700 | "\020\002*\t\010\350\007\020\200\200\200\200\002J\004\010\004\020\005\"^\n\014OneofOptions\022C\n\024u" |
| 701 | "ninterpreted_option\030\347\007 \003(\0132$.google.prot" |
| 702 | "obuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\215\001\n\013" |
| 703 | "EnumOptions\022\023\n\013allow_alias\030\002 \001(\010\022\031\n\ndepr" |
| 704 | "ecated\030\003 \001(\010:\005false\022C\n\024uninterpreted_opt" |
| 705 | "ion\030\347\007 \003(\0132$.google.protobuf.Uninterpret" |
| 706 | "edOption*\t\010\350\007\020\200\200\200\200\002\"}\n\020EnumValueOptions\022" |
| 707 | "\031\n\ndeprecated\030\001 \001(\010:\005false\022C\n\024uninterpre" |
| 708 | "ted_option\030\347\007 \003(\0132$.google.protobuf.Unin" |
| 709 | "terpretedOption*\t\010\350\007\020\200\200\200\200\002\"{\n\016ServiceOpt" |
| 710 | "ions\022\031\n\ndeprecated\030! \001(\010:\005false\022C\n\024unint" |
| 711 | "erpreted_option\030\347\007 \003(\0132$.google.protobuf" |
| 712 | ".UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"\255\002\n\rMeth" |
| 713 | "odOptions\022\031\n\ndeprecated\030! \001(\010:\005false\022_\n\021" |
| 714 | "idempotency_level\030\" \001(\0162/.google.protobu" |
| 715 | "f.MethodOptions.IdempotencyLevel:\023IDEMPO" |
| 716 | "TENCY_UNKNOWN\022C\n\024uninterpreted_option\030\347\007" |
| 717 | " \003(\0132$.google.protobuf.UninterpretedOpti" |
| 718 | "on\"P\n\020IdempotencyLevel\022\027\n\023IDEMPOTENCY_UN" |
| 719 | "KNOWN\020\000\022\023\n\017NO_SIDE_EFFECTS\020\001\022\016\n\nIDEMPOTE" |
| 720 | "NT\020\002*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023UninterpretedOption\022" |
| 721 | ";\n\004name\030\002 \003(\0132-.google.protobuf.Uninterp" |
| 722 | "retedOption.NamePart\022\030\n\020identifier_value" |
| 723 | "\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022\032\n\022ne" |
| 724 | "gative_int_value\030\005 \001(\003\022\024\n\014double_value\030\006" |
| 725 | " \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017aggregate_" |
| 726 | "value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_part\030\001 \002" |
| 727 | "(\t\022\024\n\014is_extension\030\002 \002(\010\"\325\001\n\016SourceCodeI" |
| 728 | "nfo\022:\n\010location\030\001 \003(\0132(.google.protobuf." |
| 729 | "SourceCodeInfo.Location\032\206\001\n\010Location\022\020\n\004" |
| 730 | "path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022\030\n\020lead" |
| 731 | "ing_comments\030\003 \001(\t\022\031\n\021trailing_comments\030" |
| 732 | "\004 \001(\t\022!\n\031leading_detached_comments\030\006 \003(\t" |
| 733 | "\"\247\001\n\021GeneratedCodeInfo\022A\n\nannotation\030\001 \003" |
| 734 | "(\0132-.google.protobuf.GeneratedCodeInfo.A" |
| 735 | "nnotation\032O\n\nAnnotation\022\020\n\004path\030\001 \003(\005B\002\020" |
| 736 | "\001\022\023\n\013source_file\030\002 \001(\t\022\r\n\005begin\030\003 \001(\005\022\013\n" |
| 737 | "\003end\030\004 \001(\005B\214\001\n\023com.google.protobufB\020Desc" |
| 738 | "riptorProtosH\001Z>github.com/golang/protob" |
| 739 | "uf/protoc-gen-go/descriptor;descriptor\242\002" |
| 740 | "\003GPB\252\002\032Google.Protobuf.Reflection" |
| 741 | }; |
| 742 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
| 743 | descriptor, 5553); |
| 744 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| 745 | "google/protobuf/descriptor.proto", &protobuf_RegisterTypes); |
| 746 | ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto); |
| 747 | } |
| 748 | |
| 749 | GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_once_); |
| 750 | void protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() { |
| 751 | ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_once_, |
| 752 | &protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto_impl); |
| 753 | } |
| 754 | // Force AddDescriptors() to be called at static initialization time. |
| 755 | struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto { |
| 756 | StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() { |
| 757 | protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto(); |
| 758 | } |
| 759 | } static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_; |
| 760 | const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() { |
| 761 | protobuf_AssignDescriptorsOnce(); |
| 762 | return file_level_enum_descriptors[0]; |
| 763 | } |
| 764 | bool FieldDescriptorProto_Type_IsValid(int value) { |
| 765 | switch (value) { |
| 766 | case 1: |
| 767 | case 2: |
| 768 | case 3: |
| 769 | case 4: |
| 770 | case 5: |
| 771 | case 6: |
| 772 | case 7: |
| 773 | case 8: |
| 774 | case 9: |
| 775 | case 10: |
| 776 | case 11: |
| 777 | case 12: |
| 778 | case 13: |
| 779 | case 14: |
| 780 | case 15: |
| 781 | case 16: |
| 782 | case 17: |
| 783 | case 18: |
| 784 | return true; |
| 785 | default: |
| 786 | return false; |
| 787 | } |
| 788 | } |
| 789 | |
| 790 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 791 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE; |
| 792 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT; |
| 793 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64; |
| 794 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64; |
| 795 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32; |
| 796 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64; |
| 797 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32; |
| 798 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL; |
| 799 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING; |
| 800 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP; |
| 801 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE; |
| 802 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES; |
| 803 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32; |
| 804 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM; |
| 805 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32; |
| 806 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64; |
| 807 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32; |
| 808 | const FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64; |
| 809 | const FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN; |
| 810 | const FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX; |
| 811 | const int FieldDescriptorProto::Type_ARRAYSIZE; |
| 812 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 813 | const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() { |
| 814 | protobuf_AssignDescriptorsOnce(); |
| 815 | return file_level_enum_descriptors[1]; |
| 816 | } |
| 817 | bool FieldDescriptorProto_Label_IsValid(int value) { |
| 818 | switch (value) { |
| 819 | case 1: |
| 820 | case 2: |
| 821 | case 3: |
| 822 | return true; |
| 823 | default: |
| 824 | return false; |
| 825 | } |
| 826 | } |
| 827 | |
| 828 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 829 | const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL; |
| 830 | const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED; |
| 831 | const FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED; |
| 832 | const FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN; |
| 833 | const FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX; |
| 834 | const int FieldDescriptorProto::Label_ARRAYSIZE; |
| 835 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 836 | const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() { |
| 837 | protobuf_AssignDescriptorsOnce(); |
| 838 | return file_level_enum_descriptors[2]; |
| 839 | } |
| 840 | bool FileOptions_OptimizeMode_IsValid(int value) { |
| 841 | switch (value) { |
| 842 | case 1: |
| 843 | case 2: |
| 844 | case 3: |
| 845 | return true; |
| 846 | default: |
| 847 | return false; |
| 848 | } |
| 849 | } |
| 850 | |
| 851 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 852 | const FileOptions_OptimizeMode FileOptions::SPEED; |
| 853 | const FileOptions_OptimizeMode FileOptions::CODE_SIZE; |
| 854 | const FileOptions_OptimizeMode FileOptions::LITE_RUNTIME; |
| 855 | const FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN; |
| 856 | const FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX; |
| 857 | const int FileOptions::OptimizeMode_ARRAYSIZE; |
| 858 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 859 | const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() { |
| 860 | protobuf_AssignDescriptorsOnce(); |
| 861 | return file_level_enum_descriptors[3]; |
| 862 | } |
| 863 | bool FieldOptions_CType_IsValid(int value) { |
| 864 | switch (value) { |
| 865 | case 0: |
| 866 | case 1: |
| 867 | case 2: |
| 868 | return true; |
| 869 | default: |
| 870 | return false; |
| 871 | } |
| 872 | } |
| 873 | |
| 874 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 875 | const FieldOptions_CType FieldOptions::STRING; |
| 876 | const FieldOptions_CType FieldOptions::CORD; |
| 877 | const FieldOptions_CType FieldOptions::STRING_PIECE; |
| 878 | const FieldOptions_CType FieldOptions::CType_MIN; |
| 879 | const FieldOptions_CType FieldOptions::CType_MAX; |
| 880 | const int FieldOptions::CType_ARRAYSIZE; |
| 881 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 882 | const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor() { |
| 883 | protobuf_AssignDescriptorsOnce(); |
| 884 | return file_level_enum_descriptors[4]; |
| 885 | } |
| 886 | bool FieldOptions_JSType_IsValid(int value) { |
| 887 | switch (value) { |
| 888 | case 0: |
| 889 | case 1: |
| 890 | case 2: |
| 891 | return true; |
| 892 | default: |
| 893 | return false; |
| 894 | } |
| 895 | } |
| 896 | |
| 897 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 898 | const FieldOptions_JSType FieldOptions::JS_NORMAL; |
| 899 | const FieldOptions_JSType FieldOptions::JS_STRING; |
| 900 | const FieldOptions_JSType FieldOptions::JS_NUMBER; |
| 901 | const FieldOptions_JSType FieldOptions::JSType_MIN; |
| 902 | const FieldOptions_JSType FieldOptions::JSType_MAX; |
| 903 | const int FieldOptions::JSType_ARRAYSIZE; |
| 904 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 905 | const ::google::protobuf::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor() { |
| 906 | protobuf_AssignDescriptorsOnce(); |
| 907 | return file_level_enum_descriptors[5]; |
| 908 | } |
| 909 | bool MethodOptions_IdempotencyLevel_IsValid(int value) { |
| 910 | switch (value) { |
| 911 | case 0: |
| 912 | case 1: |
| 913 | case 2: |
| 914 | return true; |
| 915 | default: |
| 916 | return false; |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 921 | const MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENCY_UNKNOWN; |
| 922 | const MethodOptions_IdempotencyLevel MethodOptions::NO_SIDE_EFFECTS; |
| 923 | const MethodOptions_IdempotencyLevel MethodOptions::IDEMPOTENT; |
| 924 | const MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MIN; |
| 925 | const MethodOptions_IdempotencyLevel MethodOptions::IdempotencyLevel_MAX; |
| 926 | const int MethodOptions::IdempotencyLevel_ARRAYSIZE; |
| 927 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 928 | |
| 929 | // =================================================================== |
| 930 | |
| 931 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 932 | const int FileDescriptorSet::kFileFieldNumber; |
| 933 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 934 | |
| 935 | FileDescriptorSet::FileDescriptorSet() |
| 936 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 937 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 938 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 939 | } |
| 940 | SharedCtor(); |
| 941 | // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorSet) |
| 942 | } |
| 943 | FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from) |
| 944 | : ::google::protobuf::Message(), |
| 945 | _internal_metadata_(NULL), |
| 946 | _has_bits_(from._has_bits_), |
| 947 | _cached_size_(0), |
| 948 | file_(from.file_) { |
| 949 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 950 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet) |
| 951 | } |
| 952 | |
| 953 | void FileDescriptorSet::SharedCtor() { |
| 954 | _cached_size_ = 0; |
| 955 | } |
| 956 | |
| 957 | FileDescriptorSet::~FileDescriptorSet() { |
| 958 | // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet) |
| 959 | SharedDtor(); |
| 960 | } |
| 961 | |
| 962 | void FileDescriptorSet::SharedDtor() { |
| 963 | } |
| 964 | |
| 965 | void FileDescriptorSet::SetCachedSize(int size) const { |
| 966 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 967 | _cached_size_ = size; |
| 968 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 969 | } |
| 970 | const ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() { |
| 971 | protobuf_AssignDescriptorsOnce(); |
| 972 | return file_level_metadata[0].descriptor; |
| 973 | } |
| 974 | |
| 975 | const FileDescriptorSet& FileDescriptorSet::default_instance() { |
| 976 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 977 | return *internal_default_instance(); |
| 978 | } |
| 979 | |
| 980 | FileDescriptorSet* FileDescriptorSet::New(::google::protobuf::Arena* arena) const { |
| 981 | FileDescriptorSet* n = new FileDescriptorSet; |
| 982 | if (arena != NULL) { |
| 983 | arena->Own(n); |
| 984 | } |
| 985 | return n; |
| 986 | } |
| 987 | |
| 988 | void FileDescriptorSet::Clear() { |
| 989 | // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorSet) |
| 990 | file_.Clear(); |
| 991 | _has_bits_.Clear(); |
| 992 | _internal_metadata_.Clear(); |
| 993 | } |
| 994 | |
| 995 | bool FileDescriptorSet::MergePartialFromCodedStream( |
| 996 | ::google::protobuf::io::CodedInputStream* input) { |
| 997 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 998 | ::google::protobuf::uint32 tag; |
| 999 | // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorSet) |
| 1000 | for (;;) { |
| 1001 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1002 | tag = p.first; |
| 1003 | if (!p.second) goto handle_unusual; |
| 1004 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1005 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1006 | case 1: { |
| 1007 | if (tag == 10u) { |
| 1008 | DO_(input->IncrementRecursionDepth()); |
| 1009 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 1010 | input, add_file())); |
| 1011 | } else { |
| 1012 | goto handle_unusual; |
| 1013 | } |
| 1014 | input->UnsafeDecrementRecursionDepth(); |
| 1015 | break; |
| 1016 | } |
| 1017 | |
| 1018 | default: { |
| 1019 | handle_unusual: |
| 1020 | if (tag == 0 || |
| 1021 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1022 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1023 | goto success; |
| 1024 | } |
| 1025 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1026 | input, tag, mutable_unknown_fields())); |
| 1027 | break; |
| 1028 | } |
| 1029 | } |
| 1030 | } |
| 1031 | success: |
| 1032 | // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorSet) |
| 1033 | return true; |
| 1034 | failure: |
| 1035 | // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorSet) |
| 1036 | return false; |
| 1037 | #undef DO_ |
| 1038 | } |
| 1039 | |
| 1040 | void FileDescriptorSet::SerializeWithCachedSizes( |
| 1041 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1042 | // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorSet) |
| 1043 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1044 | for (unsigned int i = 0, n = this->file_size(); i < n; i++) { |
| 1045 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1046 | 1, this->file(i), output); |
| 1047 | } |
| 1048 | |
| 1049 | if (_internal_metadata_.have_unknown_fields()) { |
| 1050 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1051 | unknown_fields(), output); |
| 1052 | } |
| 1053 | // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorSet) |
| 1054 | } |
| 1055 | |
| 1056 | ::google::protobuf::uint8* FileDescriptorSet::InternalSerializeWithCachedSizesToArray( |
| 1057 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 1058 | (void)deterministic; // Unused |
| 1059 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet) |
| 1060 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1061 | for (unsigned int i = 0, n = this->file_size(); i < n; i++) { |
| 1062 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1063 | InternalWriteMessageNoVirtualToArray( |
| 1064 | 1, this->file(i), false, target); |
| 1065 | } |
| 1066 | |
| 1067 | if (_internal_metadata_.have_unknown_fields()) { |
| 1068 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1069 | unknown_fields(), target); |
| 1070 | } |
| 1071 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorSet) |
| 1072 | return target; |
| 1073 | } |
| 1074 | |
| 1075 | size_t FileDescriptorSet::ByteSizeLong() const { |
| 1076 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorSet) |
| 1077 | size_t total_size = 0; |
| 1078 | |
| 1079 | if (_internal_metadata_.have_unknown_fields()) { |
| 1080 | total_size += |
| 1081 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1082 | unknown_fields()); |
| 1083 | } |
| 1084 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1085 | { |
| 1086 | unsigned int count = this->file_size(); |
| 1087 | total_size += 1UL * count; |
| 1088 | for (unsigned int i = 0; i < count; i++) { |
| 1089 | total_size += |
| 1090 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1091 | this->file(i)); |
| 1092 | } |
| 1093 | } |
| 1094 | |
| 1095 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1096 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1097 | _cached_size_ = cached_size; |
| 1098 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1099 | return total_size; |
| 1100 | } |
| 1101 | |
| 1102 | void FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) { |
| 1103 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorSet) |
| 1104 | GOOGLE_DCHECK_NE(&from, this); |
| 1105 | const FileDescriptorSet* source = |
| 1106 | ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorSet>( |
| 1107 | &from); |
| 1108 | if (source == NULL) { |
| 1109 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorSet) |
| 1110 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1111 | } else { |
| 1112 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorSet) |
| 1113 | MergeFrom(*source); |
| 1114 | } |
| 1115 | } |
| 1116 | |
| 1117 | void FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) { |
| 1118 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorSet) |
| 1119 | GOOGLE_DCHECK_NE(&from, this); |
| 1120 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1121 | file_.MergeFrom(from.file_); |
| 1122 | } |
| 1123 | |
| 1124 | void FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) { |
| 1125 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorSet) |
| 1126 | if (&from == this) return; |
| 1127 | Clear(); |
| 1128 | MergeFrom(from); |
| 1129 | } |
| 1130 | |
| 1131 | void FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) { |
| 1132 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorSet) |
| 1133 | if (&from == this) return; |
| 1134 | Clear(); |
| 1135 | MergeFrom(from); |
| 1136 | } |
| 1137 | |
| 1138 | bool FileDescriptorSet::IsInitialized() const { |
| 1139 | if (!::google::protobuf::internal::AllAreInitialized(this->file())) return false; |
| 1140 | return true; |
| 1141 | } |
| 1142 | |
| 1143 | void FileDescriptorSet::Swap(FileDescriptorSet* other) { |
| 1144 | if (other == this) return; |
| 1145 | InternalSwap(other); |
| 1146 | } |
| 1147 | void FileDescriptorSet::InternalSwap(FileDescriptorSet* other) { |
| 1148 | file_.UnsafeArenaSwap(&other->file_); |
| 1149 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 1150 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1151 | std::swap(_cached_size_, other->_cached_size_); |
| 1152 | } |
| 1153 | |
| 1154 | ::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const { |
| 1155 | protobuf_AssignDescriptorsOnce(); |
| 1156 | return file_level_metadata[0]; |
| 1157 | } |
| 1158 | |
| 1159 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1160 | // FileDescriptorSet |
| 1161 | |
| 1162 | // repeated .google.protobuf.FileDescriptorProto file = 1; |
| 1163 | int FileDescriptorSet::file_size() const { |
| 1164 | return file_.size(); |
| 1165 | } |
| 1166 | void FileDescriptorSet::clear_file() { |
| 1167 | file_.Clear(); |
| 1168 | } |
| 1169 | const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const { |
| 1170 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file) |
| 1171 | return file_.Get(index); |
| 1172 | } |
| 1173 | ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) { |
| 1174 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file) |
| 1175 | return file_.Mutable(index); |
| 1176 | } |
| 1177 | ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() { |
| 1178 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file) |
| 1179 | return file_.Add(); |
| 1180 | } |
| 1181 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >* |
| 1182 | FileDescriptorSet::mutable_file() { |
| 1183 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file) |
| 1184 | return &file_; |
| 1185 | } |
| 1186 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >& |
| 1187 | FileDescriptorSet::file() const { |
| 1188 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file) |
| 1189 | return file_; |
| 1190 | } |
| 1191 | |
| 1192 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1193 | |
| 1194 | // =================================================================== |
| 1195 | |
| 1196 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1197 | const int FileDescriptorProto::kNameFieldNumber; |
| 1198 | const int FileDescriptorProto::kPackageFieldNumber; |
| 1199 | const int FileDescriptorProto::kDependencyFieldNumber; |
| 1200 | const int FileDescriptorProto::kPublicDependencyFieldNumber; |
| 1201 | const int FileDescriptorProto::kWeakDependencyFieldNumber; |
| 1202 | const int FileDescriptorProto::kMessageTypeFieldNumber; |
| 1203 | const int FileDescriptorProto::kEnumTypeFieldNumber; |
| 1204 | const int FileDescriptorProto::kServiceFieldNumber; |
| 1205 | const int FileDescriptorProto::kExtensionFieldNumber; |
| 1206 | const int FileDescriptorProto::kOptionsFieldNumber; |
| 1207 | const int FileDescriptorProto::kSourceCodeInfoFieldNumber; |
| 1208 | const int FileDescriptorProto::kSyntaxFieldNumber; |
| 1209 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1210 | |
| 1211 | FileDescriptorProto::FileDescriptorProto() |
| 1212 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 1213 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 1214 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 1215 | } |
| 1216 | SharedCtor(); |
| 1217 | // @@protoc_insertion_point(constructor:google.protobuf.FileDescriptorProto) |
| 1218 | } |
| 1219 | FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) |
| 1220 | : ::google::protobuf::Message(), |
| 1221 | _internal_metadata_(NULL), |
| 1222 | _has_bits_(from._has_bits_), |
| 1223 | _cached_size_(0), |
| 1224 | dependency_(from.dependency_), |
| 1225 | public_dependency_(from.public_dependency_), |
| 1226 | weak_dependency_(from.weak_dependency_), |
| 1227 | message_type_(from.message_type_), |
| 1228 | enum_type_(from.enum_type_), |
| 1229 | service_(from.service_), |
| 1230 | extension_(from.extension_) { |
| 1231 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1232 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1233 | if (from.has_name()) { |
| 1234 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 1235 | } |
| 1236 | package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1237 | if (from.has_package()) { |
| 1238 | package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.package_); |
| 1239 | } |
| 1240 | syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1241 | if (from.has_syntax()) { |
| 1242 | syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.syntax_); |
| 1243 | } |
| 1244 | if (from.has_options()) { |
| 1245 | options_ = new ::google::protobuf::FileOptions(*from.options_); |
| 1246 | } else { |
| 1247 | options_ = NULL; |
| 1248 | } |
| 1249 | if (from.has_source_code_info()) { |
| 1250 | source_code_info_ = new ::google::protobuf::SourceCodeInfo(*from.source_code_info_); |
| 1251 | } else { |
| 1252 | source_code_info_ = NULL; |
| 1253 | } |
| 1254 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto) |
| 1255 | } |
| 1256 | |
| 1257 | void FileDescriptorProto::SharedCtor() { |
| 1258 | _cached_size_ = 0; |
| 1259 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1260 | package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1261 | syntax_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1262 | ::memset(&options_, 0, reinterpret_cast<char*>(&source_code_info_) - |
| 1263 | reinterpret_cast<char*>(&options_) + sizeof(source_code_info_)); |
| 1264 | } |
| 1265 | |
| 1266 | FileDescriptorProto::~FileDescriptorProto() { |
| 1267 | // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto) |
| 1268 | SharedDtor(); |
| 1269 | } |
| 1270 | |
| 1271 | void FileDescriptorProto::SharedDtor() { |
| 1272 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1273 | package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1274 | syntax_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1275 | if (this != internal_default_instance()) { |
| 1276 | delete options_; |
| 1277 | } |
| 1278 | if (this != internal_default_instance()) { |
| 1279 | delete source_code_info_; |
| 1280 | } |
| 1281 | } |
| 1282 | |
| 1283 | void FileDescriptorProto::SetCachedSize(int size) const { |
| 1284 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1285 | _cached_size_ = size; |
| 1286 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1287 | } |
| 1288 | const ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() { |
| 1289 | protobuf_AssignDescriptorsOnce(); |
| 1290 | return file_level_metadata[1].descriptor; |
| 1291 | } |
| 1292 | |
| 1293 | const FileDescriptorProto& FileDescriptorProto::default_instance() { |
| 1294 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 1295 | return *internal_default_instance(); |
| 1296 | } |
| 1297 | |
| 1298 | FileDescriptorProto* FileDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 1299 | FileDescriptorProto* n = new FileDescriptorProto; |
| 1300 | if (arena != NULL) { |
| 1301 | arena->Own(n); |
| 1302 | } |
| 1303 | return n; |
| 1304 | } |
| 1305 | |
| 1306 | void FileDescriptorProto::Clear() { |
| 1307 | // @@protoc_insertion_point(message_clear_start:google.protobuf.FileDescriptorProto) |
| 1308 | dependency_.Clear(); |
| 1309 | public_dependency_.Clear(); |
| 1310 | weak_dependency_.Clear(); |
| 1311 | message_type_.Clear(); |
| 1312 | enum_type_.Clear(); |
| 1313 | service_.Clear(); |
| 1314 | extension_.Clear(); |
| 1315 | if (_has_bits_[0 / 32] & 31u) { |
| 1316 | if (has_name()) { |
| 1317 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 1318 | (*name_.UnsafeRawStringPointer())->clear(); |
| 1319 | } |
| 1320 | if (has_package()) { |
| 1321 | GOOGLE_DCHECK(!package_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 1322 | (*package_.UnsafeRawStringPointer())->clear(); |
| 1323 | } |
| 1324 | if (has_syntax()) { |
| 1325 | GOOGLE_DCHECK(!syntax_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 1326 | (*syntax_.UnsafeRawStringPointer())->clear(); |
| 1327 | } |
| 1328 | if (has_options()) { |
| 1329 | GOOGLE_DCHECK(options_ != NULL); |
| 1330 | options_->::google::protobuf::FileOptions::Clear(); |
| 1331 | } |
| 1332 | if (has_source_code_info()) { |
| 1333 | GOOGLE_DCHECK(source_code_info_ != NULL); |
| 1334 | source_code_info_->::google::protobuf::SourceCodeInfo::Clear(); |
| 1335 | } |
| 1336 | } |
| 1337 | _has_bits_.Clear(); |
| 1338 | _internal_metadata_.Clear(); |
| 1339 | } |
| 1340 | |
| 1341 | bool FileDescriptorProto::MergePartialFromCodedStream( |
| 1342 | ::google::protobuf::io::CodedInputStream* input) { |
| 1343 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1344 | ::google::protobuf::uint32 tag; |
| 1345 | // @@protoc_insertion_point(parse_start:google.protobuf.FileDescriptorProto) |
| 1346 | for (;;) { |
| 1347 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1348 | tag = p.first; |
| 1349 | if (!p.second) goto handle_unusual; |
| 1350 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1351 | // optional string name = 1; |
| 1352 | case 1: { |
| 1353 | if (tag == 10u) { |
| 1354 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1355 | input, this->mutable_name())); |
| 1356 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1357 | this->name().data(), this->name().length(), |
| 1358 | ::google::protobuf::internal::WireFormat::PARSE, |
| 1359 | "google.protobuf.FileDescriptorProto.name"); |
| 1360 | } else { |
| 1361 | goto handle_unusual; |
| 1362 | } |
| 1363 | break; |
| 1364 | } |
| 1365 | |
| 1366 | // optional string package = 2; |
| 1367 | case 2: { |
| 1368 | if (tag == 18u) { |
| 1369 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1370 | input, this->mutable_package())); |
| 1371 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1372 | this->package().data(), this->package().length(), |
| 1373 | ::google::protobuf::internal::WireFormat::PARSE, |
| 1374 | "google.protobuf.FileDescriptorProto.package"); |
| 1375 | } else { |
| 1376 | goto handle_unusual; |
| 1377 | } |
| 1378 | break; |
| 1379 | } |
| 1380 | |
| 1381 | // repeated string dependency = 3; |
| 1382 | case 3: { |
| 1383 | if (tag == 26u) { |
| 1384 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1385 | input, this->add_dependency())); |
| 1386 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1387 | this->dependency(this->dependency_size() - 1).data(), |
| 1388 | this->dependency(this->dependency_size() - 1).length(), |
| 1389 | ::google::protobuf::internal::WireFormat::PARSE, |
| 1390 | "google.protobuf.FileDescriptorProto.dependency"); |
| 1391 | } else { |
| 1392 | goto handle_unusual; |
| 1393 | } |
| 1394 | break; |
| 1395 | } |
| 1396 | |
| 1397 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1398 | case 4: { |
| 1399 | if (tag == 34u) { |
| 1400 | DO_(input->IncrementRecursionDepth()); |
| 1401 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 1402 | input, add_message_type())); |
| 1403 | } else { |
| 1404 | goto handle_unusual; |
| 1405 | } |
| 1406 | input->UnsafeDecrementRecursionDepth(); |
| 1407 | break; |
| 1408 | } |
| 1409 | |
| 1410 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1411 | case 5: { |
| 1412 | if (tag == 42u) { |
| 1413 | DO_(input->IncrementRecursionDepth()); |
| 1414 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 1415 | input, add_enum_type())); |
| 1416 | } else { |
| 1417 | goto handle_unusual; |
| 1418 | } |
| 1419 | input->UnsafeDecrementRecursionDepth(); |
| 1420 | break; |
| 1421 | } |
| 1422 | |
| 1423 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1424 | case 6: { |
| 1425 | if (tag == 50u) { |
| 1426 | DO_(input->IncrementRecursionDepth()); |
| 1427 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 1428 | input, add_service())); |
| 1429 | } else { |
| 1430 | goto handle_unusual; |
| 1431 | } |
| 1432 | input->UnsafeDecrementRecursionDepth(); |
| 1433 | break; |
| 1434 | } |
| 1435 | |
| 1436 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1437 | case 7: { |
| 1438 | if (tag == 58u) { |
| 1439 | DO_(input->IncrementRecursionDepth()); |
| 1440 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 1441 | input, add_extension())); |
| 1442 | } else { |
| 1443 | goto handle_unusual; |
| 1444 | } |
| 1445 | input->UnsafeDecrementRecursionDepth(); |
| 1446 | break; |
| 1447 | } |
| 1448 | |
| 1449 | // optional .google.protobuf.FileOptions options = 8; |
| 1450 | case 8: { |
| 1451 | if (tag == 66u) { |
| 1452 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 1453 | input, mutable_options())); |
| 1454 | } else { |
| 1455 | goto handle_unusual; |
| 1456 | } |
| 1457 | break; |
| 1458 | } |
| 1459 | |
| 1460 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1461 | case 9: { |
| 1462 | if (tag == 74u) { |
| 1463 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 1464 | input, mutable_source_code_info())); |
| 1465 | } else { |
| 1466 | goto handle_unusual; |
| 1467 | } |
| 1468 | break; |
| 1469 | } |
| 1470 | |
| 1471 | // repeated int32 public_dependency = 10; |
| 1472 | case 10: { |
| 1473 | if (tag == 80u) { |
| 1474 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
| 1475 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1476 | 1, 80u, input, this->mutable_public_dependency()))); |
| 1477 | } else if (tag == 82u) { |
| 1478 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
| 1479 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1480 | input, this->mutable_public_dependency()))); |
| 1481 | } else { |
| 1482 | goto handle_unusual; |
| 1483 | } |
| 1484 | break; |
| 1485 | } |
| 1486 | |
| 1487 | // repeated int32 weak_dependency = 11; |
| 1488 | case 11: { |
| 1489 | if (tag == 88u) { |
| 1490 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
| 1491 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1492 | 1, 88u, input, this->mutable_weak_dependency()))); |
| 1493 | } else if (tag == 90u) { |
| 1494 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
| 1495 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 1496 | input, this->mutable_weak_dependency()))); |
| 1497 | } else { |
| 1498 | goto handle_unusual; |
| 1499 | } |
| 1500 | break; |
| 1501 | } |
| 1502 | |
| 1503 | // optional string syntax = 12; |
| 1504 | case 12: { |
| 1505 | if (tag == 98u) { |
| 1506 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1507 | input, this->mutable_syntax())); |
| 1508 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1509 | this->syntax().data(), this->syntax().length(), |
| 1510 | ::google::protobuf::internal::WireFormat::PARSE, |
| 1511 | "google.protobuf.FileDescriptorProto.syntax"); |
| 1512 | } else { |
| 1513 | goto handle_unusual; |
| 1514 | } |
| 1515 | break; |
| 1516 | } |
| 1517 | |
| 1518 | default: { |
| 1519 | handle_unusual: |
| 1520 | if (tag == 0 || |
| 1521 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1522 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1523 | goto success; |
| 1524 | } |
| 1525 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1526 | input, tag, mutable_unknown_fields())); |
| 1527 | break; |
| 1528 | } |
| 1529 | } |
| 1530 | } |
| 1531 | success: |
| 1532 | // @@protoc_insertion_point(parse_success:google.protobuf.FileDescriptorProto) |
| 1533 | return true; |
| 1534 | failure: |
| 1535 | // @@protoc_insertion_point(parse_failure:google.protobuf.FileDescriptorProto) |
| 1536 | return false; |
| 1537 | #undef DO_ |
| 1538 | } |
| 1539 | |
| 1540 | void FileDescriptorProto::SerializeWithCachedSizes( |
| 1541 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1542 | // @@protoc_insertion_point(serialize_start:google.protobuf.FileDescriptorProto) |
| 1543 | // optional string name = 1; |
| 1544 | if (has_name()) { |
| 1545 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1546 | this->name().data(), this->name().length(), |
| 1547 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1548 | "google.protobuf.FileDescriptorProto.name"); |
| 1549 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1550 | 1, this->name(), output); |
| 1551 | } |
| 1552 | |
| 1553 | // optional string package = 2; |
| 1554 | if (has_package()) { |
| 1555 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1556 | this->package().data(), this->package().length(), |
| 1557 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1558 | "google.protobuf.FileDescriptorProto.package"); |
| 1559 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1560 | 2, this->package(), output); |
| 1561 | } |
| 1562 | |
| 1563 | // repeated string dependency = 3; |
| 1564 | for (int i = 0; i < this->dependency_size(); i++) { |
| 1565 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1566 | this->dependency(i).data(), this->dependency(i).length(), |
| 1567 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1568 | "google.protobuf.FileDescriptorProto.dependency"); |
| 1569 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 1570 | 3, this->dependency(i), output); |
| 1571 | } |
| 1572 | |
| 1573 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1574 | for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) { |
| 1575 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1576 | 4, this->message_type(i), output); |
| 1577 | } |
| 1578 | |
| 1579 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1580 | for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 1581 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1582 | 5, this->enum_type(i), output); |
| 1583 | } |
| 1584 | |
| 1585 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1586 | for (unsigned int i = 0, n = this->service_size(); i < n; i++) { |
| 1587 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1588 | 6, this->service(i), output); |
| 1589 | } |
| 1590 | |
| 1591 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1592 | for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 1593 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1594 | 7, this->extension(i), output); |
| 1595 | } |
| 1596 | |
| 1597 | // optional .google.protobuf.FileOptions options = 8; |
| 1598 | if (has_options()) { |
| 1599 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1600 | 8, *this->options_, output); |
| 1601 | } |
| 1602 | |
| 1603 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1604 | if (has_source_code_info()) { |
| 1605 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1606 | 9, *this->source_code_info_, output); |
| 1607 | } |
| 1608 | |
| 1609 | // repeated int32 public_dependency = 10; |
| 1610 | for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1611 | ::google::protobuf::internal::WireFormatLite::WriteInt32( |
| 1612 | 10, this->public_dependency(i), output); |
| 1613 | } |
| 1614 | |
| 1615 | // repeated int32 weak_dependency = 11; |
| 1616 | for (int i = 0; i < this->weak_dependency_size(); i++) { |
| 1617 | ::google::protobuf::internal::WireFormatLite::WriteInt32( |
| 1618 | 11, this->weak_dependency(i), output); |
| 1619 | } |
| 1620 | |
| 1621 | // optional string syntax = 12; |
| 1622 | if (has_syntax()) { |
| 1623 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1624 | this->syntax().data(), this->syntax().length(), |
| 1625 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1626 | "google.protobuf.FileDescriptorProto.syntax"); |
| 1627 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1628 | 12, this->syntax(), output); |
| 1629 | } |
| 1630 | |
| 1631 | if (_internal_metadata_.have_unknown_fields()) { |
| 1632 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1633 | unknown_fields(), output); |
| 1634 | } |
| 1635 | // @@protoc_insertion_point(serialize_end:google.protobuf.FileDescriptorProto) |
| 1636 | } |
| 1637 | |
| 1638 | ::google::protobuf::uint8* FileDescriptorProto::InternalSerializeWithCachedSizesToArray( |
| 1639 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 1640 | (void)deterministic; // Unused |
| 1641 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto) |
| 1642 | // optional string name = 1; |
| 1643 | if (has_name()) { |
| 1644 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1645 | this->name().data(), this->name().length(), |
| 1646 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1647 | "google.protobuf.FileDescriptorProto.name"); |
| 1648 | target = |
| 1649 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1650 | 1, this->name(), target); |
| 1651 | } |
| 1652 | |
| 1653 | // optional string package = 2; |
| 1654 | if (has_package()) { |
| 1655 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1656 | this->package().data(), this->package().length(), |
| 1657 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1658 | "google.protobuf.FileDescriptorProto.package"); |
| 1659 | target = |
| 1660 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1661 | 2, this->package(), target); |
| 1662 | } |
| 1663 | |
| 1664 | // repeated string dependency = 3; |
| 1665 | for (int i = 0; i < this->dependency_size(); i++) { |
| 1666 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1667 | this->dependency(i).data(), this->dependency(i).length(), |
| 1668 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1669 | "google.protobuf.FileDescriptorProto.dependency"); |
| 1670 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1671 | WriteStringToArray(3, this->dependency(i), target); |
| 1672 | } |
| 1673 | |
| 1674 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1675 | for (unsigned int i = 0, n = this->message_type_size(); i < n; i++) { |
| 1676 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1677 | InternalWriteMessageNoVirtualToArray( |
| 1678 | 4, this->message_type(i), false, target); |
| 1679 | } |
| 1680 | |
| 1681 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1682 | for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 1683 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1684 | InternalWriteMessageNoVirtualToArray( |
| 1685 | 5, this->enum_type(i), false, target); |
| 1686 | } |
| 1687 | |
| 1688 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1689 | for (unsigned int i = 0, n = this->service_size(); i < n; i++) { |
| 1690 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1691 | InternalWriteMessageNoVirtualToArray( |
| 1692 | 6, this->service(i), false, target); |
| 1693 | } |
| 1694 | |
| 1695 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1696 | for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 1697 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1698 | InternalWriteMessageNoVirtualToArray( |
| 1699 | 7, this->extension(i), false, target); |
| 1700 | } |
| 1701 | |
| 1702 | // optional .google.protobuf.FileOptions options = 8; |
| 1703 | if (has_options()) { |
| 1704 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1705 | InternalWriteMessageNoVirtualToArray( |
| 1706 | 8, *this->options_, false, target); |
| 1707 | } |
| 1708 | |
| 1709 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1710 | if (has_source_code_info()) { |
| 1711 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1712 | InternalWriteMessageNoVirtualToArray( |
| 1713 | 9, *this->source_code_info_, false, target); |
| 1714 | } |
| 1715 | |
| 1716 | // repeated int32 public_dependency = 10; |
| 1717 | for (int i = 0; i < this->public_dependency_size(); i++) { |
| 1718 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1719 | WriteInt32ToArray(10, this->public_dependency(i), target); |
| 1720 | } |
| 1721 | |
| 1722 | // repeated int32 weak_dependency = 11; |
| 1723 | for (int i = 0; i < this->weak_dependency_size(); i++) { |
| 1724 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1725 | WriteInt32ToArray(11, this->weak_dependency(i), target); |
| 1726 | } |
| 1727 | |
| 1728 | // optional string syntax = 12; |
| 1729 | if (has_syntax()) { |
| 1730 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 1731 | this->syntax().data(), this->syntax().length(), |
| 1732 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 1733 | "google.protobuf.FileDescriptorProto.syntax"); |
| 1734 | target = |
| 1735 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1736 | 12, this->syntax(), target); |
| 1737 | } |
| 1738 | |
| 1739 | if (_internal_metadata_.have_unknown_fields()) { |
| 1740 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1741 | unknown_fields(), target); |
| 1742 | } |
| 1743 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileDescriptorProto) |
| 1744 | return target; |
| 1745 | } |
| 1746 | |
| 1747 | size_t FileDescriptorProto::ByteSizeLong() const { |
| 1748 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileDescriptorProto) |
| 1749 | size_t total_size = 0; |
| 1750 | |
| 1751 | if (_internal_metadata_.have_unknown_fields()) { |
| 1752 | total_size += |
| 1753 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1754 | unknown_fields()); |
| 1755 | } |
| 1756 | // repeated string dependency = 3; |
| 1757 | total_size += 1 * |
| 1758 | ::google::protobuf::internal::FromIntSize(this->dependency_size()); |
| 1759 | for (int i = 0; i < this->dependency_size(); i++) { |
| 1760 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1761 | this->dependency(i)); |
| 1762 | } |
| 1763 | |
| 1764 | // repeated int32 public_dependency = 10; |
| 1765 | { |
| 1766 | size_t data_size = 0; |
| 1767 | unsigned int count = this->public_dependency_size(); |
| 1768 | for (unsigned int i = 0; i < count; i++) { |
| 1769 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 1770 | Int32Size(this->public_dependency(i)); |
| 1771 | } |
| 1772 | total_size += 1 * |
| 1773 | ::google::protobuf::internal::FromIntSize(this->public_dependency_size()); |
| 1774 | total_size += data_size; |
| 1775 | } |
| 1776 | |
| 1777 | // repeated int32 weak_dependency = 11; |
| 1778 | { |
| 1779 | size_t data_size = 0; |
| 1780 | unsigned int count = this->weak_dependency_size(); |
| 1781 | for (unsigned int i = 0; i < count; i++) { |
| 1782 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 1783 | Int32Size(this->weak_dependency(i)); |
| 1784 | } |
| 1785 | total_size += 1 * |
| 1786 | ::google::protobuf::internal::FromIntSize(this->weak_dependency_size()); |
| 1787 | total_size += data_size; |
| 1788 | } |
| 1789 | |
| 1790 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 1791 | { |
| 1792 | unsigned int count = this->message_type_size(); |
| 1793 | total_size += 1UL * count; |
| 1794 | for (unsigned int i = 0; i < count; i++) { |
| 1795 | total_size += |
| 1796 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1797 | this->message_type(i)); |
| 1798 | } |
| 1799 | } |
| 1800 | |
| 1801 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 1802 | { |
| 1803 | unsigned int count = this->enum_type_size(); |
| 1804 | total_size += 1UL * count; |
| 1805 | for (unsigned int i = 0; i < count; i++) { |
| 1806 | total_size += |
| 1807 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1808 | this->enum_type(i)); |
| 1809 | } |
| 1810 | } |
| 1811 | |
| 1812 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 1813 | { |
| 1814 | unsigned int count = this->service_size(); |
| 1815 | total_size += 1UL * count; |
| 1816 | for (unsigned int i = 0; i < count; i++) { |
| 1817 | total_size += |
| 1818 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1819 | this->service(i)); |
| 1820 | } |
| 1821 | } |
| 1822 | |
| 1823 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 1824 | { |
| 1825 | unsigned int count = this->extension_size(); |
| 1826 | total_size += 1UL * count; |
| 1827 | for (unsigned int i = 0; i < count; i++) { |
| 1828 | total_size += |
| 1829 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1830 | this->extension(i)); |
| 1831 | } |
| 1832 | } |
| 1833 | |
| 1834 | if (_has_bits_[0 / 32] & 31u) { |
| 1835 | // optional string name = 1; |
| 1836 | if (has_name()) { |
| 1837 | total_size += 1 + |
| 1838 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1839 | this->name()); |
| 1840 | } |
| 1841 | |
| 1842 | // optional string package = 2; |
| 1843 | if (has_package()) { |
| 1844 | total_size += 1 + |
| 1845 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1846 | this->package()); |
| 1847 | } |
| 1848 | |
| 1849 | // optional string syntax = 12; |
| 1850 | if (has_syntax()) { |
| 1851 | total_size += 1 + |
| 1852 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1853 | this->syntax()); |
| 1854 | } |
| 1855 | |
| 1856 | // optional .google.protobuf.FileOptions options = 8; |
| 1857 | if (has_options()) { |
| 1858 | total_size += 1 + |
| 1859 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1860 | *this->options_); |
| 1861 | } |
| 1862 | |
| 1863 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 1864 | if (has_source_code_info()) { |
| 1865 | total_size += 1 + |
| 1866 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1867 | *this->source_code_info_); |
| 1868 | } |
| 1869 | |
| 1870 | } |
| 1871 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1872 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1873 | _cached_size_ = cached_size; |
| 1874 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1875 | return total_size; |
| 1876 | } |
| 1877 | |
| 1878 | void FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 1879 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileDescriptorProto) |
| 1880 | GOOGLE_DCHECK_NE(&from, this); |
| 1881 | const FileDescriptorProto* source = |
| 1882 | ::google::protobuf::internal::DynamicCastToGenerated<const FileDescriptorProto>( |
| 1883 | &from); |
| 1884 | if (source == NULL) { |
| 1885 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileDescriptorProto) |
| 1886 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1887 | } else { |
| 1888 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileDescriptorProto) |
| 1889 | MergeFrom(*source); |
| 1890 | } |
| 1891 | } |
| 1892 | |
| 1893 | void FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) { |
| 1894 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileDescriptorProto) |
| 1895 | GOOGLE_DCHECK_NE(&from, this); |
| 1896 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1897 | dependency_.MergeFrom(from.dependency_); |
| 1898 | public_dependency_.MergeFrom(from.public_dependency_); |
| 1899 | weak_dependency_.MergeFrom(from.weak_dependency_); |
| 1900 | message_type_.MergeFrom(from.message_type_); |
| 1901 | enum_type_.MergeFrom(from.enum_type_); |
| 1902 | service_.MergeFrom(from.service_); |
| 1903 | extension_.MergeFrom(from.extension_); |
| 1904 | if (from._has_bits_[0 / 32] & 31u) { |
| 1905 | if (from.has_name()) { |
| 1906 | set_has_name(); |
| 1907 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 1908 | } |
| 1909 | if (from.has_package()) { |
| 1910 | set_has_package(); |
| 1911 | package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.package_); |
| 1912 | } |
| 1913 | if (from.has_syntax()) { |
| 1914 | set_has_syntax(); |
| 1915 | syntax_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.syntax_); |
| 1916 | } |
| 1917 | if (from.has_options()) { |
| 1918 | mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options()); |
| 1919 | } |
| 1920 | if (from.has_source_code_info()) { |
| 1921 | mutable_source_code_info()->::google::protobuf::SourceCodeInfo::MergeFrom(from.source_code_info()); |
| 1922 | } |
| 1923 | } |
| 1924 | } |
| 1925 | |
| 1926 | void FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 1927 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileDescriptorProto) |
| 1928 | if (&from == this) return; |
| 1929 | Clear(); |
| 1930 | MergeFrom(from); |
| 1931 | } |
| 1932 | |
| 1933 | void FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) { |
| 1934 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileDescriptorProto) |
| 1935 | if (&from == this) return; |
| 1936 | Clear(); |
| 1937 | MergeFrom(from); |
| 1938 | } |
| 1939 | |
| 1940 | bool FileDescriptorProto::IsInitialized() const { |
| 1941 | if (!::google::protobuf::internal::AllAreInitialized(this->message_type())) return false; |
| 1942 | if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false; |
| 1943 | if (!::google::protobuf::internal::AllAreInitialized(this->service())) return false; |
| 1944 | if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false; |
| 1945 | if (has_options()) { |
| 1946 | if (!this->options_->IsInitialized()) return false; |
| 1947 | } |
| 1948 | return true; |
| 1949 | } |
| 1950 | |
| 1951 | void FileDescriptorProto::Swap(FileDescriptorProto* other) { |
| 1952 | if (other == this) return; |
| 1953 | InternalSwap(other); |
| 1954 | } |
| 1955 | void FileDescriptorProto::InternalSwap(FileDescriptorProto* other) { |
| 1956 | dependency_.UnsafeArenaSwap(&other->dependency_); |
| 1957 | public_dependency_.UnsafeArenaSwap(&other->public_dependency_); |
| 1958 | weak_dependency_.UnsafeArenaSwap(&other->weak_dependency_); |
| 1959 | message_type_.UnsafeArenaSwap(&other->message_type_); |
| 1960 | enum_type_.UnsafeArenaSwap(&other->enum_type_); |
| 1961 | service_.UnsafeArenaSwap(&other->service_); |
| 1962 | extension_.UnsafeArenaSwap(&other->extension_); |
| 1963 | name_.Swap(&other->name_); |
| 1964 | package_.Swap(&other->package_); |
| 1965 | syntax_.Swap(&other->syntax_); |
| 1966 | std::swap(options_, other->options_); |
| 1967 | std::swap(source_code_info_, other->source_code_info_); |
| 1968 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 1969 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1970 | std::swap(_cached_size_, other->_cached_size_); |
| 1971 | } |
| 1972 | |
| 1973 | ::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const { |
| 1974 | protobuf_AssignDescriptorsOnce(); |
| 1975 | return file_level_metadata[1]; |
| 1976 | } |
| 1977 | |
| 1978 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1979 | // FileDescriptorProto |
| 1980 | |
| 1981 | // optional string name = 1; |
| 1982 | bool FileDescriptorProto::has_name() const { |
| 1983 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 1984 | } |
| 1985 | void FileDescriptorProto::set_has_name() { |
| 1986 | _has_bits_[0] |= 0x00000001u; |
| 1987 | } |
| 1988 | void FileDescriptorProto::clear_has_name() { |
| 1989 | _has_bits_[0] &= ~0x00000001u; |
| 1990 | } |
| 1991 | void FileDescriptorProto::clear_name() { |
| 1992 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1993 | clear_has_name(); |
| 1994 | } |
| 1995 | const ::std::string& FileDescriptorProto::name() const { |
| 1996 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name) |
| 1997 | return name_.GetNoArena(); |
| 1998 | } |
| 1999 | void FileDescriptorProto::set_name(const ::std::string& value) { |
| 2000 | set_has_name(); |
| 2001 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 2002 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name) |
| 2003 | } |
| 2004 | #if LANG_CXX11 |
| 2005 | void FileDescriptorProto::set_name(::std::string&& value) { |
| 2006 | set_has_name(); |
| 2007 | name_.SetNoArena( |
| 2008 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 2009 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.name) |
| 2010 | } |
| 2011 | #endif |
| 2012 | void FileDescriptorProto::set_name(const char* value) { |
| 2013 | set_has_name(); |
| 2014 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2015 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name) |
| 2016 | } |
| 2017 | void FileDescriptorProto::set_name(const char* value, size_t size) { |
| 2018 | set_has_name(); |
| 2019 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2020 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2021 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name) |
| 2022 | } |
| 2023 | ::std::string* FileDescriptorProto::mutable_name() { |
| 2024 | set_has_name(); |
| 2025 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name) |
| 2026 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2027 | } |
| 2028 | ::std::string* FileDescriptorProto::release_name() { |
| 2029 | // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name) |
| 2030 | clear_has_name(); |
| 2031 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2032 | } |
| 2033 | void FileDescriptorProto::set_allocated_name(::std::string* name) { |
| 2034 | if (name != NULL) { |
| 2035 | set_has_name(); |
| 2036 | } else { |
| 2037 | clear_has_name(); |
| 2038 | } |
| 2039 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 2040 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name) |
| 2041 | } |
| 2042 | |
| 2043 | // optional string package = 2; |
| 2044 | bool FileDescriptorProto::has_package() const { |
| 2045 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 2046 | } |
| 2047 | void FileDescriptorProto::set_has_package() { |
| 2048 | _has_bits_[0] |= 0x00000002u; |
| 2049 | } |
| 2050 | void FileDescriptorProto::clear_has_package() { |
| 2051 | _has_bits_[0] &= ~0x00000002u; |
| 2052 | } |
| 2053 | void FileDescriptorProto::clear_package() { |
| 2054 | package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2055 | clear_has_package(); |
| 2056 | } |
| 2057 | const ::std::string& FileDescriptorProto::package() const { |
| 2058 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package) |
| 2059 | return package_.GetNoArena(); |
| 2060 | } |
| 2061 | void FileDescriptorProto::set_package(const ::std::string& value) { |
| 2062 | set_has_package(); |
| 2063 | package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 2064 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package) |
| 2065 | } |
| 2066 | #if LANG_CXX11 |
| 2067 | void FileDescriptorProto::set_package(::std::string&& value) { |
| 2068 | set_has_package(); |
| 2069 | package_.SetNoArena( |
| 2070 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 2071 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.package) |
| 2072 | } |
| 2073 | #endif |
| 2074 | void FileDescriptorProto::set_package(const char* value) { |
| 2075 | set_has_package(); |
| 2076 | package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2077 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package) |
| 2078 | } |
| 2079 | void FileDescriptorProto::set_package(const char* value, size_t size) { |
| 2080 | set_has_package(); |
| 2081 | package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2082 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2083 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package) |
| 2084 | } |
| 2085 | ::std::string* FileDescriptorProto::mutable_package() { |
| 2086 | set_has_package(); |
| 2087 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package) |
| 2088 | return package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2089 | } |
| 2090 | ::std::string* FileDescriptorProto::release_package() { |
| 2091 | // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package) |
| 2092 | clear_has_package(); |
| 2093 | return package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2094 | } |
| 2095 | void FileDescriptorProto::set_allocated_package(::std::string* package) { |
| 2096 | if (package != NULL) { |
| 2097 | set_has_package(); |
| 2098 | } else { |
| 2099 | clear_has_package(); |
| 2100 | } |
| 2101 | package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), package); |
| 2102 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package) |
| 2103 | } |
| 2104 | |
| 2105 | // repeated string dependency = 3; |
| 2106 | int FileDescriptorProto::dependency_size() const { |
| 2107 | return dependency_.size(); |
| 2108 | } |
| 2109 | void FileDescriptorProto::clear_dependency() { |
| 2110 | dependency_.Clear(); |
| 2111 | } |
| 2112 | const ::std::string& FileDescriptorProto::dependency(int index) const { |
| 2113 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency) |
| 2114 | return dependency_.Get(index); |
| 2115 | } |
| 2116 | ::std::string* FileDescriptorProto::mutable_dependency(int index) { |
| 2117 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency) |
| 2118 | return dependency_.Mutable(index); |
| 2119 | } |
| 2120 | void FileDescriptorProto::set_dependency(int index, const ::std::string& value) { |
| 2121 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency) |
| 2122 | dependency_.Mutable(index)->assign(value); |
| 2123 | } |
| 2124 | void FileDescriptorProto::set_dependency(int index, const char* value) { |
| 2125 | dependency_.Mutable(index)->assign(value); |
| 2126 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency) |
| 2127 | } |
| 2128 | void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) { |
| 2129 | dependency_.Mutable(index)->assign( |
| 2130 | reinterpret_cast<const char*>(value), size); |
| 2131 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency) |
| 2132 | } |
| 2133 | ::std::string* FileDescriptorProto::add_dependency() { |
| 2134 | // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency) |
| 2135 | return dependency_.Add(); |
| 2136 | } |
| 2137 | void FileDescriptorProto::add_dependency(const ::std::string& value) { |
| 2138 | dependency_.Add()->assign(value); |
| 2139 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency) |
| 2140 | } |
| 2141 | void FileDescriptorProto::add_dependency(const char* value) { |
| 2142 | dependency_.Add()->assign(value); |
| 2143 | // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency) |
| 2144 | } |
| 2145 | void FileDescriptorProto::add_dependency(const char* value, size_t size) { |
| 2146 | dependency_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 2147 | // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency) |
| 2148 | } |
| 2149 | const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 2150 | FileDescriptorProto::dependency() const { |
| 2151 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency) |
| 2152 | return dependency_; |
| 2153 | } |
| 2154 | ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 2155 | FileDescriptorProto::mutable_dependency() { |
| 2156 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency) |
| 2157 | return &dependency_; |
| 2158 | } |
| 2159 | |
| 2160 | // repeated int32 public_dependency = 10; |
| 2161 | int FileDescriptorProto::public_dependency_size() const { |
| 2162 | return public_dependency_.size(); |
| 2163 | } |
| 2164 | void FileDescriptorProto::clear_public_dependency() { |
| 2165 | public_dependency_.Clear(); |
| 2166 | } |
| 2167 | ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const { |
| 2168 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency) |
| 2169 | return public_dependency_.Get(index); |
| 2170 | } |
| 2171 | void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) { |
| 2172 | public_dependency_.Set(index, value); |
| 2173 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency) |
| 2174 | } |
| 2175 | void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) { |
| 2176 | public_dependency_.Add(value); |
| 2177 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency) |
| 2178 | } |
| 2179 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 2180 | FileDescriptorProto::public_dependency() const { |
| 2181 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency) |
| 2182 | return public_dependency_; |
| 2183 | } |
| 2184 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 2185 | FileDescriptorProto::mutable_public_dependency() { |
| 2186 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency) |
| 2187 | return &public_dependency_; |
| 2188 | } |
| 2189 | |
| 2190 | // repeated int32 weak_dependency = 11; |
| 2191 | int FileDescriptorProto::weak_dependency_size() const { |
| 2192 | return weak_dependency_.size(); |
| 2193 | } |
| 2194 | void FileDescriptorProto::clear_weak_dependency() { |
| 2195 | weak_dependency_.Clear(); |
| 2196 | } |
| 2197 | ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const { |
| 2198 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2199 | return weak_dependency_.Get(index); |
| 2200 | } |
| 2201 | void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) { |
| 2202 | weak_dependency_.Set(index, value); |
| 2203 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2204 | } |
| 2205 | void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) { |
| 2206 | weak_dependency_.Add(value); |
| 2207 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2208 | } |
| 2209 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 2210 | FileDescriptorProto::weak_dependency() const { |
| 2211 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2212 | return weak_dependency_; |
| 2213 | } |
| 2214 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 2215 | FileDescriptorProto::mutable_weak_dependency() { |
| 2216 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency) |
| 2217 | return &weak_dependency_; |
| 2218 | } |
| 2219 | |
| 2220 | // repeated .google.protobuf.DescriptorProto message_type = 4; |
| 2221 | int FileDescriptorProto::message_type_size() const { |
| 2222 | return message_type_.size(); |
| 2223 | } |
| 2224 | void FileDescriptorProto::clear_message_type() { |
| 2225 | message_type_.Clear(); |
| 2226 | } |
| 2227 | const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const { |
| 2228 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type) |
| 2229 | return message_type_.Get(index); |
| 2230 | } |
| 2231 | ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) { |
| 2232 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type) |
| 2233 | return message_type_.Mutable(index); |
| 2234 | } |
| 2235 | ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() { |
| 2236 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type) |
| 2237 | return message_type_.Add(); |
| 2238 | } |
| 2239 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 2240 | FileDescriptorProto::mutable_message_type() { |
| 2241 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type) |
| 2242 | return &message_type_; |
| 2243 | } |
| 2244 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 2245 | FileDescriptorProto::message_type() const { |
| 2246 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type) |
| 2247 | return message_type_; |
| 2248 | } |
| 2249 | |
| 2250 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; |
| 2251 | int FileDescriptorProto::enum_type_size() const { |
| 2252 | return enum_type_.size(); |
| 2253 | } |
| 2254 | void FileDescriptorProto::clear_enum_type() { |
| 2255 | enum_type_.Clear(); |
| 2256 | } |
| 2257 | const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const { |
| 2258 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type) |
| 2259 | return enum_type_.Get(index); |
| 2260 | } |
| 2261 | ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) { |
| 2262 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type) |
| 2263 | return enum_type_.Mutable(index); |
| 2264 | } |
| 2265 | ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() { |
| 2266 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type) |
| 2267 | return enum_type_.Add(); |
| 2268 | } |
| 2269 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 2270 | FileDescriptorProto::mutable_enum_type() { |
| 2271 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type) |
| 2272 | return &enum_type_; |
| 2273 | } |
| 2274 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 2275 | FileDescriptorProto::enum_type() const { |
| 2276 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type) |
| 2277 | return enum_type_; |
| 2278 | } |
| 2279 | |
| 2280 | // repeated .google.protobuf.ServiceDescriptorProto service = 6; |
| 2281 | int FileDescriptorProto::service_size() const { |
| 2282 | return service_.size(); |
| 2283 | } |
| 2284 | void FileDescriptorProto::clear_service() { |
| 2285 | service_.Clear(); |
| 2286 | } |
| 2287 | const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const { |
| 2288 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service) |
| 2289 | return service_.Get(index); |
| 2290 | } |
| 2291 | ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) { |
| 2292 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service) |
| 2293 | return service_.Mutable(index); |
| 2294 | } |
| 2295 | ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() { |
| 2296 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service) |
| 2297 | return service_.Add(); |
| 2298 | } |
| 2299 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >* |
| 2300 | FileDescriptorProto::mutable_service() { |
| 2301 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service) |
| 2302 | return &service_; |
| 2303 | } |
| 2304 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >& |
| 2305 | FileDescriptorProto::service() const { |
| 2306 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service) |
| 2307 | return service_; |
| 2308 | } |
| 2309 | |
| 2310 | // repeated .google.protobuf.FieldDescriptorProto extension = 7; |
| 2311 | int FileDescriptorProto::extension_size() const { |
| 2312 | return extension_.size(); |
| 2313 | } |
| 2314 | void FileDescriptorProto::clear_extension() { |
| 2315 | extension_.Clear(); |
| 2316 | } |
| 2317 | const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const { |
| 2318 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension) |
| 2319 | return extension_.Get(index); |
| 2320 | } |
| 2321 | ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) { |
| 2322 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension) |
| 2323 | return extension_.Mutable(index); |
| 2324 | } |
| 2325 | ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() { |
| 2326 | // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension) |
| 2327 | return extension_.Add(); |
| 2328 | } |
| 2329 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 2330 | FileDescriptorProto::mutable_extension() { |
| 2331 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension) |
| 2332 | return &extension_; |
| 2333 | } |
| 2334 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 2335 | FileDescriptorProto::extension() const { |
| 2336 | // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension) |
| 2337 | return extension_; |
| 2338 | } |
| 2339 | |
| 2340 | // optional .google.protobuf.FileOptions options = 8; |
| 2341 | bool FileDescriptorProto::has_options() const { |
| 2342 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 2343 | } |
| 2344 | void FileDescriptorProto::set_has_options() { |
| 2345 | _has_bits_[0] |= 0x00000008u; |
| 2346 | } |
| 2347 | void FileDescriptorProto::clear_has_options() { |
| 2348 | _has_bits_[0] &= ~0x00000008u; |
| 2349 | } |
| 2350 | void FileDescriptorProto::clear_options() { |
| 2351 | if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear(); |
| 2352 | clear_has_options(); |
| 2353 | } |
| 2354 | const ::google::protobuf::FileOptions& FileDescriptorProto::options() const { |
| 2355 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options) |
| 2356 | return options_ != NULL ? *options_ |
| 2357 | : *::google::protobuf::FileOptions::internal_default_instance(); |
| 2358 | } |
| 2359 | ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() { |
| 2360 | set_has_options(); |
| 2361 | if (options_ == NULL) { |
| 2362 | options_ = new ::google::protobuf::FileOptions; |
| 2363 | } |
| 2364 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options) |
| 2365 | return options_; |
| 2366 | } |
| 2367 | ::google::protobuf::FileOptions* FileDescriptorProto::release_options() { |
| 2368 | // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options) |
| 2369 | clear_has_options(); |
| 2370 | ::google::protobuf::FileOptions* temp = options_; |
| 2371 | options_ = NULL; |
| 2372 | return temp; |
| 2373 | } |
| 2374 | void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) { |
| 2375 | delete options_; |
| 2376 | options_ = options; |
| 2377 | if (options) { |
| 2378 | set_has_options(); |
| 2379 | } else { |
| 2380 | clear_has_options(); |
| 2381 | } |
| 2382 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options) |
| 2383 | } |
| 2384 | |
| 2385 | // optional .google.protobuf.SourceCodeInfo source_code_info = 9; |
| 2386 | bool FileDescriptorProto::has_source_code_info() const { |
| 2387 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 2388 | } |
| 2389 | void FileDescriptorProto::set_has_source_code_info() { |
| 2390 | _has_bits_[0] |= 0x00000010u; |
| 2391 | } |
| 2392 | void FileDescriptorProto::clear_has_source_code_info() { |
| 2393 | _has_bits_[0] &= ~0x00000010u; |
| 2394 | } |
| 2395 | void FileDescriptorProto::clear_source_code_info() { |
| 2396 | if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear(); |
| 2397 | clear_has_source_code_info(); |
| 2398 | } |
| 2399 | const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const { |
| 2400 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info) |
| 2401 | return source_code_info_ != NULL ? *source_code_info_ |
| 2402 | : *::google::protobuf::SourceCodeInfo::internal_default_instance(); |
| 2403 | } |
| 2404 | ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() { |
| 2405 | set_has_source_code_info(); |
| 2406 | if (source_code_info_ == NULL) { |
| 2407 | source_code_info_ = new ::google::protobuf::SourceCodeInfo; |
| 2408 | } |
| 2409 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info) |
| 2410 | return source_code_info_; |
| 2411 | } |
| 2412 | ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() { |
| 2413 | // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info) |
| 2414 | clear_has_source_code_info(); |
| 2415 | ::google::protobuf::SourceCodeInfo* temp = source_code_info_; |
| 2416 | source_code_info_ = NULL; |
| 2417 | return temp; |
| 2418 | } |
| 2419 | void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) { |
| 2420 | delete source_code_info_; |
| 2421 | source_code_info_ = source_code_info; |
| 2422 | if (source_code_info) { |
| 2423 | set_has_source_code_info(); |
| 2424 | } else { |
| 2425 | clear_has_source_code_info(); |
| 2426 | } |
| 2427 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info) |
| 2428 | } |
| 2429 | |
| 2430 | // optional string syntax = 12; |
| 2431 | bool FileDescriptorProto::has_syntax() const { |
| 2432 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 2433 | } |
| 2434 | void FileDescriptorProto::set_has_syntax() { |
| 2435 | _has_bits_[0] |= 0x00000004u; |
| 2436 | } |
| 2437 | void FileDescriptorProto::clear_has_syntax() { |
| 2438 | _has_bits_[0] &= ~0x00000004u; |
| 2439 | } |
| 2440 | void FileDescriptorProto::clear_syntax() { |
| 2441 | syntax_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2442 | clear_has_syntax(); |
| 2443 | } |
| 2444 | const ::std::string& FileDescriptorProto::syntax() const { |
| 2445 | // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax) |
| 2446 | return syntax_.GetNoArena(); |
| 2447 | } |
| 2448 | void FileDescriptorProto::set_syntax(const ::std::string& value) { |
| 2449 | set_has_syntax(); |
| 2450 | syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 2451 | // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax) |
| 2452 | } |
| 2453 | #if LANG_CXX11 |
| 2454 | void FileDescriptorProto::set_syntax(::std::string&& value) { |
| 2455 | set_has_syntax(); |
| 2456 | syntax_.SetNoArena( |
| 2457 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 2458 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.syntax) |
| 2459 | } |
| 2460 | #endif |
| 2461 | void FileDescriptorProto::set_syntax(const char* value) { |
| 2462 | set_has_syntax(); |
| 2463 | syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2464 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax) |
| 2465 | } |
| 2466 | void FileDescriptorProto::set_syntax(const char* value, size_t size) { |
| 2467 | set_has_syntax(); |
| 2468 | syntax_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2469 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2470 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax) |
| 2471 | } |
| 2472 | ::std::string* FileDescriptorProto::mutable_syntax() { |
| 2473 | set_has_syntax(); |
| 2474 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax) |
| 2475 | return syntax_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2476 | } |
| 2477 | ::std::string* FileDescriptorProto::release_syntax() { |
| 2478 | // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax) |
| 2479 | clear_has_syntax(); |
| 2480 | return syntax_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2481 | } |
| 2482 | void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) { |
| 2483 | if (syntax != NULL) { |
| 2484 | set_has_syntax(); |
| 2485 | } else { |
| 2486 | clear_has_syntax(); |
| 2487 | } |
| 2488 | syntax_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), syntax); |
| 2489 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax) |
| 2490 | } |
| 2491 | |
| 2492 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2493 | |
| 2494 | // =================================================================== |
| 2495 | |
| 2496 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2497 | const int DescriptorProto_ExtensionRange::kStartFieldNumber; |
| 2498 | const int DescriptorProto_ExtensionRange::kEndFieldNumber; |
| 2499 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2500 | |
| 2501 | DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange() |
| 2502 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 2503 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 2504 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2505 | } |
| 2506 | SharedCtor(); |
| 2507 | // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ExtensionRange) |
| 2508 | } |
| 2509 | DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from) |
| 2510 | : ::google::protobuf::Message(), |
| 2511 | _internal_metadata_(NULL), |
| 2512 | _has_bits_(from._has_bits_), |
| 2513 | _cached_size_(0) { |
| 2514 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2515 | ::memcpy(&start_, &from.start_, |
| 2516 | reinterpret_cast<char*>(&end_) - |
| 2517 | reinterpret_cast<char*>(&start_) + sizeof(end_)); |
| 2518 | // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange) |
| 2519 | } |
| 2520 | |
| 2521 | void DescriptorProto_ExtensionRange::SharedCtor() { |
| 2522 | _cached_size_ = 0; |
| 2523 | ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - |
| 2524 | reinterpret_cast<char*>(&start_) + sizeof(end_)); |
| 2525 | } |
| 2526 | |
| 2527 | DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { |
| 2528 | // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange) |
| 2529 | SharedDtor(); |
| 2530 | } |
| 2531 | |
| 2532 | void DescriptorProto_ExtensionRange::SharedDtor() { |
| 2533 | } |
| 2534 | |
| 2535 | void DescriptorProto_ExtensionRange::SetCachedSize(int size) const { |
| 2536 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2537 | _cached_size_ = size; |
| 2538 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2539 | } |
| 2540 | const ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() { |
| 2541 | protobuf_AssignDescriptorsOnce(); |
| 2542 | return file_level_metadata[2].descriptor; |
| 2543 | } |
| 2544 | |
| 2545 | const DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() { |
| 2546 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2547 | return *internal_default_instance(); |
| 2548 | } |
| 2549 | |
| 2550 | DescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New(::google::protobuf::Arena* arena) const { |
| 2551 | DescriptorProto_ExtensionRange* n = new DescriptorProto_ExtensionRange; |
| 2552 | if (arena != NULL) { |
| 2553 | arena->Own(n); |
| 2554 | } |
| 2555 | return n; |
| 2556 | } |
| 2557 | |
| 2558 | void DescriptorProto_ExtensionRange::Clear() { |
| 2559 | // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2560 | if (_has_bits_[0 / 32] & 3u) { |
| 2561 | ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - |
| 2562 | reinterpret_cast<char*>(&start_) + sizeof(end_)); |
| 2563 | } |
| 2564 | _has_bits_.Clear(); |
| 2565 | _internal_metadata_.Clear(); |
| 2566 | } |
| 2567 | |
| 2568 | bool DescriptorProto_ExtensionRange::MergePartialFromCodedStream( |
| 2569 | ::google::protobuf::io::CodedInputStream* input) { |
| 2570 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2571 | ::google::protobuf::uint32 tag; |
| 2572 | // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2573 | for (;;) { |
| 2574 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2575 | tag = p.first; |
| 2576 | if (!p.second) goto handle_unusual; |
| 2577 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2578 | // optional int32 start = 1; |
| 2579 | case 1: { |
| 2580 | if (tag == 8u) { |
| 2581 | set_has_start(); |
| 2582 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2583 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2584 | input, &start_))); |
| 2585 | } else { |
| 2586 | goto handle_unusual; |
| 2587 | } |
| 2588 | break; |
| 2589 | } |
| 2590 | |
| 2591 | // optional int32 end = 2; |
| 2592 | case 2: { |
| 2593 | if (tag == 16u) { |
| 2594 | set_has_end(); |
| 2595 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2596 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2597 | input, &end_))); |
| 2598 | } else { |
| 2599 | goto handle_unusual; |
| 2600 | } |
| 2601 | break; |
| 2602 | } |
| 2603 | |
| 2604 | default: { |
| 2605 | handle_unusual: |
| 2606 | if (tag == 0 || |
| 2607 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 2608 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 2609 | goto success; |
| 2610 | } |
| 2611 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2612 | input, tag, mutable_unknown_fields())); |
| 2613 | break; |
| 2614 | } |
| 2615 | } |
| 2616 | } |
| 2617 | success: |
| 2618 | // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ExtensionRange) |
| 2619 | return true; |
| 2620 | failure: |
| 2621 | // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ExtensionRange) |
| 2622 | return false; |
| 2623 | #undef DO_ |
| 2624 | } |
| 2625 | |
| 2626 | void DescriptorProto_ExtensionRange::SerializeWithCachedSizes( |
| 2627 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2628 | // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2629 | // optional int32 start = 1; |
| 2630 | if (has_start()) { |
| 2631 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output); |
| 2632 | } |
| 2633 | |
| 2634 | // optional int32 end = 2; |
| 2635 | if (has_end()) { |
| 2636 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output); |
| 2637 | } |
| 2638 | |
| 2639 | if (_internal_metadata_.have_unknown_fields()) { |
| 2640 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2641 | unknown_fields(), output); |
| 2642 | } |
| 2643 | // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ExtensionRange) |
| 2644 | } |
| 2645 | |
| 2646 | ::google::protobuf::uint8* DescriptorProto_ExtensionRange::InternalSerializeWithCachedSizesToArray( |
| 2647 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 2648 | (void)deterministic; // Unused |
| 2649 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2650 | // optional int32 start = 1; |
| 2651 | if (has_start()) { |
| 2652 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target); |
| 2653 | } |
| 2654 | |
| 2655 | // optional int32 end = 2; |
| 2656 | if (has_end()) { |
| 2657 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target); |
| 2658 | } |
| 2659 | |
| 2660 | if (_internal_metadata_.have_unknown_fields()) { |
| 2661 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2662 | unknown_fields(), target); |
| 2663 | } |
| 2664 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ExtensionRange) |
| 2665 | return target; |
| 2666 | } |
| 2667 | |
| 2668 | size_t DescriptorProto_ExtensionRange::ByteSizeLong() const { |
| 2669 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2670 | size_t total_size = 0; |
| 2671 | |
| 2672 | if (_internal_metadata_.have_unknown_fields()) { |
| 2673 | total_size += |
| 2674 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2675 | unknown_fields()); |
| 2676 | } |
| 2677 | if (_has_bits_[0 / 32] & 3u) { |
| 2678 | // optional int32 start = 1; |
| 2679 | if (has_start()) { |
| 2680 | total_size += 1 + |
| 2681 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2682 | this->start()); |
| 2683 | } |
| 2684 | |
| 2685 | // optional int32 end = 2; |
| 2686 | if (has_end()) { |
| 2687 | total_size += 1 + |
| 2688 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 2689 | this->end()); |
| 2690 | } |
| 2691 | |
| 2692 | } |
| 2693 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2694 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2695 | _cached_size_ = cached_size; |
| 2696 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2697 | return total_size; |
| 2698 | } |
| 2699 | |
| 2700 | void DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) { |
| 2701 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2702 | GOOGLE_DCHECK_NE(&from, this); |
| 2703 | const DescriptorProto_ExtensionRange* source = |
| 2704 | ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ExtensionRange>( |
| 2705 | &from); |
| 2706 | if (source == NULL) { |
| 2707 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ExtensionRange) |
| 2708 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2709 | } else { |
| 2710 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ExtensionRange) |
| 2711 | MergeFrom(*source); |
| 2712 | } |
| 2713 | } |
| 2714 | |
| 2715 | void DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) { |
| 2716 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2717 | GOOGLE_DCHECK_NE(&from, this); |
| 2718 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2719 | if (from._has_bits_[0 / 32] & 3u) { |
| 2720 | if (from.has_start()) { |
| 2721 | set_start(from.start()); |
| 2722 | } |
| 2723 | if (from.has_end()) { |
| 2724 | set_end(from.end()); |
| 2725 | } |
| 2726 | } |
| 2727 | } |
| 2728 | |
| 2729 | void DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) { |
| 2730 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2731 | if (&from == this) return; |
| 2732 | Clear(); |
| 2733 | MergeFrom(from); |
| 2734 | } |
| 2735 | |
| 2736 | void DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) { |
| 2737 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ExtensionRange) |
| 2738 | if (&from == this) return; |
| 2739 | Clear(); |
| 2740 | MergeFrom(from); |
| 2741 | } |
| 2742 | |
| 2743 | bool DescriptorProto_ExtensionRange::IsInitialized() const { |
| 2744 | return true; |
| 2745 | } |
| 2746 | |
| 2747 | void DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) { |
| 2748 | if (other == this) return; |
| 2749 | InternalSwap(other); |
| 2750 | } |
| 2751 | void DescriptorProto_ExtensionRange::InternalSwap(DescriptorProto_ExtensionRange* other) { |
| 2752 | std::swap(start_, other->start_); |
| 2753 | std::swap(end_, other->end_); |
| 2754 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 2755 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2756 | std::swap(_cached_size_, other->_cached_size_); |
| 2757 | } |
| 2758 | |
| 2759 | ::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const { |
| 2760 | protobuf_AssignDescriptorsOnce(); |
| 2761 | return file_level_metadata[2]; |
| 2762 | } |
| 2763 | |
| 2764 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2765 | // DescriptorProto_ExtensionRange |
| 2766 | |
| 2767 | // optional int32 start = 1; |
| 2768 | bool DescriptorProto_ExtensionRange::has_start() const { |
| 2769 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 2770 | } |
| 2771 | void DescriptorProto_ExtensionRange::set_has_start() { |
| 2772 | _has_bits_[0] |= 0x00000001u; |
| 2773 | } |
| 2774 | void DescriptorProto_ExtensionRange::clear_has_start() { |
| 2775 | _has_bits_[0] &= ~0x00000001u; |
| 2776 | } |
| 2777 | void DescriptorProto_ExtensionRange::clear_start() { |
| 2778 | start_ = 0; |
| 2779 | clear_has_start(); |
| 2780 | } |
| 2781 | ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const { |
| 2782 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start) |
| 2783 | return start_; |
| 2784 | } |
| 2785 | void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) { |
| 2786 | set_has_start(); |
| 2787 | start_ = value; |
| 2788 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start) |
| 2789 | } |
| 2790 | |
| 2791 | // optional int32 end = 2; |
| 2792 | bool DescriptorProto_ExtensionRange::has_end() const { |
| 2793 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 2794 | } |
| 2795 | void DescriptorProto_ExtensionRange::set_has_end() { |
| 2796 | _has_bits_[0] |= 0x00000002u; |
| 2797 | } |
| 2798 | void DescriptorProto_ExtensionRange::clear_has_end() { |
| 2799 | _has_bits_[0] &= ~0x00000002u; |
| 2800 | } |
| 2801 | void DescriptorProto_ExtensionRange::clear_end() { |
| 2802 | end_ = 0; |
| 2803 | clear_has_end(); |
| 2804 | } |
| 2805 | ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const { |
| 2806 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end) |
| 2807 | return end_; |
| 2808 | } |
| 2809 | void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) { |
| 2810 | set_has_end(); |
| 2811 | end_ = value; |
| 2812 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end) |
| 2813 | } |
| 2814 | |
| 2815 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2816 | |
| 2817 | // =================================================================== |
| 2818 | |
| 2819 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2820 | const int DescriptorProto_ReservedRange::kStartFieldNumber; |
| 2821 | const int DescriptorProto_ReservedRange::kEndFieldNumber; |
| 2822 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2823 | |
| 2824 | DescriptorProto_ReservedRange::DescriptorProto_ReservedRange() |
| 2825 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 2826 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 2827 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2828 | } |
| 2829 | SharedCtor(); |
| 2830 | // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto.ReservedRange) |
| 2831 | } |
| 2832 | DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from) |
| 2833 | : ::google::protobuf::Message(), |
| 2834 | _internal_metadata_(NULL), |
| 2835 | _has_bits_(from._has_bits_), |
| 2836 | _cached_size_(0) { |
| 2837 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2838 | ::memcpy(&start_, &from.start_, |
| 2839 | reinterpret_cast<char*>(&end_) - |
| 2840 | reinterpret_cast<char*>(&start_) + sizeof(end_)); |
| 2841 | // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange) |
| 2842 | } |
| 2843 | |
| 2844 | void DescriptorProto_ReservedRange::SharedCtor() { |
| 2845 | _cached_size_ = 0; |
| 2846 | ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - |
| 2847 | reinterpret_cast<char*>(&start_) + sizeof(end_)); |
| 2848 | } |
| 2849 | |
| 2850 | DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { |
| 2851 | // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange) |
| 2852 | SharedDtor(); |
| 2853 | } |
| 2854 | |
| 2855 | void DescriptorProto_ReservedRange::SharedDtor() { |
| 2856 | } |
| 2857 | |
| 2858 | void DescriptorProto_ReservedRange::SetCachedSize(int size) const { |
| 2859 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2860 | _cached_size_ = size; |
| 2861 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2862 | } |
| 2863 | const ::google::protobuf::Descriptor* DescriptorProto_ReservedRange::descriptor() { |
| 2864 | protobuf_AssignDescriptorsOnce(); |
| 2865 | return file_level_metadata[3].descriptor; |
| 2866 | } |
| 2867 | |
| 2868 | const DescriptorProto_ReservedRange& DescriptorProto_ReservedRange::default_instance() { |
| 2869 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 2870 | return *internal_default_instance(); |
| 2871 | } |
| 2872 | |
| 2873 | DescriptorProto_ReservedRange* DescriptorProto_ReservedRange::New(::google::protobuf::Arena* arena) const { |
| 2874 | DescriptorProto_ReservedRange* n = new DescriptorProto_ReservedRange; |
| 2875 | if (arena != NULL) { |
| 2876 | arena->Own(n); |
| 2877 | } |
| 2878 | return n; |
| 2879 | } |
| 2880 | |
| 2881 | void DescriptorProto_ReservedRange::Clear() { |
| 2882 | // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto.ReservedRange) |
| 2883 | if (_has_bits_[0 / 32] & 3u) { |
| 2884 | ::memset(&start_, 0, reinterpret_cast<char*>(&end_) - |
| 2885 | reinterpret_cast<char*>(&start_) + sizeof(end_)); |
| 2886 | } |
| 2887 | _has_bits_.Clear(); |
| 2888 | _internal_metadata_.Clear(); |
| 2889 | } |
| 2890 | |
| 2891 | bool DescriptorProto_ReservedRange::MergePartialFromCodedStream( |
| 2892 | ::google::protobuf::io::CodedInputStream* input) { |
| 2893 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2894 | ::google::protobuf::uint32 tag; |
| 2895 | // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto.ReservedRange) |
| 2896 | for (;;) { |
| 2897 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2898 | tag = p.first; |
| 2899 | if (!p.second) goto handle_unusual; |
| 2900 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2901 | // optional int32 start = 1; |
| 2902 | case 1: { |
| 2903 | if (tag == 8u) { |
| 2904 | set_has_start(); |
| 2905 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2906 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2907 | input, &start_))); |
| 2908 | } else { |
| 2909 | goto handle_unusual; |
| 2910 | } |
| 2911 | break; |
| 2912 | } |
| 2913 | |
| 2914 | // optional int32 end = 2; |
| 2915 | case 2: { |
| 2916 | if (tag == 16u) { |
| 2917 | set_has_end(); |
| 2918 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2919 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2920 | input, &end_))); |
| 2921 | } else { |
| 2922 | goto handle_unusual; |
| 2923 | } |
| 2924 | break; |
| 2925 | } |
| 2926 | |
| 2927 | default: { |
| 2928 | handle_unusual: |
| 2929 | if (tag == 0 || |
| 2930 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 2931 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 2932 | goto success; |
| 2933 | } |
| 2934 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2935 | input, tag, mutable_unknown_fields())); |
| 2936 | break; |
| 2937 | } |
| 2938 | } |
| 2939 | } |
| 2940 | success: |
| 2941 | // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto.ReservedRange) |
| 2942 | return true; |
| 2943 | failure: |
| 2944 | // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto.ReservedRange) |
| 2945 | return false; |
| 2946 | #undef DO_ |
| 2947 | } |
| 2948 | |
| 2949 | void DescriptorProto_ReservedRange::SerializeWithCachedSizes( |
| 2950 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2951 | // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto.ReservedRange) |
| 2952 | // optional int32 start = 1; |
| 2953 | if (has_start()) { |
| 2954 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output); |
| 2955 | } |
| 2956 | |
| 2957 | // optional int32 end = 2; |
| 2958 | if (has_end()) { |
| 2959 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output); |
| 2960 | } |
| 2961 | |
| 2962 | if (_internal_metadata_.have_unknown_fields()) { |
| 2963 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2964 | unknown_fields(), output); |
| 2965 | } |
| 2966 | // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto.ReservedRange) |
| 2967 | } |
| 2968 | |
| 2969 | ::google::protobuf::uint8* DescriptorProto_ReservedRange::InternalSerializeWithCachedSizesToArray( |
| 2970 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 2971 | (void)deterministic; // Unused |
| 2972 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange) |
| 2973 | // optional int32 start = 1; |
| 2974 | if (has_start()) { |
| 2975 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target); |
| 2976 | } |
| 2977 | |
| 2978 | // optional int32 end = 2; |
| 2979 | if (has_end()) { |
| 2980 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target); |
| 2981 | } |
| 2982 | |
| 2983 | if (_internal_metadata_.have_unknown_fields()) { |
| 2984 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2985 | unknown_fields(), target); |
| 2986 | } |
| 2987 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto.ReservedRange) |
| 2988 | return target; |
| 2989 | } |
| 2990 | |
| 2991 | size_t DescriptorProto_ReservedRange::ByteSizeLong() const { |
| 2992 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto.ReservedRange) |
| 2993 | size_t total_size = 0; |
| 2994 | |
| 2995 | if (_internal_metadata_.have_unknown_fields()) { |
| 2996 | total_size += |
| 2997 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2998 | unknown_fields()); |
| 2999 | } |
| 3000 | if (_has_bits_[0 / 32] & 3u) { |
| 3001 | // optional int32 start = 1; |
| 3002 | if (has_start()) { |
| 3003 | total_size += 1 + |
| 3004 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 3005 | this->start()); |
| 3006 | } |
| 3007 | |
| 3008 | // optional int32 end = 2; |
| 3009 | if (has_end()) { |
| 3010 | total_size += 1 + |
| 3011 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 3012 | this->end()); |
| 3013 | } |
| 3014 | |
| 3015 | } |
| 3016 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3017 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 3018 | _cached_size_ = cached_size; |
| 3019 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 3020 | return total_size; |
| 3021 | } |
| 3022 | |
| 3023 | void DescriptorProto_ReservedRange::MergeFrom(const ::google::protobuf::Message& from) { |
| 3024 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto.ReservedRange) |
| 3025 | GOOGLE_DCHECK_NE(&from, this); |
| 3026 | const DescriptorProto_ReservedRange* source = |
| 3027 | ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto_ReservedRange>( |
| 3028 | &from); |
| 3029 | if (source == NULL) { |
| 3030 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto.ReservedRange) |
| 3031 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3032 | } else { |
| 3033 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto.ReservedRange) |
| 3034 | MergeFrom(*source); |
| 3035 | } |
| 3036 | } |
| 3037 | |
| 3038 | void DescriptorProto_ReservedRange::MergeFrom(const DescriptorProto_ReservedRange& from) { |
| 3039 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto.ReservedRange) |
| 3040 | GOOGLE_DCHECK_NE(&from, this); |
| 3041 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3042 | if (from._has_bits_[0 / 32] & 3u) { |
| 3043 | if (from.has_start()) { |
| 3044 | set_start(from.start()); |
| 3045 | } |
| 3046 | if (from.has_end()) { |
| 3047 | set_end(from.end()); |
| 3048 | } |
| 3049 | } |
| 3050 | } |
| 3051 | |
| 3052 | void DescriptorProto_ReservedRange::CopyFrom(const ::google::protobuf::Message& from) { |
| 3053 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto.ReservedRange) |
| 3054 | if (&from == this) return; |
| 3055 | Clear(); |
| 3056 | MergeFrom(from); |
| 3057 | } |
| 3058 | |
| 3059 | void DescriptorProto_ReservedRange::CopyFrom(const DescriptorProto_ReservedRange& from) { |
| 3060 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto.ReservedRange) |
| 3061 | if (&from == this) return; |
| 3062 | Clear(); |
| 3063 | MergeFrom(from); |
| 3064 | } |
| 3065 | |
| 3066 | bool DescriptorProto_ReservedRange::IsInitialized() const { |
| 3067 | return true; |
| 3068 | } |
| 3069 | |
| 3070 | void DescriptorProto_ReservedRange::Swap(DescriptorProto_ReservedRange* other) { |
| 3071 | if (other == this) return; |
| 3072 | InternalSwap(other); |
| 3073 | } |
| 3074 | void DescriptorProto_ReservedRange::InternalSwap(DescriptorProto_ReservedRange* other) { |
| 3075 | std::swap(start_, other->start_); |
| 3076 | std::swap(end_, other->end_); |
| 3077 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 3078 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3079 | std::swap(_cached_size_, other->_cached_size_); |
| 3080 | } |
| 3081 | |
| 3082 | ::google::protobuf::Metadata DescriptorProto_ReservedRange::GetMetadata() const { |
| 3083 | protobuf_AssignDescriptorsOnce(); |
| 3084 | return file_level_metadata[3]; |
| 3085 | } |
| 3086 | |
| 3087 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 3088 | // DescriptorProto_ReservedRange |
| 3089 | |
| 3090 | // optional int32 start = 1; |
| 3091 | bool DescriptorProto_ReservedRange::has_start() const { |
| 3092 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3093 | } |
| 3094 | void DescriptorProto_ReservedRange::set_has_start() { |
| 3095 | _has_bits_[0] |= 0x00000001u; |
| 3096 | } |
| 3097 | void DescriptorProto_ReservedRange::clear_has_start() { |
| 3098 | _has_bits_[0] &= ~0x00000001u; |
| 3099 | } |
| 3100 | void DescriptorProto_ReservedRange::clear_start() { |
| 3101 | start_ = 0; |
| 3102 | clear_has_start(); |
| 3103 | } |
| 3104 | ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const { |
| 3105 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start) |
| 3106 | return start_; |
| 3107 | } |
| 3108 | void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) { |
| 3109 | set_has_start(); |
| 3110 | start_ = value; |
| 3111 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start) |
| 3112 | } |
| 3113 | |
| 3114 | // optional int32 end = 2; |
| 3115 | bool DescriptorProto_ReservedRange::has_end() const { |
| 3116 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 3117 | } |
| 3118 | void DescriptorProto_ReservedRange::set_has_end() { |
| 3119 | _has_bits_[0] |= 0x00000002u; |
| 3120 | } |
| 3121 | void DescriptorProto_ReservedRange::clear_has_end() { |
| 3122 | _has_bits_[0] &= ~0x00000002u; |
| 3123 | } |
| 3124 | void DescriptorProto_ReservedRange::clear_end() { |
| 3125 | end_ = 0; |
| 3126 | clear_has_end(); |
| 3127 | } |
| 3128 | ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const { |
| 3129 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end) |
| 3130 | return end_; |
| 3131 | } |
| 3132 | void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) { |
| 3133 | set_has_end(); |
| 3134 | end_ = value; |
| 3135 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end) |
| 3136 | } |
| 3137 | |
| 3138 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 3139 | |
| 3140 | // =================================================================== |
| 3141 | |
| 3142 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3143 | const int DescriptorProto::kNameFieldNumber; |
| 3144 | const int DescriptorProto::kFieldFieldNumber; |
| 3145 | const int DescriptorProto::kExtensionFieldNumber; |
| 3146 | const int DescriptorProto::kNestedTypeFieldNumber; |
| 3147 | const int DescriptorProto::kEnumTypeFieldNumber; |
| 3148 | const int DescriptorProto::kExtensionRangeFieldNumber; |
| 3149 | const int DescriptorProto::kOneofDeclFieldNumber; |
| 3150 | const int DescriptorProto::kOptionsFieldNumber; |
| 3151 | const int DescriptorProto::kReservedRangeFieldNumber; |
| 3152 | const int DescriptorProto::kReservedNameFieldNumber; |
| 3153 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3154 | |
| 3155 | DescriptorProto::DescriptorProto() |
| 3156 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 3157 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 3158 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 3159 | } |
| 3160 | SharedCtor(); |
| 3161 | // @@protoc_insertion_point(constructor:google.protobuf.DescriptorProto) |
| 3162 | } |
| 3163 | DescriptorProto::DescriptorProto(const DescriptorProto& from) |
| 3164 | : ::google::protobuf::Message(), |
| 3165 | _internal_metadata_(NULL), |
| 3166 | _has_bits_(from._has_bits_), |
| 3167 | _cached_size_(0), |
| 3168 | field_(from.field_), |
| 3169 | extension_(from.extension_), |
| 3170 | nested_type_(from.nested_type_), |
| 3171 | enum_type_(from.enum_type_), |
| 3172 | extension_range_(from.extension_range_), |
| 3173 | oneof_decl_(from.oneof_decl_), |
| 3174 | reserved_range_(from.reserved_range_), |
| 3175 | reserved_name_(from.reserved_name_) { |
| 3176 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3177 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3178 | if (from.has_name()) { |
| 3179 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 3180 | } |
| 3181 | if (from.has_options()) { |
| 3182 | options_ = new ::google::protobuf::MessageOptions(*from.options_); |
| 3183 | } else { |
| 3184 | options_ = NULL; |
| 3185 | } |
| 3186 | // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) |
| 3187 | } |
| 3188 | |
| 3189 | void DescriptorProto::SharedCtor() { |
| 3190 | _cached_size_ = 0; |
| 3191 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3192 | options_ = NULL; |
| 3193 | } |
| 3194 | |
| 3195 | DescriptorProto::~DescriptorProto() { |
| 3196 | // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto) |
| 3197 | SharedDtor(); |
| 3198 | } |
| 3199 | |
| 3200 | void DescriptorProto::SharedDtor() { |
| 3201 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3202 | if (this != internal_default_instance()) { |
| 3203 | delete options_; |
| 3204 | } |
| 3205 | } |
| 3206 | |
| 3207 | void DescriptorProto::SetCachedSize(int size) const { |
| 3208 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 3209 | _cached_size_ = size; |
| 3210 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 3211 | } |
| 3212 | const ::google::protobuf::Descriptor* DescriptorProto::descriptor() { |
| 3213 | protobuf_AssignDescriptorsOnce(); |
| 3214 | return file_level_metadata[4].descriptor; |
| 3215 | } |
| 3216 | |
| 3217 | const DescriptorProto& DescriptorProto::default_instance() { |
| 3218 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 3219 | return *internal_default_instance(); |
| 3220 | } |
| 3221 | |
| 3222 | DescriptorProto* DescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 3223 | DescriptorProto* n = new DescriptorProto; |
| 3224 | if (arena != NULL) { |
| 3225 | arena->Own(n); |
| 3226 | } |
| 3227 | return n; |
| 3228 | } |
| 3229 | |
| 3230 | void DescriptorProto::Clear() { |
| 3231 | // @@protoc_insertion_point(message_clear_start:google.protobuf.DescriptorProto) |
| 3232 | field_.Clear(); |
| 3233 | extension_.Clear(); |
| 3234 | nested_type_.Clear(); |
| 3235 | enum_type_.Clear(); |
| 3236 | extension_range_.Clear(); |
| 3237 | oneof_decl_.Clear(); |
| 3238 | reserved_range_.Clear(); |
| 3239 | reserved_name_.Clear(); |
| 3240 | if (_has_bits_[0 / 32] & 3u) { |
| 3241 | if (has_name()) { |
| 3242 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 3243 | (*name_.UnsafeRawStringPointer())->clear(); |
| 3244 | } |
| 3245 | if (has_options()) { |
| 3246 | GOOGLE_DCHECK(options_ != NULL); |
| 3247 | options_->::google::protobuf::MessageOptions::Clear(); |
| 3248 | } |
| 3249 | } |
| 3250 | _has_bits_.Clear(); |
| 3251 | _internal_metadata_.Clear(); |
| 3252 | } |
| 3253 | |
| 3254 | bool DescriptorProto::MergePartialFromCodedStream( |
| 3255 | ::google::protobuf::io::CodedInputStream* input) { |
| 3256 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3257 | ::google::protobuf::uint32 tag; |
| 3258 | // @@protoc_insertion_point(parse_start:google.protobuf.DescriptorProto) |
| 3259 | for (;;) { |
| 3260 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3261 | tag = p.first; |
| 3262 | if (!p.second) goto handle_unusual; |
| 3263 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3264 | // optional string name = 1; |
| 3265 | case 1: { |
| 3266 | if (tag == 10u) { |
| 3267 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3268 | input, this->mutable_name())); |
| 3269 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3270 | this->name().data(), this->name().length(), |
| 3271 | ::google::protobuf::internal::WireFormat::PARSE, |
| 3272 | "google.protobuf.DescriptorProto.name"); |
| 3273 | } else { |
| 3274 | goto handle_unusual; |
| 3275 | } |
| 3276 | break; |
| 3277 | } |
| 3278 | |
| 3279 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3280 | case 2: { |
| 3281 | if (tag == 18u) { |
| 3282 | DO_(input->IncrementRecursionDepth()); |
| 3283 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3284 | input, add_field())); |
| 3285 | } else { |
| 3286 | goto handle_unusual; |
| 3287 | } |
| 3288 | input->UnsafeDecrementRecursionDepth(); |
| 3289 | break; |
| 3290 | } |
| 3291 | |
| 3292 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3293 | case 3: { |
| 3294 | if (tag == 26u) { |
| 3295 | DO_(input->IncrementRecursionDepth()); |
| 3296 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3297 | input, add_nested_type())); |
| 3298 | } else { |
| 3299 | goto handle_unusual; |
| 3300 | } |
| 3301 | input->UnsafeDecrementRecursionDepth(); |
| 3302 | break; |
| 3303 | } |
| 3304 | |
| 3305 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3306 | case 4: { |
| 3307 | if (tag == 34u) { |
| 3308 | DO_(input->IncrementRecursionDepth()); |
| 3309 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3310 | input, add_enum_type())); |
| 3311 | } else { |
| 3312 | goto handle_unusual; |
| 3313 | } |
| 3314 | input->UnsafeDecrementRecursionDepth(); |
| 3315 | break; |
| 3316 | } |
| 3317 | |
| 3318 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3319 | case 5: { |
| 3320 | if (tag == 42u) { |
| 3321 | DO_(input->IncrementRecursionDepth()); |
| 3322 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3323 | input, add_extension_range())); |
| 3324 | } else { |
| 3325 | goto handle_unusual; |
| 3326 | } |
| 3327 | input->UnsafeDecrementRecursionDepth(); |
| 3328 | break; |
| 3329 | } |
| 3330 | |
| 3331 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3332 | case 6: { |
| 3333 | if (tag == 50u) { |
| 3334 | DO_(input->IncrementRecursionDepth()); |
| 3335 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3336 | input, add_extension())); |
| 3337 | } else { |
| 3338 | goto handle_unusual; |
| 3339 | } |
| 3340 | input->UnsafeDecrementRecursionDepth(); |
| 3341 | break; |
| 3342 | } |
| 3343 | |
| 3344 | // optional .google.protobuf.MessageOptions options = 7; |
| 3345 | case 7: { |
| 3346 | if (tag == 58u) { |
| 3347 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 3348 | input, mutable_options())); |
| 3349 | } else { |
| 3350 | goto handle_unusual; |
| 3351 | } |
| 3352 | break; |
| 3353 | } |
| 3354 | |
| 3355 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3356 | case 8: { |
| 3357 | if (tag == 66u) { |
| 3358 | DO_(input->IncrementRecursionDepth()); |
| 3359 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3360 | input, add_oneof_decl())); |
| 3361 | } else { |
| 3362 | goto handle_unusual; |
| 3363 | } |
| 3364 | input->UnsafeDecrementRecursionDepth(); |
| 3365 | break; |
| 3366 | } |
| 3367 | |
| 3368 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3369 | case 9: { |
| 3370 | if (tag == 74u) { |
| 3371 | DO_(input->IncrementRecursionDepth()); |
| 3372 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 3373 | input, add_reserved_range())); |
| 3374 | } else { |
| 3375 | goto handle_unusual; |
| 3376 | } |
| 3377 | input->UnsafeDecrementRecursionDepth(); |
| 3378 | break; |
| 3379 | } |
| 3380 | |
| 3381 | // repeated string reserved_name = 10; |
| 3382 | case 10: { |
| 3383 | if (tag == 82u) { |
| 3384 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3385 | input, this->add_reserved_name())); |
| 3386 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3387 | this->reserved_name(this->reserved_name_size() - 1).data(), |
| 3388 | this->reserved_name(this->reserved_name_size() - 1).length(), |
| 3389 | ::google::protobuf::internal::WireFormat::PARSE, |
| 3390 | "google.protobuf.DescriptorProto.reserved_name"); |
| 3391 | } else { |
| 3392 | goto handle_unusual; |
| 3393 | } |
| 3394 | break; |
| 3395 | } |
| 3396 | |
| 3397 | default: { |
| 3398 | handle_unusual: |
| 3399 | if (tag == 0 || |
| 3400 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 3401 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 3402 | goto success; |
| 3403 | } |
| 3404 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3405 | input, tag, mutable_unknown_fields())); |
| 3406 | break; |
| 3407 | } |
| 3408 | } |
| 3409 | } |
| 3410 | success: |
| 3411 | // @@protoc_insertion_point(parse_success:google.protobuf.DescriptorProto) |
| 3412 | return true; |
| 3413 | failure: |
| 3414 | // @@protoc_insertion_point(parse_failure:google.protobuf.DescriptorProto) |
| 3415 | return false; |
| 3416 | #undef DO_ |
| 3417 | } |
| 3418 | |
| 3419 | void DescriptorProto::SerializeWithCachedSizes( |
| 3420 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3421 | // @@protoc_insertion_point(serialize_start:google.protobuf.DescriptorProto) |
| 3422 | // optional string name = 1; |
| 3423 | if (has_name()) { |
| 3424 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3425 | this->name().data(), this->name().length(), |
| 3426 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3427 | "google.protobuf.DescriptorProto.name"); |
| 3428 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3429 | 1, this->name(), output); |
| 3430 | } |
| 3431 | |
| 3432 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3433 | for (unsigned int i = 0, n = this->field_size(); i < n; i++) { |
| 3434 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3435 | 2, this->field(i), output); |
| 3436 | } |
| 3437 | |
| 3438 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3439 | for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) { |
| 3440 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3441 | 3, this->nested_type(i), output); |
| 3442 | } |
| 3443 | |
| 3444 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3445 | for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 3446 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3447 | 4, this->enum_type(i), output); |
| 3448 | } |
| 3449 | |
| 3450 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3451 | for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) { |
| 3452 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3453 | 5, this->extension_range(i), output); |
| 3454 | } |
| 3455 | |
| 3456 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3457 | for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 3458 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3459 | 6, this->extension(i), output); |
| 3460 | } |
| 3461 | |
| 3462 | // optional .google.protobuf.MessageOptions options = 7; |
| 3463 | if (has_options()) { |
| 3464 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3465 | 7, *this->options_, output); |
| 3466 | } |
| 3467 | |
| 3468 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3469 | for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) { |
| 3470 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3471 | 8, this->oneof_decl(i), output); |
| 3472 | } |
| 3473 | |
| 3474 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3475 | for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) { |
| 3476 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3477 | 9, this->reserved_range(i), output); |
| 3478 | } |
| 3479 | |
| 3480 | // repeated string reserved_name = 10; |
| 3481 | for (int i = 0; i < this->reserved_name_size(); i++) { |
| 3482 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3483 | this->reserved_name(i).data(), this->reserved_name(i).length(), |
| 3484 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3485 | "google.protobuf.DescriptorProto.reserved_name"); |
| 3486 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 3487 | 10, this->reserved_name(i), output); |
| 3488 | } |
| 3489 | |
| 3490 | if (_internal_metadata_.have_unknown_fields()) { |
| 3491 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3492 | unknown_fields(), output); |
| 3493 | } |
| 3494 | // @@protoc_insertion_point(serialize_end:google.protobuf.DescriptorProto) |
| 3495 | } |
| 3496 | |
| 3497 | ::google::protobuf::uint8* DescriptorProto::InternalSerializeWithCachedSizesToArray( |
| 3498 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 3499 | (void)deterministic; // Unused |
| 3500 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto) |
| 3501 | // optional string name = 1; |
| 3502 | if (has_name()) { |
| 3503 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3504 | this->name().data(), this->name().length(), |
| 3505 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3506 | "google.protobuf.DescriptorProto.name"); |
| 3507 | target = |
| 3508 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3509 | 1, this->name(), target); |
| 3510 | } |
| 3511 | |
| 3512 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3513 | for (unsigned int i = 0, n = this->field_size(); i < n; i++) { |
| 3514 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3515 | InternalWriteMessageNoVirtualToArray( |
| 3516 | 2, this->field(i), false, target); |
| 3517 | } |
| 3518 | |
| 3519 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3520 | for (unsigned int i = 0, n = this->nested_type_size(); i < n; i++) { |
| 3521 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3522 | InternalWriteMessageNoVirtualToArray( |
| 3523 | 3, this->nested_type(i), false, target); |
| 3524 | } |
| 3525 | |
| 3526 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3527 | for (unsigned int i = 0, n = this->enum_type_size(); i < n; i++) { |
| 3528 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3529 | InternalWriteMessageNoVirtualToArray( |
| 3530 | 4, this->enum_type(i), false, target); |
| 3531 | } |
| 3532 | |
| 3533 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3534 | for (unsigned int i = 0, n = this->extension_range_size(); i < n; i++) { |
| 3535 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3536 | InternalWriteMessageNoVirtualToArray( |
| 3537 | 5, this->extension_range(i), false, target); |
| 3538 | } |
| 3539 | |
| 3540 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3541 | for (unsigned int i = 0, n = this->extension_size(); i < n; i++) { |
| 3542 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3543 | InternalWriteMessageNoVirtualToArray( |
| 3544 | 6, this->extension(i), false, target); |
| 3545 | } |
| 3546 | |
| 3547 | // optional .google.protobuf.MessageOptions options = 7; |
| 3548 | if (has_options()) { |
| 3549 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3550 | InternalWriteMessageNoVirtualToArray( |
| 3551 | 7, *this->options_, false, target); |
| 3552 | } |
| 3553 | |
| 3554 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3555 | for (unsigned int i = 0, n = this->oneof_decl_size(); i < n; i++) { |
| 3556 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3557 | InternalWriteMessageNoVirtualToArray( |
| 3558 | 8, this->oneof_decl(i), false, target); |
| 3559 | } |
| 3560 | |
| 3561 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3562 | for (unsigned int i = 0, n = this->reserved_range_size(); i < n; i++) { |
| 3563 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3564 | InternalWriteMessageNoVirtualToArray( |
| 3565 | 9, this->reserved_range(i), false, target); |
| 3566 | } |
| 3567 | |
| 3568 | // repeated string reserved_name = 10; |
| 3569 | for (int i = 0; i < this->reserved_name_size(); i++) { |
| 3570 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 3571 | this->reserved_name(i).data(), this->reserved_name(i).length(), |
| 3572 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 3573 | "google.protobuf.DescriptorProto.reserved_name"); |
| 3574 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3575 | WriteStringToArray(10, this->reserved_name(i), target); |
| 3576 | } |
| 3577 | |
| 3578 | if (_internal_metadata_.have_unknown_fields()) { |
| 3579 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3580 | unknown_fields(), target); |
| 3581 | } |
| 3582 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DescriptorProto) |
| 3583 | return target; |
| 3584 | } |
| 3585 | |
| 3586 | size_t DescriptorProto::ByteSizeLong() const { |
| 3587 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DescriptorProto) |
| 3588 | size_t total_size = 0; |
| 3589 | |
| 3590 | if (_internal_metadata_.have_unknown_fields()) { |
| 3591 | total_size += |
| 3592 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3593 | unknown_fields()); |
| 3594 | } |
| 3595 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3596 | { |
| 3597 | unsigned int count = this->field_size(); |
| 3598 | total_size += 1UL * count; |
| 3599 | for (unsigned int i = 0; i < count; i++) { |
| 3600 | total_size += |
| 3601 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3602 | this->field(i)); |
| 3603 | } |
| 3604 | } |
| 3605 | |
| 3606 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3607 | { |
| 3608 | unsigned int count = this->extension_size(); |
| 3609 | total_size += 1UL * count; |
| 3610 | for (unsigned int i = 0; i < count; i++) { |
| 3611 | total_size += |
| 3612 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3613 | this->extension(i)); |
| 3614 | } |
| 3615 | } |
| 3616 | |
| 3617 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3618 | { |
| 3619 | unsigned int count = this->nested_type_size(); |
| 3620 | total_size += 1UL * count; |
| 3621 | for (unsigned int i = 0; i < count; i++) { |
| 3622 | total_size += |
| 3623 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3624 | this->nested_type(i)); |
| 3625 | } |
| 3626 | } |
| 3627 | |
| 3628 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3629 | { |
| 3630 | unsigned int count = this->enum_type_size(); |
| 3631 | total_size += 1UL * count; |
| 3632 | for (unsigned int i = 0; i < count; i++) { |
| 3633 | total_size += |
| 3634 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3635 | this->enum_type(i)); |
| 3636 | } |
| 3637 | } |
| 3638 | |
| 3639 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3640 | { |
| 3641 | unsigned int count = this->extension_range_size(); |
| 3642 | total_size += 1UL * count; |
| 3643 | for (unsigned int i = 0; i < count; i++) { |
| 3644 | total_size += |
| 3645 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3646 | this->extension_range(i)); |
| 3647 | } |
| 3648 | } |
| 3649 | |
| 3650 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 3651 | { |
| 3652 | unsigned int count = this->oneof_decl_size(); |
| 3653 | total_size += 1UL * count; |
| 3654 | for (unsigned int i = 0; i < count; i++) { |
| 3655 | total_size += |
| 3656 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3657 | this->oneof_decl(i)); |
| 3658 | } |
| 3659 | } |
| 3660 | |
| 3661 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 3662 | { |
| 3663 | unsigned int count = this->reserved_range_size(); |
| 3664 | total_size += 1UL * count; |
| 3665 | for (unsigned int i = 0; i < count; i++) { |
| 3666 | total_size += |
| 3667 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3668 | this->reserved_range(i)); |
| 3669 | } |
| 3670 | } |
| 3671 | |
| 3672 | // repeated string reserved_name = 10; |
| 3673 | total_size += 1 * |
| 3674 | ::google::protobuf::internal::FromIntSize(this->reserved_name_size()); |
| 3675 | for (int i = 0; i < this->reserved_name_size(); i++) { |
| 3676 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3677 | this->reserved_name(i)); |
| 3678 | } |
| 3679 | |
| 3680 | if (_has_bits_[0 / 32] & 3u) { |
| 3681 | // optional string name = 1; |
| 3682 | if (has_name()) { |
| 3683 | total_size += 1 + |
| 3684 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3685 | this->name()); |
| 3686 | } |
| 3687 | |
| 3688 | // optional .google.protobuf.MessageOptions options = 7; |
| 3689 | if (has_options()) { |
| 3690 | total_size += 1 + |
| 3691 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 3692 | *this->options_); |
| 3693 | } |
| 3694 | |
| 3695 | } |
| 3696 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3697 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 3698 | _cached_size_ = cached_size; |
| 3699 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 3700 | return total_size; |
| 3701 | } |
| 3702 | |
| 3703 | void DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 3704 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DescriptorProto) |
| 3705 | GOOGLE_DCHECK_NE(&from, this); |
| 3706 | const DescriptorProto* source = |
| 3707 | ::google::protobuf::internal::DynamicCastToGenerated<const DescriptorProto>( |
| 3708 | &from); |
| 3709 | if (source == NULL) { |
| 3710 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DescriptorProto) |
| 3711 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3712 | } else { |
| 3713 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DescriptorProto) |
| 3714 | MergeFrom(*source); |
| 3715 | } |
| 3716 | } |
| 3717 | |
| 3718 | void DescriptorProto::MergeFrom(const DescriptorProto& from) { |
| 3719 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DescriptorProto) |
| 3720 | GOOGLE_DCHECK_NE(&from, this); |
| 3721 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3722 | field_.MergeFrom(from.field_); |
| 3723 | extension_.MergeFrom(from.extension_); |
| 3724 | nested_type_.MergeFrom(from.nested_type_); |
| 3725 | enum_type_.MergeFrom(from.enum_type_); |
| 3726 | extension_range_.MergeFrom(from.extension_range_); |
| 3727 | oneof_decl_.MergeFrom(from.oneof_decl_); |
| 3728 | reserved_range_.MergeFrom(from.reserved_range_); |
| 3729 | reserved_name_.MergeFrom(from.reserved_name_); |
| 3730 | if (from._has_bits_[0 / 32] & 3u) { |
| 3731 | if (from.has_name()) { |
| 3732 | set_has_name(); |
| 3733 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 3734 | } |
| 3735 | if (from.has_options()) { |
| 3736 | mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options()); |
| 3737 | } |
| 3738 | } |
| 3739 | } |
| 3740 | |
| 3741 | void DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 3742 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DescriptorProto) |
| 3743 | if (&from == this) return; |
| 3744 | Clear(); |
| 3745 | MergeFrom(from); |
| 3746 | } |
| 3747 | |
| 3748 | void DescriptorProto::CopyFrom(const DescriptorProto& from) { |
| 3749 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DescriptorProto) |
| 3750 | if (&from == this) return; |
| 3751 | Clear(); |
| 3752 | MergeFrom(from); |
| 3753 | } |
| 3754 | |
| 3755 | bool DescriptorProto::IsInitialized() const { |
| 3756 | if (!::google::protobuf::internal::AllAreInitialized(this->field())) return false; |
| 3757 | if (!::google::protobuf::internal::AllAreInitialized(this->extension())) return false; |
| 3758 | if (!::google::protobuf::internal::AllAreInitialized(this->nested_type())) return false; |
| 3759 | if (!::google::protobuf::internal::AllAreInitialized(this->enum_type())) return false; |
| 3760 | if (!::google::protobuf::internal::AllAreInitialized(this->oneof_decl())) return false; |
| 3761 | if (has_options()) { |
| 3762 | if (!this->options_->IsInitialized()) return false; |
| 3763 | } |
| 3764 | return true; |
| 3765 | } |
| 3766 | |
| 3767 | void DescriptorProto::Swap(DescriptorProto* other) { |
| 3768 | if (other == this) return; |
| 3769 | InternalSwap(other); |
| 3770 | } |
| 3771 | void DescriptorProto::InternalSwap(DescriptorProto* other) { |
| 3772 | field_.UnsafeArenaSwap(&other->field_); |
| 3773 | extension_.UnsafeArenaSwap(&other->extension_); |
| 3774 | nested_type_.UnsafeArenaSwap(&other->nested_type_); |
| 3775 | enum_type_.UnsafeArenaSwap(&other->enum_type_); |
| 3776 | extension_range_.UnsafeArenaSwap(&other->extension_range_); |
| 3777 | oneof_decl_.UnsafeArenaSwap(&other->oneof_decl_); |
| 3778 | reserved_range_.UnsafeArenaSwap(&other->reserved_range_); |
| 3779 | reserved_name_.UnsafeArenaSwap(&other->reserved_name_); |
| 3780 | name_.Swap(&other->name_); |
| 3781 | std::swap(options_, other->options_); |
| 3782 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 3783 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3784 | std::swap(_cached_size_, other->_cached_size_); |
| 3785 | } |
| 3786 | |
| 3787 | ::google::protobuf::Metadata DescriptorProto::GetMetadata() const { |
| 3788 | protobuf_AssignDescriptorsOnce(); |
| 3789 | return file_level_metadata[4]; |
| 3790 | } |
| 3791 | |
| 3792 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 3793 | // DescriptorProto |
| 3794 | |
| 3795 | // optional string name = 1; |
| 3796 | bool DescriptorProto::has_name() const { |
| 3797 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 3798 | } |
| 3799 | void DescriptorProto::set_has_name() { |
| 3800 | _has_bits_[0] |= 0x00000001u; |
| 3801 | } |
| 3802 | void DescriptorProto::clear_has_name() { |
| 3803 | _has_bits_[0] &= ~0x00000001u; |
| 3804 | } |
| 3805 | void DescriptorProto::clear_name() { |
| 3806 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3807 | clear_has_name(); |
| 3808 | } |
| 3809 | const ::std::string& DescriptorProto::name() const { |
| 3810 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name) |
| 3811 | return name_.GetNoArena(); |
| 3812 | } |
| 3813 | void DescriptorProto::set_name(const ::std::string& value) { |
| 3814 | set_has_name(); |
| 3815 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 3816 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name) |
| 3817 | } |
| 3818 | #if LANG_CXX11 |
| 3819 | void DescriptorProto::set_name(::std::string&& value) { |
| 3820 | set_has_name(); |
| 3821 | name_.SetNoArena( |
| 3822 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 3823 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.DescriptorProto.name) |
| 3824 | } |
| 3825 | #endif |
| 3826 | void DescriptorProto::set_name(const char* value) { |
| 3827 | set_has_name(); |
| 3828 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 3829 | // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name) |
| 3830 | } |
| 3831 | void DescriptorProto::set_name(const char* value, size_t size) { |
| 3832 | set_has_name(); |
| 3833 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3834 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 3835 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name) |
| 3836 | } |
| 3837 | ::std::string* DescriptorProto::mutable_name() { |
| 3838 | set_has_name(); |
| 3839 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name) |
| 3840 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3841 | } |
| 3842 | ::std::string* DescriptorProto::release_name() { |
| 3843 | // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name) |
| 3844 | clear_has_name(); |
| 3845 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3846 | } |
| 3847 | void DescriptorProto::set_allocated_name(::std::string* name) { |
| 3848 | if (name != NULL) { |
| 3849 | set_has_name(); |
| 3850 | } else { |
| 3851 | clear_has_name(); |
| 3852 | } |
| 3853 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 3854 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name) |
| 3855 | } |
| 3856 | |
| 3857 | // repeated .google.protobuf.FieldDescriptorProto field = 2; |
| 3858 | int DescriptorProto::field_size() const { |
| 3859 | return field_.size(); |
| 3860 | } |
| 3861 | void DescriptorProto::clear_field() { |
| 3862 | field_.Clear(); |
| 3863 | } |
| 3864 | const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const { |
| 3865 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field) |
| 3866 | return field_.Get(index); |
| 3867 | } |
| 3868 | ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) { |
| 3869 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field) |
| 3870 | return field_.Mutable(index); |
| 3871 | } |
| 3872 | ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() { |
| 3873 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field) |
| 3874 | return field_.Add(); |
| 3875 | } |
| 3876 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 3877 | DescriptorProto::mutable_field() { |
| 3878 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field) |
| 3879 | return &field_; |
| 3880 | } |
| 3881 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 3882 | DescriptorProto::field() const { |
| 3883 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field) |
| 3884 | return field_; |
| 3885 | } |
| 3886 | |
| 3887 | // repeated .google.protobuf.FieldDescriptorProto extension = 6; |
| 3888 | int DescriptorProto::extension_size() const { |
| 3889 | return extension_.size(); |
| 3890 | } |
| 3891 | void DescriptorProto::clear_extension() { |
| 3892 | extension_.Clear(); |
| 3893 | } |
| 3894 | const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const { |
| 3895 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension) |
| 3896 | return extension_.Get(index); |
| 3897 | } |
| 3898 | ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) { |
| 3899 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension) |
| 3900 | return extension_.Mutable(index); |
| 3901 | } |
| 3902 | ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() { |
| 3903 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension) |
| 3904 | return extension_.Add(); |
| 3905 | } |
| 3906 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* |
| 3907 | DescriptorProto::mutable_extension() { |
| 3908 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension) |
| 3909 | return &extension_; |
| 3910 | } |
| 3911 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& |
| 3912 | DescriptorProto::extension() const { |
| 3913 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension) |
| 3914 | return extension_; |
| 3915 | } |
| 3916 | |
| 3917 | // repeated .google.protobuf.DescriptorProto nested_type = 3; |
| 3918 | int DescriptorProto::nested_type_size() const { |
| 3919 | return nested_type_.size(); |
| 3920 | } |
| 3921 | void DescriptorProto::clear_nested_type() { |
| 3922 | nested_type_.Clear(); |
| 3923 | } |
| 3924 | const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const { |
| 3925 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type) |
| 3926 | return nested_type_.Get(index); |
| 3927 | } |
| 3928 | ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) { |
| 3929 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type) |
| 3930 | return nested_type_.Mutable(index); |
| 3931 | } |
| 3932 | ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() { |
| 3933 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type) |
| 3934 | return nested_type_.Add(); |
| 3935 | } |
| 3936 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >* |
| 3937 | DescriptorProto::mutable_nested_type() { |
| 3938 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type) |
| 3939 | return &nested_type_; |
| 3940 | } |
| 3941 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >& |
| 3942 | DescriptorProto::nested_type() const { |
| 3943 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type) |
| 3944 | return nested_type_; |
| 3945 | } |
| 3946 | |
| 3947 | // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
| 3948 | int DescriptorProto::enum_type_size() const { |
| 3949 | return enum_type_.size(); |
| 3950 | } |
| 3951 | void DescriptorProto::clear_enum_type() { |
| 3952 | enum_type_.Clear(); |
| 3953 | } |
| 3954 | const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const { |
| 3955 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type) |
| 3956 | return enum_type_.Get(index); |
| 3957 | } |
| 3958 | ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) { |
| 3959 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type) |
| 3960 | return enum_type_.Mutable(index); |
| 3961 | } |
| 3962 | ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() { |
| 3963 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type) |
| 3964 | return enum_type_.Add(); |
| 3965 | } |
| 3966 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >* |
| 3967 | DescriptorProto::mutable_enum_type() { |
| 3968 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type) |
| 3969 | return &enum_type_; |
| 3970 | } |
| 3971 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >& |
| 3972 | DescriptorProto::enum_type() const { |
| 3973 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type) |
| 3974 | return enum_type_; |
| 3975 | } |
| 3976 | |
| 3977 | // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
| 3978 | int DescriptorProto::extension_range_size() const { |
| 3979 | return extension_range_.size(); |
| 3980 | } |
| 3981 | void DescriptorProto::clear_extension_range() { |
| 3982 | extension_range_.Clear(); |
| 3983 | } |
| 3984 | const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const { |
| 3985 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range) |
| 3986 | return extension_range_.Get(index); |
| 3987 | } |
| 3988 | ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) { |
| 3989 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range) |
| 3990 | return extension_range_.Mutable(index); |
| 3991 | } |
| 3992 | ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() { |
| 3993 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range) |
| 3994 | return extension_range_.Add(); |
| 3995 | } |
| 3996 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >* |
| 3997 | DescriptorProto::mutable_extension_range() { |
| 3998 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range) |
| 3999 | return &extension_range_; |
| 4000 | } |
| 4001 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >& |
| 4002 | DescriptorProto::extension_range() const { |
| 4003 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range) |
| 4004 | return extension_range_; |
| 4005 | } |
| 4006 | |
| 4007 | // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
| 4008 | int DescriptorProto::oneof_decl_size() const { |
| 4009 | return oneof_decl_.size(); |
| 4010 | } |
| 4011 | void DescriptorProto::clear_oneof_decl() { |
| 4012 | oneof_decl_.Clear(); |
| 4013 | } |
| 4014 | const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const { |
| 4015 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl) |
| 4016 | return oneof_decl_.Get(index); |
| 4017 | } |
| 4018 | ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) { |
| 4019 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl) |
| 4020 | return oneof_decl_.Mutable(index); |
| 4021 | } |
| 4022 | ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() { |
| 4023 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl) |
| 4024 | return oneof_decl_.Add(); |
| 4025 | } |
| 4026 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >* |
| 4027 | DescriptorProto::mutable_oneof_decl() { |
| 4028 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl) |
| 4029 | return &oneof_decl_; |
| 4030 | } |
| 4031 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >& |
| 4032 | DescriptorProto::oneof_decl() const { |
| 4033 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl) |
| 4034 | return oneof_decl_; |
| 4035 | } |
| 4036 | |
| 4037 | // optional .google.protobuf.MessageOptions options = 7; |
| 4038 | bool DescriptorProto::has_options() const { |
| 4039 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 4040 | } |
| 4041 | void DescriptorProto::set_has_options() { |
| 4042 | _has_bits_[0] |= 0x00000002u; |
| 4043 | } |
| 4044 | void DescriptorProto::clear_has_options() { |
| 4045 | _has_bits_[0] &= ~0x00000002u; |
| 4046 | } |
| 4047 | void DescriptorProto::clear_options() { |
| 4048 | if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear(); |
| 4049 | clear_has_options(); |
| 4050 | } |
| 4051 | const ::google::protobuf::MessageOptions& DescriptorProto::options() const { |
| 4052 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options) |
| 4053 | return options_ != NULL ? *options_ |
| 4054 | : *::google::protobuf::MessageOptions::internal_default_instance(); |
| 4055 | } |
| 4056 | ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() { |
| 4057 | set_has_options(); |
| 4058 | if (options_ == NULL) { |
| 4059 | options_ = new ::google::protobuf::MessageOptions; |
| 4060 | } |
| 4061 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options) |
| 4062 | return options_; |
| 4063 | } |
| 4064 | ::google::protobuf::MessageOptions* DescriptorProto::release_options() { |
| 4065 | // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options) |
| 4066 | clear_has_options(); |
| 4067 | ::google::protobuf::MessageOptions* temp = options_; |
| 4068 | options_ = NULL; |
| 4069 | return temp; |
| 4070 | } |
| 4071 | void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) { |
| 4072 | delete options_; |
| 4073 | options_ = options; |
| 4074 | if (options) { |
| 4075 | set_has_options(); |
| 4076 | } else { |
| 4077 | clear_has_options(); |
| 4078 | } |
| 4079 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options) |
| 4080 | } |
| 4081 | |
| 4082 | // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
| 4083 | int DescriptorProto::reserved_range_size() const { |
| 4084 | return reserved_range_.size(); |
| 4085 | } |
| 4086 | void DescriptorProto::clear_reserved_range() { |
| 4087 | reserved_range_.Clear(); |
| 4088 | } |
| 4089 | const ::google::protobuf::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const { |
| 4090 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range) |
| 4091 | return reserved_range_.Get(index); |
| 4092 | } |
| 4093 | ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) { |
| 4094 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range) |
| 4095 | return reserved_range_.Mutable(index); |
| 4096 | } |
| 4097 | ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() { |
| 4098 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range) |
| 4099 | return reserved_range_.Add(); |
| 4100 | } |
| 4101 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >* |
| 4102 | DescriptorProto::mutable_reserved_range() { |
| 4103 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range) |
| 4104 | return &reserved_range_; |
| 4105 | } |
| 4106 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >& |
| 4107 | DescriptorProto::reserved_range() const { |
| 4108 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range) |
| 4109 | return reserved_range_; |
| 4110 | } |
| 4111 | |
| 4112 | // repeated string reserved_name = 10; |
| 4113 | int DescriptorProto::reserved_name_size() const { |
| 4114 | return reserved_name_.size(); |
| 4115 | } |
| 4116 | void DescriptorProto::clear_reserved_name() { |
| 4117 | reserved_name_.Clear(); |
| 4118 | } |
| 4119 | const ::std::string& DescriptorProto::reserved_name(int index) const { |
| 4120 | // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name) |
| 4121 | return reserved_name_.Get(index); |
| 4122 | } |
| 4123 | ::std::string* DescriptorProto::mutable_reserved_name(int index) { |
| 4124 | // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name) |
| 4125 | return reserved_name_.Mutable(index); |
| 4126 | } |
| 4127 | void DescriptorProto::set_reserved_name(int index, const ::std::string& value) { |
| 4128 | // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name) |
| 4129 | reserved_name_.Mutable(index)->assign(value); |
| 4130 | } |
| 4131 | void DescriptorProto::set_reserved_name(int index, const char* value) { |
| 4132 | reserved_name_.Mutable(index)->assign(value); |
| 4133 | // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name) |
| 4134 | } |
| 4135 | void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) { |
| 4136 | reserved_name_.Mutable(index)->assign( |
| 4137 | reinterpret_cast<const char*>(value), size); |
| 4138 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name) |
| 4139 | } |
| 4140 | ::std::string* DescriptorProto::add_reserved_name() { |
| 4141 | // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name) |
| 4142 | return reserved_name_.Add(); |
| 4143 | } |
| 4144 | void DescriptorProto::add_reserved_name(const ::std::string& value) { |
| 4145 | reserved_name_.Add()->assign(value); |
| 4146 | // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name) |
| 4147 | } |
| 4148 | void DescriptorProto::add_reserved_name(const char* value) { |
| 4149 | reserved_name_.Add()->assign(value); |
| 4150 | // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name) |
| 4151 | } |
| 4152 | void DescriptorProto::add_reserved_name(const char* value, size_t size) { |
| 4153 | reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 4154 | // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name) |
| 4155 | } |
| 4156 | const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 4157 | DescriptorProto::reserved_name() const { |
| 4158 | // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name) |
| 4159 | return reserved_name_; |
| 4160 | } |
| 4161 | ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 4162 | DescriptorProto::mutable_reserved_name() { |
| 4163 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name) |
| 4164 | return &reserved_name_; |
| 4165 | } |
| 4166 | |
| 4167 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 4168 | |
| 4169 | // =================================================================== |
| 4170 | |
| 4171 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4172 | const int FieldDescriptorProto::kNameFieldNumber; |
| 4173 | const int FieldDescriptorProto::kNumberFieldNumber; |
| 4174 | const int FieldDescriptorProto::kLabelFieldNumber; |
| 4175 | const int FieldDescriptorProto::kTypeFieldNumber; |
| 4176 | const int FieldDescriptorProto::kTypeNameFieldNumber; |
| 4177 | const int FieldDescriptorProto::kExtendeeFieldNumber; |
| 4178 | const int FieldDescriptorProto::kDefaultValueFieldNumber; |
| 4179 | const int FieldDescriptorProto::kOneofIndexFieldNumber; |
| 4180 | const int FieldDescriptorProto::kJsonNameFieldNumber; |
| 4181 | const int FieldDescriptorProto::kOptionsFieldNumber; |
| 4182 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4183 | |
| 4184 | FieldDescriptorProto::FieldDescriptorProto() |
| 4185 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 4186 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 4187 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 4188 | } |
| 4189 | SharedCtor(); |
| 4190 | // @@protoc_insertion_point(constructor:google.protobuf.FieldDescriptorProto) |
| 4191 | } |
| 4192 | FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) |
| 4193 | : ::google::protobuf::Message(), |
| 4194 | _internal_metadata_(NULL), |
| 4195 | _has_bits_(from._has_bits_), |
| 4196 | _cached_size_(0) { |
| 4197 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4198 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4199 | if (from.has_name()) { |
| 4200 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4201 | } |
| 4202 | type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4203 | if (from.has_type_name()) { |
| 4204 | type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_); |
| 4205 | } |
| 4206 | extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4207 | if (from.has_extendee()) { |
| 4208 | extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extendee_); |
| 4209 | } |
| 4210 | default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4211 | if (from.has_default_value()) { |
| 4212 | default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_); |
| 4213 | } |
| 4214 | json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4215 | if (from.has_json_name()) { |
| 4216 | json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name_); |
| 4217 | } |
| 4218 | if (from.has_options()) { |
| 4219 | options_ = new ::google::protobuf::FieldOptions(*from.options_); |
| 4220 | } else { |
| 4221 | options_ = NULL; |
| 4222 | } |
| 4223 | ::memcpy(&number_, &from.number_, |
| 4224 | reinterpret_cast<char*>(&type_) - |
| 4225 | reinterpret_cast<char*>(&number_) + sizeof(type_)); |
| 4226 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto) |
| 4227 | } |
| 4228 | |
| 4229 | void FieldDescriptorProto::SharedCtor() { |
| 4230 | _cached_size_ = 0; |
| 4231 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4232 | type_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4233 | extendee_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4234 | default_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4235 | json_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4236 | ::memset(&options_, 0, reinterpret_cast<char*>(&oneof_index_) - |
| 4237 | reinterpret_cast<char*>(&options_) + sizeof(oneof_index_)); |
| 4238 | label_ = 1; |
| 4239 | type_ = 1; |
| 4240 | } |
| 4241 | |
| 4242 | FieldDescriptorProto::~FieldDescriptorProto() { |
| 4243 | // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto) |
| 4244 | SharedDtor(); |
| 4245 | } |
| 4246 | |
| 4247 | void FieldDescriptorProto::SharedDtor() { |
| 4248 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4249 | type_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4250 | extendee_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4251 | default_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4252 | json_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4253 | if (this != internal_default_instance()) { |
| 4254 | delete options_; |
| 4255 | } |
| 4256 | } |
| 4257 | |
| 4258 | void FieldDescriptorProto::SetCachedSize(int size) const { |
| 4259 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 4260 | _cached_size_ = size; |
| 4261 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 4262 | } |
| 4263 | const ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() { |
| 4264 | protobuf_AssignDescriptorsOnce(); |
| 4265 | return file_level_metadata[5].descriptor; |
| 4266 | } |
| 4267 | |
| 4268 | const FieldDescriptorProto& FieldDescriptorProto::default_instance() { |
| 4269 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 4270 | return *internal_default_instance(); |
| 4271 | } |
| 4272 | |
| 4273 | FieldDescriptorProto* FieldDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 4274 | FieldDescriptorProto* n = new FieldDescriptorProto; |
| 4275 | if (arena != NULL) { |
| 4276 | arena->Own(n); |
| 4277 | } |
| 4278 | return n; |
| 4279 | } |
| 4280 | |
| 4281 | void FieldDescriptorProto::Clear() { |
| 4282 | // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldDescriptorProto) |
| 4283 | if (_has_bits_[0 / 32] & 63u) { |
| 4284 | if (has_name()) { |
| 4285 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 4286 | (*name_.UnsafeRawStringPointer())->clear(); |
| 4287 | } |
| 4288 | if (has_type_name()) { |
| 4289 | GOOGLE_DCHECK(!type_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 4290 | (*type_name_.UnsafeRawStringPointer())->clear(); |
| 4291 | } |
| 4292 | if (has_extendee()) { |
| 4293 | GOOGLE_DCHECK(!extendee_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 4294 | (*extendee_.UnsafeRawStringPointer())->clear(); |
| 4295 | } |
| 4296 | if (has_default_value()) { |
| 4297 | GOOGLE_DCHECK(!default_value_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 4298 | (*default_value_.UnsafeRawStringPointer())->clear(); |
| 4299 | } |
| 4300 | if (has_json_name()) { |
| 4301 | GOOGLE_DCHECK(!json_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 4302 | (*json_name_.UnsafeRawStringPointer())->clear(); |
| 4303 | } |
| 4304 | if (has_options()) { |
| 4305 | GOOGLE_DCHECK(options_ != NULL); |
| 4306 | options_->::google::protobuf::FieldOptions::Clear(); |
| 4307 | } |
| 4308 | } |
| 4309 | if (_has_bits_[0 / 32] & 192u) { |
| 4310 | ::memset(&number_, 0, reinterpret_cast<char*>(&oneof_index_) - |
| 4311 | reinterpret_cast<char*>(&number_) + sizeof(oneof_index_)); |
| 4312 | } |
| 4313 | if (_has_bits_[8 / 32] & 768u) { |
| 4314 | label_ = 1; |
| 4315 | type_ = 1; |
| 4316 | } |
| 4317 | _has_bits_.Clear(); |
| 4318 | _internal_metadata_.Clear(); |
| 4319 | } |
| 4320 | |
| 4321 | bool FieldDescriptorProto::MergePartialFromCodedStream( |
| 4322 | ::google::protobuf::io::CodedInputStream* input) { |
| 4323 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4324 | ::google::protobuf::uint32 tag; |
| 4325 | // @@protoc_insertion_point(parse_start:google.protobuf.FieldDescriptorProto) |
| 4326 | for (;;) { |
| 4327 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4328 | tag = p.first; |
| 4329 | if (!p.second) goto handle_unusual; |
| 4330 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4331 | // optional string name = 1; |
| 4332 | case 1: { |
| 4333 | if (tag == 10u) { |
| 4334 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4335 | input, this->mutable_name())); |
| 4336 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4337 | this->name().data(), this->name().length(), |
| 4338 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4339 | "google.protobuf.FieldDescriptorProto.name"); |
| 4340 | } else { |
| 4341 | goto handle_unusual; |
| 4342 | } |
| 4343 | break; |
| 4344 | } |
| 4345 | |
| 4346 | // optional string extendee = 2; |
| 4347 | case 2: { |
| 4348 | if (tag == 18u) { |
| 4349 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4350 | input, this->mutable_extendee())); |
| 4351 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4352 | this->extendee().data(), this->extendee().length(), |
| 4353 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4354 | "google.protobuf.FieldDescriptorProto.extendee"); |
| 4355 | } else { |
| 4356 | goto handle_unusual; |
| 4357 | } |
| 4358 | break; |
| 4359 | } |
| 4360 | |
| 4361 | // optional int32 number = 3; |
| 4362 | case 3: { |
| 4363 | if (tag == 24u) { |
| 4364 | set_has_number(); |
| 4365 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4366 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 4367 | input, &number_))); |
| 4368 | } else { |
| 4369 | goto handle_unusual; |
| 4370 | } |
| 4371 | break; |
| 4372 | } |
| 4373 | |
| 4374 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4375 | case 4: { |
| 4376 | if (tag == 32u) { |
| 4377 | int value; |
| 4378 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4379 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4380 | input, &value))); |
| 4381 | if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) { |
| 4382 | set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value)); |
| 4383 | } else { |
| 4384 | mutable_unknown_fields()->AddVarint(4, value); |
| 4385 | } |
| 4386 | } else { |
| 4387 | goto handle_unusual; |
| 4388 | } |
| 4389 | break; |
| 4390 | } |
| 4391 | |
| 4392 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4393 | case 5: { |
| 4394 | if (tag == 40u) { |
| 4395 | int value; |
| 4396 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4397 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4398 | input, &value))); |
| 4399 | if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) { |
| 4400 | set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value)); |
| 4401 | } else { |
| 4402 | mutable_unknown_fields()->AddVarint(5, value); |
| 4403 | } |
| 4404 | } else { |
| 4405 | goto handle_unusual; |
| 4406 | } |
| 4407 | break; |
| 4408 | } |
| 4409 | |
| 4410 | // optional string type_name = 6; |
| 4411 | case 6: { |
| 4412 | if (tag == 50u) { |
| 4413 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4414 | input, this->mutable_type_name())); |
| 4415 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4416 | this->type_name().data(), this->type_name().length(), |
| 4417 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4418 | "google.protobuf.FieldDescriptorProto.type_name"); |
| 4419 | } else { |
| 4420 | goto handle_unusual; |
| 4421 | } |
| 4422 | break; |
| 4423 | } |
| 4424 | |
| 4425 | // optional string default_value = 7; |
| 4426 | case 7: { |
| 4427 | if (tag == 58u) { |
| 4428 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4429 | input, this->mutable_default_value())); |
| 4430 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4431 | this->default_value().data(), this->default_value().length(), |
| 4432 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4433 | "google.protobuf.FieldDescriptorProto.default_value"); |
| 4434 | } else { |
| 4435 | goto handle_unusual; |
| 4436 | } |
| 4437 | break; |
| 4438 | } |
| 4439 | |
| 4440 | // optional .google.protobuf.FieldOptions options = 8; |
| 4441 | case 8: { |
| 4442 | if (tag == 66u) { |
| 4443 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 4444 | input, mutable_options())); |
| 4445 | } else { |
| 4446 | goto handle_unusual; |
| 4447 | } |
| 4448 | break; |
| 4449 | } |
| 4450 | |
| 4451 | // optional int32 oneof_index = 9; |
| 4452 | case 9: { |
| 4453 | if (tag == 72u) { |
| 4454 | set_has_oneof_index(); |
| 4455 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4456 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 4457 | input, &oneof_index_))); |
| 4458 | } else { |
| 4459 | goto handle_unusual; |
| 4460 | } |
| 4461 | break; |
| 4462 | } |
| 4463 | |
| 4464 | // optional string json_name = 10; |
| 4465 | case 10: { |
| 4466 | if (tag == 82u) { |
| 4467 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4468 | input, this->mutable_json_name())); |
| 4469 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4470 | this->json_name().data(), this->json_name().length(), |
| 4471 | ::google::protobuf::internal::WireFormat::PARSE, |
| 4472 | "google.protobuf.FieldDescriptorProto.json_name"); |
| 4473 | } else { |
| 4474 | goto handle_unusual; |
| 4475 | } |
| 4476 | break; |
| 4477 | } |
| 4478 | |
| 4479 | default: { |
| 4480 | handle_unusual: |
| 4481 | if (tag == 0 || |
| 4482 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 4483 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 4484 | goto success; |
| 4485 | } |
| 4486 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4487 | input, tag, mutable_unknown_fields())); |
| 4488 | break; |
| 4489 | } |
| 4490 | } |
| 4491 | } |
| 4492 | success: |
| 4493 | // @@protoc_insertion_point(parse_success:google.protobuf.FieldDescriptorProto) |
| 4494 | return true; |
| 4495 | failure: |
| 4496 | // @@protoc_insertion_point(parse_failure:google.protobuf.FieldDescriptorProto) |
| 4497 | return false; |
| 4498 | #undef DO_ |
| 4499 | } |
| 4500 | |
| 4501 | void FieldDescriptorProto::SerializeWithCachedSizes( |
| 4502 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4503 | // @@protoc_insertion_point(serialize_start:google.protobuf.FieldDescriptorProto) |
| 4504 | // optional string name = 1; |
| 4505 | if (has_name()) { |
| 4506 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4507 | this->name().data(), this->name().length(), |
| 4508 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4509 | "google.protobuf.FieldDescriptorProto.name"); |
| 4510 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4511 | 1, this->name(), output); |
| 4512 | } |
| 4513 | |
| 4514 | // optional string extendee = 2; |
| 4515 | if (has_extendee()) { |
| 4516 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4517 | this->extendee().data(), this->extendee().length(), |
| 4518 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4519 | "google.protobuf.FieldDescriptorProto.extendee"); |
| 4520 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4521 | 2, this->extendee(), output); |
| 4522 | } |
| 4523 | |
| 4524 | // optional int32 number = 3; |
| 4525 | if (has_number()) { |
| 4526 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output); |
| 4527 | } |
| 4528 | |
| 4529 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4530 | if (has_label()) { |
| 4531 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4532 | 4, this->label(), output); |
| 4533 | } |
| 4534 | |
| 4535 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4536 | if (has_type()) { |
| 4537 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4538 | 5, this->type(), output); |
| 4539 | } |
| 4540 | |
| 4541 | // optional string type_name = 6; |
| 4542 | if (has_type_name()) { |
| 4543 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4544 | this->type_name().data(), this->type_name().length(), |
| 4545 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4546 | "google.protobuf.FieldDescriptorProto.type_name"); |
| 4547 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4548 | 6, this->type_name(), output); |
| 4549 | } |
| 4550 | |
| 4551 | // optional string default_value = 7; |
| 4552 | if (has_default_value()) { |
| 4553 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4554 | this->default_value().data(), this->default_value().length(), |
| 4555 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4556 | "google.protobuf.FieldDescriptorProto.default_value"); |
| 4557 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4558 | 7, this->default_value(), output); |
| 4559 | } |
| 4560 | |
| 4561 | // optional .google.protobuf.FieldOptions options = 8; |
| 4562 | if (has_options()) { |
| 4563 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4564 | 8, *this->options_, output); |
| 4565 | } |
| 4566 | |
| 4567 | // optional int32 oneof_index = 9; |
| 4568 | if (has_oneof_index()) { |
| 4569 | ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->oneof_index(), output); |
| 4570 | } |
| 4571 | |
| 4572 | // optional string json_name = 10; |
| 4573 | if (has_json_name()) { |
| 4574 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4575 | this->json_name().data(), this->json_name().length(), |
| 4576 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4577 | "google.protobuf.FieldDescriptorProto.json_name"); |
| 4578 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4579 | 10, this->json_name(), output); |
| 4580 | } |
| 4581 | |
| 4582 | if (_internal_metadata_.have_unknown_fields()) { |
| 4583 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4584 | unknown_fields(), output); |
| 4585 | } |
| 4586 | // @@protoc_insertion_point(serialize_end:google.protobuf.FieldDescriptorProto) |
| 4587 | } |
| 4588 | |
| 4589 | ::google::protobuf::uint8* FieldDescriptorProto::InternalSerializeWithCachedSizesToArray( |
| 4590 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 4591 | (void)deterministic; // Unused |
| 4592 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto) |
| 4593 | // optional string name = 1; |
| 4594 | if (has_name()) { |
| 4595 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4596 | this->name().data(), this->name().length(), |
| 4597 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4598 | "google.protobuf.FieldDescriptorProto.name"); |
| 4599 | target = |
| 4600 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4601 | 1, this->name(), target); |
| 4602 | } |
| 4603 | |
| 4604 | // optional string extendee = 2; |
| 4605 | if (has_extendee()) { |
| 4606 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4607 | this->extendee().data(), this->extendee().length(), |
| 4608 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4609 | "google.protobuf.FieldDescriptorProto.extendee"); |
| 4610 | target = |
| 4611 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4612 | 2, this->extendee(), target); |
| 4613 | } |
| 4614 | |
| 4615 | // optional int32 number = 3; |
| 4616 | if (has_number()) { |
| 4617 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target); |
| 4618 | } |
| 4619 | |
| 4620 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4621 | if (has_label()) { |
| 4622 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4623 | 4, this->label(), target); |
| 4624 | } |
| 4625 | |
| 4626 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4627 | if (has_type()) { |
| 4628 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4629 | 5, this->type(), target); |
| 4630 | } |
| 4631 | |
| 4632 | // optional string type_name = 6; |
| 4633 | if (has_type_name()) { |
| 4634 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4635 | this->type_name().data(), this->type_name().length(), |
| 4636 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4637 | "google.protobuf.FieldDescriptorProto.type_name"); |
| 4638 | target = |
| 4639 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4640 | 6, this->type_name(), target); |
| 4641 | } |
| 4642 | |
| 4643 | // optional string default_value = 7; |
| 4644 | if (has_default_value()) { |
| 4645 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4646 | this->default_value().data(), this->default_value().length(), |
| 4647 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4648 | "google.protobuf.FieldDescriptorProto.default_value"); |
| 4649 | target = |
| 4650 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4651 | 7, this->default_value(), target); |
| 4652 | } |
| 4653 | |
| 4654 | // optional .google.protobuf.FieldOptions options = 8; |
| 4655 | if (has_options()) { |
| 4656 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4657 | InternalWriteMessageNoVirtualToArray( |
| 4658 | 8, *this->options_, false, target); |
| 4659 | } |
| 4660 | |
| 4661 | // optional int32 oneof_index = 9; |
| 4662 | if (has_oneof_index()) { |
| 4663 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->oneof_index(), target); |
| 4664 | } |
| 4665 | |
| 4666 | // optional string json_name = 10; |
| 4667 | if (has_json_name()) { |
| 4668 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 4669 | this->json_name().data(), this->json_name().length(), |
| 4670 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 4671 | "google.protobuf.FieldDescriptorProto.json_name"); |
| 4672 | target = |
| 4673 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4674 | 10, this->json_name(), target); |
| 4675 | } |
| 4676 | |
| 4677 | if (_internal_metadata_.have_unknown_fields()) { |
| 4678 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4679 | unknown_fields(), target); |
| 4680 | } |
| 4681 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldDescriptorProto) |
| 4682 | return target; |
| 4683 | } |
| 4684 | |
| 4685 | size_t FieldDescriptorProto::ByteSizeLong() const { |
| 4686 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescriptorProto) |
| 4687 | size_t total_size = 0; |
| 4688 | |
| 4689 | if (_internal_metadata_.have_unknown_fields()) { |
| 4690 | total_size += |
| 4691 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4692 | unknown_fields()); |
| 4693 | } |
| 4694 | if (_has_bits_[0 / 32] & 255u) { |
| 4695 | // optional string name = 1; |
| 4696 | if (has_name()) { |
| 4697 | total_size += 1 + |
| 4698 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4699 | this->name()); |
| 4700 | } |
| 4701 | |
| 4702 | // optional string type_name = 6; |
| 4703 | if (has_type_name()) { |
| 4704 | total_size += 1 + |
| 4705 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4706 | this->type_name()); |
| 4707 | } |
| 4708 | |
| 4709 | // optional string extendee = 2; |
| 4710 | if (has_extendee()) { |
| 4711 | total_size += 1 + |
| 4712 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4713 | this->extendee()); |
| 4714 | } |
| 4715 | |
| 4716 | // optional string default_value = 7; |
| 4717 | if (has_default_value()) { |
| 4718 | total_size += 1 + |
| 4719 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4720 | this->default_value()); |
| 4721 | } |
| 4722 | |
| 4723 | // optional string json_name = 10; |
| 4724 | if (has_json_name()) { |
| 4725 | total_size += 1 + |
| 4726 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4727 | this->json_name()); |
| 4728 | } |
| 4729 | |
| 4730 | // optional .google.protobuf.FieldOptions options = 8; |
| 4731 | if (has_options()) { |
| 4732 | total_size += 1 + |
| 4733 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 4734 | *this->options_); |
| 4735 | } |
| 4736 | |
| 4737 | // optional int32 number = 3; |
| 4738 | if (has_number()) { |
| 4739 | total_size += 1 + |
| 4740 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 4741 | this->number()); |
| 4742 | } |
| 4743 | |
| 4744 | // optional int32 oneof_index = 9; |
| 4745 | if (has_oneof_index()) { |
| 4746 | total_size += 1 + |
| 4747 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 4748 | this->oneof_index()); |
| 4749 | } |
| 4750 | |
| 4751 | } |
| 4752 | if (_has_bits_[8 / 32] & 768u) { |
| 4753 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4754 | if (has_label()) { |
| 4755 | total_size += 1 + |
| 4756 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->label()); |
| 4757 | } |
| 4758 | |
| 4759 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4760 | if (has_type()) { |
| 4761 | total_size += 1 + |
| 4762 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
| 4763 | } |
| 4764 | |
| 4765 | } |
| 4766 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4767 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 4768 | _cached_size_ = cached_size; |
| 4769 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 4770 | return total_size; |
| 4771 | } |
| 4772 | |
| 4773 | void FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 4774 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldDescriptorProto) |
| 4775 | GOOGLE_DCHECK_NE(&from, this); |
| 4776 | const FieldDescriptorProto* source = |
| 4777 | ::google::protobuf::internal::DynamicCastToGenerated<const FieldDescriptorProto>( |
| 4778 | &from); |
| 4779 | if (source == NULL) { |
| 4780 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldDescriptorProto) |
| 4781 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4782 | } else { |
| 4783 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldDescriptorProto) |
| 4784 | MergeFrom(*source); |
| 4785 | } |
| 4786 | } |
| 4787 | |
| 4788 | void FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) { |
| 4789 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldDescriptorProto) |
| 4790 | GOOGLE_DCHECK_NE(&from, this); |
| 4791 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4792 | if (from._has_bits_[0 / 32] & 255u) { |
| 4793 | if (from.has_name()) { |
| 4794 | set_has_name(); |
| 4795 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4796 | } |
| 4797 | if (from.has_type_name()) { |
| 4798 | set_has_type_name(); |
| 4799 | type_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_name_); |
| 4800 | } |
| 4801 | if (from.has_extendee()) { |
| 4802 | set_has_extendee(); |
| 4803 | extendee_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.extendee_); |
| 4804 | } |
| 4805 | if (from.has_default_value()) { |
| 4806 | set_has_default_value(); |
| 4807 | default_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.default_value_); |
| 4808 | } |
| 4809 | if (from.has_json_name()) { |
| 4810 | set_has_json_name(); |
| 4811 | json_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.json_name_); |
| 4812 | } |
| 4813 | if (from.has_options()) { |
| 4814 | mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options()); |
| 4815 | } |
| 4816 | if (from.has_number()) { |
| 4817 | set_number(from.number()); |
| 4818 | } |
| 4819 | if (from.has_oneof_index()) { |
| 4820 | set_oneof_index(from.oneof_index()); |
| 4821 | } |
| 4822 | } |
| 4823 | if (from._has_bits_[8 / 32] & 768u) { |
| 4824 | if (from.has_label()) { |
| 4825 | set_label(from.label()); |
| 4826 | } |
| 4827 | if (from.has_type()) { |
| 4828 | set_type(from.type()); |
| 4829 | } |
| 4830 | } |
| 4831 | } |
| 4832 | |
| 4833 | void FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 4834 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldDescriptorProto) |
| 4835 | if (&from == this) return; |
| 4836 | Clear(); |
| 4837 | MergeFrom(from); |
| 4838 | } |
| 4839 | |
| 4840 | void FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) { |
| 4841 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldDescriptorProto) |
| 4842 | if (&from == this) return; |
| 4843 | Clear(); |
| 4844 | MergeFrom(from); |
| 4845 | } |
| 4846 | |
| 4847 | bool FieldDescriptorProto::IsInitialized() const { |
| 4848 | if (has_options()) { |
| 4849 | if (!this->options_->IsInitialized()) return false; |
| 4850 | } |
| 4851 | return true; |
| 4852 | } |
| 4853 | |
| 4854 | void FieldDescriptorProto::Swap(FieldDescriptorProto* other) { |
| 4855 | if (other == this) return; |
| 4856 | InternalSwap(other); |
| 4857 | } |
| 4858 | void FieldDescriptorProto::InternalSwap(FieldDescriptorProto* other) { |
| 4859 | name_.Swap(&other->name_); |
| 4860 | type_name_.Swap(&other->type_name_); |
| 4861 | extendee_.Swap(&other->extendee_); |
| 4862 | default_value_.Swap(&other->default_value_); |
| 4863 | json_name_.Swap(&other->json_name_); |
| 4864 | std::swap(options_, other->options_); |
| 4865 | std::swap(number_, other->number_); |
| 4866 | std::swap(oneof_index_, other->oneof_index_); |
| 4867 | std::swap(label_, other->label_); |
| 4868 | std::swap(type_, other->type_); |
| 4869 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 4870 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4871 | std::swap(_cached_size_, other->_cached_size_); |
| 4872 | } |
| 4873 | |
| 4874 | ::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const { |
| 4875 | protobuf_AssignDescriptorsOnce(); |
| 4876 | return file_level_metadata[5]; |
| 4877 | } |
| 4878 | |
| 4879 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 4880 | // FieldDescriptorProto |
| 4881 | |
| 4882 | // optional string name = 1; |
| 4883 | bool FieldDescriptorProto::has_name() const { |
| 4884 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 4885 | } |
| 4886 | void FieldDescriptorProto::set_has_name() { |
| 4887 | _has_bits_[0] |= 0x00000001u; |
| 4888 | } |
| 4889 | void FieldDescriptorProto::clear_has_name() { |
| 4890 | _has_bits_[0] &= ~0x00000001u; |
| 4891 | } |
| 4892 | void FieldDescriptorProto::clear_name() { |
| 4893 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4894 | clear_has_name(); |
| 4895 | } |
| 4896 | const ::std::string& FieldDescriptorProto::name() const { |
| 4897 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name) |
| 4898 | return name_.GetNoArena(); |
| 4899 | } |
| 4900 | void FieldDescriptorProto::set_name(const ::std::string& value) { |
| 4901 | set_has_name(); |
| 4902 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 4903 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name) |
| 4904 | } |
| 4905 | #if LANG_CXX11 |
| 4906 | void FieldDescriptorProto::set_name(::std::string&& value) { |
| 4907 | set_has_name(); |
| 4908 | name_.SetNoArena( |
| 4909 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 4910 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.name) |
| 4911 | } |
| 4912 | #endif |
| 4913 | void FieldDescriptorProto::set_name(const char* value) { |
| 4914 | set_has_name(); |
| 4915 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 4916 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name) |
| 4917 | } |
| 4918 | void FieldDescriptorProto::set_name(const char* value, size_t size) { |
| 4919 | set_has_name(); |
| 4920 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4921 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 4922 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name) |
| 4923 | } |
| 4924 | ::std::string* FieldDescriptorProto::mutable_name() { |
| 4925 | set_has_name(); |
| 4926 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name) |
| 4927 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4928 | } |
| 4929 | ::std::string* FieldDescriptorProto::release_name() { |
| 4930 | // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name) |
| 4931 | clear_has_name(); |
| 4932 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4933 | } |
| 4934 | void FieldDescriptorProto::set_allocated_name(::std::string* name) { |
| 4935 | if (name != NULL) { |
| 4936 | set_has_name(); |
| 4937 | } else { |
| 4938 | clear_has_name(); |
| 4939 | } |
| 4940 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 4941 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name) |
| 4942 | } |
| 4943 | |
| 4944 | // optional int32 number = 3; |
| 4945 | bool FieldDescriptorProto::has_number() const { |
| 4946 | return (_has_bits_[0] & 0x00000040u) != 0; |
| 4947 | } |
| 4948 | void FieldDescriptorProto::set_has_number() { |
| 4949 | _has_bits_[0] |= 0x00000040u; |
| 4950 | } |
| 4951 | void FieldDescriptorProto::clear_has_number() { |
| 4952 | _has_bits_[0] &= ~0x00000040u; |
| 4953 | } |
| 4954 | void FieldDescriptorProto::clear_number() { |
| 4955 | number_ = 0; |
| 4956 | clear_has_number(); |
| 4957 | } |
| 4958 | ::google::protobuf::int32 FieldDescriptorProto::number() const { |
| 4959 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number) |
| 4960 | return number_; |
| 4961 | } |
| 4962 | void FieldDescriptorProto::set_number(::google::protobuf::int32 value) { |
| 4963 | set_has_number(); |
| 4964 | number_ = value; |
| 4965 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number) |
| 4966 | } |
| 4967 | |
| 4968 | // optional .google.protobuf.FieldDescriptorProto.Label label = 4; |
| 4969 | bool FieldDescriptorProto::has_label() const { |
| 4970 | return (_has_bits_[0] & 0x00000100u) != 0; |
| 4971 | } |
| 4972 | void FieldDescriptorProto::set_has_label() { |
| 4973 | _has_bits_[0] |= 0x00000100u; |
| 4974 | } |
| 4975 | void FieldDescriptorProto::clear_has_label() { |
| 4976 | _has_bits_[0] &= ~0x00000100u; |
| 4977 | } |
| 4978 | void FieldDescriptorProto::clear_label() { |
| 4979 | label_ = 1; |
| 4980 | clear_has_label(); |
| 4981 | } |
| 4982 | ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const { |
| 4983 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label) |
| 4984 | return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_); |
| 4985 | } |
| 4986 | void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) { |
| 4987 | assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value)); |
| 4988 | set_has_label(); |
| 4989 | label_ = value; |
| 4990 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label) |
| 4991 | } |
| 4992 | |
| 4993 | // optional .google.protobuf.FieldDescriptorProto.Type type = 5; |
| 4994 | bool FieldDescriptorProto::has_type() const { |
| 4995 | return (_has_bits_[0] & 0x00000200u) != 0; |
| 4996 | } |
| 4997 | void FieldDescriptorProto::set_has_type() { |
| 4998 | _has_bits_[0] |= 0x00000200u; |
| 4999 | } |
| 5000 | void FieldDescriptorProto::clear_has_type() { |
| 5001 | _has_bits_[0] &= ~0x00000200u; |
| 5002 | } |
| 5003 | void FieldDescriptorProto::clear_type() { |
| 5004 | type_ = 1; |
| 5005 | clear_has_type(); |
| 5006 | } |
| 5007 | ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const { |
| 5008 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type) |
| 5009 | return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_); |
| 5010 | } |
| 5011 | void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) { |
| 5012 | assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value)); |
| 5013 | set_has_type(); |
| 5014 | type_ = value; |
| 5015 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type) |
| 5016 | } |
| 5017 | |
| 5018 | // optional string type_name = 6; |
| 5019 | bool FieldDescriptorProto::has_type_name() const { |
| 5020 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 5021 | } |
| 5022 | void FieldDescriptorProto::set_has_type_name() { |
| 5023 | _has_bits_[0] |= 0x00000002u; |
| 5024 | } |
| 5025 | void FieldDescriptorProto::clear_has_type_name() { |
| 5026 | _has_bits_[0] &= ~0x00000002u; |
| 5027 | } |
| 5028 | void FieldDescriptorProto::clear_type_name() { |
| 5029 | type_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5030 | clear_has_type_name(); |
| 5031 | } |
| 5032 | const ::std::string& FieldDescriptorProto::type_name() const { |
| 5033 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name) |
| 5034 | return type_name_.GetNoArena(); |
| 5035 | } |
| 5036 | void FieldDescriptorProto::set_type_name(const ::std::string& value) { |
| 5037 | set_has_type_name(); |
| 5038 | type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5039 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name) |
| 5040 | } |
| 5041 | #if LANG_CXX11 |
| 5042 | void FieldDescriptorProto::set_type_name(::std::string&& value) { |
| 5043 | set_has_type_name(); |
| 5044 | type_name_.SetNoArena( |
| 5045 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 5046 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.type_name) |
| 5047 | } |
| 5048 | #endif |
| 5049 | void FieldDescriptorProto::set_type_name(const char* value) { |
| 5050 | set_has_type_name(); |
| 5051 | type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5052 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name) |
| 5053 | } |
| 5054 | void FieldDescriptorProto::set_type_name(const char* value, size_t size) { |
| 5055 | set_has_type_name(); |
| 5056 | type_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5057 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5058 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name) |
| 5059 | } |
| 5060 | ::std::string* FieldDescriptorProto::mutable_type_name() { |
| 5061 | set_has_type_name(); |
| 5062 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name) |
| 5063 | return type_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5064 | } |
| 5065 | ::std::string* FieldDescriptorProto::release_type_name() { |
| 5066 | // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name) |
| 5067 | clear_has_type_name(); |
| 5068 | return type_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5069 | } |
| 5070 | void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) { |
| 5071 | if (type_name != NULL) { |
| 5072 | set_has_type_name(); |
| 5073 | } else { |
| 5074 | clear_has_type_name(); |
| 5075 | } |
| 5076 | type_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name); |
| 5077 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name) |
| 5078 | } |
| 5079 | |
| 5080 | // optional string extendee = 2; |
| 5081 | bool FieldDescriptorProto::has_extendee() const { |
| 5082 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 5083 | } |
| 5084 | void FieldDescriptorProto::set_has_extendee() { |
| 5085 | _has_bits_[0] |= 0x00000004u; |
| 5086 | } |
| 5087 | void FieldDescriptorProto::clear_has_extendee() { |
| 5088 | _has_bits_[0] &= ~0x00000004u; |
| 5089 | } |
| 5090 | void FieldDescriptorProto::clear_extendee() { |
| 5091 | extendee_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5092 | clear_has_extendee(); |
| 5093 | } |
| 5094 | const ::std::string& FieldDescriptorProto::extendee() const { |
| 5095 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee) |
| 5096 | return extendee_.GetNoArena(); |
| 5097 | } |
| 5098 | void FieldDescriptorProto::set_extendee(const ::std::string& value) { |
| 5099 | set_has_extendee(); |
| 5100 | extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5101 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee) |
| 5102 | } |
| 5103 | #if LANG_CXX11 |
| 5104 | void FieldDescriptorProto::set_extendee(::std::string&& value) { |
| 5105 | set_has_extendee(); |
| 5106 | extendee_.SetNoArena( |
| 5107 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 5108 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.extendee) |
| 5109 | } |
| 5110 | #endif |
| 5111 | void FieldDescriptorProto::set_extendee(const char* value) { |
| 5112 | set_has_extendee(); |
| 5113 | extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5114 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee) |
| 5115 | } |
| 5116 | void FieldDescriptorProto::set_extendee(const char* value, size_t size) { |
| 5117 | set_has_extendee(); |
| 5118 | extendee_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5119 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5120 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee) |
| 5121 | } |
| 5122 | ::std::string* FieldDescriptorProto::mutable_extendee() { |
| 5123 | set_has_extendee(); |
| 5124 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee) |
| 5125 | return extendee_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5126 | } |
| 5127 | ::std::string* FieldDescriptorProto::release_extendee() { |
| 5128 | // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee) |
| 5129 | clear_has_extendee(); |
| 5130 | return extendee_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5131 | } |
| 5132 | void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) { |
| 5133 | if (extendee != NULL) { |
| 5134 | set_has_extendee(); |
| 5135 | } else { |
| 5136 | clear_has_extendee(); |
| 5137 | } |
| 5138 | extendee_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extendee); |
| 5139 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee) |
| 5140 | } |
| 5141 | |
| 5142 | // optional string default_value = 7; |
| 5143 | bool FieldDescriptorProto::has_default_value() const { |
| 5144 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 5145 | } |
| 5146 | void FieldDescriptorProto::set_has_default_value() { |
| 5147 | _has_bits_[0] |= 0x00000008u; |
| 5148 | } |
| 5149 | void FieldDescriptorProto::clear_has_default_value() { |
| 5150 | _has_bits_[0] &= ~0x00000008u; |
| 5151 | } |
| 5152 | void FieldDescriptorProto::clear_default_value() { |
| 5153 | default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5154 | clear_has_default_value(); |
| 5155 | } |
| 5156 | const ::std::string& FieldDescriptorProto::default_value() const { |
| 5157 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value) |
| 5158 | return default_value_.GetNoArena(); |
| 5159 | } |
| 5160 | void FieldDescriptorProto::set_default_value(const ::std::string& value) { |
| 5161 | set_has_default_value(); |
| 5162 | default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5163 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value) |
| 5164 | } |
| 5165 | #if LANG_CXX11 |
| 5166 | void FieldDescriptorProto::set_default_value(::std::string&& value) { |
| 5167 | set_has_default_value(); |
| 5168 | default_value_.SetNoArena( |
| 5169 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 5170 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.default_value) |
| 5171 | } |
| 5172 | #endif |
| 5173 | void FieldDescriptorProto::set_default_value(const char* value) { |
| 5174 | set_has_default_value(); |
| 5175 | default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5176 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value) |
| 5177 | } |
| 5178 | void FieldDescriptorProto::set_default_value(const char* value, size_t size) { |
| 5179 | set_has_default_value(); |
| 5180 | default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5181 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5182 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value) |
| 5183 | } |
| 5184 | ::std::string* FieldDescriptorProto::mutable_default_value() { |
| 5185 | set_has_default_value(); |
| 5186 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value) |
| 5187 | return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5188 | } |
| 5189 | ::std::string* FieldDescriptorProto::release_default_value() { |
| 5190 | // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value) |
| 5191 | clear_has_default_value(); |
| 5192 | return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5193 | } |
| 5194 | void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) { |
| 5195 | if (default_value != NULL) { |
| 5196 | set_has_default_value(); |
| 5197 | } else { |
| 5198 | clear_has_default_value(); |
| 5199 | } |
| 5200 | default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value); |
| 5201 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value) |
| 5202 | } |
| 5203 | |
| 5204 | // optional int32 oneof_index = 9; |
| 5205 | bool FieldDescriptorProto::has_oneof_index() const { |
| 5206 | return (_has_bits_[0] & 0x00000080u) != 0; |
| 5207 | } |
| 5208 | void FieldDescriptorProto::set_has_oneof_index() { |
| 5209 | _has_bits_[0] |= 0x00000080u; |
| 5210 | } |
| 5211 | void FieldDescriptorProto::clear_has_oneof_index() { |
| 5212 | _has_bits_[0] &= ~0x00000080u; |
| 5213 | } |
| 5214 | void FieldDescriptorProto::clear_oneof_index() { |
| 5215 | oneof_index_ = 0; |
| 5216 | clear_has_oneof_index(); |
| 5217 | } |
| 5218 | ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const { |
| 5219 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index) |
| 5220 | return oneof_index_; |
| 5221 | } |
| 5222 | void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) { |
| 5223 | set_has_oneof_index(); |
| 5224 | oneof_index_ = value; |
| 5225 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index) |
| 5226 | } |
| 5227 | |
| 5228 | // optional string json_name = 10; |
| 5229 | bool FieldDescriptorProto::has_json_name() const { |
| 5230 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 5231 | } |
| 5232 | void FieldDescriptorProto::set_has_json_name() { |
| 5233 | _has_bits_[0] |= 0x00000010u; |
| 5234 | } |
| 5235 | void FieldDescriptorProto::clear_has_json_name() { |
| 5236 | _has_bits_[0] &= ~0x00000010u; |
| 5237 | } |
| 5238 | void FieldDescriptorProto::clear_json_name() { |
| 5239 | json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5240 | clear_has_json_name(); |
| 5241 | } |
| 5242 | const ::std::string& FieldDescriptorProto::json_name() const { |
| 5243 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name) |
| 5244 | return json_name_.GetNoArena(); |
| 5245 | } |
| 5246 | void FieldDescriptorProto::set_json_name(const ::std::string& value) { |
| 5247 | set_has_json_name(); |
| 5248 | json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5249 | // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name) |
| 5250 | } |
| 5251 | #if LANG_CXX11 |
| 5252 | void FieldDescriptorProto::set_json_name(::std::string&& value) { |
| 5253 | set_has_json_name(); |
| 5254 | json_name_.SetNoArena( |
| 5255 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 5256 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.json_name) |
| 5257 | } |
| 5258 | #endif |
| 5259 | void FieldDescriptorProto::set_json_name(const char* value) { |
| 5260 | set_has_json_name(); |
| 5261 | json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5262 | // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name) |
| 5263 | } |
| 5264 | void FieldDescriptorProto::set_json_name(const char* value, size_t size) { |
| 5265 | set_has_json_name(); |
| 5266 | json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5267 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5268 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name) |
| 5269 | } |
| 5270 | ::std::string* FieldDescriptorProto::mutable_json_name() { |
| 5271 | set_has_json_name(); |
| 5272 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name) |
| 5273 | return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5274 | } |
| 5275 | ::std::string* FieldDescriptorProto::release_json_name() { |
| 5276 | // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name) |
| 5277 | clear_has_json_name(); |
| 5278 | return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5279 | } |
| 5280 | void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { |
| 5281 | if (json_name != NULL) { |
| 5282 | set_has_json_name(); |
| 5283 | } else { |
| 5284 | clear_has_json_name(); |
| 5285 | } |
| 5286 | json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name); |
| 5287 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name) |
| 5288 | } |
| 5289 | |
| 5290 | // optional .google.protobuf.FieldOptions options = 8; |
| 5291 | bool FieldDescriptorProto::has_options() const { |
| 5292 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 5293 | } |
| 5294 | void FieldDescriptorProto::set_has_options() { |
| 5295 | _has_bits_[0] |= 0x00000020u; |
| 5296 | } |
| 5297 | void FieldDescriptorProto::clear_has_options() { |
| 5298 | _has_bits_[0] &= ~0x00000020u; |
| 5299 | } |
| 5300 | void FieldDescriptorProto::clear_options() { |
| 5301 | if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear(); |
| 5302 | clear_has_options(); |
| 5303 | } |
| 5304 | const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const { |
| 5305 | // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options) |
| 5306 | return options_ != NULL ? *options_ |
| 5307 | : *::google::protobuf::FieldOptions::internal_default_instance(); |
| 5308 | } |
| 5309 | ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() { |
| 5310 | set_has_options(); |
| 5311 | if (options_ == NULL) { |
| 5312 | options_ = new ::google::protobuf::FieldOptions; |
| 5313 | } |
| 5314 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options) |
| 5315 | return options_; |
| 5316 | } |
| 5317 | ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() { |
| 5318 | // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options) |
| 5319 | clear_has_options(); |
| 5320 | ::google::protobuf::FieldOptions* temp = options_; |
| 5321 | options_ = NULL; |
| 5322 | return temp; |
| 5323 | } |
| 5324 | void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) { |
| 5325 | delete options_; |
| 5326 | options_ = options; |
| 5327 | if (options) { |
| 5328 | set_has_options(); |
| 5329 | } else { |
| 5330 | clear_has_options(); |
| 5331 | } |
| 5332 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options) |
| 5333 | } |
| 5334 | |
| 5335 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5336 | |
| 5337 | // =================================================================== |
| 5338 | |
| 5339 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5340 | const int OneofDescriptorProto::kNameFieldNumber; |
| 5341 | const int OneofDescriptorProto::kOptionsFieldNumber; |
| 5342 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5343 | |
| 5344 | OneofDescriptorProto::OneofDescriptorProto() |
| 5345 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 5346 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 5347 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 5348 | } |
| 5349 | SharedCtor(); |
| 5350 | // @@protoc_insertion_point(constructor:google.protobuf.OneofDescriptorProto) |
| 5351 | } |
| 5352 | OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) |
| 5353 | : ::google::protobuf::Message(), |
| 5354 | _internal_metadata_(NULL), |
| 5355 | _has_bits_(from._has_bits_), |
| 5356 | _cached_size_(0) { |
| 5357 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5358 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5359 | if (from.has_name()) { |
| 5360 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 5361 | } |
| 5362 | if (from.has_options()) { |
| 5363 | options_ = new ::google::protobuf::OneofOptions(*from.options_); |
| 5364 | } else { |
| 5365 | options_ = NULL; |
| 5366 | } |
| 5367 | // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto) |
| 5368 | } |
| 5369 | |
| 5370 | void OneofDescriptorProto::SharedCtor() { |
| 5371 | _cached_size_ = 0; |
| 5372 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5373 | options_ = NULL; |
| 5374 | } |
| 5375 | |
| 5376 | OneofDescriptorProto::~OneofDescriptorProto() { |
| 5377 | // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto) |
| 5378 | SharedDtor(); |
| 5379 | } |
| 5380 | |
| 5381 | void OneofDescriptorProto::SharedDtor() { |
| 5382 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5383 | if (this != internal_default_instance()) { |
| 5384 | delete options_; |
| 5385 | } |
| 5386 | } |
| 5387 | |
| 5388 | void OneofDescriptorProto::SetCachedSize(int size) const { |
| 5389 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5390 | _cached_size_ = size; |
| 5391 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5392 | } |
| 5393 | const ::google::protobuf::Descriptor* OneofDescriptorProto::descriptor() { |
| 5394 | protobuf_AssignDescriptorsOnce(); |
| 5395 | return file_level_metadata[6].descriptor; |
| 5396 | } |
| 5397 | |
| 5398 | const OneofDescriptorProto& OneofDescriptorProto::default_instance() { |
| 5399 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 5400 | return *internal_default_instance(); |
| 5401 | } |
| 5402 | |
| 5403 | OneofDescriptorProto* OneofDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 5404 | OneofDescriptorProto* n = new OneofDescriptorProto; |
| 5405 | if (arena != NULL) { |
| 5406 | arena->Own(n); |
| 5407 | } |
| 5408 | return n; |
| 5409 | } |
| 5410 | |
| 5411 | void OneofDescriptorProto::Clear() { |
| 5412 | // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofDescriptorProto) |
| 5413 | if (_has_bits_[0 / 32] & 3u) { |
| 5414 | if (has_name()) { |
| 5415 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 5416 | (*name_.UnsafeRawStringPointer())->clear(); |
| 5417 | } |
| 5418 | if (has_options()) { |
| 5419 | GOOGLE_DCHECK(options_ != NULL); |
| 5420 | options_->::google::protobuf::OneofOptions::Clear(); |
| 5421 | } |
| 5422 | } |
| 5423 | _has_bits_.Clear(); |
| 5424 | _internal_metadata_.Clear(); |
| 5425 | } |
| 5426 | |
| 5427 | bool OneofDescriptorProto::MergePartialFromCodedStream( |
| 5428 | ::google::protobuf::io::CodedInputStream* input) { |
| 5429 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5430 | ::google::protobuf::uint32 tag; |
| 5431 | // @@protoc_insertion_point(parse_start:google.protobuf.OneofDescriptorProto) |
| 5432 | for (;;) { |
| 5433 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5434 | tag = p.first; |
| 5435 | if (!p.second) goto handle_unusual; |
| 5436 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5437 | // optional string name = 1; |
| 5438 | case 1: { |
| 5439 | if (tag == 10u) { |
| 5440 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5441 | input, this->mutable_name())); |
| 5442 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5443 | this->name().data(), this->name().length(), |
| 5444 | ::google::protobuf::internal::WireFormat::PARSE, |
| 5445 | "google.protobuf.OneofDescriptorProto.name"); |
| 5446 | } else { |
| 5447 | goto handle_unusual; |
| 5448 | } |
| 5449 | break; |
| 5450 | } |
| 5451 | |
| 5452 | // optional .google.protobuf.OneofOptions options = 2; |
| 5453 | case 2: { |
| 5454 | if (tag == 18u) { |
| 5455 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 5456 | input, mutable_options())); |
| 5457 | } else { |
| 5458 | goto handle_unusual; |
| 5459 | } |
| 5460 | break; |
| 5461 | } |
| 5462 | |
| 5463 | default: { |
| 5464 | handle_unusual: |
| 5465 | if (tag == 0 || |
| 5466 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 5467 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 5468 | goto success; |
| 5469 | } |
| 5470 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5471 | input, tag, mutable_unknown_fields())); |
| 5472 | break; |
| 5473 | } |
| 5474 | } |
| 5475 | } |
| 5476 | success: |
| 5477 | // @@protoc_insertion_point(parse_success:google.protobuf.OneofDescriptorProto) |
| 5478 | return true; |
| 5479 | failure: |
| 5480 | // @@protoc_insertion_point(parse_failure:google.protobuf.OneofDescriptorProto) |
| 5481 | return false; |
| 5482 | #undef DO_ |
| 5483 | } |
| 5484 | |
| 5485 | void OneofDescriptorProto::SerializeWithCachedSizes( |
| 5486 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5487 | // @@protoc_insertion_point(serialize_start:google.protobuf.OneofDescriptorProto) |
| 5488 | // optional string name = 1; |
| 5489 | if (has_name()) { |
| 5490 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5491 | this->name().data(), this->name().length(), |
| 5492 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5493 | "google.protobuf.OneofDescriptorProto.name"); |
| 5494 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 5495 | 1, this->name(), output); |
| 5496 | } |
| 5497 | |
| 5498 | // optional .google.protobuf.OneofOptions options = 2; |
| 5499 | if (has_options()) { |
| 5500 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5501 | 2, *this->options_, output); |
| 5502 | } |
| 5503 | |
| 5504 | if (_internal_metadata_.have_unknown_fields()) { |
| 5505 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5506 | unknown_fields(), output); |
| 5507 | } |
| 5508 | // @@protoc_insertion_point(serialize_end:google.protobuf.OneofDescriptorProto) |
| 5509 | } |
| 5510 | |
| 5511 | ::google::protobuf::uint8* OneofDescriptorProto::InternalSerializeWithCachedSizesToArray( |
| 5512 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 5513 | (void)deterministic; // Unused |
| 5514 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto) |
| 5515 | // optional string name = 1; |
| 5516 | if (has_name()) { |
| 5517 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5518 | this->name().data(), this->name().length(), |
| 5519 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5520 | "google.protobuf.OneofDescriptorProto.name"); |
| 5521 | target = |
| 5522 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5523 | 1, this->name(), target); |
| 5524 | } |
| 5525 | |
| 5526 | // optional .google.protobuf.OneofOptions options = 2; |
| 5527 | if (has_options()) { |
| 5528 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5529 | InternalWriteMessageNoVirtualToArray( |
| 5530 | 2, *this->options_, false, target); |
| 5531 | } |
| 5532 | |
| 5533 | if (_internal_metadata_.have_unknown_fields()) { |
| 5534 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5535 | unknown_fields(), target); |
| 5536 | } |
| 5537 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofDescriptorProto) |
| 5538 | return target; |
| 5539 | } |
| 5540 | |
| 5541 | size_t OneofDescriptorProto::ByteSizeLong() const { |
| 5542 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofDescriptorProto) |
| 5543 | size_t total_size = 0; |
| 5544 | |
| 5545 | if (_internal_metadata_.have_unknown_fields()) { |
| 5546 | total_size += |
| 5547 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5548 | unknown_fields()); |
| 5549 | } |
| 5550 | if (_has_bits_[0 / 32] & 3u) { |
| 5551 | // optional string name = 1; |
| 5552 | if (has_name()) { |
| 5553 | total_size += 1 + |
| 5554 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 5555 | this->name()); |
| 5556 | } |
| 5557 | |
| 5558 | // optional .google.protobuf.OneofOptions options = 2; |
| 5559 | if (has_options()) { |
| 5560 | total_size += 1 + |
| 5561 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 5562 | *this->options_); |
| 5563 | } |
| 5564 | |
| 5565 | } |
| 5566 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5567 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5568 | _cached_size_ = cached_size; |
| 5569 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5570 | return total_size; |
| 5571 | } |
| 5572 | |
| 5573 | void OneofDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 5574 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofDescriptorProto) |
| 5575 | GOOGLE_DCHECK_NE(&from, this); |
| 5576 | const OneofDescriptorProto* source = |
| 5577 | ::google::protobuf::internal::DynamicCastToGenerated<const OneofDescriptorProto>( |
| 5578 | &from); |
| 5579 | if (source == NULL) { |
| 5580 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.OneofDescriptorProto) |
| 5581 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5582 | } else { |
| 5583 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofDescriptorProto) |
| 5584 | MergeFrom(*source); |
| 5585 | } |
| 5586 | } |
| 5587 | |
| 5588 | void OneofDescriptorProto::MergeFrom(const OneofDescriptorProto& from) { |
| 5589 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofDescriptorProto) |
| 5590 | GOOGLE_DCHECK_NE(&from, this); |
| 5591 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5592 | if (from._has_bits_[0 / 32] & 3u) { |
| 5593 | if (from.has_name()) { |
| 5594 | set_has_name(); |
| 5595 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 5596 | } |
| 5597 | if (from.has_options()) { |
| 5598 | mutable_options()->::google::protobuf::OneofOptions::MergeFrom(from.options()); |
| 5599 | } |
| 5600 | } |
| 5601 | } |
| 5602 | |
| 5603 | void OneofDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 5604 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofDescriptorProto) |
| 5605 | if (&from == this) return; |
| 5606 | Clear(); |
| 5607 | MergeFrom(from); |
| 5608 | } |
| 5609 | |
| 5610 | void OneofDescriptorProto::CopyFrom(const OneofDescriptorProto& from) { |
| 5611 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofDescriptorProto) |
| 5612 | if (&from == this) return; |
| 5613 | Clear(); |
| 5614 | MergeFrom(from); |
| 5615 | } |
| 5616 | |
| 5617 | bool OneofDescriptorProto::IsInitialized() const { |
| 5618 | if (has_options()) { |
| 5619 | if (!this->options_->IsInitialized()) return false; |
| 5620 | } |
| 5621 | return true; |
| 5622 | } |
| 5623 | |
| 5624 | void OneofDescriptorProto::Swap(OneofDescriptorProto* other) { |
| 5625 | if (other == this) return; |
| 5626 | InternalSwap(other); |
| 5627 | } |
| 5628 | void OneofDescriptorProto::InternalSwap(OneofDescriptorProto* other) { |
| 5629 | name_.Swap(&other->name_); |
| 5630 | std::swap(options_, other->options_); |
| 5631 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 5632 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5633 | std::swap(_cached_size_, other->_cached_size_); |
| 5634 | } |
| 5635 | |
| 5636 | ::google::protobuf::Metadata OneofDescriptorProto::GetMetadata() const { |
| 5637 | protobuf_AssignDescriptorsOnce(); |
| 5638 | return file_level_metadata[6]; |
| 5639 | } |
| 5640 | |
| 5641 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5642 | // OneofDescriptorProto |
| 5643 | |
| 5644 | // optional string name = 1; |
| 5645 | bool OneofDescriptorProto::has_name() const { |
| 5646 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 5647 | } |
| 5648 | void OneofDescriptorProto::set_has_name() { |
| 5649 | _has_bits_[0] |= 0x00000001u; |
| 5650 | } |
| 5651 | void OneofDescriptorProto::clear_has_name() { |
| 5652 | _has_bits_[0] &= ~0x00000001u; |
| 5653 | } |
| 5654 | void OneofDescriptorProto::clear_name() { |
| 5655 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5656 | clear_has_name(); |
| 5657 | } |
| 5658 | const ::std::string& OneofDescriptorProto::name() const { |
| 5659 | // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name) |
| 5660 | return name_.GetNoArena(); |
| 5661 | } |
| 5662 | void OneofDescriptorProto::set_name(const ::std::string& value) { |
| 5663 | set_has_name(); |
| 5664 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 5665 | // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name) |
| 5666 | } |
| 5667 | #if LANG_CXX11 |
| 5668 | void OneofDescriptorProto::set_name(::std::string&& value) { |
| 5669 | set_has_name(); |
| 5670 | name_.SetNoArena( |
| 5671 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 5672 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.OneofDescriptorProto.name) |
| 5673 | } |
| 5674 | #endif |
| 5675 | void OneofDescriptorProto::set_name(const char* value) { |
| 5676 | set_has_name(); |
| 5677 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 5678 | // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name) |
| 5679 | } |
| 5680 | void OneofDescriptorProto::set_name(const char* value, size_t size) { |
| 5681 | set_has_name(); |
| 5682 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5683 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 5684 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name) |
| 5685 | } |
| 5686 | ::std::string* OneofDescriptorProto::mutable_name() { |
| 5687 | set_has_name(); |
| 5688 | // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name) |
| 5689 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5690 | } |
| 5691 | ::std::string* OneofDescriptorProto::release_name() { |
| 5692 | // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name) |
| 5693 | clear_has_name(); |
| 5694 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5695 | } |
| 5696 | void OneofDescriptorProto::set_allocated_name(::std::string* name) { |
| 5697 | if (name != NULL) { |
| 5698 | set_has_name(); |
| 5699 | } else { |
| 5700 | clear_has_name(); |
| 5701 | } |
| 5702 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 5703 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name) |
| 5704 | } |
| 5705 | |
| 5706 | // optional .google.protobuf.OneofOptions options = 2; |
| 5707 | bool OneofDescriptorProto::has_options() const { |
| 5708 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 5709 | } |
| 5710 | void OneofDescriptorProto::set_has_options() { |
| 5711 | _has_bits_[0] |= 0x00000002u; |
| 5712 | } |
| 5713 | void OneofDescriptorProto::clear_has_options() { |
| 5714 | _has_bits_[0] &= ~0x00000002u; |
| 5715 | } |
| 5716 | void OneofDescriptorProto::clear_options() { |
| 5717 | if (options_ != NULL) options_->::google::protobuf::OneofOptions::Clear(); |
| 5718 | clear_has_options(); |
| 5719 | } |
| 5720 | const ::google::protobuf::OneofOptions& OneofDescriptorProto::options() const { |
| 5721 | // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options) |
| 5722 | return options_ != NULL ? *options_ |
| 5723 | : *::google::protobuf::OneofOptions::internal_default_instance(); |
| 5724 | } |
| 5725 | ::google::protobuf::OneofOptions* OneofDescriptorProto::mutable_options() { |
| 5726 | set_has_options(); |
| 5727 | if (options_ == NULL) { |
| 5728 | options_ = new ::google::protobuf::OneofOptions; |
| 5729 | } |
| 5730 | // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options) |
| 5731 | return options_; |
| 5732 | } |
| 5733 | ::google::protobuf::OneofOptions* OneofDescriptorProto::release_options() { |
| 5734 | // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options) |
| 5735 | clear_has_options(); |
| 5736 | ::google::protobuf::OneofOptions* temp = options_; |
| 5737 | options_ = NULL; |
| 5738 | return temp; |
| 5739 | } |
| 5740 | void OneofDescriptorProto::set_allocated_options(::google::protobuf::OneofOptions* options) { |
| 5741 | delete options_; |
| 5742 | options_ = options; |
| 5743 | if (options) { |
| 5744 | set_has_options(); |
| 5745 | } else { |
| 5746 | clear_has_options(); |
| 5747 | } |
| 5748 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options) |
| 5749 | } |
| 5750 | |
| 5751 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 5752 | |
| 5753 | // =================================================================== |
| 5754 | |
| 5755 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5756 | const int EnumDescriptorProto::kNameFieldNumber; |
| 5757 | const int EnumDescriptorProto::kValueFieldNumber; |
| 5758 | const int EnumDescriptorProto::kOptionsFieldNumber; |
| 5759 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5760 | |
| 5761 | EnumDescriptorProto::EnumDescriptorProto() |
| 5762 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 5763 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 5764 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 5765 | } |
| 5766 | SharedCtor(); |
| 5767 | // @@protoc_insertion_point(constructor:google.protobuf.EnumDescriptorProto) |
| 5768 | } |
| 5769 | EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) |
| 5770 | : ::google::protobuf::Message(), |
| 5771 | _internal_metadata_(NULL), |
| 5772 | _has_bits_(from._has_bits_), |
| 5773 | _cached_size_(0), |
| 5774 | value_(from.value_) { |
| 5775 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5776 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5777 | if (from.has_name()) { |
| 5778 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 5779 | } |
| 5780 | if (from.has_options()) { |
| 5781 | options_ = new ::google::protobuf::EnumOptions(*from.options_); |
| 5782 | } else { |
| 5783 | options_ = NULL; |
| 5784 | } |
| 5785 | // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto) |
| 5786 | } |
| 5787 | |
| 5788 | void EnumDescriptorProto::SharedCtor() { |
| 5789 | _cached_size_ = 0; |
| 5790 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5791 | options_ = NULL; |
| 5792 | } |
| 5793 | |
| 5794 | EnumDescriptorProto::~EnumDescriptorProto() { |
| 5795 | // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto) |
| 5796 | SharedDtor(); |
| 5797 | } |
| 5798 | |
| 5799 | void EnumDescriptorProto::SharedDtor() { |
| 5800 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5801 | if (this != internal_default_instance()) { |
| 5802 | delete options_; |
| 5803 | } |
| 5804 | } |
| 5805 | |
| 5806 | void EnumDescriptorProto::SetCachedSize(int size) const { |
| 5807 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 5808 | _cached_size_ = size; |
| 5809 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 5810 | } |
| 5811 | const ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() { |
| 5812 | protobuf_AssignDescriptorsOnce(); |
| 5813 | return file_level_metadata[7].descriptor; |
| 5814 | } |
| 5815 | |
| 5816 | const EnumDescriptorProto& EnumDescriptorProto::default_instance() { |
| 5817 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 5818 | return *internal_default_instance(); |
| 5819 | } |
| 5820 | |
| 5821 | EnumDescriptorProto* EnumDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 5822 | EnumDescriptorProto* n = new EnumDescriptorProto; |
| 5823 | if (arena != NULL) { |
| 5824 | arena->Own(n); |
| 5825 | } |
| 5826 | return n; |
| 5827 | } |
| 5828 | |
| 5829 | void EnumDescriptorProto::Clear() { |
| 5830 | // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumDescriptorProto) |
| 5831 | value_.Clear(); |
| 5832 | if (_has_bits_[0 / 32] & 3u) { |
| 5833 | if (has_name()) { |
| 5834 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 5835 | (*name_.UnsafeRawStringPointer())->clear(); |
| 5836 | } |
| 5837 | if (has_options()) { |
| 5838 | GOOGLE_DCHECK(options_ != NULL); |
| 5839 | options_->::google::protobuf::EnumOptions::Clear(); |
| 5840 | } |
| 5841 | } |
| 5842 | _has_bits_.Clear(); |
| 5843 | _internal_metadata_.Clear(); |
| 5844 | } |
| 5845 | |
| 5846 | bool EnumDescriptorProto::MergePartialFromCodedStream( |
| 5847 | ::google::protobuf::io::CodedInputStream* input) { |
| 5848 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5849 | ::google::protobuf::uint32 tag; |
| 5850 | // @@protoc_insertion_point(parse_start:google.protobuf.EnumDescriptorProto) |
| 5851 | for (;;) { |
| 5852 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5853 | tag = p.first; |
| 5854 | if (!p.second) goto handle_unusual; |
| 5855 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5856 | // optional string name = 1; |
| 5857 | case 1: { |
| 5858 | if (tag == 10u) { |
| 5859 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5860 | input, this->mutable_name())); |
| 5861 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5862 | this->name().data(), this->name().length(), |
| 5863 | ::google::protobuf::internal::WireFormat::PARSE, |
| 5864 | "google.protobuf.EnumDescriptorProto.name"); |
| 5865 | } else { |
| 5866 | goto handle_unusual; |
| 5867 | } |
| 5868 | break; |
| 5869 | } |
| 5870 | |
| 5871 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5872 | case 2: { |
| 5873 | if (tag == 18u) { |
| 5874 | DO_(input->IncrementRecursionDepth()); |
| 5875 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 5876 | input, add_value())); |
| 5877 | } else { |
| 5878 | goto handle_unusual; |
| 5879 | } |
| 5880 | input->UnsafeDecrementRecursionDepth(); |
| 5881 | break; |
| 5882 | } |
| 5883 | |
| 5884 | // optional .google.protobuf.EnumOptions options = 3; |
| 5885 | case 3: { |
| 5886 | if (tag == 26u) { |
| 5887 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 5888 | input, mutable_options())); |
| 5889 | } else { |
| 5890 | goto handle_unusual; |
| 5891 | } |
| 5892 | break; |
| 5893 | } |
| 5894 | |
| 5895 | default: { |
| 5896 | handle_unusual: |
| 5897 | if (tag == 0 || |
| 5898 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 5899 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 5900 | goto success; |
| 5901 | } |
| 5902 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5903 | input, tag, mutable_unknown_fields())); |
| 5904 | break; |
| 5905 | } |
| 5906 | } |
| 5907 | } |
| 5908 | success: |
| 5909 | // @@protoc_insertion_point(parse_success:google.protobuf.EnumDescriptorProto) |
| 5910 | return true; |
| 5911 | failure: |
| 5912 | // @@protoc_insertion_point(parse_failure:google.protobuf.EnumDescriptorProto) |
| 5913 | return false; |
| 5914 | #undef DO_ |
| 5915 | } |
| 5916 | |
| 5917 | void EnumDescriptorProto::SerializeWithCachedSizes( |
| 5918 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5919 | // @@protoc_insertion_point(serialize_start:google.protobuf.EnumDescriptorProto) |
| 5920 | // optional string name = 1; |
| 5921 | if (has_name()) { |
| 5922 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5923 | this->name().data(), this->name().length(), |
| 5924 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5925 | "google.protobuf.EnumDescriptorProto.name"); |
| 5926 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 5927 | 1, this->name(), output); |
| 5928 | } |
| 5929 | |
| 5930 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5931 | for (unsigned int i = 0, n = this->value_size(); i < n; i++) { |
| 5932 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5933 | 2, this->value(i), output); |
| 5934 | } |
| 5935 | |
| 5936 | // optional .google.protobuf.EnumOptions options = 3; |
| 5937 | if (has_options()) { |
| 5938 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5939 | 3, *this->options_, output); |
| 5940 | } |
| 5941 | |
| 5942 | if (_internal_metadata_.have_unknown_fields()) { |
| 5943 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5944 | unknown_fields(), output); |
| 5945 | } |
| 5946 | // @@protoc_insertion_point(serialize_end:google.protobuf.EnumDescriptorProto) |
| 5947 | } |
| 5948 | |
| 5949 | ::google::protobuf::uint8* EnumDescriptorProto::InternalSerializeWithCachedSizesToArray( |
| 5950 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 5951 | (void)deterministic; // Unused |
| 5952 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto) |
| 5953 | // optional string name = 1; |
| 5954 | if (has_name()) { |
| 5955 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 5956 | this->name().data(), this->name().length(), |
| 5957 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 5958 | "google.protobuf.EnumDescriptorProto.name"); |
| 5959 | target = |
| 5960 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5961 | 1, this->name(), target); |
| 5962 | } |
| 5963 | |
| 5964 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5965 | for (unsigned int i = 0, n = this->value_size(); i < n; i++) { |
| 5966 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5967 | InternalWriteMessageNoVirtualToArray( |
| 5968 | 2, this->value(i), false, target); |
| 5969 | } |
| 5970 | |
| 5971 | // optional .google.protobuf.EnumOptions options = 3; |
| 5972 | if (has_options()) { |
| 5973 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5974 | InternalWriteMessageNoVirtualToArray( |
| 5975 | 3, *this->options_, false, target); |
| 5976 | } |
| 5977 | |
| 5978 | if (_internal_metadata_.have_unknown_fields()) { |
| 5979 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5980 | unknown_fields(), target); |
| 5981 | } |
| 5982 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumDescriptorProto) |
| 5983 | return target; |
| 5984 | } |
| 5985 | |
| 5986 | size_t EnumDescriptorProto::ByteSizeLong() const { |
| 5987 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumDescriptorProto) |
| 5988 | size_t total_size = 0; |
| 5989 | |
| 5990 | if (_internal_metadata_.have_unknown_fields()) { |
| 5991 | total_size += |
| 5992 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5993 | unknown_fields()); |
| 5994 | } |
| 5995 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 5996 | { |
| 5997 | unsigned int count = this->value_size(); |
| 5998 | total_size += 1UL * count; |
| 5999 | for (unsigned int i = 0; i < count; i++) { |
| 6000 | total_size += |
| 6001 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6002 | this->value(i)); |
| 6003 | } |
| 6004 | } |
| 6005 | |
| 6006 | if (_has_bits_[0 / 32] & 3u) { |
| 6007 | // optional string name = 1; |
| 6008 | if (has_name()) { |
| 6009 | total_size += 1 + |
| 6010 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6011 | this->name()); |
| 6012 | } |
| 6013 | |
| 6014 | // optional .google.protobuf.EnumOptions options = 3; |
| 6015 | if (has_options()) { |
| 6016 | total_size += 1 + |
| 6017 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6018 | *this->options_); |
| 6019 | } |
| 6020 | |
| 6021 | } |
| 6022 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6023 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6024 | _cached_size_ = cached_size; |
| 6025 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6026 | return total_size; |
| 6027 | } |
| 6028 | |
| 6029 | void EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 6030 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumDescriptorProto) |
| 6031 | GOOGLE_DCHECK_NE(&from, this); |
| 6032 | const EnumDescriptorProto* source = |
| 6033 | ::google::protobuf::internal::DynamicCastToGenerated<const EnumDescriptorProto>( |
| 6034 | &from); |
| 6035 | if (source == NULL) { |
| 6036 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumDescriptorProto) |
| 6037 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6038 | } else { |
| 6039 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumDescriptorProto) |
| 6040 | MergeFrom(*source); |
| 6041 | } |
| 6042 | } |
| 6043 | |
| 6044 | void EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) { |
| 6045 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumDescriptorProto) |
| 6046 | GOOGLE_DCHECK_NE(&from, this); |
| 6047 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6048 | value_.MergeFrom(from.value_); |
| 6049 | if (from._has_bits_[0 / 32] & 3u) { |
| 6050 | if (from.has_name()) { |
| 6051 | set_has_name(); |
| 6052 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 6053 | } |
| 6054 | if (from.has_options()) { |
| 6055 | mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options()); |
| 6056 | } |
| 6057 | } |
| 6058 | } |
| 6059 | |
| 6060 | void EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 6061 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumDescriptorProto) |
| 6062 | if (&from == this) return; |
| 6063 | Clear(); |
| 6064 | MergeFrom(from); |
| 6065 | } |
| 6066 | |
| 6067 | void EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) { |
| 6068 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumDescriptorProto) |
| 6069 | if (&from == this) return; |
| 6070 | Clear(); |
| 6071 | MergeFrom(from); |
| 6072 | } |
| 6073 | |
| 6074 | bool EnumDescriptorProto::IsInitialized() const { |
| 6075 | if (!::google::protobuf::internal::AllAreInitialized(this->value())) return false; |
| 6076 | if (has_options()) { |
| 6077 | if (!this->options_->IsInitialized()) return false; |
| 6078 | } |
| 6079 | return true; |
| 6080 | } |
| 6081 | |
| 6082 | void EnumDescriptorProto::Swap(EnumDescriptorProto* other) { |
| 6083 | if (other == this) return; |
| 6084 | InternalSwap(other); |
| 6085 | } |
| 6086 | void EnumDescriptorProto::InternalSwap(EnumDescriptorProto* other) { |
| 6087 | value_.UnsafeArenaSwap(&other->value_); |
| 6088 | name_.Swap(&other->name_); |
| 6089 | std::swap(options_, other->options_); |
| 6090 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 6091 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6092 | std::swap(_cached_size_, other->_cached_size_); |
| 6093 | } |
| 6094 | |
| 6095 | ::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const { |
| 6096 | protobuf_AssignDescriptorsOnce(); |
| 6097 | return file_level_metadata[7]; |
| 6098 | } |
| 6099 | |
| 6100 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6101 | // EnumDescriptorProto |
| 6102 | |
| 6103 | // optional string name = 1; |
| 6104 | bool EnumDescriptorProto::has_name() const { |
| 6105 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 6106 | } |
| 6107 | void EnumDescriptorProto::set_has_name() { |
| 6108 | _has_bits_[0] |= 0x00000001u; |
| 6109 | } |
| 6110 | void EnumDescriptorProto::clear_has_name() { |
| 6111 | _has_bits_[0] &= ~0x00000001u; |
| 6112 | } |
| 6113 | void EnumDescriptorProto::clear_name() { |
| 6114 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6115 | clear_has_name(); |
| 6116 | } |
| 6117 | const ::std::string& EnumDescriptorProto::name() const { |
| 6118 | // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name) |
| 6119 | return name_.GetNoArena(); |
| 6120 | } |
| 6121 | void EnumDescriptorProto::set_name(const ::std::string& value) { |
| 6122 | set_has_name(); |
| 6123 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 6124 | // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name) |
| 6125 | } |
| 6126 | #if LANG_CXX11 |
| 6127 | void EnumDescriptorProto::set_name(::std::string&& value) { |
| 6128 | set_has_name(); |
| 6129 | name_.SetNoArena( |
| 6130 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 6131 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumDescriptorProto.name) |
| 6132 | } |
| 6133 | #endif |
| 6134 | void EnumDescriptorProto::set_name(const char* value) { |
| 6135 | set_has_name(); |
| 6136 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 6137 | // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name) |
| 6138 | } |
| 6139 | void EnumDescriptorProto::set_name(const char* value, size_t size) { |
| 6140 | set_has_name(); |
| 6141 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6142 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 6143 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name) |
| 6144 | } |
| 6145 | ::std::string* EnumDescriptorProto::mutable_name() { |
| 6146 | set_has_name(); |
| 6147 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name) |
| 6148 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6149 | } |
| 6150 | ::std::string* EnumDescriptorProto::release_name() { |
| 6151 | // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name) |
| 6152 | clear_has_name(); |
| 6153 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6154 | } |
| 6155 | void EnumDescriptorProto::set_allocated_name(::std::string* name) { |
| 6156 | if (name != NULL) { |
| 6157 | set_has_name(); |
| 6158 | } else { |
| 6159 | clear_has_name(); |
| 6160 | } |
| 6161 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 6162 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name) |
| 6163 | } |
| 6164 | |
| 6165 | // repeated .google.protobuf.EnumValueDescriptorProto value = 2; |
| 6166 | int EnumDescriptorProto::value_size() const { |
| 6167 | return value_.size(); |
| 6168 | } |
| 6169 | void EnumDescriptorProto::clear_value() { |
| 6170 | value_.Clear(); |
| 6171 | } |
| 6172 | const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const { |
| 6173 | // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value) |
| 6174 | return value_.Get(index); |
| 6175 | } |
| 6176 | ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) { |
| 6177 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value) |
| 6178 | return value_.Mutable(index); |
| 6179 | } |
| 6180 | ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() { |
| 6181 | // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value) |
| 6182 | return value_.Add(); |
| 6183 | } |
| 6184 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >* |
| 6185 | EnumDescriptorProto::mutable_value() { |
| 6186 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value) |
| 6187 | return &value_; |
| 6188 | } |
| 6189 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >& |
| 6190 | EnumDescriptorProto::value() const { |
| 6191 | // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value) |
| 6192 | return value_; |
| 6193 | } |
| 6194 | |
| 6195 | // optional .google.protobuf.EnumOptions options = 3; |
| 6196 | bool EnumDescriptorProto::has_options() const { |
| 6197 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 6198 | } |
| 6199 | void EnumDescriptorProto::set_has_options() { |
| 6200 | _has_bits_[0] |= 0x00000002u; |
| 6201 | } |
| 6202 | void EnumDescriptorProto::clear_has_options() { |
| 6203 | _has_bits_[0] &= ~0x00000002u; |
| 6204 | } |
| 6205 | void EnumDescriptorProto::clear_options() { |
| 6206 | if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear(); |
| 6207 | clear_has_options(); |
| 6208 | } |
| 6209 | const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const { |
| 6210 | // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options) |
| 6211 | return options_ != NULL ? *options_ |
| 6212 | : *::google::protobuf::EnumOptions::internal_default_instance(); |
| 6213 | } |
| 6214 | ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() { |
| 6215 | set_has_options(); |
| 6216 | if (options_ == NULL) { |
| 6217 | options_ = new ::google::protobuf::EnumOptions; |
| 6218 | } |
| 6219 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options) |
| 6220 | return options_; |
| 6221 | } |
| 6222 | ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() { |
| 6223 | // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options) |
| 6224 | clear_has_options(); |
| 6225 | ::google::protobuf::EnumOptions* temp = options_; |
| 6226 | options_ = NULL; |
| 6227 | return temp; |
| 6228 | } |
| 6229 | void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) { |
| 6230 | delete options_; |
| 6231 | options_ = options; |
| 6232 | if (options) { |
| 6233 | set_has_options(); |
| 6234 | } else { |
| 6235 | clear_has_options(); |
| 6236 | } |
| 6237 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options) |
| 6238 | } |
| 6239 | |
| 6240 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6241 | |
| 6242 | // =================================================================== |
| 6243 | |
| 6244 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6245 | const int EnumValueDescriptorProto::kNameFieldNumber; |
| 6246 | const int EnumValueDescriptorProto::kNumberFieldNumber; |
| 6247 | const int EnumValueDescriptorProto::kOptionsFieldNumber; |
| 6248 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6249 | |
| 6250 | EnumValueDescriptorProto::EnumValueDescriptorProto() |
| 6251 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 6252 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 6253 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 6254 | } |
| 6255 | SharedCtor(); |
| 6256 | // @@protoc_insertion_point(constructor:google.protobuf.EnumValueDescriptorProto) |
| 6257 | } |
| 6258 | EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from) |
| 6259 | : ::google::protobuf::Message(), |
| 6260 | _internal_metadata_(NULL), |
| 6261 | _has_bits_(from._has_bits_), |
| 6262 | _cached_size_(0) { |
| 6263 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6264 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6265 | if (from.has_name()) { |
| 6266 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 6267 | } |
| 6268 | if (from.has_options()) { |
| 6269 | options_ = new ::google::protobuf::EnumValueOptions(*from.options_); |
| 6270 | } else { |
| 6271 | options_ = NULL; |
| 6272 | } |
| 6273 | number_ = from.number_; |
| 6274 | // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto) |
| 6275 | } |
| 6276 | |
| 6277 | void EnumValueDescriptorProto::SharedCtor() { |
| 6278 | _cached_size_ = 0; |
| 6279 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6280 | ::memset(&options_, 0, reinterpret_cast<char*>(&number_) - |
| 6281 | reinterpret_cast<char*>(&options_) + sizeof(number_)); |
| 6282 | } |
| 6283 | |
| 6284 | EnumValueDescriptorProto::~EnumValueDescriptorProto() { |
| 6285 | // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto) |
| 6286 | SharedDtor(); |
| 6287 | } |
| 6288 | |
| 6289 | void EnumValueDescriptorProto::SharedDtor() { |
| 6290 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6291 | if (this != internal_default_instance()) { |
| 6292 | delete options_; |
| 6293 | } |
| 6294 | } |
| 6295 | |
| 6296 | void EnumValueDescriptorProto::SetCachedSize(int size) const { |
| 6297 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6298 | _cached_size_ = size; |
| 6299 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6300 | } |
| 6301 | const ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() { |
| 6302 | protobuf_AssignDescriptorsOnce(); |
| 6303 | return file_level_metadata[8].descriptor; |
| 6304 | } |
| 6305 | |
| 6306 | const EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() { |
| 6307 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 6308 | return *internal_default_instance(); |
| 6309 | } |
| 6310 | |
| 6311 | EnumValueDescriptorProto* EnumValueDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 6312 | EnumValueDescriptorProto* n = new EnumValueDescriptorProto; |
| 6313 | if (arena != NULL) { |
| 6314 | arena->Own(n); |
| 6315 | } |
| 6316 | return n; |
| 6317 | } |
| 6318 | |
| 6319 | void EnumValueDescriptorProto::Clear() { |
| 6320 | // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueDescriptorProto) |
| 6321 | if (_has_bits_[0 / 32] & 3u) { |
| 6322 | if (has_name()) { |
| 6323 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 6324 | (*name_.UnsafeRawStringPointer())->clear(); |
| 6325 | } |
| 6326 | if (has_options()) { |
| 6327 | GOOGLE_DCHECK(options_ != NULL); |
| 6328 | options_->::google::protobuf::EnumValueOptions::Clear(); |
| 6329 | } |
| 6330 | } |
| 6331 | number_ = 0; |
| 6332 | _has_bits_.Clear(); |
| 6333 | _internal_metadata_.Clear(); |
| 6334 | } |
| 6335 | |
| 6336 | bool EnumValueDescriptorProto::MergePartialFromCodedStream( |
| 6337 | ::google::protobuf::io::CodedInputStream* input) { |
| 6338 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6339 | ::google::protobuf::uint32 tag; |
| 6340 | // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueDescriptorProto) |
| 6341 | for (;;) { |
| 6342 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6343 | tag = p.first; |
| 6344 | if (!p.second) goto handle_unusual; |
| 6345 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6346 | // optional string name = 1; |
| 6347 | case 1: { |
| 6348 | if (tag == 10u) { |
| 6349 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6350 | input, this->mutable_name())); |
| 6351 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6352 | this->name().data(), this->name().length(), |
| 6353 | ::google::protobuf::internal::WireFormat::PARSE, |
| 6354 | "google.protobuf.EnumValueDescriptorProto.name"); |
| 6355 | } else { |
| 6356 | goto handle_unusual; |
| 6357 | } |
| 6358 | break; |
| 6359 | } |
| 6360 | |
| 6361 | // optional int32 number = 2; |
| 6362 | case 2: { |
| 6363 | if (tag == 16u) { |
| 6364 | set_has_number(); |
| 6365 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6366 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 6367 | input, &number_))); |
| 6368 | } else { |
| 6369 | goto handle_unusual; |
| 6370 | } |
| 6371 | break; |
| 6372 | } |
| 6373 | |
| 6374 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6375 | case 3: { |
| 6376 | if (tag == 26u) { |
| 6377 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 6378 | input, mutable_options())); |
| 6379 | } else { |
| 6380 | goto handle_unusual; |
| 6381 | } |
| 6382 | break; |
| 6383 | } |
| 6384 | |
| 6385 | default: { |
| 6386 | handle_unusual: |
| 6387 | if (tag == 0 || |
| 6388 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 6389 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 6390 | goto success; |
| 6391 | } |
| 6392 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6393 | input, tag, mutable_unknown_fields())); |
| 6394 | break; |
| 6395 | } |
| 6396 | } |
| 6397 | } |
| 6398 | success: |
| 6399 | // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueDescriptorProto) |
| 6400 | return true; |
| 6401 | failure: |
| 6402 | // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueDescriptorProto) |
| 6403 | return false; |
| 6404 | #undef DO_ |
| 6405 | } |
| 6406 | |
| 6407 | void EnumValueDescriptorProto::SerializeWithCachedSizes( |
| 6408 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6409 | // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueDescriptorProto) |
| 6410 | // optional string name = 1; |
| 6411 | if (has_name()) { |
| 6412 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6413 | this->name().data(), this->name().length(), |
| 6414 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6415 | "google.protobuf.EnumValueDescriptorProto.name"); |
| 6416 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6417 | 1, this->name(), output); |
| 6418 | } |
| 6419 | |
| 6420 | // optional int32 number = 2; |
| 6421 | if (has_number()) { |
| 6422 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output); |
| 6423 | } |
| 6424 | |
| 6425 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6426 | if (has_options()) { |
| 6427 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6428 | 3, *this->options_, output); |
| 6429 | } |
| 6430 | |
| 6431 | if (_internal_metadata_.have_unknown_fields()) { |
| 6432 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6433 | unknown_fields(), output); |
| 6434 | } |
| 6435 | // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueDescriptorProto) |
| 6436 | } |
| 6437 | |
| 6438 | ::google::protobuf::uint8* EnumValueDescriptorProto::InternalSerializeWithCachedSizesToArray( |
| 6439 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 6440 | (void)deterministic; // Unused |
| 6441 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto) |
| 6442 | // optional string name = 1; |
| 6443 | if (has_name()) { |
| 6444 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6445 | this->name().data(), this->name().length(), |
| 6446 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6447 | "google.protobuf.EnumValueDescriptorProto.name"); |
| 6448 | target = |
| 6449 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6450 | 1, this->name(), target); |
| 6451 | } |
| 6452 | |
| 6453 | // optional int32 number = 2; |
| 6454 | if (has_number()) { |
| 6455 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target); |
| 6456 | } |
| 6457 | |
| 6458 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6459 | if (has_options()) { |
| 6460 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6461 | InternalWriteMessageNoVirtualToArray( |
| 6462 | 3, *this->options_, false, target); |
| 6463 | } |
| 6464 | |
| 6465 | if (_internal_metadata_.have_unknown_fields()) { |
| 6466 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6467 | unknown_fields(), target); |
| 6468 | } |
| 6469 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueDescriptorProto) |
| 6470 | return target; |
| 6471 | } |
| 6472 | |
| 6473 | size_t EnumValueDescriptorProto::ByteSizeLong() const { |
| 6474 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueDescriptorProto) |
| 6475 | size_t total_size = 0; |
| 6476 | |
| 6477 | if (_internal_metadata_.have_unknown_fields()) { |
| 6478 | total_size += |
| 6479 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6480 | unknown_fields()); |
| 6481 | } |
| 6482 | if (_has_bits_[0 / 32] & 7u) { |
| 6483 | // optional string name = 1; |
| 6484 | if (has_name()) { |
| 6485 | total_size += 1 + |
| 6486 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6487 | this->name()); |
| 6488 | } |
| 6489 | |
| 6490 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6491 | if (has_options()) { |
| 6492 | total_size += 1 + |
| 6493 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6494 | *this->options_); |
| 6495 | } |
| 6496 | |
| 6497 | // optional int32 number = 2; |
| 6498 | if (has_number()) { |
| 6499 | total_size += 1 + |
| 6500 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 6501 | this->number()); |
| 6502 | } |
| 6503 | |
| 6504 | } |
| 6505 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6506 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6507 | _cached_size_ = cached_size; |
| 6508 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6509 | return total_size; |
| 6510 | } |
| 6511 | |
| 6512 | void EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 6513 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueDescriptorProto) |
| 6514 | GOOGLE_DCHECK_NE(&from, this); |
| 6515 | const EnumValueDescriptorProto* source = |
| 6516 | ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueDescriptorProto>( |
| 6517 | &from); |
| 6518 | if (source == NULL) { |
| 6519 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValueDescriptorProto) |
| 6520 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6521 | } else { |
| 6522 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueDescriptorProto) |
| 6523 | MergeFrom(*source); |
| 6524 | } |
| 6525 | } |
| 6526 | |
| 6527 | void EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) { |
| 6528 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueDescriptorProto) |
| 6529 | GOOGLE_DCHECK_NE(&from, this); |
| 6530 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6531 | if (from._has_bits_[0 / 32] & 7u) { |
| 6532 | if (from.has_name()) { |
| 6533 | set_has_name(); |
| 6534 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 6535 | } |
| 6536 | if (from.has_options()) { |
| 6537 | mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options()); |
| 6538 | } |
| 6539 | if (from.has_number()) { |
| 6540 | set_number(from.number()); |
| 6541 | } |
| 6542 | } |
| 6543 | } |
| 6544 | |
| 6545 | void EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 6546 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValueDescriptorProto) |
| 6547 | if (&from == this) return; |
| 6548 | Clear(); |
| 6549 | MergeFrom(from); |
| 6550 | } |
| 6551 | |
| 6552 | void EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) { |
| 6553 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueDescriptorProto) |
| 6554 | if (&from == this) return; |
| 6555 | Clear(); |
| 6556 | MergeFrom(from); |
| 6557 | } |
| 6558 | |
| 6559 | bool EnumValueDescriptorProto::IsInitialized() const { |
| 6560 | if (has_options()) { |
| 6561 | if (!this->options_->IsInitialized()) return false; |
| 6562 | } |
| 6563 | return true; |
| 6564 | } |
| 6565 | |
| 6566 | void EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) { |
| 6567 | if (other == this) return; |
| 6568 | InternalSwap(other); |
| 6569 | } |
| 6570 | void EnumValueDescriptorProto::InternalSwap(EnumValueDescriptorProto* other) { |
| 6571 | name_.Swap(&other->name_); |
| 6572 | std::swap(options_, other->options_); |
| 6573 | std::swap(number_, other->number_); |
| 6574 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 6575 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6576 | std::swap(_cached_size_, other->_cached_size_); |
| 6577 | } |
| 6578 | |
| 6579 | ::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const { |
| 6580 | protobuf_AssignDescriptorsOnce(); |
| 6581 | return file_level_metadata[8]; |
| 6582 | } |
| 6583 | |
| 6584 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6585 | // EnumValueDescriptorProto |
| 6586 | |
| 6587 | // optional string name = 1; |
| 6588 | bool EnumValueDescriptorProto::has_name() const { |
| 6589 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 6590 | } |
| 6591 | void EnumValueDescriptorProto::set_has_name() { |
| 6592 | _has_bits_[0] |= 0x00000001u; |
| 6593 | } |
| 6594 | void EnumValueDescriptorProto::clear_has_name() { |
| 6595 | _has_bits_[0] &= ~0x00000001u; |
| 6596 | } |
| 6597 | void EnumValueDescriptorProto::clear_name() { |
| 6598 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6599 | clear_has_name(); |
| 6600 | } |
| 6601 | const ::std::string& EnumValueDescriptorProto::name() const { |
| 6602 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name) |
| 6603 | return name_.GetNoArena(); |
| 6604 | } |
| 6605 | void EnumValueDescriptorProto::set_name(const ::std::string& value) { |
| 6606 | set_has_name(); |
| 6607 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 6608 | // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name) |
| 6609 | } |
| 6610 | #if LANG_CXX11 |
| 6611 | void EnumValueDescriptorProto::set_name(::std::string&& value) { |
| 6612 | set_has_name(); |
| 6613 | name_.SetNoArena( |
| 6614 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 6615 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumValueDescriptorProto.name) |
| 6616 | } |
| 6617 | #endif |
| 6618 | void EnumValueDescriptorProto::set_name(const char* value) { |
| 6619 | set_has_name(); |
| 6620 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 6621 | // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name) |
| 6622 | } |
| 6623 | void EnumValueDescriptorProto::set_name(const char* value, size_t size) { |
| 6624 | set_has_name(); |
| 6625 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6626 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 6627 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name) |
| 6628 | } |
| 6629 | ::std::string* EnumValueDescriptorProto::mutable_name() { |
| 6630 | set_has_name(); |
| 6631 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name) |
| 6632 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6633 | } |
| 6634 | ::std::string* EnumValueDescriptorProto::release_name() { |
| 6635 | // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name) |
| 6636 | clear_has_name(); |
| 6637 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6638 | } |
| 6639 | void EnumValueDescriptorProto::set_allocated_name(::std::string* name) { |
| 6640 | if (name != NULL) { |
| 6641 | set_has_name(); |
| 6642 | } else { |
| 6643 | clear_has_name(); |
| 6644 | } |
| 6645 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 6646 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name) |
| 6647 | } |
| 6648 | |
| 6649 | // optional int32 number = 2; |
| 6650 | bool EnumValueDescriptorProto::has_number() const { |
| 6651 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 6652 | } |
| 6653 | void EnumValueDescriptorProto::set_has_number() { |
| 6654 | _has_bits_[0] |= 0x00000004u; |
| 6655 | } |
| 6656 | void EnumValueDescriptorProto::clear_has_number() { |
| 6657 | _has_bits_[0] &= ~0x00000004u; |
| 6658 | } |
| 6659 | void EnumValueDescriptorProto::clear_number() { |
| 6660 | number_ = 0; |
| 6661 | clear_has_number(); |
| 6662 | } |
| 6663 | ::google::protobuf::int32 EnumValueDescriptorProto::number() const { |
| 6664 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number) |
| 6665 | return number_; |
| 6666 | } |
| 6667 | void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) { |
| 6668 | set_has_number(); |
| 6669 | number_ = value; |
| 6670 | // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number) |
| 6671 | } |
| 6672 | |
| 6673 | // optional .google.protobuf.EnumValueOptions options = 3; |
| 6674 | bool EnumValueDescriptorProto::has_options() const { |
| 6675 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 6676 | } |
| 6677 | void EnumValueDescriptorProto::set_has_options() { |
| 6678 | _has_bits_[0] |= 0x00000002u; |
| 6679 | } |
| 6680 | void EnumValueDescriptorProto::clear_has_options() { |
| 6681 | _has_bits_[0] &= ~0x00000002u; |
| 6682 | } |
| 6683 | void EnumValueDescriptorProto::clear_options() { |
| 6684 | if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear(); |
| 6685 | clear_has_options(); |
| 6686 | } |
| 6687 | const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const { |
| 6688 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options) |
| 6689 | return options_ != NULL ? *options_ |
| 6690 | : *::google::protobuf::EnumValueOptions::internal_default_instance(); |
| 6691 | } |
| 6692 | ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() { |
| 6693 | set_has_options(); |
| 6694 | if (options_ == NULL) { |
| 6695 | options_ = new ::google::protobuf::EnumValueOptions; |
| 6696 | } |
| 6697 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options) |
| 6698 | return options_; |
| 6699 | } |
| 6700 | ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() { |
| 6701 | // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options) |
| 6702 | clear_has_options(); |
| 6703 | ::google::protobuf::EnumValueOptions* temp = options_; |
| 6704 | options_ = NULL; |
| 6705 | return temp; |
| 6706 | } |
| 6707 | void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumValueOptions* options) { |
| 6708 | delete options_; |
| 6709 | options_ = options; |
| 6710 | if (options) { |
| 6711 | set_has_options(); |
| 6712 | } else { |
| 6713 | clear_has_options(); |
| 6714 | } |
| 6715 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options) |
| 6716 | } |
| 6717 | |
| 6718 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 6719 | |
| 6720 | // =================================================================== |
| 6721 | |
| 6722 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6723 | const int ServiceDescriptorProto::kNameFieldNumber; |
| 6724 | const int ServiceDescriptorProto::kMethodFieldNumber; |
| 6725 | const int ServiceDescriptorProto::kOptionsFieldNumber; |
| 6726 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6727 | |
| 6728 | ServiceDescriptorProto::ServiceDescriptorProto() |
| 6729 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 6730 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 6731 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 6732 | } |
| 6733 | SharedCtor(); |
| 6734 | // @@protoc_insertion_point(constructor:google.protobuf.ServiceDescriptorProto) |
| 6735 | } |
| 6736 | ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from) |
| 6737 | : ::google::protobuf::Message(), |
| 6738 | _internal_metadata_(NULL), |
| 6739 | _has_bits_(from._has_bits_), |
| 6740 | _cached_size_(0), |
| 6741 | method_(from.method_) { |
| 6742 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6743 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6744 | if (from.has_name()) { |
| 6745 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 6746 | } |
| 6747 | if (from.has_options()) { |
| 6748 | options_ = new ::google::protobuf::ServiceOptions(*from.options_); |
| 6749 | } else { |
| 6750 | options_ = NULL; |
| 6751 | } |
| 6752 | // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto) |
| 6753 | } |
| 6754 | |
| 6755 | void ServiceDescriptorProto::SharedCtor() { |
| 6756 | _cached_size_ = 0; |
| 6757 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6758 | options_ = NULL; |
| 6759 | } |
| 6760 | |
| 6761 | ServiceDescriptorProto::~ServiceDescriptorProto() { |
| 6762 | // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto) |
| 6763 | SharedDtor(); |
| 6764 | } |
| 6765 | |
| 6766 | void ServiceDescriptorProto::SharedDtor() { |
| 6767 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6768 | if (this != internal_default_instance()) { |
| 6769 | delete options_; |
| 6770 | } |
| 6771 | } |
| 6772 | |
| 6773 | void ServiceDescriptorProto::SetCachedSize(int size) const { |
| 6774 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6775 | _cached_size_ = size; |
| 6776 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6777 | } |
| 6778 | const ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() { |
| 6779 | protobuf_AssignDescriptorsOnce(); |
| 6780 | return file_level_metadata[9].descriptor; |
| 6781 | } |
| 6782 | |
| 6783 | const ServiceDescriptorProto& ServiceDescriptorProto::default_instance() { |
| 6784 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 6785 | return *internal_default_instance(); |
| 6786 | } |
| 6787 | |
| 6788 | ServiceDescriptorProto* ServiceDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 6789 | ServiceDescriptorProto* n = new ServiceDescriptorProto; |
| 6790 | if (arena != NULL) { |
| 6791 | arena->Own(n); |
| 6792 | } |
| 6793 | return n; |
| 6794 | } |
| 6795 | |
| 6796 | void ServiceDescriptorProto::Clear() { |
| 6797 | // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceDescriptorProto) |
| 6798 | method_.Clear(); |
| 6799 | if (_has_bits_[0 / 32] & 3u) { |
| 6800 | if (has_name()) { |
| 6801 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 6802 | (*name_.UnsafeRawStringPointer())->clear(); |
| 6803 | } |
| 6804 | if (has_options()) { |
| 6805 | GOOGLE_DCHECK(options_ != NULL); |
| 6806 | options_->::google::protobuf::ServiceOptions::Clear(); |
| 6807 | } |
| 6808 | } |
| 6809 | _has_bits_.Clear(); |
| 6810 | _internal_metadata_.Clear(); |
| 6811 | } |
| 6812 | |
| 6813 | bool ServiceDescriptorProto::MergePartialFromCodedStream( |
| 6814 | ::google::protobuf::io::CodedInputStream* input) { |
| 6815 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6816 | ::google::protobuf::uint32 tag; |
| 6817 | // @@protoc_insertion_point(parse_start:google.protobuf.ServiceDescriptorProto) |
| 6818 | for (;;) { |
| 6819 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6820 | tag = p.first; |
| 6821 | if (!p.second) goto handle_unusual; |
| 6822 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6823 | // optional string name = 1; |
| 6824 | case 1: { |
| 6825 | if (tag == 10u) { |
| 6826 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6827 | input, this->mutable_name())); |
| 6828 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6829 | this->name().data(), this->name().length(), |
| 6830 | ::google::protobuf::internal::WireFormat::PARSE, |
| 6831 | "google.protobuf.ServiceDescriptorProto.name"); |
| 6832 | } else { |
| 6833 | goto handle_unusual; |
| 6834 | } |
| 6835 | break; |
| 6836 | } |
| 6837 | |
| 6838 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6839 | case 2: { |
| 6840 | if (tag == 18u) { |
| 6841 | DO_(input->IncrementRecursionDepth()); |
| 6842 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 6843 | input, add_method())); |
| 6844 | } else { |
| 6845 | goto handle_unusual; |
| 6846 | } |
| 6847 | input->UnsafeDecrementRecursionDepth(); |
| 6848 | break; |
| 6849 | } |
| 6850 | |
| 6851 | // optional .google.protobuf.ServiceOptions options = 3; |
| 6852 | case 3: { |
| 6853 | if (tag == 26u) { |
| 6854 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 6855 | input, mutable_options())); |
| 6856 | } else { |
| 6857 | goto handle_unusual; |
| 6858 | } |
| 6859 | break; |
| 6860 | } |
| 6861 | |
| 6862 | default: { |
| 6863 | handle_unusual: |
| 6864 | if (tag == 0 || |
| 6865 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 6866 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 6867 | goto success; |
| 6868 | } |
| 6869 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6870 | input, tag, mutable_unknown_fields())); |
| 6871 | break; |
| 6872 | } |
| 6873 | } |
| 6874 | } |
| 6875 | success: |
| 6876 | // @@protoc_insertion_point(parse_success:google.protobuf.ServiceDescriptorProto) |
| 6877 | return true; |
| 6878 | failure: |
| 6879 | // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceDescriptorProto) |
| 6880 | return false; |
| 6881 | #undef DO_ |
| 6882 | } |
| 6883 | |
| 6884 | void ServiceDescriptorProto::SerializeWithCachedSizes( |
| 6885 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6886 | // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceDescriptorProto) |
| 6887 | // optional string name = 1; |
| 6888 | if (has_name()) { |
| 6889 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6890 | this->name().data(), this->name().length(), |
| 6891 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6892 | "google.protobuf.ServiceDescriptorProto.name"); |
| 6893 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6894 | 1, this->name(), output); |
| 6895 | } |
| 6896 | |
| 6897 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6898 | for (unsigned int i = 0, n = this->method_size(); i < n; i++) { |
| 6899 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6900 | 2, this->method(i), output); |
| 6901 | } |
| 6902 | |
| 6903 | // optional .google.protobuf.ServiceOptions options = 3; |
| 6904 | if (has_options()) { |
| 6905 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6906 | 3, *this->options_, output); |
| 6907 | } |
| 6908 | |
| 6909 | if (_internal_metadata_.have_unknown_fields()) { |
| 6910 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6911 | unknown_fields(), output); |
| 6912 | } |
| 6913 | // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceDescriptorProto) |
| 6914 | } |
| 6915 | |
| 6916 | ::google::protobuf::uint8* ServiceDescriptorProto::InternalSerializeWithCachedSizesToArray( |
| 6917 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 6918 | (void)deterministic; // Unused |
| 6919 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto) |
| 6920 | // optional string name = 1; |
| 6921 | if (has_name()) { |
| 6922 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 6923 | this->name().data(), this->name().length(), |
| 6924 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 6925 | "google.protobuf.ServiceDescriptorProto.name"); |
| 6926 | target = |
| 6927 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6928 | 1, this->name(), target); |
| 6929 | } |
| 6930 | |
| 6931 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6932 | for (unsigned int i = 0, n = this->method_size(); i < n; i++) { |
| 6933 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6934 | InternalWriteMessageNoVirtualToArray( |
| 6935 | 2, this->method(i), false, target); |
| 6936 | } |
| 6937 | |
| 6938 | // optional .google.protobuf.ServiceOptions options = 3; |
| 6939 | if (has_options()) { |
| 6940 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6941 | InternalWriteMessageNoVirtualToArray( |
| 6942 | 3, *this->options_, false, target); |
| 6943 | } |
| 6944 | |
| 6945 | if (_internal_metadata_.have_unknown_fields()) { |
| 6946 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6947 | unknown_fields(), target); |
| 6948 | } |
| 6949 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceDescriptorProto) |
| 6950 | return target; |
| 6951 | } |
| 6952 | |
| 6953 | size_t ServiceDescriptorProto::ByteSizeLong() const { |
| 6954 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceDescriptorProto) |
| 6955 | size_t total_size = 0; |
| 6956 | |
| 6957 | if (_internal_metadata_.have_unknown_fields()) { |
| 6958 | total_size += |
| 6959 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6960 | unknown_fields()); |
| 6961 | } |
| 6962 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 6963 | { |
| 6964 | unsigned int count = this->method_size(); |
| 6965 | total_size += 1UL * count; |
| 6966 | for (unsigned int i = 0; i < count; i++) { |
| 6967 | total_size += |
| 6968 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6969 | this->method(i)); |
| 6970 | } |
| 6971 | } |
| 6972 | |
| 6973 | if (_has_bits_[0 / 32] & 3u) { |
| 6974 | // optional string name = 1; |
| 6975 | if (has_name()) { |
| 6976 | total_size += 1 + |
| 6977 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6978 | this->name()); |
| 6979 | } |
| 6980 | |
| 6981 | // optional .google.protobuf.ServiceOptions options = 3; |
| 6982 | if (has_options()) { |
| 6983 | total_size += 1 + |
| 6984 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 6985 | *this->options_); |
| 6986 | } |
| 6987 | |
| 6988 | } |
| 6989 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6990 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 6991 | _cached_size_ = cached_size; |
| 6992 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 6993 | return total_size; |
| 6994 | } |
| 6995 | |
| 6996 | void ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 6997 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceDescriptorProto) |
| 6998 | GOOGLE_DCHECK_NE(&from, this); |
| 6999 | const ServiceDescriptorProto* source = |
| 7000 | ::google::protobuf::internal::DynamicCastToGenerated<const ServiceDescriptorProto>( |
| 7001 | &from); |
| 7002 | if (source == NULL) { |
| 7003 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ServiceDescriptorProto) |
| 7004 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7005 | } else { |
| 7006 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceDescriptorProto) |
| 7007 | MergeFrom(*source); |
| 7008 | } |
| 7009 | } |
| 7010 | |
| 7011 | void ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) { |
| 7012 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceDescriptorProto) |
| 7013 | GOOGLE_DCHECK_NE(&from, this); |
| 7014 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7015 | method_.MergeFrom(from.method_); |
| 7016 | if (from._has_bits_[0 / 32] & 3u) { |
| 7017 | if (from.has_name()) { |
| 7018 | set_has_name(); |
| 7019 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 7020 | } |
| 7021 | if (from.has_options()) { |
| 7022 | mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options()); |
| 7023 | } |
| 7024 | } |
| 7025 | } |
| 7026 | |
| 7027 | void ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 7028 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceDescriptorProto) |
| 7029 | if (&from == this) return; |
| 7030 | Clear(); |
| 7031 | MergeFrom(from); |
| 7032 | } |
| 7033 | |
| 7034 | void ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) { |
| 7035 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceDescriptorProto) |
| 7036 | if (&from == this) return; |
| 7037 | Clear(); |
| 7038 | MergeFrom(from); |
| 7039 | } |
| 7040 | |
| 7041 | bool ServiceDescriptorProto::IsInitialized() const { |
| 7042 | if (!::google::protobuf::internal::AllAreInitialized(this->method())) return false; |
| 7043 | if (has_options()) { |
| 7044 | if (!this->options_->IsInitialized()) return false; |
| 7045 | } |
| 7046 | return true; |
| 7047 | } |
| 7048 | |
| 7049 | void ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) { |
| 7050 | if (other == this) return; |
| 7051 | InternalSwap(other); |
| 7052 | } |
| 7053 | void ServiceDescriptorProto::InternalSwap(ServiceDescriptorProto* other) { |
| 7054 | method_.UnsafeArenaSwap(&other->method_); |
| 7055 | name_.Swap(&other->name_); |
| 7056 | std::swap(options_, other->options_); |
| 7057 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 7058 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7059 | std::swap(_cached_size_, other->_cached_size_); |
| 7060 | } |
| 7061 | |
| 7062 | ::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const { |
| 7063 | protobuf_AssignDescriptorsOnce(); |
| 7064 | return file_level_metadata[9]; |
| 7065 | } |
| 7066 | |
| 7067 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 7068 | // ServiceDescriptorProto |
| 7069 | |
| 7070 | // optional string name = 1; |
| 7071 | bool ServiceDescriptorProto::has_name() const { |
| 7072 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 7073 | } |
| 7074 | void ServiceDescriptorProto::set_has_name() { |
| 7075 | _has_bits_[0] |= 0x00000001u; |
| 7076 | } |
| 7077 | void ServiceDescriptorProto::clear_has_name() { |
| 7078 | _has_bits_[0] &= ~0x00000001u; |
| 7079 | } |
| 7080 | void ServiceDescriptorProto::clear_name() { |
| 7081 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7082 | clear_has_name(); |
| 7083 | } |
| 7084 | const ::std::string& ServiceDescriptorProto::name() const { |
| 7085 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name) |
| 7086 | return name_.GetNoArena(); |
| 7087 | } |
| 7088 | void ServiceDescriptorProto::set_name(const ::std::string& value) { |
| 7089 | set_has_name(); |
| 7090 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 7091 | // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name) |
| 7092 | } |
| 7093 | #if LANG_CXX11 |
| 7094 | void ServiceDescriptorProto::set_name(::std::string&& value) { |
| 7095 | set_has_name(); |
| 7096 | name_.SetNoArena( |
| 7097 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 7098 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.ServiceDescriptorProto.name) |
| 7099 | } |
| 7100 | #endif |
| 7101 | void ServiceDescriptorProto::set_name(const char* value) { |
| 7102 | set_has_name(); |
| 7103 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 7104 | // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name) |
| 7105 | } |
| 7106 | void ServiceDescriptorProto::set_name(const char* value, size_t size) { |
| 7107 | set_has_name(); |
| 7108 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7109 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7110 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name) |
| 7111 | } |
| 7112 | ::std::string* ServiceDescriptorProto::mutable_name() { |
| 7113 | set_has_name(); |
| 7114 | // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name) |
| 7115 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7116 | } |
| 7117 | ::std::string* ServiceDescriptorProto::release_name() { |
| 7118 | // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name) |
| 7119 | clear_has_name(); |
| 7120 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7121 | } |
| 7122 | void ServiceDescriptorProto::set_allocated_name(::std::string* name) { |
| 7123 | if (name != NULL) { |
| 7124 | set_has_name(); |
| 7125 | } else { |
| 7126 | clear_has_name(); |
| 7127 | } |
| 7128 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 7129 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name) |
| 7130 | } |
| 7131 | |
| 7132 | // repeated .google.protobuf.MethodDescriptorProto method = 2; |
| 7133 | int ServiceDescriptorProto::method_size() const { |
| 7134 | return method_.size(); |
| 7135 | } |
| 7136 | void ServiceDescriptorProto::clear_method() { |
| 7137 | method_.Clear(); |
| 7138 | } |
| 7139 | const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const { |
| 7140 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method) |
| 7141 | return method_.Get(index); |
| 7142 | } |
| 7143 | ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) { |
| 7144 | // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method) |
| 7145 | return method_.Mutable(index); |
| 7146 | } |
| 7147 | ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() { |
| 7148 | // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method) |
| 7149 | return method_.Add(); |
| 7150 | } |
| 7151 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >* |
| 7152 | ServiceDescriptorProto::mutable_method() { |
| 7153 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method) |
| 7154 | return &method_; |
| 7155 | } |
| 7156 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >& |
| 7157 | ServiceDescriptorProto::method() const { |
| 7158 | // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method) |
| 7159 | return method_; |
| 7160 | } |
| 7161 | |
| 7162 | // optional .google.protobuf.ServiceOptions options = 3; |
| 7163 | bool ServiceDescriptorProto::has_options() const { |
| 7164 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 7165 | } |
| 7166 | void ServiceDescriptorProto::set_has_options() { |
| 7167 | _has_bits_[0] |= 0x00000002u; |
| 7168 | } |
| 7169 | void ServiceDescriptorProto::clear_has_options() { |
| 7170 | _has_bits_[0] &= ~0x00000002u; |
| 7171 | } |
| 7172 | void ServiceDescriptorProto::clear_options() { |
| 7173 | if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear(); |
| 7174 | clear_has_options(); |
| 7175 | } |
| 7176 | const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const { |
| 7177 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options) |
| 7178 | return options_ != NULL ? *options_ |
| 7179 | : *::google::protobuf::ServiceOptions::internal_default_instance(); |
| 7180 | } |
| 7181 | ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() { |
| 7182 | set_has_options(); |
| 7183 | if (options_ == NULL) { |
| 7184 | options_ = new ::google::protobuf::ServiceOptions; |
| 7185 | } |
| 7186 | // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options) |
| 7187 | return options_; |
| 7188 | } |
| 7189 | ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() { |
| 7190 | // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options) |
| 7191 | clear_has_options(); |
| 7192 | ::google::protobuf::ServiceOptions* temp = options_; |
| 7193 | options_ = NULL; |
| 7194 | return temp; |
| 7195 | } |
| 7196 | void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOptions* options) { |
| 7197 | delete options_; |
| 7198 | options_ = options; |
| 7199 | if (options) { |
| 7200 | set_has_options(); |
| 7201 | } else { |
| 7202 | clear_has_options(); |
| 7203 | } |
| 7204 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options) |
| 7205 | } |
| 7206 | |
| 7207 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 7208 | |
| 7209 | // =================================================================== |
| 7210 | |
| 7211 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7212 | const int MethodDescriptorProto::kNameFieldNumber; |
| 7213 | const int MethodDescriptorProto::kInputTypeFieldNumber; |
| 7214 | const int MethodDescriptorProto::kOutputTypeFieldNumber; |
| 7215 | const int MethodDescriptorProto::kOptionsFieldNumber; |
| 7216 | const int MethodDescriptorProto::kClientStreamingFieldNumber; |
| 7217 | const int MethodDescriptorProto::kServerStreamingFieldNumber; |
| 7218 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7219 | |
| 7220 | MethodDescriptorProto::MethodDescriptorProto() |
| 7221 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 7222 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 7223 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 7224 | } |
| 7225 | SharedCtor(); |
| 7226 | // @@protoc_insertion_point(constructor:google.protobuf.MethodDescriptorProto) |
| 7227 | } |
| 7228 | MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) |
| 7229 | : ::google::protobuf::Message(), |
| 7230 | _internal_metadata_(NULL), |
| 7231 | _has_bits_(from._has_bits_), |
| 7232 | _cached_size_(0) { |
| 7233 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7234 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7235 | if (from.has_name()) { |
| 7236 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 7237 | } |
| 7238 | input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7239 | if (from.has_input_type()) { |
| 7240 | input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_type_); |
| 7241 | } |
| 7242 | output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7243 | if (from.has_output_type()) { |
| 7244 | output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_type_); |
| 7245 | } |
| 7246 | if (from.has_options()) { |
| 7247 | options_ = new ::google::protobuf::MethodOptions(*from.options_); |
| 7248 | } else { |
| 7249 | options_ = NULL; |
| 7250 | } |
| 7251 | ::memcpy(&client_streaming_, &from.client_streaming_, |
| 7252 | reinterpret_cast<char*>(&server_streaming_) - |
| 7253 | reinterpret_cast<char*>(&client_streaming_) + sizeof(server_streaming_)); |
| 7254 | // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto) |
| 7255 | } |
| 7256 | |
| 7257 | void MethodDescriptorProto::SharedCtor() { |
| 7258 | _cached_size_ = 0; |
| 7259 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7260 | input_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7261 | output_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7262 | ::memset(&options_, 0, reinterpret_cast<char*>(&server_streaming_) - |
| 7263 | reinterpret_cast<char*>(&options_) + sizeof(server_streaming_)); |
| 7264 | } |
| 7265 | |
| 7266 | MethodDescriptorProto::~MethodDescriptorProto() { |
| 7267 | // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto) |
| 7268 | SharedDtor(); |
| 7269 | } |
| 7270 | |
| 7271 | void MethodDescriptorProto::SharedDtor() { |
| 7272 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7273 | input_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7274 | output_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7275 | if (this != internal_default_instance()) { |
| 7276 | delete options_; |
| 7277 | } |
| 7278 | } |
| 7279 | |
| 7280 | void MethodDescriptorProto::SetCachedSize(int size) const { |
| 7281 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 7282 | _cached_size_ = size; |
| 7283 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 7284 | } |
| 7285 | const ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() { |
| 7286 | protobuf_AssignDescriptorsOnce(); |
| 7287 | return file_level_metadata[10].descriptor; |
| 7288 | } |
| 7289 | |
| 7290 | const MethodDescriptorProto& MethodDescriptorProto::default_instance() { |
| 7291 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 7292 | return *internal_default_instance(); |
| 7293 | } |
| 7294 | |
| 7295 | MethodDescriptorProto* MethodDescriptorProto::New(::google::protobuf::Arena* arena) const { |
| 7296 | MethodDescriptorProto* n = new MethodDescriptorProto; |
| 7297 | if (arena != NULL) { |
| 7298 | arena->Own(n); |
| 7299 | } |
| 7300 | return n; |
| 7301 | } |
| 7302 | |
| 7303 | void MethodDescriptorProto::Clear() { |
| 7304 | // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodDescriptorProto) |
| 7305 | if (_has_bits_[0 / 32] & 15u) { |
| 7306 | if (has_name()) { |
| 7307 | GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 7308 | (*name_.UnsafeRawStringPointer())->clear(); |
| 7309 | } |
| 7310 | if (has_input_type()) { |
| 7311 | GOOGLE_DCHECK(!input_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 7312 | (*input_type_.UnsafeRawStringPointer())->clear(); |
| 7313 | } |
| 7314 | if (has_output_type()) { |
| 7315 | GOOGLE_DCHECK(!output_type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 7316 | (*output_type_.UnsafeRawStringPointer())->clear(); |
| 7317 | } |
| 7318 | if (has_options()) { |
| 7319 | GOOGLE_DCHECK(options_ != NULL); |
| 7320 | options_->::google::protobuf::MethodOptions::Clear(); |
| 7321 | } |
| 7322 | } |
| 7323 | if (_has_bits_[0 / 32] & 48u) { |
| 7324 | ::memset(&client_streaming_, 0, reinterpret_cast<char*>(&server_streaming_) - |
| 7325 | reinterpret_cast<char*>(&client_streaming_) + sizeof(server_streaming_)); |
| 7326 | } |
| 7327 | _has_bits_.Clear(); |
| 7328 | _internal_metadata_.Clear(); |
| 7329 | } |
| 7330 | |
| 7331 | bool MethodDescriptorProto::MergePartialFromCodedStream( |
| 7332 | ::google::protobuf::io::CodedInputStream* input) { |
| 7333 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7334 | ::google::protobuf::uint32 tag; |
| 7335 | // @@protoc_insertion_point(parse_start:google.protobuf.MethodDescriptorProto) |
| 7336 | for (;;) { |
| 7337 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7338 | tag = p.first; |
| 7339 | if (!p.second) goto handle_unusual; |
| 7340 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7341 | // optional string name = 1; |
| 7342 | case 1: { |
| 7343 | if (tag == 10u) { |
| 7344 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7345 | input, this->mutable_name())); |
| 7346 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7347 | this->name().data(), this->name().length(), |
| 7348 | ::google::protobuf::internal::WireFormat::PARSE, |
| 7349 | "google.protobuf.MethodDescriptorProto.name"); |
| 7350 | } else { |
| 7351 | goto handle_unusual; |
| 7352 | } |
| 7353 | break; |
| 7354 | } |
| 7355 | |
| 7356 | // optional string input_type = 2; |
| 7357 | case 2: { |
| 7358 | if (tag == 18u) { |
| 7359 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7360 | input, this->mutable_input_type())); |
| 7361 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7362 | this->input_type().data(), this->input_type().length(), |
| 7363 | ::google::protobuf::internal::WireFormat::PARSE, |
| 7364 | "google.protobuf.MethodDescriptorProto.input_type"); |
| 7365 | } else { |
| 7366 | goto handle_unusual; |
| 7367 | } |
| 7368 | break; |
| 7369 | } |
| 7370 | |
| 7371 | // optional string output_type = 3; |
| 7372 | case 3: { |
| 7373 | if (tag == 26u) { |
| 7374 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7375 | input, this->mutable_output_type())); |
| 7376 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7377 | this->output_type().data(), this->output_type().length(), |
| 7378 | ::google::protobuf::internal::WireFormat::PARSE, |
| 7379 | "google.protobuf.MethodDescriptorProto.output_type"); |
| 7380 | } else { |
| 7381 | goto handle_unusual; |
| 7382 | } |
| 7383 | break; |
| 7384 | } |
| 7385 | |
| 7386 | // optional .google.protobuf.MethodOptions options = 4; |
| 7387 | case 4: { |
| 7388 | if (tag == 34u) { |
| 7389 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 7390 | input, mutable_options())); |
| 7391 | } else { |
| 7392 | goto handle_unusual; |
| 7393 | } |
| 7394 | break; |
| 7395 | } |
| 7396 | |
| 7397 | // optional bool client_streaming = 5 [default = false]; |
| 7398 | case 5: { |
| 7399 | if (tag == 40u) { |
| 7400 | set_has_client_streaming(); |
| 7401 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7402 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 7403 | input, &client_streaming_))); |
| 7404 | } else { |
| 7405 | goto handle_unusual; |
| 7406 | } |
| 7407 | break; |
| 7408 | } |
| 7409 | |
| 7410 | // optional bool server_streaming = 6 [default = false]; |
| 7411 | case 6: { |
| 7412 | if (tag == 48u) { |
| 7413 | set_has_server_streaming(); |
| 7414 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7415 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 7416 | input, &server_streaming_))); |
| 7417 | } else { |
| 7418 | goto handle_unusual; |
| 7419 | } |
| 7420 | break; |
| 7421 | } |
| 7422 | |
| 7423 | default: { |
| 7424 | handle_unusual: |
| 7425 | if (tag == 0 || |
| 7426 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 7427 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 7428 | goto success; |
| 7429 | } |
| 7430 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7431 | input, tag, mutable_unknown_fields())); |
| 7432 | break; |
| 7433 | } |
| 7434 | } |
| 7435 | } |
| 7436 | success: |
| 7437 | // @@protoc_insertion_point(parse_success:google.protobuf.MethodDescriptorProto) |
| 7438 | return true; |
| 7439 | failure: |
| 7440 | // @@protoc_insertion_point(parse_failure:google.protobuf.MethodDescriptorProto) |
| 7441 | return false; |
| 7442 | #undef DO_ |
| 7443 | } |
| 7444 | |
| 7445 | void MethodDescriptorProto::SerializeWithCachedSizes( |
| 7446 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7447 | // @@protoc_insertion_point(serialize_start:google.protobuf.MethodDescriptorProto) |
| 7448 | // optional string name = 1; |
| 7449 | if (has_name()) { |
| 7450 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7451 | this->name().data(), this->name().length(), |
| 7452 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7453 | "google.protobuf.MethodDescriptorProto.name"); |
| 7454 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7455 | 1, this->name(), output); |
| 7456 | } |
| 7457 | |
| 7458 | // optional string input_type = 2; |
| 7459 | if (has_input_type()) { |
| 7460 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7461 | this->input_type().data(), this->input_type().length(), |
| 7462 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7463 | "google.protobuf.MethodDescriptorProto.input_type"); |
| 7464 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7465 | 2, this->input_type(), output); |
| 7466 | } |
| 7467 | |
| 7468 | // optional string output_type = 3; |
| 7469 | if (has_output_type()) { |
| 7470 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7471 | this->output_type().data(), this->output_type().length(), |
| 7472 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7473 | "google.protobuf.MethodDescriptorProto.output_type"); |
| 7474 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7475 | 3, this->output_type(), output); |
| 7476 | } |
| 7477 | |
| 7478 | // optional .google.protobuf.MethodOptions options = 4; |
| 7479 | if (has_options()) { |
| 7480 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7481 | 4, *this->options_, output); |
| 7482 | } |
| 7483 | |
| 7484 | // optional bool client_streaming = 5 [default = false]; |
| 7485 | if (has_client_streaming()) { |
| 7486 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->client_streaming(), output); |
| 7487 | } |
| 7488 | |
| 7489 | // optional bool server_streaming = 6 [default = false]; |
| 7490 | if (has_server_streaming()) { |
| 7491 | ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->server_streaming(), output); |
| 7492 | } |
| 7493 | |
| 7494 | if (_internal_metadata_.have_unknown_fields()) { |
| 7495 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7496 | unknown_fields(), output); |
| 7497 | } |
| 7498 | // @@protoc_insertion_point(serialize_end:google.protobuf.MethodDescriptorProto) |
| 7499 | } |
| 7500 | |
| 7501 | ::google::protobuf::uint8* MethodDescriptorProto::InternalSerializeWithCachedSizesToArray( |
| 7502 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 7503 | (void)deterministic; // Unused |
| 7504 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto) |
| 7505 | // optional string name = 1; |
| 7506 | if (has_name()) { |
| 7507 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7508 | this->name().data(), this->name().length(), |
| 7509 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7510 | "google.protobuf.MethodDescriptorProto.name"); |
| 7511 | target = |
| 7512 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7513 | 1, this->name(), target); |
| 7514 | } |
| 7515 | |
| 7516 | // optional string input_type = 2; |
| 7517 | if (has_input_type()) { |
| 7518 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7519 | this->input_type().data(), this->input_type().length(), |
| 7520 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7521 | "google.protobuf.MethodDescriptorProto.input_type"); |
| 7522 | target = |
| 7523 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7524 | 2, this->input_type(), target); |
| 7525 | } |
| 7526 | |
| 7527 | // optional string output_type = 3; |
| 7528 | if (has_output_type()) { |
| 7529 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 7530 | this->output_type().data(), this->output_type().length(), |
| 7531 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 7532 | "google.protobuf.MethodDescriptorProto.output_type"); |
| 7533 | target = |
| 7534 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7535 | 3, this->output_type(), target); |
| 7536 | } |
| 7537 | |
| 7538 | // optional .google.protobuf.MethodOptions options = 4; |
| 7539 | if (has_options()) { |
| 7540 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7541 | InternalWriteMessageNoVirtualToArray( |
| 7542 | 4, *this->options_, false, target); |
| 7543 | } |
| 7544 | |
| 7545 | // optional bool client_streaming = 5 [default = false]; |
| 7546 | if (has_client_streaming()) { |
| 7547 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->client_streaming(), target); |
| 7548 | } |
| 7549 | |
| 7550 | // optional bool server_streaming = 6 [default = false]; |
| 7551 | if (has_server_streaming()) { |
| 7552 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->server_streaming(), target); |
| 7553 | } |
| 7554 | |
| 7555 | if (_internal_metadata_.have_unknown_fields()) { |
| 7556 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7557 | unknown_fields(), target); |
| 7558 | } |
| 7559 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodDescriptorProto) |
| 7560 | return target; |
| 7561 | } |
| 7562 | |
| 7563 | size_t MethodDescriptorProto::ByteSizeLong() const { |
| 7564 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodDescriptorProto) |
| 7565 | size_t total_size = 0; |
| 7566 | |
| 7567 | if (_internal_metadata_.have_unknown_fields()) { |
| 7568 | total_size += |
| 7569 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7570 | unknown_fields()); |
| 7571 | } |
| 7572 | if (_has_bits_[0 / 32] & 63u) { |
| 7573 | // optional string name = 1; |
| 7574 | if (has_name()) { |
| 7575 | total_size += 1 + |
| 7576 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7577 | this->name()); |
| 7578 | } |
| 7579 | |
| 7580 | // optional string input_type = 2; |
| 7581 | if (has_input_type()) { |
| 7582 | total_size += 1 + |
| 7583 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7584 | this->input_type()); |
| 7585 | } |
| 7586 | |
| 7587 | // optional string output_type = 3; |
| 7588 | if (has_output_type()) { |
| 7589 | total_size += 1 + |
| 7590 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7591 | this->output_type()); |
| 7592 | } |
| 7593 | |
| 7594 | // optional .google.protobuf.MethodOptions options = 4; |
| 7595 | if (has_options()) { |
| 7596 | total_size += 1 + |
| 7597 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 7598 | *this->options_); |
| 7599 | } |
| 7600 | |
| 7601 | // optional bool client_streaming = 5 [default = false]; |
| 7602 | if (has_client_streaming()) { |
| 7603 | total_size += 1 + 1; |
| 7604 | } |
| 7605 | |
| 7606 | // optional bool server_streaming = 6 [default = false]; |
| 7607 | if (has_server_streaming()) { |
| 7608 | total_size += 1 + 1; |
| 7609 | } |
| 7610 | |
| 7611 | } |
| 7612 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7613 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 7614 | _cached_size_ = cached_size; |
| 7615 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 7616 | return total_size; |
| 7617 | } |
| 7618 | |
| 7619 | void MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) { |
| 7620 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodDescriptorProto) |
| 7621 | GOOGLE_DCHECK_NE(&from, this); |
| 7622 | const MethodDescriptorProto* source = |
| 7623 | ::google::protobuf::internal::DynamicCastToGenerated<const MethodDescriptorProto>( |
| 7624 | &from); |
| 7625 | if (source == NULL) { |
| 7626 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MethodDescriptorProto) |
| 7627 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7628 | } else { |
| 7629 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodDescriptorProto) |
| 7630 | MergeFrom(*source); |
| 7631 | } |
| 7632 | } |
| 7633 | |
| 7634 | void MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) { |
| 7635 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodDescriptorProto) |
| 7636 | GOOGLE_DCHECK_NE(&from, this); |
| 7637 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7638 | if (from._has_bits_[0 / 32] & 63u) { |
| 7639 | if (from.has_name()) { |
| 7640 | set_has_name(); |
| 7641 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 7642 | } |
| 7643 | if (from.has_input_type()) { |
| 7644 | set_has_input_type(); |
| 7645 | input_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_type_); |
| 7646 | } |
| 7647 | if (from.has_output_type()) { |
| 7648 | set_has_output_type(); |
| 7649 | output_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_type_); |
| 7650 | } |
| 7651 | if (from.has_options()) { |
| 7652 | mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options()); |
| 7653 | } |
| 7654 | if (from.has_client_streaming()) { |
| 7655 | set_client_streaming(from.client_streaming()); |
| 7656 | } |
| 7657 | if (from.has_server_streaming()) { |
| 7658 | set_server_streaming(from.server_streaming()); |
| 7659 | } |
| 7660 | } |
| 7661 | } |
| 7662 | |
| 7663 | void MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) { |
| 7664 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodDescriptorProto) |
| 7665 | if (&from == this) return; |
| 7666 | Clear(); |
| 7667 | MergeFrom(from); |
| 7668 | } |
| 7669 | |
| 7670 | void MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) { |
| 7671 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodDescriptorProto) |
| 7672 | if (&from == this) return; |
| 7673 | Clear(); |
| 7674 | MergeFrom(from); |
| 7675 | } |
| 7676 | |
| 7677 | bool MethodDescriptorProto::IsInitialized() const { |
| 7678 | if (has_options()) { |
| 7679 | if (!this->options_->IsInitialized()) return false; |
| 7680 | } |
| 7681 | return true; |
| 7682 | } |
| 7683 | |
| 7684 | void MethodDescriptorProto::Swap(MethodDescriptorProto* other) { |
| 7685 | if (other == this) return; |
| 7686 | InternalSwap(other); |
| 7687 | } |
| 7688 | void MethodDescriptorProto::InternalSwap(MethodDescriptorProto* other) { |
| 7689 | name_.Swap(&other->name_); |
| 7690 | input_type_.Swap(&other->input_type_); |
| 7691 | output_type_.Swap(&other->output_type_); |
| 7692 | std::swap(options_, other->options_); |
| 7693 | std::swap(client_streaming_, other->client_streaming_); |
| 7694 | std::swap(server_streaming_, other->server_streaming_); |
| 7695 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 7696 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7697 | std::swap(_cached_size_, other->_cached_size_); |
| 7698 | } |
| 7699 | |
| 7700 | ::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const { |
| 7701 | protobuf_AssignDescriptorsOnce(); |
| 7702 | return file_level_metadata[10]; |
| 7703 | } |
| 7704 | |
| 7705 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 7706 | // MethodDescriptorProto |
| 7707 | |
| 7708 | // optional string name = 1; |
| 7709 | bool MethodDescriptorProto::has_name() const { |
| 7710 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 7711 | } |
| 7712 | void MethodDescriptorProto::set_has_name() { |
| 7713 | _has_bits_[0] |= 0x00000001u; |
| 7714 | } |
| 7715 | void MethodDescriptorProto::clear_has_name() { |
| 7716 | _has_bits_[0] &= ~0x00000001u; |
| 7717 | } |
| 7718 | void MethodDescriptorProto::clear_name() { |
| 7719 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7720 | clear_has_name(); |
| 7721 | } |
| 7722 | const ::std::string& MethodDescriptorProto::name() const { |
| 7723 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name) |
| 7724 | return name_.GetNoArena(); |
| 7725 | } |
| 7726 | void MethodDescriptorProto::set_name(const ::std::string& value) { |
| 7727 | set_has_name(); |
| 7728 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 7729 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name) |
| 7730 | } |
| 7731 | #if LANG_CXX11 |
| 7732 | void MethodDescriptorProto::set_name(::std::string&& value) { |
| 7733 | set_has_name(); |
| 7734 | name_.SetNoArena( |
| 7735 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 7736 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.name) |
| 7737 | } |
| 7738 | #endif |
| 7739 | void MethodDescriptorProto::set_name(const char* value) { |
| 7740 | set_has_name(); |
| 7741 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 7742 | // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name) |
| 7743 | } |
| 7744 | void MethodDescriptorProto::set_name(const char* value, size_t size) { |
| 7745 | set_has_name(); |
| 7746 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7747 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7748 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name) |
| 7749 | } |
| 7750 | ::std::string* MethodDescriptorProto::mutable_name() { |
| 7751 | set_has_name(); |
| 7752 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name) |
| 7753 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7754 | } |
| 7755 | ::std::string* MethodDescriptorProto::release_name() { |
| 7756 | // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name) |
| 7757 | clear_has_name(); |
| 7758 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7759 | } |
| 7760 | void MethodDescriptorProto::set_allocated_name(::std::string* name) { |
| 7761 | if (name != NULL) { |
| 7762 | set_has_name(); |
| 7763 | } else { |
| 7764 | clear_has_name(); |
| 7765 | } |
| 7766 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
| 7767 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name) |
| 7768 | } |
| 7769 | |
| 7770 | // optional string input_type = 2; |
| 7771 | bool MethodDescriptorProto::has_input_type() const { |
| 7772 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 7773 | } |
| 7774 | void MethodDescriptorProto::set_has_input_type() { |
| 7775 | _has_bits_[0] |= 0x00000002u; |
| 7776 | } |
| 7777 | void MethodDescriptorProto::clear_has_input_type() { |
| 7778 | _has_bits_[0] &= ~0x00000002u; |
| 7779 | } |
| 7780 | void MethodDescriptorProto::clear_input_type() { |
| 7781 | input_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7782 | clear_has_input_type(); |
| 7783 | } |
| 7784 | const ::std::string& MethodDescriptorProto::input_type() const { |
| 7785 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type) |
| 7786 | return input_type_.GetNoArena(); |
| 7787 | } |
| 7788 | void MethodDescriptorProto::set_input_type(const ::std::string& value) { |
| 7789 | set_has_input_type(); |
| 7790 | input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 7791 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type) |
| 7792 | } |
| 7793 | #if LANG_CXX11 |
| 7794 | void MethodDescriptorProto::set_input_type(::std::string&& value) { |
| 7795 | set_has_input_type(); |
| 7796 | input_type_.SetNoArena( |
| 7797 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 7798 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.input_type) |
| 7799 | } |
| 7800 | #endif |
| 7801 | void MethodDescriptorProto::set_input_type(const char* value) { |
| 7802 | set_has_input_type(); |
| 7803 | input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 7804 | // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type) |
| 7805 | } |
| 7806 | void MethodDescriptorProto::set_input_type(const char* value, size_t size) { |
| 7807 | set_has_input_type(); |
| 7808 | input_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7809 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7810 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type) |
| 7811 | } |
| 7812 | ::std::string* MethodDescriptorProto::mutable_input_type() { |
| 7813 | set_has_input_type(); |
| 7814 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type) |
| 7815 | return input_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7816 | } |
| 7817 | ::std::string* MethodDescriptorProto::release_input_type() { |
| 7818 | // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type) |
| 7819 | clear_has_input_type(); |
| 7820 | return input_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7821 | } |
| 7822 | void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) { |
| 7823 | if (input_type != NULL) { |
| 7824 | set_has_input_type(); |
| 7825 | } else { |
| 7826 | clear_has_input_type(); |
| 7827 | } |
| 7828 | input_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_type); |
| 7829 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type) |
| 7830 | } |
| 7831 | |
| 7832 | // optional string output_type = 3; |
| 7833 | bool MethodDescriptorProto::has_output_type() const { |
| 7834 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 7835 | } |
| 7836 | void MethodDescriptorProto::set_has_output_type() { |
| 7837 | _has_bits_[0] |= 0x00000004u; |
| 7838 | } |
| 7839 | void MethodDescriptorProto::clear_has_output_type() { |
| 7840 | _has_bits_[0] &= ~0x00000004u; |
| 7841 | } |
| 7842 | void MethodDescriptorProto::clear_output_type() { |
| 7843 | output_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7844 | clear_has_output_type(); |
| 7845 | } |
| 7846 | const ::std::string& MethodDescriptorProto::output_type() const { |
| 7847 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type) |
| 7848 | return output_type_.GetNoArena(); |
| 7849 | } |
| 7850 | void MethodDescriptorProto::set_output_type(const ::std::string& value) { |
| 7851 | set_has_output_type(); |
| 7852 | output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 7853 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type) |
| 7854 | } |
| 7855 | #if LANG_CXX11 |
| 7856 | void MethodDescriptorProto::set_output_type(::std::string&& value) { |
| 7857 | set_has_output_type(); |
| 7858 | output_type_.SetNoArena( |
| 7859 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 7860 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.output_type) |
| 7861 | } |
| 7862 | #endif |
| 7863 | void MethodDescriptorProto::set_output_type(const char* value) { |
| 7864 | set_has_output_type(); |
| 7865 | output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 7866 | // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type) |
| 7867 | } |
| 7868 | void MethodDescriptorProto::set_output_type(const char* value, size_t size) { |
| 7869 | set_has_output_type(); |
| 7870 | output_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7871 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 7872 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type) |
| 7873 | } |
| 7874 | ::std::string* MethodDescriptorProto::mutable_output_type() { |
| 7875 | set_has_output_type(); |
| 7876 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type) |
| 7877 | return output_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7878 | } |
| 7879 | ::std::string* MethodDescriptorProto::release_output_type() { |
| 7880 | // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type) |
| 7881 | clear_has_output_type(); |
| 7882 | return output_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7883 | } |
| 7884 | void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) { |
| 7885 | if (output_type != NULL) { |
| 7886 | set_has_output_type(); |
| 7887 | } else { |
| 7888 | clear_has_output_type(); |
| 7889 | } |
| 7890 | output_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_type); |
| 7891 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type) |
| 7892 | } |
| 7893 | |
| 7894 | // optional .google.protobuf.MethodOptions options = 4; |
| 7895 | bool MethodDescriptorProto::has_options() const { |
| 7896 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 7897 | } |
| 7898 | void MethodDescriptorProto::set_has_options() { |
| 7899 | _has_bits_[0] |= 0x00000008u; |
| 7900 | } |
| 7901 | void MethodDescriptorProto::clear_has_options() { |
| 7902 | _has_bits_[0] &= ~0x00000008u; |
| 7903 | } |
| 7904 | void MethodDescriptorProto::clear_options() { |
| 7905 | if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear(); |
| 7906 | clear_has_options(); |
| 7907 | } |
| 7908 | const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const { |
| 7909 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options) |
| 7910 | return options_ != NULL ? *options_ |
| 7911 | : *::google::protobuf::MethodOptions::internal_default_instance(); |
| 7912 | } |
| 7913 | ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() { |
| 7914 | set_has_options(); |
| 7915 | if (options_ == NULL) { |
| 7916 | options_ = new ::google::protobuf::MethodOptions; |
| 7917 | } |
| 7918 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options) |
| 7919 | return options_; |
| 7920 | } |
| 7921 | ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() { |
| 7922 | // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options) |
| 7923 | clear_has_options(); |
| 7924 | ::google::protobuf::MethodOptions* temp = options_; |
| 7925 | options_ = NULL; |
| 7926 | return temp; |
| 7927 | } |
| 7928 | void MethodDescriptorProto::set_allocated_options(::google::protobuf::MethodOptions* options) { |
| 7929 | delete options_; |
| 7930 | options_ = options; |
| 7931 | if (options) { |
| 7932 | set_has_options(); |
| 7933 | } else { |
| 7934 | clear_has_options(); |
| 7935 | } |
| 7936 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options) |
| 7937 | } |
| 7938 | |
| 7939 | // optional bool client_streaming = 5 [default = false]; |
| 7940 | bool MethodDescriptorProto::has_client_streaming() const { |
| 7941 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 7942 | } |
| 7943 | void MethodDescriptorProto::set_has_client_streaming() { |
| 7944 | _has_bits_[0] |= 0x00000010u; |
| 7945 | } |
| 7946 | void MethodDescriptorProto::clear_has_client_streaming() { |
| 7947 | _has_bits_[0] &= ~0x00000010u; |
| 7948 | } |
| 7949 | void MethodDescriptorProto::clear_client_streaming() { |
| 7950 | client_streaming_ = false; |
| 7951 | clear_has_client_streaming(); |
| 7952 | } |
| 7953 | bool MethodDescriptorProto::client_streaming() const { |
| 7954 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming) |
| 7955 | return client_streaming_; |
| 7956 | } |
| 7957 | void MethodDescriptorProto::set_client_streaming(bool value) { |
| 7958 | set_has_client_streaming(); |
| 7959 | client_streaming_ = value; |
| 7960 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming) |
| 7961 | } |
| 7962 | |
| 7963 | // optional bool server_streaming = 6 [default = false]; |
| 7964 | bool MethodDescriptorProto::has_server_streaming() const { |
| 7965 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 7966 | } |
| 7967 | void MethodDescriptorProto::set_has_server_streaming() { |
| 7968 | _has_bits_[0] |= 0x00000020u; |
| 7969 | } |
| 7970 | void MethodDescriptorProto::clear_has_server_streaming() { |
| 7971 | _has_bits_[0] &= ~0x00000020u; |
| 7972 | } |
| 7973 | void MethodDescriptorProto::clear_server_streaming() { |
| 7974 | server_streaming_ = false; |
| 7975 | clear_has_server_streaming(); |
| 7976 | } |
| 7977 | bool MethodDescriptorProto::server_streaming() const { |
| 7978 | // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming) |
| 7979 | return server_streaming_; |
| 7980 | } |
| 7981 | void MethodDescriptorProto::set_server_streaming(bool value) { |
| 7982 | set_has_server_streaming(); |
| 7983 | server_streaming_ = value; |
| 7984 | // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming) |
| 7985 | } |
| 7986 | |
| 7987 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 7988 | |
| 7989 | // =================================================================== |
| 7990 | |
| 7991 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7992 | const int FileOptions::kJavaPackageFieldNumber; |
| 7993 | const int FileOptions::kJavaOuterClassnameFieldNumber; |
| 7994 | const int FileOptions::kJavaMultipleFilesFieldNumber; |
| 7995 | const int FileOptions::kJavaGenerateEqualsAndHashFieldNumber; |
| 7996 | const int FileOptions::kJavaStringCheckUtf8FieldNumber; |
| 7997 | const int FileOptions::kOptimizeForFieldNumber; |
| 7998 | const int FileOptions::kGoPackageFieldNumber; |
| 7999 | const int FileOptions::kCcGenericServicesFieldNumber; |
| 8000 | const int FileOptions::kJavaGenericServicesFieldNumber; |
| 8001 | const int FileOptions::kPyGenericServicesFieldNumber; |
| 8002 | const int FileOptions::kDeprecatedFieldNumber; |
| 8003 | const int FileOptions::kCcEnableArenasFieldNumber; |
| 8004 | const int FileOptions::kObjcClassPrefixFieldNumber; |
| 8005 | const int FileOptions::kCsharpNamespaceFieldNumber; |
| 8006 | const int FileOptions::kSwiftPrefixFieldNumber; |
| 8007 | const int FileOptions::kUninterpretedOptionFieldNumber; |
| 8008 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8009 | |
| 8010 | FileOptions::FileOptions() |
| 8011 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 8012 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 8013 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 8014 | } |
| 8015 | SharedCtor(); |
| 8016 | // @@protoc_insertion_point(constructor:google.protobuf.FileOptions) |
| 8017 | } |
| 8018 | FileOptions::FileOptions(const FileOptions& from) |
| 8019 | : ::google::protobuf::Message(), |
| 8020 | _internal_metadata_(NULL), |
| 8021 | _has_bits_(from._has_bits_), |
| 8022 | _cached_size_(0), |
| 8023 | uninterpreted_option_(from.uninterpreted_option_) { |
| 8024 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8025 | _extensions_.MergeFrom(from._extensions_); |
| 8026 | java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8027 | if (from.has_java_package()) { |
| 8028 | java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_package_); |
| 8029 | } |
| 8030 | java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8031 | if (from.has_java_outer_classname()) { |
| 8032 | java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_outer_classname_); |
| 8033 | } |
| 8034 | go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8035 | if (from.has_go_package()) { |
| 8036 | go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.go_package_); |
| 8037 | } |
| 8038 | objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8039 | if (from.has_objc_class_prefix()) { |
| 8040 | objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.objc_class_prefix_); |
| 8041 | } |
| 8042 | csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8043 | if (from.has_csharp_namespace()) { |
| 8044 | csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.csharp_namespace_); |
| 8045 | } |
| 8046 | swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8047 | if (from.has_swift_prefix()) { |
| 8048 | swift_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.swift_prefix_); |
| 8049 | } |
| 8050 | ::memcpy(&java_multiple_files_, &from.java_multiple_files_, |
| 8051 | reinterpret_cast<char*>(&optimize_for_) - |
| 8052 | reinterpret_cast<char*>(&java_multiple_files_) + sizeof(optimize_for_)); |
| 8053 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) |
| 8054 | } |
| 8055 | |
| 8056 | void FileOptions::SharedCtor() { |
| 8057 | _cached_size_ = 0; |
| 8058 | java_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8059 | java_outer_classname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8060 | go_package_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8061 | objc_class_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8062 | csharp_namespace_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8063 | swift_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8064 | ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&cc_enable_arenas_) - |
| 8065 | reinterpret_cast<char*>(&java_multiple_files_) + sizeof(cc_enable_arenas_)); |
| 8066 | optimize_for_ = 1; |
| 8067 | } |
| 8068 | |
| 8069 | FileOptions::~FileOptions() { |
| 8070 | // @@protoc_insertion_point(destructor:google.protobuf.FileOptions) |
| 8071 | SharedDtor(); |
| 8072 | } |
| 8073 | |
| 8074 | void FileOptions::SharedDtor() { |
| 8075 | java_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8076 | java_outer_classname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8077 | go_package_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8078 | objc_class_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8079 | csharp_namespace_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8080 | swift_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8081 | } |
| 8082 | |
| 8083 | void FileOptions::SetCachedSize(int size) const { |
| 8084 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 8085 | _cached_size_ = size; |
| 8086 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 8087 | } |
| 8088 | const ::google::protobuf::Descriptor* FileOptions::descriptor() { |
| 8089 | protobuf_AssignDescriptorsOnce(); |
| 8090 | return file_level_metadata[11].descriptor; |
| 8091 | } |
| 8092 | |
| 8093 | const FileOptions& FileOptions::default_instance() { |
| 8094 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 8095 | return *internal_default_instance(); |
| 8096 | } |
| 8097 | |
| 8098 | FileOptions* FileOptions::New(::google::protobuf::Arena* arena) const { |
| 8099 | FileOptions* n = new FileOptions; |
| 8100 | if (arena != NULL) { |
| 8101 | arena->Own(n); |
| 8102 | } |
| 8103 | return n; |
| 8104 | } |
| 8105 | |
| 8106 | void FileOptions::Clear() { |
| 8107 | // @@protoc_insertion_point(message_clear_start:google.protobuf.FileOptions) |
| 8108 | _extensions_.Clear(); |
| 8109 | uninterpreted_option_.Clear(); |
| 8110 | if (_has_bits_[0 / 32] & 63u) { |
| 8111 | if (has_java_package()) { |
| 8112 | GOOGLE_DCHECK(!java_package_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 8113 | (*java_package_.UnsafeRawStringPointer())->clear(); |
| 8114 | } |
| 8115 | if (has_java_outer_classname()) { |
| 8116 | GOOGLE_DCHECK(!java_outer_classname_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 8117 | (*java_outer_classname_.UnsafeRawStringPointer())->clear(); |
| 8118 | } |
| 8119 | if (has_go_package()) { |
| 8120 | GOOGLE_DCHECK(!go_package_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 8121 | (*go_package_.UnsafeRawStringPointer())->clear(); |
| 8122 | } |
| 8123 | if (has_objc_class_prefix()) { |
| 8124 | GOOGLE_DCHECK(!objc_class_prefix_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 8125 | (*objc_class_prefix_.UnsafeRawStringPointer())->clear(); |
| 8126 | } |
| 8127 | if (has_csharp_namespace()) { |
| 8128 | GOOGLE_DCHECK(!csharp_namespace_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 8129 | (*csharp_namespace_.UnsafeRawStringPointer())->clear(); |
| 8130 | } |
| 8131 | if (has_swift_prefix()) { |
| 8132 | GOOGLE_DCHECK(!swift_prefix_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 8133 | (*swift_prefix_.UnsafeRawStringPointer())->clear(); |
| 8134 | } |
| 8135 | } |
| 8136 | if (_has_bits_[0 / 32] & 192u) { |
| 8137 | ::memset(&java_multiple_files_, 0, reinterpret_cast<char*>(&java_generate_equals_and_hash_) - |
| 8138 | reinterpret_cast<char*>(&java_multiple_files_) + sizeof(java_generate_equals_and_hash_)); |
| 8139 | } |
| 8140 | if (_has_bits_[8 / 32] & 32512u) { |
| 8141 | ::memset(&java_string_check_utf8_, 0, reinterpret_cast<char*>(&cc_enable_arenas_) - |
| 8142 | reinterpret_cast<char*>(&java_string_check_utf8_) + sizeof(cc_enable_arenas_)); |
| 8143 | optimize_for_ = 1; |
| 8144 | } |
| 8145 | _has_bits_.Clear(); |
| 8146 | _internal_metadata_.Clear(); |
| 8147 | } |
| 8148 | |
| 8149 | bool FileOptions::MergePartialFromCodedStream( |
| 8150 | ::google::protobuf::io::CodedInputStream* input) { |
| 8151 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8152 | ::google::protobuf::uint32 tag; |
| 8153 | // @@protoc_insertion_point(parse_start:google.protobuf.FileOptions) |
| 8154 | for (;;) { |
| 8155 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 8156 | tag = p.first; |
| 8157 | if (!p.second) goto handle_unusual; |
| 8158 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8159 | // optional string java_package = 1; |
| 8160 | case 1: { |
| 8161 | if (tag == 10u) { |
| 8162 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8163 | input, this->mutable_java_package())); |
| 8164 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8165 | this->java_package().data(), this->java_package().length(), |
| 8166 | ::google::protobuf::internal::WireFormat::PARSE, |
| 8167 | "google.protobuf.FileOptions.java_package"); |
| 8168 | } else { |
| 8169 | goto handle_unusual; |
| 8170 | } |
| 8171 | break; |
| 8172 | } |
| 8173 | |
| 8174 | // optional string java_outer_classname = 8; |
| 8175 | case 8: { |
| 8176 | if (tag == 66u) { |
| 8177 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8178 | input, this->mutable_java_outer_classname())); |
| 8179 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8180 | this->java_outer_classname().data(), this->java_outer_classname().length(), |
| 8181 | ::google::protobuf::internal::WireFormat::PARSE, |
| 8182 | "google.protobuf.FileOptions.java_outer_classname"); |
| 8183 | } else { |
| 8184 | goto handle_unusual; |
| 8185 | } |
| 8186 | break; |
| 8187 | } |
| 8188 | |
| 8189 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 8190 | case 9: { |
| 8191 | if (tag == 72u) { |
| 8192 | int value; |
| 8193 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8194 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8195 | input, &value))); |
| 8196 | if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) { |
| 8197 | set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value)); |
| 8198 | } else { |
| 8199 | mutable_unknown_fields()->AddVarint(9, value); |
| 8200 | } |
| 8201 | } else { |
| 8202 | goto handle_unusual; |
| 8203 | } |
| 8204 | break; |
| 8205 | } |
| 8206 | |
| 8207 | // optional bool java_multiple_files = 10 [default = false]; |
| 8208 | case 10: { |
| 8209 | if (tag == 80u) { |
| 8210 | set_has_java_multiple_files(); |
| 8211 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8212 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8213 | input, &java_multiple_files_))); |
| 8214 | } else { |
| 8215 | goto handle_unusual; |
| 8216 | } |
| 8217 | break; |
| 8218 | } |
| 8219 | |
| 8220 | // optional string go_package = 11; |
| 8221 | case 11: { |
| 8222 | if (tag == 90u) { |
| 8223 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8224 | input, this->mutable_go_package())); |
| 8225 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8226 | this->go_package().data(), this->go_package().length(), |
| 8227 | ::google::protobuf::internal::WireFormat::PARSE, |
| 8228 | "google.protobuf.FileOptions.go_package"); |
| 8229 | } else { |
| 8230 | goto handle_unusual; |
| 8231 | } |
| 8232 | break; |
| 8233 | } |
| 8234 | |
| 8235 | // optional bool cc_generic_services = 16 [default = false]; |
| 8236 | case 16: { |
| 8237 | if (tag == 128u) { |
| 8238 | set_has_cc_generic_services(); |
| 8239 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8240 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8241 | input, &cc_generic_services_))); |
| 8242 | } else { |
| 8243 | goto handle_unusual; |
| 8244 | } |
| 8245 | break; |
| 8246 | } |
| 8247 | |
| 8248 | // optional bool java_generic_services = 17 [default = false]; |
| 8249 | case 17: { |
| 8250 | if (tag == 136u) { |
| 8251 | set_has_java_generic_services(); |
| 8252 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8253 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8254 | input, &java_generic_services_))); |
| 8255 | } else { |
| 8256 | goto handle_unusual; |
| 8257 | } |
| 8258 | break; |
| 8259 | } |
| 8260 | |
| 8261 | // optional bool py_generic_services = 18 [default = false]; |
| 8262 | case 18: { |
| 8263 | if (tag == 144u) { |
| 8264 | set_has_py_generic_services(); |
| 8265 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8266 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8267 | input, &py_generic_services_))); |
| 8268 | } else { |
| 8269 | goto handle_unusual; |
| 8270 | } |
| 8271 | break; |
| 8272 | } |
| 8273 | |
| 8274 | // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
| 8275 | case 20: { |
| 8276 | if (tag == 160u) { |
| 8277 | set_has_java_generate_equals_and_hash(); |
| 8278 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8279 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8280 | input, &java_generate_equals_and_hash_))); |
| 8281 | } else { |
| 8282 | goto handle_unusual; |
| 8283 | } |
| 8284 | break; |
| 8285 | } |
| 8286 | |
| 8287 | // optional bool deprecated = 23 [default = false]; |
| 8288 | case 23: { |
| 8289 | if (tag == 184u) { |
| 8290 | set_has_deprecated(); |
| 8291 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8292 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8293 | input, &deprecated_))); |
| 8294 | } else { |
| 8295 | goto handle_unusual; |
| 8296 | } |
| 8297 | break; |
| 8298 | } |
| 8299 | |
| 8300 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8301 | case 27: { |
| 8302 | if (tag == 216u) { |
| 8303 | set_has_java_string_check_utf8(); |
| 8304 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8305 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8306 | input, &java_string_check_utf8_))); |
| 8307 | } else { |
| 8308 | goto handle_unusual; |
| 8309 | } |
| 8310 | break; |
| 8311 | } |
| 8312 | |
| 8313 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 8314 | case 31: { |
| 8315 | if (tag == 248u) { |
| 8316 | set_has_cc_enable_arenas(); |
| 8317 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8318 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 8319 | input, &cc_enable_arenas_))); |
| 8320 | } else { |
| 8321 | goto handle_unusual; |
| 8322 | } |
| 8323 | break; |
| 8324 | } |
| 8325 | |
| 8326 | // optional string objc_class_prefix = 36; |
| 8327 | case 36: { |
| 8328 | if (tag == 290u) { |
| 8329 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8330 | input, this->mutable_objc_class_prefix())); |
| 8331 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8332 | this->objc_class_prefix().data(), this->objc_class_prefix().length(), |
| 8333 | ::google::protobuf::internal::WireFormat::PARSE, |
| 8334 | "google.protobuf.FileOptions.objc_class_prefix"); |
| 8335 | } else { |
| 8336 | goto handle_unusual; |
| 8337 | } |
| 8338 | break; |
| 8339 | } |
| 8340 | |
| 8341 | // optional string csharp_namespace = 37; |
| 8342 | case 37: { |
| 8343 | if (tag == 298u) { |
| 8344 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8345 | input, this->mutable_csharp_namespace())); |
| 8346 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8347 | this->csharp_namespace().data(), this->csharp_namespace().length(), |
| 8348 | ::google::protobuf::internal::WireFormat::PARSE, |
| 8349 | "google.protobuf.FileOptions.csharp_namespace"); |
| 8350 | } else { |
| 8351 | goto handle_unusual; |
| 8352 | } |
| 8353 | break; |
| 8354 | } |
| 8355 | |
| 8356 | // optional string swift_prefix = 39; |
| 8357 | case 39: { |
| 8358 | if (tag == 314u) { |
| 8359 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8360 | input, this->mutable_swift_prefix())); |
| 8361 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8362 | this->swift_prefix().data(), this->swift_prefix().length(), |
| 8363 | ::google::protobuf::internal::WireFormat::PARSE, |
| 8364 | "google.protobuf.FileOptions.swift_prefix"); |
| 8365 | } else { |
| 8366 | goto handle_unusual; |
| 8367 | } |
| 8368 | break; |
| 8369 | } |
| 8370 | |
| 8371 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8372 | case 999: { |
| 8373 | if (tag == 7994u) { |
| 8374 | DO_(input->IncrementRecursionDepth()); |
| 8375 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 8376 | input, add_uninterpreted_option())); |
| 8377 | } else { |
| 8378 | goto handle_unusual; |
| 8379 | } |
| 8380 | input->UnsafeDecrementRecursionDepth(); |
| 8381 | break; |
| 8382 | } |
| 8383 | |
| 8384 | default: { |
| 8385 | handle_unusual: |
| 8386 | if (tag == 0 || |
| 8387 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 8388 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 8389 | goto success; |
| 8390 | } |
| 8391 | if ((8000u <= tag)) { |
| 8392 | DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
| 8393 | mutable_unknown_fields())); |
| 8394 | continue; |
| 8395 | } |
| 8396 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8397 | input, tag, mutable_unknown_fields())); |
| 8398 | break; |
| 8399 | } |
| 8400 | } |
| 8401 | } |
| 8402 | success: |
| 8403 | // @@protoc_insertion_point(parse_success:google.protobuf.FileOptions) |
| 8404 | return true; |
| 8405 | failure: |
| 8406 | // @@protoc_insertion_point(parse_failure:google.protobuf.FileOptions) |
| 8407 | return false; |
| 8408 | #undef DO_ |
| 8409 | } |
| 8410 | |
| 8411 | void FileOptions::SerializeWithCachedSizes( |
| 8412 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8413 | // @@protoc_insertion_point(serialize_start:google.protobuf.FileOptions) |
| 8414 | // optional string java_package = 1; |
| 8415 | if (has_java_package()) { |
| 8416 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8417 | this->java_package().data(), this->java_package().length(), |
| 8418 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8419 | "google.protobuf.FileOptions.java_package"); |
| 8420 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8421 | 1, this->java_package(), output); |
| 8422 | } |
| 8423 | |
| 8424 | // optional string java_outer_classname = 8; |
| 8425 | if (has_java_outer_classname()) { |
| 8426 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8427 | this->java_outer_classname().data(), this->java_outer_classname().length(), |
| 8428 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8429 | "google.protobuf.FileOptions.java_outer_classname"); |
| 8430 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8431 | 8, this->java_outer_classname(), output); |
| 8432 | } |
| 8433 | |
| 8434 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 8435 | if (has_optimize_for()) { |
| 8436 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8437 | 9, this->optimize_for(), output); |
| 8438 | } |
| 8439 | |
| 8440 | // optional bool java_multiple_files = 10 [default = false]; |
| 8441 | if (has_java_multiple_files()) { |
| 8442 | ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output); |
| 8443 | } |
| 8444 | |
| 8445 | // optional string go_package = 11; |
| 8446 | if (has_go_package()) { |
| 8447 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8448 | this->go_package().data(), this->go_package().length(), |
| 8449 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8450 | "google.protobuf.FileOptions.go_package"); |
| 8451 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8452 | 11, this->go_package(), output); |
| 8453 | } |
| 8454 | |
| 8455 | // optional bool cc_generic_services = 16 [default = false]; |
| 8456 | if (has_cc_generic_services()) { |
| 8457 | ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output); |
| 8458 | } |
| 8459 | |
| 8460 | // optional bool java_generic_services = 17 [default = false]; |
| 8461 | if (has_java_generic_services()) { |
| 8462 | ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output); |
| 8463 | } |
| 8464 | |
| 8465 | // optional bool py_generic_services = 18 [default = false]; |
| 8466 | if (has_py_generic_services()) { |
| 8467 | ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output); |
| 8468 | } |
| 8469 | |
| 8470 | // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
| 8471 | if (has_java_generate_equals_and_hash()) { |
| 8472 | ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->java_generate_equals_and_hash(), output); |
| 8473 | } |
| 8474 | |
| 8475 | // optional bool deprecated = 23 [default = false]; |
| 8476 | if (has_deprecated()) { |
| 8477 | ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->deprecated(), output); |
| 8478 | } |
| 8479 | |
| 8480 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8481 | if (has_java_string_check_utf8()) { |
| 8482 | ::google::protobuf::internal::WireFormatLite::WriteBool(27, this->java_string_check_utf8(), output); |
| 8483 | } |
| 8484 | |
| 8485 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 8486 | if (has_cc_enable_arenas()) { |
| 8487 | ::google::protobuf::internal::WireFormatLite::WriteBool(31, this->cc_enable_arenas(), output); |
| 8488 | } |
| 8489 | |
| 8490 | // optional string objc_class_prefix = 36; |
| 8491 | if (has_objc_class_prefix()) { |
| 8492 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8493 | this->objc_class_prefix().data(), this->objc_class_prefix().length(), |
| 8494 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8495 | "google.protobuf.FileOptions.objc_class_prefix"); |
| 8496 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8497 | 36, this->objc_class_prefix(), output); |
| 8498 | } |
| 8499 | |
| 8500 | // optional string csharp_namespace = 37; |
| 8501 | if (has_csharp_namespace()) { |
| 8502 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8503 | this->csharp_namespace().data(), this->csharp_namespace().length(), |
| 8504 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8505 | "google.protobuf.FileOptions.csharp_namespace"); |
| 8506 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8507 | 37, this->csharp_namespace(), output); |
| 8508 | } |
| 8509 | |
| 8510 | // optional string swift_prefix = 39; |
| 8511 | if (has_swift_prefix()) { |
| 8512 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8513 | this->swift_prefix().data(), this->swift_prefix().length(), |
| 8514 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8515 | "google.protobuf.FileOptions.swift_prefix"); |
| 8516 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8517 | 39, this->swift_prefix(), output); |
| 8518 | } |
| 8519 | |
| 8520 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8521 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 8522 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8523 | 999, this->uninterpreted_option(i), output); |
| 8524 | } |
| 8525 | |
| 8526 | // Extension range [1000, 536870912) |
| 8527 | _extensions_.SerializeWithCachedSizes( |
| 8528 | 1000, 536870912, output); |
| 8529 | |
| 8530 | if (_internal_metadata_.have_unknown_fields()) { |
| 8531 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8532 | unknown_fields(), output); |
| 8533 | } |
| 8534 | // @@protoc_insertion_point(serialize_end:google.protobuf.FileOptions) |
| 8535 | } |
| 8536 | |
| 8537 | ::google::protobuf::uint8* FileOptions::InternalSerializeWithCachedSizesToArray( |
| 8538 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 8539 | (void)deterministic; // Unused |
| 8540 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions) |
| 8541 | // optional string java_package = 1; |
| 8542 | if (has_java_package()) { |
| 8543 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8544 | this->java_package().data(), this->java_package().length(), |
| 8545 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8546 | "google.protobuf.FileOptions.java_package"); |
| 8547 | target = |
| 8548 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8549 | 1, this->java_package(), target); |
| 8550 | } |
| 8551 | |
| 8552 | // optional string java_outer_classname = 8; |
| 8553 | if (has_java_outer_classname()) { |
| 8554 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8555 | this->java_outer_classname().data(), this->java_outer_classname().length(), |
| 8556 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8557 | "google.protobuf.FileOptions.java_outer_classname"); |
| 8558 | target = |
| 8559 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8560 | 8, this->java_outer_classname(), target); |
| 8561 | } |
| 8562 | |
| 8563 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 8564 | if (has_optimize_for()) { |
| 8565 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8566 | 9, this->optimize_for(), target); |
| 8567 | } |
| 8568 | |
| 8569 | // optional bool java_multiple_files = 10 [default = false]; |
| 8570 | if (has_java_multiple_files()) { |
| 8571 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target); |
| 8572 | } |
| 8573 | |
| 8574 | // optional string go_package = 11; |
| 8575 | if (has_go_package()) { |
| 8576 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8577 | this->go_package().data(), this->go_package().length(), |
| 8578 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8579 | "google.protobuf.FileOptions.go_package"); |
| 8580 | target = |
| 8581 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8582 | 11, this->go_package(), target); |
| 8583 | } |
| 8584 | |
| 8585 | // optional bool cc_generic_services = 16 [default = false]; |
| 8586 | if (has_cc_generic_services()) { |
| 8587 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target); |
| 8588 | } |
| 8589 | |
| 8590 | // optional bool java_generic_services = 17 [default = false]; |
| 8591 | if (has_java_generic_services()) { |
| 8592 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target); |
| 8593 | } |
| 8594 | |
| 8595 | // optional bool py_generic_services = 18 [default = false]; |
| 8596 | if (has_py_generic_services()) { |
| 8597 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target); |
| 8598 | } |
| 8599 | |
| 8600 | // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
| 8601 | if (has_java_generate_equals_and_hash()) { |
| 8602 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->java_generate_equals_and_hash(), target); |
| 8603 | } |
| 8604 | |
| 8605 | // optional bool deprecated = 23 [default = false]; |
| 8606 | if (has_deprecated()) { |
| 8607 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->deprecated(), target); |
| 8608 | } |
| 8609 | |
| 8610 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8611 | if (has_java_string_check_utf8()) { |
| 8612 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(27, this->java_string_check_utf8(), target); |
| 8613 | } |
| 8614 | |
| 8615 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 8616 | if (has_cc_enable_arenas()) { |
| 8617 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->cc_enable_arenas(), target); |
| 8618 | } |
| 8619 | |
| 8620 | // optional string objc_class_prefix = 36; |
| 8621 | if (has_objc_class_prefix()) { |
| 8622 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8623 | this->objc_class_prefix().data(), this->objc_class_prefix().length(), |
| 8624 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8625 | "google.protobuf.FileOptions.objc_class_prefix"); |
| 8626 | target = |
| 8627 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8628 | 36, this->objc_class_prefix(), target); |
| 8629 | } |
| 8630 | |
| 8631 | // optional string csharp_namespace = 37; |
| 8632 | if (has_csharp_namespace()) { |
| 8633 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8634 | this->csharp_namespace().data(), this->csharp_namespace().length(), |
| 8635 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8636 | "google.protobuf.FileOptions.csharp_namespace"); |
| 8637 | target = |
| 8638 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8639 | 37, this->csharp_namespace(), target); |
| 8640 | } |
| 8641 | |
| 8642 | // optional string swift_prefix = 39; |
| 8643 | if (has_swift_prefix()) { |
| 8644 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 8645 | this->swift_prefix().data(), this->swift_prefix().length(), |
| 8646 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 8647 | "google.protobuf.FileOptions.swift_prefix"); |
| 8648 | target = |
| 8649 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8650 | 39, this->swift_prefix(), target); |
| 8651 | } |
| 8652 | |
| 8653 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8654 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 8655 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8656 | InternalWriteMessageNoVirtualToArray( |
| 8657 | 999, this->uninterpreted_option(i), false, target); |
| 8658 | } |
| 8659 | |
| 8660 | // Extension range [1000, 536870912) |
| 8661 | target = _extensions_.InternalSerializeWithCachedSizesToArray( |
| 8662 | 1000, 536870912, false, target); |
| 8663 | |
| 8664 | if (_internal_metadata_.have_unknown_fields()) { |
| 8665 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8666 | unknown_fields(), target); |
| 8667 | } |
| 8668 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FileOptions) |
| 8669 | return target; |
| 8670 | } |
| 8671 | |
| 8672 | size_t FileOptions::ByteSizeLong() const { |
| 8673 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FileOptions) |
| 8674 | size_t total_size = 0; |
| 8675 | |
| 8676 | total_size += _extensions_.ByteSize(); |
| 8677 | |
| 8678 | if (_internal_metadata_.have_unknown_fields()) { |
| 8679 | total_size += |
| 8680 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8681 | unknown_fields()); |
| 8682 | } |
| 8683 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 8684 | { |
| 8685 | unsigned int count = this->uninterpreted_option_size(); |
| 8686 | total_size += 2UL * count; |
| 8687 | for (unsigned int i = 0; i < count; i++) { |
| 8688 | total_size += |
| 8689 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 8690 | this->uninterpreted_option(i)); |
| 8691 | } |
| 8692 | } |
| 8693 | |
| 8694 | if (_has_bits_[0 / 32] & 255u) { |
| 8695 | // optional string java_package = 1; |
| 8696 | if (has_java_package()) { |
| 8697 | total_size += 1 + |
| 8698 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8699 | this->java_package()); |
| 8700 | } |
| 8701 | |
| 8702 | // optional string java_outer_classname = 8; |
| 8703 | if (has_java_outer_classname()) { |
| 8704 | total_size += 1 + |
| 8705 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8706 | this->java_outer_classname()); |
| 8707 | } |
| 8708 | |
| 8709 | // optional string go_package = 11; |
| 8710 | if (has_go_package()) { |
| 8711 | total_size += 1 + |
| 8712 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8713 | this->go_package()); |
| 8714 | } |
| 8715 | |
| 8716 | // optional string objc_class_prefix = 36; |
| 8717 | if (has_objc_class_prefix()) { |
| 8718 | total_size += 2 + |
| 8719 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8720 | this->objc_class_prefix()); |
| 8721 | } |
| 8722 | |
| 8723 | // optional string csharp_namespace = 37; |
| 8724 | if (has_csharp_namespace()) { |
| 8725 | total_size += 2 + |
| 8726 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8727 | this->csharp_namespace()); |
| 8728 | } |
| 8729 | |
| 8730 | // optional string swift_prefix = 39; |
| 8731 | if (has_swift_prefix()) { |
| 8732 | total_size += 2 + |
| 8733 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8734 | this->swift_prefix()); |
| 8735 | } |
| 8736 | |
| 8737 | // optional bool java_multiple_files = 10 [default = false]; |
| 8738 | if (has_java_multiple_files()) { |
| 8739 | total_size += 1 + 1; |
| 8740 | } |
| 8741 | |
| 8742 | // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
| 8743 | if (has_java_generate_equals_and_hash()) { |
| 8744 | total_size += 2 + 1; |
| 8745 | } |
| 8746 | |
| 8747 | } |
| 8748 | if (_has_bits_[8 / 32] & 32512u) { |
| 8749 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 8750 | if (has_java_string_check_utf8()) { |
| 8751 | total_size += 2 + 1; |
| 8752 | } |
| 8753 | |
| 8754 | // optional bool cc_generic_services = 16 [default = false]; |
| 8755 | if (has_cc_generic_services()) { |
| 8756 | total_size += 2 + 1; |
| 8757 | } |
| 8758 | |
| 8759 | // optional bool java_generic_services = 17 [default = false]; |
| 8760 | if (has_java_generic_services()) { |
| 8761 | total_size += 2 + 1; |
| 8762 | } |
| 8763 | |
| 8764 | // optional bool py_generic_services = 18 [default = false]; |
| 8765 | if (has_py_generic_services()) { |
| 8766 | total_size += 2 + 1; |
| 8767 | } |
| 8768 | |
| 8769 | // optional bool deprecated = 23 [default = false]; |
| 8770 | if (has_deprecated()) { |
| 8771 | total_size += 2 + 1; |
| 8772 | } |
| 8773 | |
| 8774 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 8775 | if (has_cc_enable_arenas()) { |
| 8776 | total_size += 2 + 1; |
| 8777 | } |
| 8778 | |
| 8779 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 8780 | if (has_optimize_for()) { |
| 8781 | total_size += 1 + |
| 8782 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for()); |
| 8783 | } |
| 8784 | |
| 8785 | } |
| 8786 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8787 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 8788 | _cached_size_ = cached_size; |
| 8789 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 8790 | return total_size; |
| 8791 | } |
| 8792 | |
| 8793 | void FileOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 8794 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FileOptions) |
| 8795 | GOOGLE_DCHECK_NE(&from, this); |
| 8796 | const FileOptions* source = |
| 8797 | ::google::protobuf::internal::DynamicCastToGenerated<const FileOptions>( |
| 8798 | &from); |
| 8799 | if (source == NULL) { |
| 8800 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FileOptions) |
| 8801 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8802 | } else { |
| 8803 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FileOptions) |
| 8804 | MergeFrom(*source); |
| 8805 | } |
| 8806 | } |
| 8807 | |
| 8808 | void FileOptions::MergeFrom(const FileOptions& from) { |
| 8809 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FileOptions) |
| 8810 | GOOGLE_DCHECK_NE(&from, this); |
| 8811 | _extensions_.MergeFrom(from._extensions_); |
| 8812 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8813 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 8814 | if (from._has_bits_[0 / 32] & 255u) { |
| 8815 | if (from.has_java_package()) { |
| 8816 | set_has_java_package(); |
| 8817 | java_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_package_); |
| 8818 | } |
| 8819 | if (from.has_java_outer_classname()) { |
| 8820 | set_has_java_outer_classname(); |
| 8821 | java_outer_classname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.java_outer_classname_); |
| 8822 | } |
| 8823 | if (from.has_go_package()) { |
| 8824 | set_has_go_package(); |
| 8825 | go_package_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.go_package_); |
| 8826 | } |
| 8827 | if (from.has_objc_class_prefix()) { |
| 8828 | set_has_objc_class_prefix(); |
| 8829 | objc_class_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.objc_class_prefix_); |
| 8830 | } |
| 8831 | if (from.has_csharp_namespace()) { |
| 8832 | set_has_csharp_namespace(); |
| 8833 | csharp_namespace_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.csharp_namespace_); |
| 8834 | } |
| 8835 | if (from.has_swift_prefix()) { |
| 8836 | set_has_swift_prefix(); |
| 8837 | swift_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.swift_prefix_); |
| 8838 | } |
| 8839 | if (from.has_java_multiple_files()) { |
| 8840 | set_java_multiple_files(from.java_multiple_files()); |
| 8841 | } |
| 8842 | if (from.has_java_generate_equals_and_hash()) { |
| 8843 | set_java_generate_equals_and_hash(from.java_generate_equals_and_hash()); |
| 8844 | } |
| 8845 | } |
| 8846 | if (from._has_bits_[8 / 32] & 32512u) { |
| 8847 | if (from.has_java_string_check_utf8()) { |
| 8848 | set_java_string_check_utf8(from.java_string_check_utf8()); |
| 8849 | } |
| 8850 | if (from.has_cc_generic_services()) { |
| 8851 | set_cc_generic_services(from.cc_generic_services()); |
| 8852 | } |
| 8853 | if (from.has_java_generic_services()) { |
| 8854 | set_java_generic_services(from.java_generic_services()); |
| 8855 | } |
| 8856 | if (from.has_py_generic_services()) { |
| 8857 | set_py_generic_services(from.py_generic_services()); |
| 8858 | } |
| 8859 | if (from.has_deprecated()) { |
| 8860 | set_deprecated(from.deprecated()); |
| 8861 | } |
| 8862 | if (from.has_cc_enable_arenas()) { |
| 8863 | set_cc_enable_arenas(from.cc_enable_arenas()); |
| 8864 | } |
| 8865 | if (from.has_optimize_for()) { |
| 8866 | set_optimize_for(from.optimize_for()); |
| 8867 | } |
| 8868 | } |
| 8869 | } |
| 8870 | |
| 8871 | void FileOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 8872 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FileOptions) |
| 8873 | if (&from == this) return; |
| 8874 | Clear(); |
| 8875 | MergeFrom(from); |
| 8876 | } |
| 8877 | |
| 8878 | void FileOptions::CopyFrom(const FileOptions& from) { |
| 8879 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FileOptions) |
| 8880 | if (&from == this) return; |
| 8881 | Clear(); |
| 8882 | MergeFrom(from); |
| 8883 | } |
| 8884 | |
| 8885 | bool FileOptions::IsInitialized() const { |
| 8886 | if (!_extensions_.IsInitialized()) { |
| 8887 | return false; |
| 8888 | } |
| 8889 | |
| 8890 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 8891 | return true; |
| 8892 | } |
| 8893 | |
| 8894 | void FileOptions::Swap(FileOptions* other) { |
| 8895 | if (other == this) return; |
| 8896 | InternalSwap(other); |
| 8897 | } |
| 8898 | void FileOptions::InternalSwap(FileOptions* other) { |
| 8899 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 8900 | java_package_.Swap(&other->java_package_); |
| 8901 | java_outer_classname_.Swap(&other->java_outer_classname_); |
| 8902 | go_package_.Swap(&other->go_package_); |
| 8903 | objc_class_prefix_.Swap(&other->objc_class_prefix_); |
| 8904 | csharp_namespace_.Swap(&other->csharp_namespace_); |
| 8905 | swift_prefix_.Swap(&other->swift_prefix_); |
| 8906 | std::swap(java_multiple_files_, other->java_multiple_files_); |
| 8907 | std::swap(java_generate_equals_and_hash_, other->java_generate_equals_and_hash_); |
| 8908 | std::swap(java_string_check_utf8_, other->java_string_check_utf8_); |
| 8909 | std::swap(cc_generic_services_, other->cc_generic_services_); |
| 8910 | std::swap(java_generic_services_, other->java_generic_services_); |
| 8911 | std::swap(py_generic_services_, other->py_generic_services_); |
| 8912 | std::swap(deprecated_, other->deprecated_); |
| 8913 | std::swap(cc_enable_arenas_, other->cc_enable_arenas_); |
| 8914 | std::swap(optimize_for_, other->optimize_for_); |
| 8915 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 8916 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8917 | std::swap(_cached_size_, other->_cached_size_); |
| 8918 | _extensions_.Swap(&other->_extensions_); |
| 8919 | } |
| 8920 | |
| 8921 | ::google::protobuf::Metadata FileOptions::GetMetadata() const { |
| 8922 | protobuf_AssignDescriptorsOnce(); |
| 8923 | return file_level_metadata[11]; |
| 8924 | } |
| 8925 | |
| 8926 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 8927 | // FileOptions |
| 8928 | |
| 8929 | // optional string java_package = 1; |
| 8930 | bool FileOptions::has_java_package() const { |
| 8931 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 8932 | } |
| 8933 | void FileOptions::set_has_java_package() { |
| 8934 | _has_bits_[0] |= 0x00000001u; |
| 8935 | } |
| 8936 | void FileOptions::clear_has_java_package() { |
| 8937 | _has_bits_[0] &= ~0x00000001u; |
| 8938 | } |
| 8939 | void FileOptions::clear_java_package() { |
| 8940 | java_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8941 | clear_has_java_package(); |
| 8942 | } |
| 8943 | const ::std::string& FileOptions::java_package() const { |
| 8944 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package) |
| 8945 | return java_package_.GetNoArena(); |
| 8946 | } |
| 8947 | void FileOptions::set_java_package(const ::std::string& value) { |
| 8948 | set_has_java_package(); |
| 8949 | java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 8950 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package) |
| 8951 | } |
| 8952 | #if LANG_CXX11 |
| 8953 | void FileOptions::set_java_package(::std::string&& value) { |
| 8954 | set_has_java_package(); |
| 8955 | java_package_.SetNoArena( |
| 8956 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 8957 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_package) |
| 8958 | } |
| 8959 | #endif |
| 8960 | void FileOptions::set_java_package(const char* value) { |
| 8961 | set_has_java_package(); |
| 8962 | java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 8963 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package) |
| 8964 | } |
| 8965 | void FileOptions::set_java_package(const char* value, size_t size) { |
| 8966 | set_has_java_package(); |
| 8967 | java_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8968 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 8969 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package) |
| 8970 | } |
| 8971 | ::std::string* FileOptions::mutable_java_package() { |
| 8972 | set_has_java_package(); |
| 8973 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package) |
| 8974 | return java_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8975 | } |
| 8976 | ::std::string* FileOptions::release_java_package() { |
| 8977 | // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package) |
| 8978 | clear_has_java_package(); |
| 8979 | return java_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8980 | } |
| 8981 | void FileOptions::set_allocated_java_package(::std::string* java_package) { |
| 8982 | if (java_package != NULL) { |
| 8983 | set_has_java_package(); |
| 8984 | } else { |
| 8985 | clear_has_java_package(); |
| 8986 | } |
| 8987 | java_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_package); |
| 8988 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package) |
| 8989 | } |
| 8990 | |
| 8991 | // optional string java_outer_classname = 8; |
| 8992 | bool FileOptions::has_java_outer_classname() const { |
| 8993 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 8994 | } |
| 8995 | void FileOptions::set_has_java_outer_classname() { |
| 8996 | _has_bits_[0] |= 0x00000002u; |
| 8997 | } |
| 8998 | void FileOptions::clear_has_java_outer_classname() { |
| 8999 | _has_bits_[0] &= ~0x00000002u; |
| 9000 | } |
| 9001 | void FileOptions::clear_java_outer_classname() { |
| 9002 | java_outer_classname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9003 | clear_has_java_outer_classname(); |
| 9004 | } |
| 9005 | const ::std::string& FileOptions::java_outer_classname() const { |
| 9006 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname) |
| 9007 | return java_outer_classname_.GetNoArena(); |
| 9008 | } |
| 9009 | void FileOptions::set_java_outer_classname(const ::std::string& value) { |
| 9010 | set_has_java_outer_classname(); |
| 9011 | java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 9012 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname) |
| 9013 | } |
| 9014 | #if LANG_CXX11 |
| 9015 | void FileOptions::set_java_outer_classname(::std::string&& value) { |
| 9016 | set_has_java_outer_classname(); |
| 9017 | java_outer_classname_.SetNoArena( |
| 9018 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 9019 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_outer_classname) |
| 9020 | } |
| 9021 | #endif |
| 9022 | void FileOptions::set_java_outer_classname(const char* value) { |
| 9023 | set_has_java_outer_classname(); |
| 9024 | java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 9025 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname) |
| 9026 | } |
| 9027 | void FileOptions::set_java_outer_classname(const char* value, size_t size) { |
| 9028 | set_has_java_outer_classname(); |
| 9029 | java_outer_classname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9030 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9031 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname) |
| 9032 | } |
| 9033 | ::std::string* FileOptions::mutable_java_outer_classname() { |
| 9034 | set_has_java_outer_classname(); |
| 9035 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname) |
| 9036 | return java_outer_classname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9037 | } |
| 9038 | ::std::string* FileOptions::release_java_outer_classname() { |
| 9039 | // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname) |
| 9040 | clear_has_java_outer_classname(); |
| 9041 | return java_outer_classname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9042 | } |
| 9043 | void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) { |
| 9044 | if (java_outer_classname != NULL) { |
| 9045 | set_has_java_outer_classname(); |
| 9046 | } else { |
| 9047 | clear_has_java_outer_classname(); |
| 9048 | } |
| 9049 | java_outer_classname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_outer_classname); |
| 9050 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname) |
| 9051 | } |
| 9052 | |
| 9053 | // optional bool java_multiple_files = 10 [default = false]; |
| 9054 | bool FileOptions::has_java_multiple_files() const { |
| 9055 | return (_has_bits_[0] & 0x00000040u) != 0; |
| 9056 | } |
| 9057 | void FileOptions::set_has_java_multiple_files() { |
| 9058 | _has_bits_[0] |= 0x00000040u; |
| 9059 | } |
| 9060 | void FileOptions::clear_has_java_multiple_files() { |
| 9061 | _has_bits_[0] &= ~0x00000040u; |
| 9062 | } |
| 9063 | void FileOptions::clear_java_multiple_files() { |
| 9064 | java_multiple_files_ = false; |
| 9065 | clear_has_java_multiple_files(); |
| 9066 | } |
| 9067 | bool FileOptions::java_multiple_files() const { |
| 9068 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files) |
| 9069 | return java_multiple_files_; |
| 9070 | } |
| 9071 | void FileOptions::set_java_multiple_files(bool value) { |
| 9072 | set_has_java_multiple_files(); |
| 9073 | java_multiple_files_ = value; |
| 9074 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files) |
| 9075 | } |
| 9076 | |
| 9077 | // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; |
| 9078 | bool FileOptions::has_java_generate_equals_and_hash() const { |
| 9079 | return (_has_bits_[0] & 0x00000080u) != 0; |
| 9080 | } |
| 9081 | void FileOptions::set_has_java_generate_equals_and_hash() { |
| 9082 | _has_bits_[0] |= 0x00000080u; |
| 9083 | } |
| 9084 | void FileOptions::clear_has_java_generate_equals_and_hash() { |
| 9085 | _has_bits_[0] &= ~0x00000080u; |
| 9086 | } |
| 9087 | void FileOptions::clear_java_generate_equals_and_hash() { |
| 9088 | java_generate_equals_and_hash_ = false; |
| 9089 | clear_has_java_generate_equals_and_hash(); |
| 9090 | } |
| 9091 | bool FileOptions::java_generate_equals_and_hash() const { |
| 9092 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash) |
| 9093 | return java_generate_equals_and_hash_; |
| 9094 | } |
| 9095 | void FileOptions::set_java_generate_equals_and_hash(bool value) { |
| 9096 | set_has_java_generate_equals_and_hash(); |
| 9097 | java_generate_equals_and_hash_ = value; |
| 9098 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash) |
| 9099 | } |
| 9100 | |
| 9101 | // optional bool java_string_check_utf8 = 27 [default = false]; |
| 9102 | bool FileOptions::has_java_string_check_utf8() const { |
| 9103 | return (_has_bits_[0] & 0x00000100u) != 0; |
| 9104 | } |
| 9105 | void FileOptions::set_has_java_string_check_utf8() { |
| 9106 | _has_bits_[0] |= 0x00000100u; |
| 9107 | } |
| 9108 | void FileOptions::clear_has_java_string_check_utf8() { |
| 9109 | _has_bits_[0] &= ~0x00000100u; |
| 9110 | } |
| 9111 | void FileOptions::clear_java_string_check_utf8() { |
| 9112 | java_string_check_utf8_ = false; |
| 9113 | clear_has_java_string_check_utf8(); |
| 9114 | } |
| 9115 | bool FileOptions::java_string_check_utf8() const { |
| 9116 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8) |
| 9117 | return java_string_check_utf8_; |
| 9118 | } |
| 9119 | void FileOptions::set_java_string_check_utf8(bool value) { |
| 9120 | set_has_java_string_check_utf8(); |
| 9121 | java_string_check_utf8_ = value; |
| 9122 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8) |
| 9123 | } |
| 9124 | |
| 9125 | // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
| 9126 | bool FileOptions::has_optimize_for() const { |
| 9127 | return (_has_bits_[0] & 0x00004000u) != 0; |
| 9128 | } |
| 9129 | void FileOptions::set_has_optimize_for() { |
| 9130 | _has_bits_[0] |= 0x00004000u; |
| 9131 | } |
| 9132 | void FileOptions::clear_has_optimize_for() { |
| 9133 | _has_bits_[0] &= ~0x00004000u; |
| 9134 | } |
| 9135 | void FileOptions::clear_optimize_for() { |
| 9136 | optimize_for_ = 1; |
| 9137 | clear_has_optimize_for(); |
| 9138 | } |
| 9139 | ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const { |
| 9140 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for) |
| 9141 | return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_); |
| 9142 | } |
| 9143 | void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) { |
| 9144 | assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value)); |
| 9145 | set_has_optimize_for(); |
| 9146 | optimize_for_ = value; |
| 9147 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for) |
| 9148 | } |
| 9149 | |
| 9150 | // optional string go_package = 11; |
| 9151 | bool FileOptions::has_go_package() const { |
| 9152 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 9153 | } |
| 9154 | void FileOptions::set_has_go_package() { |
| 9155 | _has_bits_[0] |= 0x00000004u; |
| 9156 | } |
| 9157 | void FileOptions::clear_has_go_package() { |
| 9158 | _has_bits_[0] &= ~0x00000004u; |
| 9159 | } |
| 9160 | void FileOptions::clear_go_package() { |
| 9161 | go_package_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9162 | clear_has_go_package(); |
| 9163 | } |
| 9164 | const ::std::string& FileOptions::go_package() const { |
| 9165 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package) |
| 9166 | return go_package_.GetNoArena(); |
| 9167 | } |
| 9168 | void FileOptions::set_go_package(const ::std::string& value) { |
| 9169 | set_has_go_package(); |
| 9170 | go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 9171 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package) |
| 9172 | } |
| 9173 | #if LANG_CXX11 |
| 9174 | void FileOptions::set_go_package(::std::string&& value) { |
| 9175 | set_has_go_package(); |
| 9176 | go_package_.SetNoArena( |
| 9177 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 9178 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.go_package) |
| 9179 | } |
| 9180 | #endif |
| 9181 | void FileOptions::set_go_package(const char* value) { |
| 9182 | set_has_go_package(); |
| 9183 | go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 9184 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package) |
| 9185 | } |
| 9186 | void FileOptions::set_go_package(const char* value, size_t size) { |
| 9187 | set_has_go_package(); |
| 9188 | go_package_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9189 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9190 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package) |
| 9191 | } |
| 9192 | ::std::string* FileOptions::mutable_go_package() { |
| 9193 | set_has_go_package(); |
| 9194 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package) |
| 9195 | return go_package_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9196 | } |
| 9197 | ::std::string* FileOptions::release_go_package() { |
| 9198 | // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package) |
| 9199 | clear_has_go_package(); |
| 9200 | return go_package_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9201 | } |
| 9202 | void FileOptions::set_allocated_go_package(::std::string* go_package) { |
| 9203 | if (go_package != NULL) { |
| 9204 | set_has_go_package(); |
| 9205 | } else { |
| 9206 | clear_has_go_package(); |
| 9207 | } |
| 9208 | go_package_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), go_package); |
| 9209 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package) |
| 9210 | } |
| 9211 | |
| 9212 | // optional bool cc_generic_services = 16 [default = false]; |
| 9213 | bool FileOptions::has_cc_generic_services() const { |
| 9214 | return (_has_bits_[0] & 0x00000200u) != 0; |
| 9215 | } |
| 9216 | void FileOptions::set_has_cc_generic_services() { |
| 9217 | _has_bits_[0] |= 0x00000200u; |
| 9218 | } |
| 9219 | void FileOptions::clear_has_cc_generic_services() { |
| 9220 | _has_bits_[0] &= ~0x00000200u; |
| 9221 | } |
| 9222 | void FileOptions::clear_cc_generic_services() { |
| 9223 | cc_generic_services_ = false; |
| 9224 | clear_has_cc_generic_services(); |
| 9225 | } |
| 9226 | bool FileOptions::cc_generic_services() const { |
| 9227 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services) |
| 9228 | return cc_generic_services_; |
| 9229 | } |
| 9230 | void FileOptions::set_cc_generic_services(bool value) { |
| 9231 | set_has_cc_generic_services(); |
| 9232 | cc_generic_services_ = value; |
| 9233 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services) |
| 9234 | } |
| 9235 | |
| 9236 | // optional bool java_generic_services = 17 [default = false]; |
| 9237 | bool FileOptions::has_java_generic_services() const { |
| 9238 | return (_has_bits_[0] & 0x00000400u) != 0; |
| 9239 | } |
| 9240 | void FileOptions::set_has_java_generic_services() { |
| 9241 | _has_bits_[0] |= 0x00000400u; |
| 9242 | } |
| 9243 | void FileOptions::clear_has_java_generic_services() { |
| 9244 | _has_bits_[0] &= ~0x00000400u; |
| 9245 | } |
| 9246 | void FileOptions::clear_java_generic_services() { |
| 9247 | java_generic_services_ = false; |
| 9248 | clear_has_java_generic_services(); |
| 9249 | } |
| 9250 | bool FileOptions::java_generic_services() const { |
| 9251 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services) |
| 9252 | return java_generic_services_; |
| 9253 | } |
| 9254 | void FileOptions::set_java_generic_services(bool value) { |
| 9255 | set_has_java_generic_services(); |
| 9256 | java_generic_services_ = value; |
| 9257 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services) |
| 9258 | } |
| 9259 | |
| 9260 | // optional bool py_generic_services = 18 [default = false]; |
| 9261 | bool FileOptions::has_py_generic_services() const { |
| 9262 | return (_has_bits_[0] & 0x00000800u) != 0; |
| 9263 | } |
| 9264 | void FileOptions::set_has_py_generic_services() { |
| 9265 | _has_bits_[0] |= 0x00000800u; |
| 9266 | } |
| 9267 | void FileOptions::clear_has_py_generic_services() { |
| 9268 | _has_bits_[0] &= ~0x00000800u; |
| 9269 | } |
| 9270 | void FileOptions::clear_py_generic_services() { |
| 9271 | py_generic_services_ = false; |
| 9272 | clear_has_py_generic_services(); |
| 9273 | } |
| 9274 | bool FileOptions::py_generic_services() const { |
| 9275 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services) |
| 9276 | return py_generic_services_; |
| 9277 | } |
| 9278 | void FileOptions::set_py_generic_services(bool value) { |
| 9279 | set_has_py_generic_services(); |
| 9280 | py_generic_services_ = value; |
| 9281 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services) |
| 9282 | } |
| 9283 | |
| 9284 | // optional bool deprecated = 23 [default = false]; |
| 9285 | bool FileOptions::has_deprecated() const { |
| 9286 | return (_has_bits_[0] & 0x00001000u) != 0; |
| 9287 | } |
| 9288 | void FileOptions::set_has_deprecated() { |
| 9289 | _has_bits_[0] |= 0x00001000u; |
| 9290 | } |
| 9291 | void FileOptions::clear_has_deprecated() { |
| 9292 | _has_bits_[0] &= ~0x00001000u; |
| 9293 | } |
| 9294 | void FileOptions::clear_deprecated() { |
| 9295 | deprecated_ = false; |
| 9296 | clear_has_deprecated(); |
| 9297 | } |
| 9298 | bool FileOptions::deprecated() const { |
| 9299 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated) |
| 9300 | return deprecated_; |
| 9301 | } |
| 9302 | void FileOptions::set_deprecated(bool value) { |
| 9303 | set_has_deprecated(); |
| 9304 | deprecated_ = value; |
| 9305 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated) |
| 9306 | } |
| 9307 | |
| 9308 | // optional bool cc_enable_arenas = 31 [default = false]; |
| 9309 | bool FileOptions::has_cc_enable_arenas() const { |
| 9310 | return (_has_bits_[0] & 0x00002000u) != 0; |
| 9311 | } |
| 9312 | void FileOptions::set_has_cc_enable_arenas() { |
| 9313 | _has_bits_[0] |= 0x00002000u; |
| 9314 | } |
| 9315 | void FileOptions::clear_has_cc_enable_arenas() { |
| 9316 | _has_bits_[0] &= ~0x00002000u; |
| 9317 | } |
| 9318 | void FileOptions::clear_cc_enable_arenas() { |
| 9319 | cc_enable_arenas_ = false; |
| 9320 | clear_has_cc_enable_arenas(); |
| 9321 | } |
| 9322 | bool FileOptions::cc_enable_arenas() const { |
| 9323 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas) |
| 9324 | return cc_enable_arenas_; |
| 9325 | } |
| 9326 | void FileOptions::set_cc_enable_arenas(bool value) { |
| 9327 | set_has_cc_enable_arenas(); |
| 9328 | cc_enable_arenas_ = value; |
| 9329 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas) |
| 9330 | } |
| 9331 | |
| 9332 | // optional string objc_class_prefix = 36; |
| 9333 | bool FileOptions::has_objc_class_prefix() const { |
| 9334 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 9335 | } |
| 9336 | void FileOptions::set_has_objc_class_prefix() { |
| 9337 | _has_bits_[0] |= 0x00000008u; |
| 9338 | } |
| 9339 | void FileOptions::clear_has_objc_class_prefix() { |
| 9340 | _has_bits_[0] &= ~0x00000008u; |
| 9341 | } |
| 9342 | void FileOptions::clear_objc_class_prefix() { |
| 9343 | objc_class_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9344 | clear_has_objc_class_prefix(); |
| 9345 | } |
| 9346 | const ::std::string& FileOptions::objc_class_prefix() const { |
| 9347 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix) |
| 9348 | return objc_class_prefix_.GetNoArena(); |
| 9349 | } |
| 9350 | void FileOptions::set_objc_class_prefix(const ::std::string& value) { |
| 9351 | set_has_objc_class_prefix(); |
| 9352 | objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 9353 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix) |
| 9354 | } |
| 9355 | #if LANG_CXX11 |
| 9356 | void FileOptions::set_objc_class_prefix(::std::string&& value) { |
| 9357 | set_has_objc_class_prefix(); |
| 9358 | objc_class_prefix_.SetNoArena( |
| 9359 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 9360 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.objc_class_prefix) |
| 9361 | } |
| 9362 | #endif |
| 9363 | void FileOptions::set_objc_class_prefix(const char* value) { |
| 9364 | set_has_objc_class_prefix(); |
| 9365 | objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 9366 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix) |
| 9367 | } |
| 9368 | void FileOptions::set_objc_class_prefix(const char* value, size_t size) { |
| 9369 | set_has_objc_class_prefix(); |
| 9370 | objc_class_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9371 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9372 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix) |
| 9373 | } |
| 9374 | ::std::string* FileOptions::mutable_objc_class_prefix() { |
| 9375 | set_has_objc_class_prefix(); |
| 9376 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix) |
| 9377 | return objc_class_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9378 | } |
| 9379 | ::std::string* FileOptions::release_objc_class_prefix() { |
| 9380 | // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix) |
| 9381 | clear_has_objc_class_prefix(); |
| 9382 | return objc_class_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9383 | } |
| 9384 | void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) { |
| 9385 | if (objc_class_prefix != NULL) { |
| 9386 | set_has_objc_class_prefix(); |
| 9387 | } else { |
| 9388 | clear_has_objc_class_prefix(); |
| 9389 | } |
| 9390 | objc_class_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), objc_class_prefix); |
| 9391 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix) |
| 9392 | } |
| 9393 | |
| 9394 | // optional string csharp_namespace = 37; |
| 9395 | bool FileOptions::has_csharp_namespace() const { |
| 9396 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 9397 | } |
| 9398 | void FileOptions::set_has_csharp_namespace() { |
| 9399 | _has_bits_[0] |= 0x00000010u; |
| 9400 | } |
| 9401 | void FileOptions::clear_has_csharp_namespace() { |
| 9402 | _has_bits_[0] &= ~0x00000010u; |
| 9403 | } |
| 9404 | void FileOptions::clear_csharp_namespace() { |
| 9405 | csharp_namespace_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9406 | clear_has_csharp_namespace(); |
| 9407 | } |
| 9408 | const ::std::string& FileOptions::csharp_namespace() const { |
| 9409 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace) |
| 9410 | return csharp_namespace_.GetNoArena(); |
| 9411 | } |
| 9412 | void FileOptions::set_csharp_namespace(const ::std::string& value) { |
| 9413 | set_has_csharp_namespace(); |
| 9414 | csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 9415 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace) |
| 9416 | } |
| 9417 | #if LANG_CXX11 |
| 9418 | void FileOptions::set_csharp_namespace(::std::string&& value) { |
| 9419 | set_has_csharp_namespace(); |
| 9420 | csharp_namespace_.SetNoArena( |
| 9421 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 9422 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.csharp_namespace) |
| 9423 | } |
| 9424 | #endif |
| 9425 | void FileOptions::set_csharp_namespace(const char* value) { |
| 9426 | set_has_csharp_namespace(); |
| 9427 | csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 9428 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace) |
| 9429 | } |
| 9430 | void FileOptions::set_csharp_namespace(const char* value, size_t size) { |
| 9431 | set_has_csharp_namespace(); |
| 9432 | csharp_namespace_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9433 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9434 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace) |
| 9435 | } |
| 9436 | ::std::string* FileOptions::mutable_csharp_namespace() { |
| 9437 | set_has_csharp_namespace(); |
| 9438 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace) |
| 9439 | return csharp_namespace_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9440 | } |
| 9441 | ::std::string* FileOptions::release_csharp_namespace() { |
| 9442 | // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace) |
| 9443 | clear_has_csharp_namespace(); |
| 9444 | return csharp_namespace_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9445 | } |
| 9446 | void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) { |
| 9447 | if (csharp_namespace != NULL) { |
| 9448 | set_has_csharp_namespace(); |
| 9449 | } else { |
| 9450 | clear_has_csharp_namespace(); |
| 9451 | } |
| 9452 | csharp_namespace_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), csharp_namespace); |
| 9453 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace) |
| 9454 | } |
| 9455 | |
| 9456 | // optional string swift_prefix = 39; |
| 9457 | bool FileOptions::has_swift_prefix() const { |
| 9458 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 9459 | } |
| 9460 | void FileOptions::set_has_swift_prefix() { |
| 9461 | _has_bits_[0] |= 0x00000020u; |
| 9462 | } |
| 9463 | void FileOptions::clear_has_swift_prefix() { |
| 9464 | _has_bits_[0] &= ~0x00000020u; |
| 9465 | } |
| 9466 | void FileOptions::clear_swift_prefix() { |
| 9467 | swift_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9468 | clear_has_swift_prefix(); |
| 9469 | } |
| 9470 | const ::std::string& FileOptions::swift_prefix() const { |
| 9471 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix) |
| 9472 | return swift_prefix_.GetNoArena(); |
| 9473 | } |
| 9474 | void FileOptions::set_swift_prefix(const ::std::string& value) { |
| 9475 | set_has_swift_prefix(); |
| 9476 | swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 9477 | // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix) |
| 9478 | } |
| 9479 | #if LANG_CXX11 |
| 9480 | void FileOptions::set_swift_prefix(::std::string&& value) { |
| 9481 | set_has_swift_prefix(); |
| 9482 | swift_prefix_.SetNoArena( |
| 9483 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 9484 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.swift_prefix) |
| 9485 | } |
| 9486 | #endif |
| 9487 | void FileOptions::set_swift_prefix(const char* value) { |
| 9488 | set_has_swift_prefix(); |
| 9489 | swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 9490 | // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.swift_prefix) |
| 9491 | } |
| 9492 | void FileOptions::set_swift_prefix(const char* value, size_t size) { |
| 9493 | set_has_swift_prefix(); |
| 9494 | swift_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9495 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 9496 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.swift_prefix) |
| 9497 | } |
| 9498 | ::std::string* FileOptions::mutable_swift_prefix() { |
| 9499 | set_has_swift_prefix(); |
| 9500 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_prefix) |
| 9501 | return swift_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9502 | } |
| 9503 | ::std::string* FileOptions::release_swift_prefix() { |
| 9504 | // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_prefix) |
| 9505 | clear_has_swift_prefix(); |
| 9506 | return swift_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9507 | } |
| 9508 | void FileOptions::set_allocated_swift_prefix(::std::string* swift_prefix) { |
| 9509 | if (swift_prefix != NULL) { |
| 9510 | set_has_swift_prefix(); |
| 9511 | } else { |
| 9512 | clear_has_swift_prefix(); |
| 9513 | } |
| 9514 | swift_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), swift_prefix); |
| 9515 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.swift_prefix) |
| 9516 | } |
| 9517 | |
| 9518 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9519 | int FileOptions::uninterpreted_option_size() const { |
| 9520 | return uninterpreted_option_.size(); |
| 9521 | } |
| 9522 | void FileOptions::clear_uninterpreted_option() { |
| 9523 | uninterpreted_option_.Clear(); |
| 9524 | } |
| 9525 | const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const { |
| 9526 | // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option) |
| 9527 | return uninterpreted_option_.Get(index); |
| 9528 | } |
| 9529 | ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) { |
| 9530 | // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option) |
| 9531 | return uninterpreted_option_.Mutable(index); |
| 9532 | } |
| 9533 | ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() { |
| 9534 | // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option) |
| 9535 | return uninterpreted_option_.Add(); |
| 9536 | } |
| 9537 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 9538 | FileOptions::mutable_uninterpreted_option() { |
| 9539 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option) |
| 9540 | return &uninterpreted_option_; |
| 9541 | } |
| 9542 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 9543 | FileOptions::uninterpreted_option() const { |
| 9544 | // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option) |
| 9545 | return uninterpreted_option_; |
| 9546 | } |
| 9547 | |
| 9548 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 9549 | |
| 9550 | // =================================================================== |
| 9551 | |
| 9552 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9553 | const int MessageOptions::kMessageSetWireFormatFieldNumber; |
| 9554 | const int MessageOptions::kNoStandardDescriptorAccessorFieldNumber; |
| 9555 | const int MessageOptions::kDeprecatedFieldNumber; |
| 9556 | const int MessageOptions::kMapEntryFieldNumber; |
| 9557 | const int MessageOptions::kUninterpretedOptionFieldNumber; |
| 9558 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9559 | |
| 9560 | MessageOptions::MessageOptions() |
| 9561 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 9562 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 9563 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 9564 | } |
| 9565 | SharedCtor(); |
| 9566 | // @@protoc_insertion_point(constructor:google.protobuf.MessageOptions) |
| 9567 | } |
| 9568 | MessageOptions::MessageOptions(const MessageOptions& from) |
| 9569 | : ::google::protobuf::Message(), |
| 9570 | _internal_metadata_(NULL), |
| 9571 | _has_bits_(from._has_bits_), |
| 9572 | _cached_size_(0), |
| 9573 | uninterpreted_option_(from.uninterpreted_option_) { |
| 9574 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9575 | _extensions_.MergeFrom(from._extensions_); |
| 9576 | ::memcpy(&message_set_wire_format_, &from.message_set_wire_format_, |
| 9577 | reinterpret_cast<char*>(&map_entry_) - |
| 9578 | reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_)); |
| 9579 | // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) |
| 9580 | } |
| 9581 | |
| 9582 | void MessageOptions::SharedCtor() { |
| 9583 | _cached_size_ = 0; |
| 9584 | ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_) - |
| 9585 | reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_)); |
| 9586 | } |
| 9587 | |
| 9588 | MessageOptions::~MessageOptions() { |
| 9589 | // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions) |
| 9590 | SharedDtor(); |
| 9591 | } |
| 9592 | |
| 9593 | void MessageOptions::SharedDtor() { |
| 9594 | } |
| 9595 | |
| 9596 | void MessageOptions::SetCachedSize(int size) const { |
| 9597 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 9598 | _cached_size_ = size; |
| 9599 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 9600 | } |
| 9601 | const ::google::protobuf::Descriptor* MessageOptions::descriptor() { |
| 9602 | protobuf_AssignDescriptorsOnce(); |
| 9603 | return file_level_metadata[12].descriptor; |
| 9604 | } |
| 9605 | |
| 9606 | const MessageOptions& MessageOptions::default_instance() { |
| 9607 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 9608 | return *internal_default_instance(); |
| 9609 | } |
| 9610 | |
| 9611 | MessageOptions* MessageOptions::New(::google::protobuf::Arena* arena) const { |
| 9612 | MessageOptions* n = new MessageOptions; |
| 9613 | if (arena != NULL) { |
| 9614 | arena->Own(n); |
| 9615 | } |
| 9616 | return n; |
| 9617 | } |
| 9618 | |
| 9619 | void MessageOptions::Clear() { |
| 9620 | // @@protoc_insertion_point(message_clear_start:google.protobuf.MessageOptions) |
| 9621 | _extensions_.Clear(); |
| 9622 | uninterpreted_option_.Clear(); |
| 9623 | if (_has_bits_[0 / 32] & 15u) { |
| 9624 | ::memset(&message_set_wire_format_, 0, reinterpret_cast<char*>(&map_entry_) - |
| 9625 | reinterpret_cast<char*>(&message_set_wire_format_) + sizeof(map_entry_)); |
| 9626 | } |
| 9627 | _has_bits_.Clear(); |
| 9628 | _internal_metadata_.Clear(); |
| 9629 | } |
| 9630 | |
| 9631 | bool MessageOptions::MergePartialFromCodedStream( |
| 9632 | ::google::protobuf::io::CodedInputStream* input) { |
| 9633 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9634 | ::google::protobuf::uint32 tag; |
| 9635 | // @@protoc_insertion_point(parse_start:google.protobuf.MessageOptions) |
| 9636 | for (;;) { |
| 9637 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 9638 | tag = p.first; |
| 9639 | if (!p.second) goto handle_unusual; |
| 9640 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9641 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9642 | case 1: { |
| 9643 | if (tag == 8u) { |
| 9644 | set_has_message_set_wire_format(); |
| 9645 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9646 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9647 | input, &message_set_wire_format_))); |
| 9648 | } else { |
| 9649 | goto handle_unusual; |
| 9650 | } |
| 9651 | break; |
| 9652 | } |
| 9653 | |
| 9654 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9655 | case 2: { |
| 9656 | if (tag == 16u) { |
| 9657 | set_has_no_standard_descriptor_accessor(); |
| 9658 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9659 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9660 | input, &no_standard_descriptor_accessor_))); |
| 9661 | } else { |
| 9662 | goto handle_unusual; |
| 9663 | } |
| 9664 | break; |
| 9665 | } |
| 9666 | |
| 9667 | // optional bool deprecated = 3 [default = false]; |
| 9668 | case 3: { |
| 9669 | if (tag == 24u) { |
| 9670 | set_has_deprecated(); |
| 9671 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9672 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9673 | input, &deprecated_))); |
| 9674 | } else { |
| 9675 | goto handle_unusual; |
| 9676 | } |
| 9677 | break; |
| 9678 | } |
| 9679 | |
| 9680 | // optional bool map_entry = 7; |
| 9681 | case 7: { |
| 9682 | if (tag == 56u) { |
| 9683 | set_has_map_entry(); |
| 9684 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9685 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 9686 | input, &map_entry_))); |
| 9687 | } else { |
| 9688 | goto handle_unusual; |
| 9689 | } |
| 9690 | break; |
| 9691 | } |
| 9692 | |
| 9693 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9694 | case 999: { |
| 9695 | if (tag == 7994u) { |
| 9696 | DO_(input->IncrementRecursionDepth()); |
| 9697 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 9698 | input, add_uninterpreted_option())); |
| 9699 | } else { |
| 9700 | goto handle_unusual; |
| 9701 | } |
| 9702 | input->UnsafeDecrementRecursionDepth(); |
| 9703 | break; |
| 9704 | } |
| 9705 | |
| 9706 | default: { |
| 9707 | handle_unusual: |
| 9708 | if (tag == 0 || |
| 9709 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 9710 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 9711 | goto success; |
| 9712 | } |
| 9713 | if ((8000u <= tag)) { |
| 9714 | DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
| 9715 | mutable_unknown_fields())); |
| 9716 | continue; |
| 9717 | } |
| 9718 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9719 | input, tag, mutable_unknown_fields())); |
| 9720 | break; |
| 9721 | } |
| 9722 | } |
| 9723 | } |
| 9724 | success: |
| 9725 | // @@protoc_insertion_point(parse_success:google.protobuf.MessageOptions) |
| 9726 | return true; |
| 9727 | failure: |
| 9728 | // @@protoc_insertion_point(parse_failure:google.protobuf.MessageOptions) |
| 9729 | return false; |
| 9730 | #undef DO_ |
| 9731 | } |
| 9732 | |
| 9733 | void MessageOptions::SerializeWithCachedSizes( |
| 9734 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9735 | // @@protoc_insertion_point(serialize_start:google.protobuf.MessageOptions) |
| 9736 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9737 | if (has_message_set_wire_format()) { |
| 9738 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output); |
| 9739 | } |
| 9740 | |
| 9741 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9742 | if (has_no_standard_descriptor_accessor()) { |
| 9743 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output); |
| 9744 | } |
| 9745 | |
| 9746 | // optional bool deprecated = 3 [default = false]; |
| 9747 | if (has_deprecated()) { |
| 9748 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output); |
| 9749 | } |
| 9750 | |
| 9751 | // optional bool map_entry = 7; |
| 9752 | if (has_map_entry()) { |
| 9753 | ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->map_entry(), output); |
| 9754 | } |
| 9755 | |
| 9756 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9757 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 9758 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9759 | 999, this->uninterpreted_option(i), output); |
| 9760 | } |
| 9761 | |
| 9762 | // Extension range [1000, 536870912) |
| 9763 | _extensions_.SerializeWithCachedSizes( |
| 9764 | 1000, 536870912, output); |
| 9765 | |
| 9766 | if (_internal_metadata_.have_unknown_fields()) { |
| 9767 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9768 | unknown_fields(), output); |
| 9769 | } |
| 9770 | // @@protoc_insertion_point(serialize_end:google.protobuf.MessageOptions) |
| 9771 | } |
| 9772 | |
| 9773 | ::google::protobuf::uint8* MessageOptions::InternalSerializeWithCachedSizesToArray( |
| 9774 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 9775 | (void)deterministic; // Unused |
| 9776 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions) |
| 9777 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9778 | if (has_message_set_wire_format()) { |
| 9779 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target); |
| 9780 | } |
| 9781 | |
| 9782 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9783 | if (has_no_standard_descriptor_accessor()) { |
| 9784 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target); |
| 9785 | } |
| 9786 | |
| 9787 | // optional bool deprecated = 3 [default = false]; |
| 9788 | if (has_deprecated()) { |
| 9789 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target); |
| 9790 | } |
| 9791 | |
| 9792 | // optional bool map_entry = 7; |
| 9793 | if (has_map_entry()) { |
| 9794 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->map_entry(), target); |
| 9795 | } |
| 9796 | |
| 9797 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9798 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 9799 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9800 | InternalWriteMessageNoVirtualToArray( |
| 9801 | 999, this->uninterpreted_option(i), false, target); |
| 9802 | } |
| 9803 | |
| 9804 | // Extension range [1000, 536870912) |
| 9805 | target = _extensions_.InternalSerializeWithCachedSizesToArray( |
| 9806 | 1000, 536870912, false, target); |
| 9807 | |
| 9808 | if (_internal_metadata_.have_unknown_fields()) { |
| 9809 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9810 | unknown_fields(), target); |
| 9811 | } |
| 9812 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MessageOptions) |
| 9813 | return target; |
| 9814 | } |
| 9815 | |
| 9816 | size_t MessageOptions::ByteSizeLong() const { |
| 9817 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MessageOptions) |
| 9818 | size_t total_size = 0; |
| 9819 | |
| 9820 | total_size += _extensions_.ByteSize(); |
| 9821 | |
| 9822 | if (_internal_metadata_.have_unknown_fields()) { |
| 9823 | total_size += |
| 9824 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9825 | unknown_fields()); |
| 9826 | } |
| 9827 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 9828 | { |
| 9829 | unsigned int count = this->uninterpreted_option_size(); |
| 9830 | total_size += 2UL * count; |
| 9831 | for (unsigned int i = 0; i < count; i++) { |
| 9832 | total_size += |
| 9833 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 9834 | this->uninterpreted_option(i)); |
| 9835 | } |
| 9836 | } |
| 9837 | |
| 9838 | if (_has_bits_[0 / 32] & 15u) { |
| 9839 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9840 | if (has_message_set_wire_format()) { |
| 9841 | total_size += 1 + 1; |
| 9842 | } |
| 9843 | |
| 9844 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9845 | if (has_no_standard_descriptor_accessor()) { |
| 9846 | total_size += 1 + 1; |
| 9847 | } |
| 9848 | |
| 9849 | // optional bool deprecated = 3 [default = false]; |
| 9850 | if (has_deprecated()) { |
| 9851 | total_size += 1 + 1; |
| 9852 | } |
| 9853 | |
| 9854 | // optional bool map_entry = 7; |
| 9855 | if (has_map_entry()) { |
| 9856 | total_size += 1 + 1; |
| 9857 | } |
| 9858 | |
| 9859 | } |
| 9860 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9861 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 9862 | _cached_size_ = cached_size; |
| 9863 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 9864 | return total_size; |
| 9865 | } |
| 9866 | |
| 9867 | void MessageOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 9868 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MessageOptions) |
| 9869 | GOOGLE_DCHECK_NE(&from, this); |
| 9870 | const MessageOptions* source = |
| 9871 | ::google::protobuf::internal::DynamicCastToGenerated<const MessageOptions>( |
| 9872 | &from); |
| 9873 | if (source == NULL) { |
| 9874 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MessageOptions) |
| 9875 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9876 | } else { |
| 9877 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MessageOptions) |
| 9878 | MergeFrom(*source); |
| 9879 | } |
| 9880 | } |
| 9881 | |
| 9882 | void MessageOptions::MergeFrom(const MessageOptions& from) { |
| 9883 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MessageOptions) |
| 9884 | GOOGLE_DCHECK_NE(&from, this); |
| 9885 | _extensions_.MergeFrom(from._extensions_); |
| 9886 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9887 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 9888 | if (from._has_bits_[0 / 32] & 15u) { |
| 9889 | if (from.has_message_set_wire_format()) { |
| 9890 | set_message_set_wire_format(from.message_set_wire_format()); |
| 9891 | } |
| 9892 | if (from.has_no_standard_descriptor_accessor()) { |
| 9893 | set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor()); |
| 9894 | } |
| 9895 | if (from.has_deprecated()) { |
| 9896 | set_deprecated(from.deprecated()); |
| 9897 | } |
| 9898 | if (from.has_map_entry()) { |
| 9899 | set_map_entry(from.map_entry()); |
| 9900 | } |
| 9901 | } |
| 9902 | } |
| 9903 | |
| 9904 | void MessageOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 9905 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MessageOptions) |
| 9906 | if (&from == this) return; |
| 9907 | Clear(); |
| 9908 | MergeFrom(from); |
| 9909 | } |
| 9910 | |
| 9911 | void MessageOptions::CopyFrom(const MessageOptions& from) { |
| 9912 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MessageOptions) |
| 9913 | if (&from == this) return; |
| 9914 | Clear(); |
| 9915 | MergeFrom(from); |
| 9916 | } |
| 9917 | |
| 9918 | bool MessageOptions::IsInitialized() const { |
| 9919 | if (!_extensions_.IsInitialized()) { |
| 9920 | return false; |
| 9921 | } |
| 9922 | |
| 9923 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 9924 | return true; |
| 9925 | } |
| 9926 | |
| 9927 | void MessageOptions::Swap(MessageOptions* other) { |
| 9928 | if (other == this) return; |
| 9929 | InternalSwap(other); |
| 9930 | } |
| 9931 | void MessageOptions::InternalSwap(MessageOptions* other) { |
| 9932 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 9933 | std::swap(message_set_wire_format_, other->message_set_wire_format_); |
| 9934 | std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_); |
| 9935 | std::swap(deprecated_, other->deprecated_); |
| 9936 | std::swap(map_entry_, other->map_entry_); |
| 9937 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 9938 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9939 | std::swap(_cached_size_, other->_cached_size_); |
| 9940 | _extensions_.Swap(&other->_extensions_); |
| 9941 | } |
| 9942 | |
| 9943 | ::google::protobuf::Metadata MessageOptions::GetMetadata() const { |
| 9944 | protobuf_AssignDescriptorsOnce(); |
| 9945 | return file_level_metadata[12]; |
| 9946 | } |
| 9947 | |
| 9948 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 9949 | // MessageOptions |
| 9950 | |
| 9951 | // optional bool message_set_wire_format = 1 [default = false]; |
| 9952 | bool MessageOptions::has_message_set_wire_format() const { |
| 9953 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 9954 | } |
| 9955 | void MessageOptions::set_has_message_set_wire_format() { |
| 9956 | _has_bits_[0] |= 0x00000001u; |
| 9957 | } |
| 9958 | void MessageOptions::clear_has_message_set_wire_format() { |
| 9959 | _has_bits_[0] &= ~0x00000001u; |
| 9960 | } |
| 9961 | void MessageOptions::clear_message_set_wire_format() { |
| 9962 | message_set_wire_format_ = false; |
| 9963 | clear_has_message_set_wire_format(); |
| 9964 | } |
| 9965 | bool MessageOptions::message_set_wire_format() const { |
| 9966 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format) |
| 9967 | return message_set_wire_format_; |
| 9968 | } |
| 9969 | void MessageOptions::set_message_set_wire_format(bool value) { |
| 9970 | set_has_message_set_wire_format(); |
| 9971 | message_set_wire_format_ = value; |
| 9972 | // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format) |
| 9973 | } |
| 9974 | |
| 9975 | // optional bool no_standard_descriptor_accessor = 2 [default = false]; |
| 9976 | bool MessageOptions::has_no_standard_descriptor_accessor() const { |
| 9977 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 9978 | } |
| 9979 | void MessageOptions::set_has_no_standard_descriptor_accessor() { |
| 9980 | _has_bits_[0] |= 0x00000002u; |
| 9981 | } |
| 9982 | void MessageOptions::clear_has_no_standard_descriptor_accessor() { |
| 9983 | _has_bits_[0] &= ~0x00000002u; |
| 9984 | } |
| 9985 | void MessageOptions::clear_no_standard_descriptor_accessor() { |
| 9986 | no_standard_descriptor_accessor_ = false; |
| 9987 | clear_has_no_standard_descriptor_accessor(); |
| 9988 | } |
| 9989 | bool MessageOptions::no_standard_descriptor_accessor() const { |
| 9990 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor) |
| 9991 | return no_standard_descriptor_accessor_; |
| 9992 | } |
| 9993 | void MessageOptions::set_no_standard_descriptor_accessor(bool value) { |
| 9994 | set_has_no_standard_descriptor_accessor(); |
| 9995 | no_standard_descriptor_accessor_ = value; |
| 9996 | // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor) |
| 9997 | } |
| 9998 | |
| 9999 | // optional bool deprecated = 3 [default = false]; |
| 10000 | bool MessageOptions::has_deprecated() const { |
| 10001 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 10002 | } |
| 10003 | void MessageOptions::set_has_deprecated() { |
| 10004 | _has_bits_[0] |= 0x00000004u; |
| 10005 | } |
| 10006 | void MessageOptions::clear_has_deprecated() { |
| 10007 | _has_bits_[0] &= ~0x00000004u; |
| 10008 | } |
| 10009 | void MessageOptions::clear_deprecated() { |
| 10010 | deprecated_ = false; |
| 10011 | clear_has_deprecated(); |
| 10012 | } |
| 10013 | bool MessageOptions::deprecated() const { |
| 10014 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated) |
| 10015 | return deprecated_; |
| 10016 | } |
| 10017 | void MessageOptions::set_deprecated(bool value) { |
| 10018 | set_has_deprecated(); |
| 10019 | deprecated_ = value; |
| 10020 | // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated) |
| 10021 | } |
| 10022 | |
| 10023 | // optional bool map_entry = 7; |
| 10024 | bool MessageOptions::has_map_entry() const { |
| 10025 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 10026 | } |
| 10027 | void MessageOptions::set_has_map_entry() { |
| 10028 | _has_bits_[0] |= 0x00000008u; |
| 10029 | } |
| 10030 | void MessageOptions::clear_has_map_entry() { |
| 10031 | _has_bits_[0] &= ~0x00000008u; |
| 10032 | } |
| 10033 | void MessageOptions::clear_map_entry() { |
| 10034 | map_entry_ = false; |
| 10035 | clear_has_map_entry(); |
| 10036 | } |
| 10037 | bool MessageOptions::map_entry() const { |
| 10038 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry) |
| 10039 | return map_entry_; |
| 10040 | } |
| 10041 | void MessageOptions::set_map_entry(bool value) { |
| 10042 | set_has_map_entry(); |
| 10043 | map_entry_ = value; |
| 10044 | // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry) |
| 10045 | } |
| 10046 | |
| 10047 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10048 | int MessageOptions::uninterpreted_option_size() const { |
| 10049 | return uninterpreted_option_.size(); |
| 10050 | } |
| 10051 | void MessageOptions::clear_uninterpreted_option() { |
| 10052 | uninterpreted_option_.Clear(); |
| 10053 | } |
| 10054 | const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const { |
| 10055 | // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option) |
| 10056 | return uninterpreted_option_.Get(index); |
| 10057 | } |
| 10058 | ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) { |
| 10059 | // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option) |
| 10060 | return uninterpreted_option_.Mutable(index); |
| 10061 | } |
| 10062 | ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() { |
| 10063 | // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option) |
| 10064 | return uninterpreted_option_.Add(); |
| 10065 | } |
| 10066 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 10067 | MessageOptions::mutable_uninterpreted_option() { |
| 10068 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option) |
| 10069 | return &uninterpreted_option_; |
| 10070 | } |
| 10071 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 10072 | MessageOptions::uninterpreted_option() const { |
| 10073 | // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option) |
| 10074 | return uninterpreted_option_; |
| 10075 | } |
| 10076 | |
| 10077 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10078 | |
| 10079 | // =================================================================== |
| 10080 | |
| 10081 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10082 | const int FieldOptions::kCtypeFieldNumber; |
| 10083 | const int FieldOptions::kPackedFieldNumber; |
| 10084 | const int FieldOptions::kJstypeFieldNumber; |
| 10085 | const int FieldOptions::kLazyFieldNumber; |
| 10086 | const int FieldOptions::kDeprecatedFieldNumber; |
| 10087 | const int FieldOptions::kWeakFieldNumber; |
| 10088 | const int FieldOptions::kUninterpretedOptionFieldNumber; |
| 10089 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10090 | |
| 10091 | FieldOptions::FieldOptions() |
| 10092 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 10093 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 10094 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 10095 | } |
| 10096 | SharedCtor(); |
| 10097 | // @@protoc_insertion_point(constructor:google.protobuf.FieldOptions) |
| 10098 | } |
| 10099 | FieldOptions::FieldOptions(const FieldOptions& from) |
| 10100 | : ::google::protobuf::Message(), |
| 10101 | _internal_metadata_(NULL), |
| 10102 | _has_bits_(from._has_bits_), |
| 10103 | _cached_size_(0), |
| 10104 | uninterpreted_option_(from.uninterpreted_option_) { |
| 10105 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10106 | _extensions_.MergeFrom(from._extensions_); |
| 10107 | ::memcpy(&ctype_, &from.ctype_, |
| 10108 | reinterpret_cast<char*>(&weak_) - |
| 10109 | reinterpret_cast<char*>(&ctype_) + sizeof(weak_)); |
| 10110 | // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) |
| 10111 | } |
| 10112 | |
| 10113 | void FieldOptions::SharedCtor() { |
| 10114 | _cached_size_ = 0; |
| 10115 | ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) - |
| 10116 | reinterpret_cast<char*>(&ctype_) + sizeof(weak_)); |
| 10117 | } |
| 10118 | |
| 10119 | FieldOptions::~FieldOptions() { |
| 10120 | // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions) |
| 10121 | SharedDtor(); |
| 10122 | } |
| 10123 | |
| 10124 | void FieldOptions::SharedDtor() { |
| 10125 | } |
| 10126 | |
| 10127 | void FieldOptions::SetCachedSize(int size) const { |
| 10128 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10129 | _cached_size_ = size; |
| 10130 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10131 | } |
| 10132 | const ::google::protobuf::Descriptor* FieldOptions::descriptor() { |
| 10133 | protobuf_AssignDescriptorsOnce(); |
| 10134 | return file_level_metadata[13].descriptor; |
| 10135 | } |
| 10136 | |
| 10137 | const FieldOptions& FieldOptions::default_instance() { |
| 10138 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 10139 | return *internal_default_instance(); |
| 10140 | } |
| 10141 | |
| 10142 | FieldOptions* FieldOptions::New(::google::protobuf::Arena* arena) const { |
| 10143 | FieldOptions* n = new FieldOptions; |
| 10144 | if (arena != NULL) { |
| 10145 | arena->Own(n); |
| 10146 | } |
| 10147 | return n; |
| 10148 | } |
| 10149 | |
| 10150 | void FieldOptions::Clear() { |
| 10151 | // @@protoc_insertion_point(message_clear_start:google.protobuf.FieldOptions) |
| 10152 | _extensions_.Clear(); |
| 10153 | uninterpreted_option_.Clear(); |
| 10154 | if (_has_bits_[0 / 32] & 63u) { |
| 10155 | ::memset(&ctype_, 0, reinterpret_cast<char*>(&weak_) - |
| 10156 | reinterpret_cast<char*>(&ctype_) + sizeof(weak_)); |
| 10157 | } |
| 10158 | _has_bits_.Clear(); |
| 10159 | _internal_metadata_.Clear(); |
| 10160 | } |
| 10161 | |
| 10162 | bool FieldOptions::MergePartialFromCodedStream( |
| 10163 | ::google::protobuf::io::CodedInputStream* input) { |
| 10164 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10165 | ::google::protobuf::uint32 tag; |
| 10166 | // @@protoc_insertion_point(parse_start:google.protobuf.FieldOptions) |
| 10167 | for (;;) { |
| 10168 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 10169 | tag = p.first; |
| 10170 | if (!p.second) goto handle_unusual; |
| 10171 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10172 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10173 | case 1: { |
| 10174 | if (tag == 8u) { |
| 10175 | int value; |
| 10176 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10177 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 10178 | input, &value))); |
| 10179 | if (::google::protobuf::FieldOptions_CType_IsValid(value)) { |
| 10180 | set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value)); |
| 10181 | } else { |
| 10182 | mutable_unknown_fields()->AddVarint(1, value); |
| 10183 | } |
| 10184 | } else { |
| 10185 | goto handle_unusual; |
| 10186 | } |
| 10187 | break; |
| 10188 | } |
| 10189 | |
| 10190 | // optional bool packed = 2; |
| 10191 | case 2: { |
| 10192 | if (tag == 16u) { |
| 10193 | set_has_packed(); |
| 10194 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10195 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 10196 | input, &packed_))); |
| 10197 | } else { |
| 10198 | goto handle_unusual; |
| 10199 | } |
| 10200 | break; |
| 10201 | } |
| 10202 | |
| 10203 | // optional bool deprecated = 3 [default = false]; |
| 10204 | case 3: { |
| 10205 | if (tag == 24u) { |
| 10206 | set_has_deprecated(); |
| 10207 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10208 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 10209 | input, &deprecated_))); |
| 10210 | } else { |
| 10211 | goto handle_unusual; |
| 10212 | } |
| 10213 | break; |
| 10214 | } |
| 10215 | |
| 10216 | // optional bool lazy = 5 [default = false]; |
| 10217 | case 5: { |
| 10218 | if (tag == 40u) { |
| 10219 | set_has_lazy(); |
| 10220 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10221 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 10222 | input, &lazy_))); |
| 10223 | } else { |
| 10224 | goto handle_unusual; |
| 10225 | } |
| 10226 | break; |
| 10227 | } |
| 10228 | |
| 10229 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 10230 | case 6: { |
| 10231 | if (tag == 48u) { |
| 10232 | int value; |
| 10233 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10234 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 10235 | input, &value))); |
| 10236 | if (::google::protobuf::FieldOptions_JSType_IsValid(value)) { |
| 10237 | set_jstype(static_cast< ::google::protobuf::FieldOptions_JSType >(value)); |
| 10238 | } else { |
| 10239 | mutable_unknown_fields()->AddVarint(6, value); |
| 10240 | } |
| 10241 | } else { |
| 10242 | goto handle_unusual; |
| 10243 | } |
| 10244 | break; |
| 10245 | } |
| 10246 | |
| 10247 | // optional bool weak = 10 [default = false]; |
| 10248 | case 10: { |
| 10249 | if (tag == 80u) { |
| 10250 | set_has_weak(); |
| 10251 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10252 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 10253 | input, &weak_))); |
| 10254 | } else { |
| 10255 | goto handle_unusual; |
| 10256 | } |
| 10257 | break; |
| 10258 | } |
| 10259 | |
| 10260 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10261 | case 999: { |
| 10262 | if (tag == 7994u) { |
| 10263 | DO_(input->IncrementRecursionDepth()); |
| 10264 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 10265 | input, add_uninterpreted_option())); |
| 10266 | } else { |
| 10267 | goto handle_unusual; |
| 10268 | } |
| 10269 | input->UnsafeDecrementRecursionDepth(); |
| 10270 | break; |
| 10271 | } |
| 10272 | |
| 10273 | default: { |
| 10274 | handle_unusual: |
| 10275 | if (tag == 0 || |
| 10276 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 10277 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 10278 | goto success; |
| 10279 | } |
| 10280 | if ((8000u <= tag)) { |
| 10281 | DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
| 10282 | mutable_unknown_fields())); |
| 10283 | continue; |
| 10284 | } |
| 10285 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10286 | input, tag, mutable_unknown_fields())); |
| 10287 | break; |
| 10288 | } |
| 10289 | } |
| 10290 | } |
| 10291 | success: |
| 10292 | // @@protoc_insertion_point(parse_success:google.protobuf.FieldOptions) |
| 10293 | return true; |
| 10294 | failure: |
| 10295 | // @@protoc_insertion_point(parse_failure:google.protobuf.FieldOptions) |
| 10296 | return false; |
| 10297 | #undef DO_ |
| 10298 | } |
| 10299 | |
| 10300 | void FieldOptions::SerializeWithCachedSizes( |
| 10301 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10302 | // @@protoc_insertion_point(serialize_start:google.protobuf.FieldOptions) |
| 10303 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10304 | if (has_ctype()) { |
| 10305 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 10306 | 1, this->ctype(), output); |
| 10307 | } |
| 10308 | |
| 10309 | // optional bool packed = 2; |
| 10310 | if (has_packed()) { |
| 10311 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output); |
| 10312 | } |
| 10313 | |
| 10314 | // optional bool deprecated = 3 [default = false]; |
| 10315 | if (has_deprecated()) { |
| 10316 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output); |
| 10317 | } |
| 10318 | |
| 10319 | // optional bool lazy = 5 [default = false]; |
| 10320 | if (has_lazy()) { |
| 10321 | ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->lazy(), output); |
| 10322 | } |
| 10323 | |
| 10324 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 10325 | if (has_jstype()) { |
| 10326 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 10327 | 6, this->jstype(), output); |
| 10328 | } |
| 10329 | |
| 10330 | // optional bool weak = 10 [default = false]; |
| 10331 | if (has_weak()) { |
| 10332 | ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->weak(), output); |
| 10333 | } |
| 10334 | |
| 10335 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10336 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10337 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10338 | 999, this->uninterpreted_option(i), output); |
| 10339 | } |
| 10340 | |
| 10341 | // Extension range [1000, 536870912) |
| 10342 | _extensions_.SerializeWithCachedSizes( |
| 10343 | 1000, 536870912, output); |
| 10344 | |
| 10345 | if (_internal_metadata_.have_unknown_fields()) { |
| 10346 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10347 | unknown_fields(), output); |
| 10348 | } |
| 10349 | // @@protoc_insertion_point(serialize_end:google.protobuf.FieldOptions) |
| 10350 | } |
| 10351 | |
| 10352 | ::google::protobuf::uint8* FieldOptions::InternalSerializeWithCachedSizesToArray( |
| 10353 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 10354 | (void)deterministic; // Unused |
| 10355 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions) |
| 10356 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10357 | if (has_ctype()) { |
| 10358 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 10359 | 1, this->ctype(), target); |
| 10360 | } |
| 10361 | |
| 10362 | // optional bool packed = 2; |
| 10363 | if (has_packed()) { |
| 10364 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target); |
| 10365 | } |
| 10366 | |
| 10367 | // optional bool deprecated = 3 [default = false]; |
| 10368 | if (has_deprecated()) { |
| 10369 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target); |
| 10370 | } |
| 10371 | |
| 10372 | // optional bool lazy = 5 [default = false]; |
| 10373 | if (has_lazy()) { |
| 10374 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->lazy(), target); |
| 10375 | } |
| 10376 | |
| 10377 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 10378 | if (has_jstype()) { |
| 10379 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 10380 | 6, this->jstype(), target); |
| 10381 | } |
| 10382 | |
| 10383 | // optional bool weak = 10 [default = false]; |
| 10384 | if (has_weak()) { |
| 10385 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->weak(), target); |
| 10386 | } |
| 10387 | |
| 10388 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10389 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10390 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10391 | InternalWriteMessageNoVirtualToArray( |
| 10392 | 999, this->uninterpreted_option(i), false, target); |
| 10393 | } |
| 10394 | |
| 10395 | // Extension range [1000, 536870912) |
| 10396 | target = _extensions_.InternalSerializeWithCachedSizesToArray( |
| 10397 | 1000, 536870912, false, target); |
| 10398 | |
| 10399 | if (_internal_metadata_.have_unknown_fields()) { |
| 10400 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10401 | unknown_fields(), target); |
| 10402 | } |
| 10403 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FieldOptions) |
| 10404 | return target; |
| 10405 | } |
| 10406 | |
| 10407 | size_t FieldOptions::ByteSizeLong() const { |
| 10408 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldOptions) |
| 10409 | size_t total_size = 0; |
| 10410 | |
| 10411 | total_size += _extensions_.ByteSize(); |
| 10412 | |
| 10413 | if (_internal_metadata_.have_unknown_fields()) { |
| 10414 | total_size += |
| 10415 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10416 | unknown_fields()); |
| 10417 | } |
| 10418 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10419 | { |
| 10420 | unsigned int count = this->uninterpreted_option_size(); |
| 10421 | total_size += 2UL * count; |
| 10422 | for (unsigned int i = 0; i < count; i++) { |
| 10423 | total_size += |
| 10424 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 10425 | this->uninterpreted_option(i)); |
| 10426 | } |
| 10427 | } |
| 10428 | |
| 10429 | if (_has_bits_[0 / 32] & 63u) { |
| 10430 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10431 | if (has_ctype()) { |
| 10432 | total_size += 1 + |
| 10433 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype()); |
| 10434 | } |
| 10435 | |
| 10436 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 10437 | if (has_jstype()) { |
| 10438 | total_size += 1 + |
| 10439 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->jstype()); |
| 10440 | } |
| 10441 | |
| 10442 | // optional bool packed = 2; |
| 10443 | if (has_packed()) { |
| 10444 | total_size += 1 + 1; |
| 10445 | } |
| 10446 | |
| 10447 | // optional bool lazy = 5 [default = false]; |
| 10448 | if (has_lazy()) { |
| 10449 | total_size += 1 + 1; |
| 10450 | } |
| 10451 | |
| 10452 | // optional bool deprecated = 3 [default = false]; |
| 10453 | if (has_deprecated()) { |
| 10454 | total_size += 1 + 1; |
| 10455 | } |
| 10456 | |
| 10457 | // optional bool weak = 10 [default = false]; |
| 10458 | if (has_weak()) { |
| 10459 | total_size += 1 + 1; |
| 10460 | } |
| 10461 | |
| 10462 | } |
| 10463 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10464 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10465 | _cached_size_ = cached_size; |
| 10466 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10467 | return total_size; |
| 10468 | } |
| 10469 | |
| 10470 | void FieldOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 10471 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FieldOptions) |
| 10472 | GOOGLE_DCHECK_NE(&from, this); |
| 10473 | const FieldOptions* source = |
| 10474 | ::google::protobuf::internal::DynamicCastToGenerated<const FieldOptions>( |
| 10475 | &from); |
| 10476 | if (source == NULL) { |
| 10477 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FieldOptions) |
| 10478 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10479 | } else { |
| 10480 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FieldOptions) |
| 10481 | MergeFrom(*source); |
| 10482 | } |
| 10483 | } |
| 10484 | |
| 10485 | void FieldOptions::MergeFrom(const FieldOptions& from) { |
| 10486 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FieldOptions) |
| 10487 | GOOGLE_DCHECK_NE(&from, this); |
| 10488 | _extensions_.MergeFrom(from._extensions_); |
| 10489 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10490 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 10491 | if (from._has_bits_[0 / 32] & 63u) { |
| 10492 | if (from.has_ctype()) { |
| 10493 | set_ctype(from.ctype()); |
| 10494 | } |
| 10495 | if (from.has_jstype()) { |
| 10496 | set_jstype(from.jstype()); |
| 10497 | } |
| 10498 | if (from.has_packed()) { |
| 10499 | set_packed(from.packed()); |
| 10500 | } |
| 10501 | if (from.has_lazy()) { |
| 10502 | set_lazy(from.lazy()); |
| 10503 | } |
| 10504 | if (from.has_deprecated()) { |
| 10505 | set_deprecated(from.deprecated()); |
| 10506 | } |
| 10507 | if (from.has_weak()) { |
| 10508 | set_weak(from.weak()); |
| 10509 | } |
| 10510 | } |
| 10511 | } |
| 10512 | |
| 10513 | void FieldOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 10514 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FieldOptions) |
| 10515 | if (&from == this) return; |
| 10516 | Clear(); |
| 10517 | MergeFrom(from); |
| 10518 | } |
| 10519 | |
| 10520 | void FieldOptions::CopyFrom(const FieldOptions& from) { |
| 10521 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FieldOptions) |
| 10522 | if (&from == this) return; |
| 10523 | Clear(); |
| 10524 | MergeFrom(from); |
| 10525 | } |
| 10526 | |
| 10527 | bool FieldOptions::IsInitialized() const { |
| 10528 | if (!_extensions_.IsInitialized()) { |
| 10529 | return false; |
| 10530 | } |
| 10531 | |
| 10532 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 10533 | return true; |
| 10534 | } |
| 10535 | |
| 10536 | void FieldOptions::Swap(FieldOptions* other) { |
| 10537 | if (other == this) return; |
| 10538 | InternalSwap(other); |
| 10539 | } |
| 10540 | void FieldOptions::InternalSwap(FieldOptions* other) { |
| 10541 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 10542 | std::swap(ctype_, other->ctype_); |
| 10543 | std::swap(jstype_, other->jstype_); |
| 10544 | std::swap(packed_, other->packed_); |
| 10545 | std::swap(lazy_, other->lazy_); |
| 10546 | std::swap(deprecated_, other->deprecated_); |
| 10547 | std::swap(weak_, other->weak_); |
| 10548 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 10549 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10550 | std::swap(_cached_size_, other->_cached_size_); |
| 10551 | _extensions_.Swap(&other->_extensions_); |
| 10552 | } |
| 10553 | |
| 10554 | ::google::protobuf::Metadata FieldOptions::GetMetadata() const { |
| 10555 | protobuf_AssignDescriptorsOnce(); |
| 10556 | return file_level_metadata[13]; |
| 10557 | } |
| 10558 | |
| 10559 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10560 | // FieldOptions |
| 10561 | |
| 10562 | // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; |
| 10563 | bool FieldOptions::has_ctype() const { |
| 10564 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 10565 | } |
| 10566 | void FieldOptions::set_has_ctype() { |
| 10567 | _has_bits_[0] |= 0x00000001u; |
| 10568 | } |
| 10569 | void FieldOptions::clear_has_ctype() { |
| 10570 | _has_bits_[0] &= ~0x00000001u; |
| 10571 | } |
| 10572 | void FieldOptions::clear_ctype() { |
| 10573 | ctype_ = 0; |
| 10574 | clear_has_ctype(); |
| 10575 | } |
| 10576 | ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const { |
| 10577 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype) |
| 10578 | return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_); |
| 10579 | } |
| 10580 | void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) { |
| 10581 | assert(::google::protobuf::FieldOptions_CType_IsValid(value)); |
| 10582 | set_has_ctype(); |
| 10583 | ctype_ = value; |
| 10584 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype) |
| 10585 | } |
| 10586 | |
| 10587 | // optional bool packed = 2; |
| 10588 | bool FieldOptions::has_packed() const { |
| 10589 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 10590 | } |
| 10591 | void FieldOptions::set_has_packed() { |
| 10592 | _has_bits_[0] |= 0x00000004u; |
| 10593 | } |
| 10594 | void FieldOptions::clear_has_packed() { |
| 10595 | _has_bits_[0] &= ~0x00000004u; |
| 10596 | } |
| 10597 | void FieldOptions::clear_packed() { |
| 10598 | packed_ = false; |
| 10599 | clear_has_packed(); |
| 10600 | } |
| 10601 | bool FieldOptions::packed() const { |
| 10602 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed) |
| 10603 | return packed_; |
| 10604 | } |
| 10605 | void FieldOptions::set_packed(bool value) { |
| 10606 | set_has_packed(); |
| 10607 | packed_ = value; |
| 10608 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed) |
| 10609 | } |
| 10610 | |
| 10611 | // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; |
| 10612 | bool FieldOptions::has_jstype() const { |
| 10613 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 10614 | } |
| 10615 | void FieldOptions::set_has_jstype() { |
| 10616 | _has_bits_[0] |= 0x00000002u; |
| 10617 | } |
| 10618 | void FieldOptions::clear_has_jstype() { |
| 10619 | _has_bits_[0] &= ~0x00000002u; |
| 10620 | } |
| 10621 | void FieldOptions::clear_jstype() { |
| 10622 | jstype_ = 0; |
| 10623 | clear_has_jstype(); |
| 10624 | } |
| 10625 | ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const { |
| 10626 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype) |
| 10627 | return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_); |
| 10628 | } |
| 10629 | void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) { |
| 10630 | assert(::google::protobuf::FieldOptions_JSType_IsValid(value)); |
| 10631 | set_has_jstype(); |
| 10632 | jstype_ = value; |
| 10633 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype) |
| 10634 | } |
| 10635 | |
| 10636 | // optional bool lazy = 5 [default = false]; |
| 10637 | bool FieldOptions::has_lazy() const { |
| 10638 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 10639 | } |
| 10640 | void FieldOptions::set_has_lazy() { |
| 10641 | _has_bits_[0] |= 0x00000008u; |
| 10642 | } |
| 10643 | void FieldOptions::clear_has_lazy() { |
| 10644 | _has_bits_[0] &= ~0x00000008u; |
| 10645 | } |
| 10646 | void FieldOptions::clear_lazy() { |
| 10647 | lazy_ = false; |
| 10648 | clear_has_lazy(); |
| 10649 | } |
| 10650 | bool FieldOptions::lazy() const { |
| 10651 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy) |
| 10652 | return lazy_; |
| 10653 | } |
| 10654 | void FieldOptions::set_lazy(bool value) { |
| 10655 | set_has_lazy(); |
| 10656 | lazy_ = value; |
| 10657 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy) |
| 10658 | } |
| 10659 | |
| 10660 | // optional bool deprecated = 3 [default = false]; |
| 10661 | bool FieldOptions::has_deprecated() const { |
| 10662 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 10663 | } |
| 10664 | void FieldOptions::set_has_deprecated() { |
| 10665 | _has_bits_[0] |= 0x00000010u; |
| 10666 | } |
| 10667 | void FieldOptions::clear_has_deprecated() { |
| 10668 | _has_bits_[0] &= ~0x00000010u; |
| 10669 | } |
| 10670 | void FieldOptions::clear_deprecated() { |
| 10671 | deprecated_ = false; |
| 10672 | clear_has_deprecated(); |
| 10673 | } |
| 10674 | bool FieldOptions::deprecated() const { |
| 10675 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated) |
| 10676 | return deprecated_; |
| 10677 | } |
| 10678 | void FieldOptions::set_deprecated(bool value) { |
| 10679 | set_has_deprecated(); |
| 10680 | deprecated_ = value; |
| 10681 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated) |
| 10682 | } |
| 10683 | |
| 10684 | // optional bool weak = 10 [default = false]; |
| 10685 | bool FieldOptions::has_weak() const { |
| 10686 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 10687 | } |
| 10688 | void FieldOptions::set_has_weak() { |
| 10689 | _has_bits_[0] |= 0x00000020u; |
| 10690 | } |
| 10691 | void FieldOptions::clear_has_weak() { |
| 10692 | _has_bits_[0] &= ~0x00000020u; |
| 10693 | } |
| 10694 | void FieldOptions::clear_weak() { |
| 10695 | weak_ = false; |
| 10696 | clear_has_weak(); |
| 10697 | } |
| 10698 | bool FieldOptions::weak() const { |
| 10699 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak) |
| 10700 | return weak_; |
| 10701 | } |
| 10702 | void FieldOptions::set_weak(bool value) { |
| 10703 | set_has_weak(); |
| 10704 | weak_ = value; |
| 10705 | // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak) |
| 10706 | } |
| 10707 | |
| 10708 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10709 | int FieldOptions::uninterpreted_option_size() const { |
| 10710 | return uninterpreted_option_.size(); |
| 10711 | } |
| 10712 | void FieldOptions::clear_uninterpreted_option() { |
| 10713 | uninterpreted_option_.Clear(); |
| 10714 | } |
| 10715 | const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const { |
| 10716 | // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option) |
| 10717 | return uninterpreted_option_.Get(index); |
| 10718 | } |
| 10719 | ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) { |
| 10720 | // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option) |
| 10721 | return uninterpreted_option_.Mutable(index); |
| 10722 | } |
| 10723 | ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() { |
| 10724 | // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option) |
| 10725 | return uninterpreted_option_.Add(); |
| 10726 | } |
| 10727 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 10728 | FieldOptions::mutable_uninterpreted_option() { |
| 10729 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option) |
| 10730 | return &uninterpreted_option_; |
| 10731 | } |
| 10732 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 10733 | FieldOptions::uninterpreted_option() const { |
| 10734 | // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option) |
| 10735 | return uninterpreted_option_; |
| 10736 | } |
| 10737 | |
| 10738 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10739 | |
| 10740 | // =================================================================== |
| 10741 | |
| 10742 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10743 | const int OneofOptions::kUninterpretedOptionFieldNumber; |
| 10744 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10745 | |
| 10746 | OneofOptions::OneofOptions() |
| 10747 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 10748 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 10749 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 10750 | } |
| 10751 | SharedCtor(); |
| 10752 | // @@protoc_insertion_point(constructor:google.protobuf.OneofOptions) |
| 10753 | } |
| 10754 | OneofOptions::OneofOptions(const OneofOptions& from) |
| 10755 | : ::google::protobuf::Message(), |
| 10756 | _internal_metadata_(NULL), |
| 10757 | _has_bits_(from._has_bits_), |
| 10758 | _cached_size_(0), |
| 10759 | uninterpreted_option_(from.uninterpreted_option_) { |
| 10760 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10761 | _extensions_.MergeFrom(from._extensions_); |
| 10762 | // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions) |
| 10763 | } |
| 10764 | |
| 10765 | void OneofOptions::SharedCtor() { |
| 10766 | _cached_size_ = 0; |
| 10767 | } |
| 10768 | |
| 10769 | OneofOptions::~OneofOptions() { |
| 10770 | // @@protoc_insertion_point(destructor:google.protobuf.OneofOptions) |
| 10771 | SharedDtor(); |
| 10772 | } |
| 10773 | |
| 10774 | void OneofOptions::SharedDtor() { |
| 10775 | } |
| 10776 | |
| 10777 | void OneofOptions::SetCachedSize(int size) const { |
| 10778 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10779 | _cached_size_ = size; |
| 10780 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10781 | } |
| 10782 | const ::google::protobuf::Descriptor* OneofOptions::descriptor() { |
| 10783 | protobuf_AssignDescriptorsOnce(); |
| 10784 | return file_level_metadata[14].descriptor; |
| 10785 | } |
| 10786 | |
| 10787 | const OneofOptions& OneofOptions::default_instance() { |
| 10788 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 10789 | return *internal_default_instance(); |
| 10790 | } |
| 10791 | |
| 10792 | OneofOptions* OneofOptions::New(::google::protobuf::Arena* arena) const { |
| 10793 | OneofOptions* n = new OneofOptions; |
| 10794 | if (arena != NULL) { |
| 10795 | arena->Own(n); |
| 10796 | } |
| 10797 | return n; |
| 10798 | } |
| 10799 | |
| 10800 | void OneofOptions::Clear() { |
| 10801 | // @@protoc_insertion_point(message_clear_start:google.protobuf.OneofOptions) |
| 10802 | _extensions_.Clear(); |
| 10803 | uninterpreted_option_.Clear(); |
| 10804 | _has_bits_.Clear(); |
| 10805 | _internal_metadata_.Clear(); |
| 10806 | } |
| 10807 | |
| 10808 | bool OneofOptions::MergePartialFromCodedStream( |
| 10809 | ::google::protobuf::io::CodedInputStream* input) { |
| 10810 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10811 | ::google::protobuf::uint32 tag; |
| 10812 | // @@protoc_insertion_point(parse_start:google.protobuf.OneofOptions) |
| 10813 | for (;;) { |
| 10814 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 10815 | tag = p.first; |
| 10816 | if (!p.second) goto handle_unusual; |
| 10817 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10818 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10819 | case 999: { |
| 10820 | if (tag == 7994u) { |
| 10821 | DO_(input->IncrementRecursionDepth()); |
| 10822 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 10823 | input, add_uninterpreted_option())); |
| 10824 | } else { |
| 10825 | goto handle_unusual; |
| 10826 | } |
| 10827 | input->UnsafeDecrementRecursionDepth(); |
| 10828 | break; |
| 10829 | } |
| 10830 | |
| 10831 | default: { |
| 10832 | handle_unusual: |
| 10833 | if (tag == 0 || |
| 10834 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 10835 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 10836 | goto success; |
| 10837 | } |
| 10838 | if ((8000u <= tag)) { |
| 10839 | DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
| 10840 | mutable_unknown_fields())); |
| 10841 | continue; |
| 10842 | } |
| 10843 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10844 | input, tag, mutable_unknown_fields())); |
| 10845 | break; |
| 10846 | } |
| 10847 | } |
| 10848 | } |
| 10849 | success: |
| 10850 | // @@protoc_insertion_point(parse_success:google.protobuf.OneofOptions) |
| 10851 | return true; |
| 10852 | failure: |
| 10853 | // @@protoc_insertion_point(parse_failure:google.protobuf.OneofOptions) |
| 10854 | return false; |
| 10855 | #undef DO_ |
| 10856 | } |
| 10857 | |
| 10858 | void OneofOptions::SerializeWithCachedSizes( |
| 10859 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10860 | // @@protoc_insertion_point(serialize_start:google.protobuf.OneofOptions) |
| 10861 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10862 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10863 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10864 | 999, this->uninterpreted_option(i), output); |
| 10865 | } |
| 10866 | |
| 10867 | // Extension range [1000, 536870912) |
| 10868 | _extensions_.SerializeWithCachedSizes( |
| 10869 | 1000, 536870912, output); |
| 10870 | |
| 10871 | if (_internal_metadata_.have_unknown_fields()) { |
| 10872 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10873 | unknown_fields(), output); |
| 10874 | } |
| 10875 | // @@protoc_insertion_point(serialize_end:google.protobuf.OneofOptions) |
| 10876 | } |
| 10877 | |
| 10878 | ::google::protobuf::uint8* OneofOptions::InternalSerializeWithCachedSizesToArray( |
| 10879 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 10880 | (void)deterministic; // Unused |
| 10881 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOptions) |
| 10882 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10883 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 10884 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10885 | InternalWriteMessageNoVirtualToArray( |
| 10886 | 999, this->uninterpreted_option(i), false, target); |
| 10887 | } |
| 10888 | |
| 10889 | // Extension range [1000, 536870912) |
| 10890 | target = _extensions_.InternalSerializeWithCachedSizesToArray( |
| 10891 | 1000, 536870912, false, target); |
| 10892 | |
| 10893 | if (_internal_metadata_.have_unknown_fields()) { |
| 10894 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10895 | unknown_fields(), target); |
| 10896 | } |
| 10897 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.OneofOptions) |
| 10898 | return target; |
| 10899 | } |
| 10900 | |
| 10901 | size_t OneofOptions::ByteSizeLong() const { |
| 10902 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.OneofOptions) |
| 10903 | size_t total_size = 0; |
| 10904 | |
| 10905 | total_size += _extensions_.ByteSize(); |
| 10906 | |
| 10907 | if (_internal_metadata_.have_unknown_fields()) { |
| 10908 | total_size += |
| 10909 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10910 | unknown_fields()); |
| 10911 | } |
| 10912 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10913 | { |
| 10914 | unsigned int count = this->uninterpreted_option_size(); |
| 10915 | total_size += 2UL * count; |
| 10916 | for (unsigned int i = 0; i < count; i++) { |
| 10917 | total_size += |
| 10918 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 10919 | this->uninterpreted_option(i)); |
| 10920 | } |
| 10921 | } |
| 10922 | |
| 10923 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10924 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 10925 | _cached_size_ = cached_size; |
| 10926 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 10927 | return total_size; |
| 10928 | } |
| 10929 | |
| 10930 | void OneofOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 10931 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.OneofOptions) |
| 10932 | GOOGLE_DCHECK_NE(&from, this); |
| 10933 | const OneofOptions* source = |
| 10934 | ::google::protobuf::internal::DynamicCastToGenerated<const OneofOptions>( |
| 10935 | &from); |
| 10936 | if (source == NULL) { |
| 10937 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.OneofOptions) |
| 10938 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10939 | } else { |
| 10940 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.OneofOptions) |
| 10941 | MergeFrom(*source); |
| 10942 | } |
| 10943 | } |
| 10944 | |
| 10945 | void OneofOptions::MergeFrom(const OneofOptions& from) { |
| 10946 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.OneofOptions) |
| 10947 | GOOGLE_DCHECK_NE(&from, this); |
| 10948 | _extensions_.MergeFrom(from._extensions_); |
| 10949 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10950 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 10951 | } |
| 10952 | |
| 10953 | void OneofOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 10954 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.OneofOptions) |
| 10955 | if (&from == this) return; |
| 10956 | Clear(); |
| 10957 | MergeFrom(from); |
| 10958 | } |
| 10959 | |
| 10960 | void OneofOptions::CopyFrom(const OneofOptions& from) { |
| 10961 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.OneofOptions) |
| 10962 | if (&from == this) return; |
| 10963 | Clear(); |
| 10964 | MergeFrom(from); |
| 10965 | } |
| 10966 | |
| 10967 | bool OneofOptions::IsInitialized() const { |
| 10968 | if (!_extensions_.IsInitialized()) { |
| 10969 | return false; |
| 10970 | } |
| 10971 | |
| 10972 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 10973 | return true; |
| 10974 | } |
| 10975 | |
| 10976 | void OneofOptions::Swap(OneofOptions* other) { |
| 10977 | if (other == this) return; |
| 10978 | InternalSwap(other); |
| 10979 | } |
| 10980 | void OneofOptions::InternalSwap(OneofOptions* other) { |
| 10981 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 10982 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 10983 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10984 | std::swap(_cached_size_, other->_cached_size_); |
| 10985 | _extensions_.Swap(&other->_extensions_); |
| 10986 | } |
| 10987 | |
| 10988 | ::google::protobuf::Metadata OneofOptions::GetMetadata() const { |
| 10989 | protobuf_AssignDescriptorsOnce(); |
| 10990 | return file_level_metadata[14]; |
| 10991 | } |
| 10992 | |
| 10993 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 10994 | // OneofOptions |
| 10995 | |
| 10996 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 10997 | int OneofOptions::uninterpreted_option_size() const { |
| 10998 | return uninterpreted_option_.size(); |
| 10999 | } |
| 11000 | void OneofOptions::clear_uninterpreted_option() { |
| 11001 | uninterpreted_option_.Clear(); |
| 11002 | } |
| 11003 | const ::google::protobuf::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const { |
| 11004 | // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option) |
| 11005 | return uninterpreted_option_.Get(index); |
| 11006 | } |
| 11007 | ::google::protobuf::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index) { |
| 11008 | // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option) |
| 11009 | return uninterpreted_option_.Mutable(index); |
| 11010 | } |
| 11011 | ::google::protobuf::UninterpretedOption* OneofOptions::add_uninterpreted_option() { |
| 11012 | // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option) |
| 11013 | return uninterpreted_option_.Add(); |
| 11014 | } |
| 11015 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 11016 | OneofOptions::mutable_uninterpreted_option() { |
| 11017 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option) |
| 11018 | return &uninterpreted_option_; |
| 11019 | } |
| 11020 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 11021 | OneofOptions::uninterpreted_option() const { |
| 11022 | // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option) |
| 11023 | return uninterpreted_option_; |
| 11024 | } |
| 11025 | |
| 11026 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11027 | |
| 11028 | // =================================================================== |
| 11029 | |
| 11030 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11031 | const int EnumOptions::kAllowAliasFieldNumber; |
| 11032 | const int EnumOptions::kDeprecatedFieldNumber; |
| 11033 | const int EnumOptions::kUninterpretedOptionFieldNumber; |
| 11034 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11035 | |
| 11036 | EnumOptions::EnumOptions() |
| 11037 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 11038 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 11039 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 11040 | } |
| 11041 | SharedCtor(); |
| 11042 | // @@protoc_insertion_point(constructor:google.protobuf.EnumOptions) |
| 11043 | } |
| 11044 | EnumOptions::EnumOptions(const EnumOptions& from) |
| 11045 | : ::google::protobuf::Message(), |
| 11046 | _internal_metadata_(NULL), |
| 11047 | _has_bits_(from._has_bits_), |
| 11048 | _cached_size_(0), |
| 11049 | uninterpreted_option_(from.uninterpreted_option_) { |
| 11050 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11051 | _extensions_.MergeFrom(from._extensions_); |
| 11052 | ::memcpy(&allow_alias_, &from.allow_alias_, |
| 11053 | reinterpret_cast<char*>(&deprecated_) - |
| 11054 | reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); |
| 11055 | // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions) |
| 11056 | } |
| 11057 | |
| 11058 | void EnumOptions::SharedCtor() { |
| 11059 | _cached_size_ = 0; |
| 11060 | ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) - |
| 11061 | reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); |
| 11062 | } |
| 11063 | |
| 11064 | EnumOptions::~EnumOptions() { |
| 11065 | // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions) |
| 11066 | SharedDtor(); |
| 11067 | } |
| 11068 | |
| 11069 | void EnumOptions::SharedDtor() { |
| 11070 | } |
| 11071 | |
| 11072 | void EnumOptions::SetCachedSize(int size) const { |
| 11073 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11074 | _cached_size_ = size; |
| 11075 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11076 | } |
| 11077 | const ::google::protobuf::Descriptor* EnumOptions::descriptor() { |
| 11078 | protobuf_AssignDescriptorsOnce(); |
| 11079 | return file_level_metadata[15].descriptor; |
| 11080 | } |
| 11081 | |
| 11082 | const EnumOptions& EnumOptions::default_instance() { |
| 11083 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 11084 | return *internal_default_instance(); |
| 11085 | } |
| 11086 | |
| 11087 | EnumOptions* EnumOptions::New(::google::protobuf::Arena* arena) const { |
| 11088 | EnumOptions* n = new EnumOptions; |
| 11089 | if (arena != NULL) { |
| 11090 | arena->Own(n); |
| 11091 | } |
| 11092 | return n; |
| 11093 | } |
| 11094 | |
| 11095 | void EnumOptions::Clear() { |
| 11096 | // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumOptions) |
| 11097 | _extensions_.Clear(); |
| 11098 | uninterpreted_option_.Clear(); |
| 11099 | if (_has_bits_[0 / 32] & 3u) { |
| 11100 | ::memset(&allow_alias_, 0, reinterpret_cast<char*>(&deprecated_) - |
| 11101 | reinterpret_cast<char*>(&allow_alias_) + sizeof(deprecated_)); |
| 11102 | } |
| 11103 | _has_bits_.Clear(); |
| 11104 | _internal_metadata_.Clear(); |
| 11105 | } |
| 11106 | |
| 11107 | bool EnumOptions::MergePartialFromCodedStream( |
| 11108 | ::google::protobuf::io::CodedInputStream* input) { |
| 11109 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 11110 | ::google::protobuf::uint32 tag; |
| 11111 | // @@protoc_insertion_point(parse_start:google.protobuf.EnumOptions) |
| 11112 | for (;;) { |
| 11113 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 11114 | tag = p.first; |
| 11115 | if (!p.second) goto handle_unusual; |
| 11116 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 11117 | // optional bool allow_alias = 2; |
| 11118 | case 2: { |
| 11119 | if (tag == 16u) { |
| 11120 | set_has_allow_alias(); |
| 11121 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11122 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 11123 | input, &allow_alias_))); |
| 11124 | } else { |
| 11125 | goto handle_unusual; |
| 11126 | } |
| 11127 | break; |
| 11128 | } |
| 11129 | |
| 11130 | // optional bool deprecated = 3 [default = false]; |
| 11131 | case 3: { |
| 11132 | if (tag == 24u) { |
| 11133 | set_has_deprecated(); |
| 11134 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11135 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 11136 | input, &deprecated_))); |
| 11137 | } else { |
| 11138 | goto handle_unusual; |
| 11139 | } |
| 11140 | break; |
| 11141 | } |
| 11142 | |
| 11143 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11144 | case 999: { |
| 11145 | if (tag == 7994u) { |
| 11146 | DO_(input->IncrementRecursionDepth()); |
| 11147 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 11148 | input, add_uninterpreted_option())); |
| 11149 | } else { |
| 11150 | goto handle_unusual; |
| 11151 | } |
| 11152 | input->UnsafeDecrementRecursionDepth(); |
| 11153 | break; |
| 11154 | } |
| 11155 | |
| 11156 | default: { |
| 11157 | handle_unusual: |
| 11158 | if (tag == 0 || |
| 11159 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 11160 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 11161 | goto success; |
| 11162 | } |
| 11163 | if ((8000u <= tag)) { |
| 11164 | DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
| 11165 | mutable_unknown_fields())); |
| 11166 | continue; |
| 11167 | } |
| 11168 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11169 | input, tag, mutable_unknown_fields())); |
| 11170 | break; |
| 11171 | } |
| 11172 | } |
| 11173 | } |
| 11174 | success: |
| 11175 | // @@protoc_insertion_point(parse_success:google.protobuf.EnumOptions) |
| 11176 | return true; |
| 11177 | failure: |
| 11178 | // @@protoc_insertion_point(parse_failure:google.protobuf.EnumOptions) |
| 11179 | return false; |
| 11180 | #undef DO_ |
| 11181 | } |
| 11182 | |
| 11183 | void EnumOptions::SerializeWithCachedSizes( |
| 11184 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11185 | // @@protoc_insertion_point(serialize_start:google.protobuf.EnumOptions) |
| 11186 | // optional bool allow_alias = 2; |
| 11187 | if (has_allow_alias()) { |
| 11188 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->allow_alias(), output); |
| 11189 | } |
| 11190 | |
| 11191 | // optional bool deprecated = 3 [default = false]; |
| 11192 | if (has_deprecated()) { |
| 11193 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output); |
| 11194 | } |
| 11195 | |
| 11196 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11197 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11198 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 11199 | 999, this->uninterpreted_option(i), output); |
| 11200 | } |
| 11201 | |
| 11202 | // Extension range [1000, 536870912) |
| 11203 | _extensions_.SerializeWithCachedSizes( |
| 11204 | 1000, 536870912, output); |
| 11205 | |
| 11206 | if (_internal_metadata_.have_unknown_fields()) { |
| 11207 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11208 | unknown_fields(), output); |
| 11209 | } |
| 11210 | // @@protoc_insertion_point(serialize_end:google.protobuf.EnumOptions) |
| 11211 | } |
| 11212 | |
| 11213 | ::google::protobuf::uint8* EnumOptions::InternalSerializeWithCachedSizesToArray( |
| 11214 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 11215 | (void)deterministic; // Unused |
| 11216 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions) |
| 11217 | // optional bool allow_alias = 2; |
| 11218 | if (has_allow_alias()) { |
| 11219 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->allow_alias(), target); |
| 11220 | } |
| 11221 | |
| 11222 | // optional bool deprecated = 3 [default = false]; |
| 11223 | if (has_deprecated()) { |
| 11224 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target); |
| 11225 | } |
| 11226 | |
| 11227 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11228 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11229 | target = ::google::protobuf::internal::WireFormatLite:: |
| 11230 | InternalWriteMessageNoVirtualToArray( |
| 11231 | 999, this->uninterpreted_option(i), false, target); |
| 11232 | } |
| 11233 | |
| 11234 | // Extension range [1000, 536870912) |
| 11235 | target = _extensions_.InternalSerializeWithCachedSizesToArray( |
| 11236 | 1000, 536870912, false, target); |
| 11237 | |
| 11238 | if (_internal_metadata_.have_unknown_fields()) { |
| 11239 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11240 | unknown_fields(), target); |
| 11241 | } |
| 11242 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumOptions) |
| 11243 | return target; |
| 11244 | } |
| 11245 | |
| 11246 | size_t EnumOptions::ByteSizeLong() const { |
| 11247 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumOptions) |
| 11248 | size_t total_size = 0; |
| 11249 | |
| 11250 | total_size += _extensions_.ByteSize(); |
| 11251 | |
| 11252 | if (_internal_metadata_.have_unknown_fields()) { |
| 11253 | total_size += |
| 11254 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11255 | unknown_fields()); |
| 11256 | } |
| 11257 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11258 | { |
| 11259 | unsigned int count = this->uninterpreted_option_size(); |
| 11260 | total_size += 2UL * count; |
| 11261 | for (unsigned int i = 0; i < count; i++) { |
| 11262 | total_size += |
| 11263 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 11264 | this->uninterpreted_option(i)); |
| 11265 | } |
| 11266 | } |
| 11267 | |
| 11268 | if (_has_bits_[0 / 32] & 3u) { |
| 11269 | // optional bool allow_alias = 2; |
| 11270 | if (has_allow_alias()) { |
| 11271 | total_size += 1 + 1; |
| 11272 | } |
| 11273 | |
| 11274 | // optional bool deprecated = 3 [default = false]; |
| 11275 | if (has_deprecated()) { |
| 11276 | total_size += 1 + 1; |
| 11277 | } |
| 11278 | |
| 11279 | } |
| 11280 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 11281 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11282 | _cached_size_ = cached_size; |
| 11283 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11284 | return total_size; |
| 11285 | } |
| 11286 | |
| 11287 | void EnumOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 11288 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumOptions) |
| 11289 | GOOGLE_DCHECK_NE(&from, this); |
| 11290 | const EnumOptions* source = |
| 11291 | ::google::protobuf::internal::DynamicCastToGenerated<const EnumOptions>( |
| 11292 | &from); |
| 11293 | if (source == NULL) { |
| 11294 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumOptions) |
| 11295 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11296 | } else { |
| 11297 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumOptions) |
| 11298 | MergeFrom(*source); |
| 11299 | } |
| 11300 | } |
| 11301 | |
| 11302 | void EnumOptions::MergeFrom(const EnumOptions& from) { |
| 11303 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumOptions) |
| 11304 | GOOGLE_DCHECK_NE(&from, this); |
| 11305 | _extensions_.MergeFrom(from._extensions_); |
| 11306 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11307 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 11308 | if (from._has_bits_[0 / 32] & 3u) { |
| 11309 | if (from.has_allow_alias()) { |
| 11310 | set_allow_alias(from.allow_alias()); |
| 11311 | } |
| 11312 | if (from.has_deprecated()) { |
| 11313 | set_deprecated(from.deprecated()); |
| 11314 | } |
| 11315 | } |
| 11316 | } |
| 11317 | |
| 11318 | void EnumOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 11319 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumOptions) |
| 11320 | if (&from == this) return; |
| 11321 | Clear(); |
| 11322 | MergeFrom(from); |
| 11323 | } |
| 11324 | |
| 11325 | void EnumOptions::CopyFrom(const EnumOptions& from) { |
| 11326 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumOptions) |
| 11327 | if (&from == this) return; |
| 11328 | Clear(); |
| 11329 | MergeFrom(from); |
| 11330 | } |
| 11331 | |
| 11332 | bool EnumOptions::IsInitialized() const { |
| 11333 | if (!_extensions_.IsInitialized()) { |
| 11334 | return false; |
| 11335 | } |
| 11336 | |
| 11337 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 11338 | return true; |
| 11339 | } |
| 11340 | |
| 11341 | void EnumOptions::Swap(EnumOptions* other) { |
| 11342 | if (other == this) return; |
| 11343 | InternalSwap(other); |
| 11344 | } |
| 11345 | void EnumOptions::InternalSwap(EnumOptions* other) { |
| 11346 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 11347 | std::swap(allow_alias_, other->allow_alias_); |
| 11348 | std::swap(deprecated_, other->deprecated_); |
| 11349 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 11350 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11351 | std::swap(_cached_size_, other->_cached_size_); |
| 11352 | _extensions_.Swap(&other->_extensions_); |
| 11353 | } |
| 11354 | |
| 11355 | ::google::protobuf::Metadata EnumOptions::GetMetadata() const { |
| 11356 | protobuf_AssignDescriptorsOnce(); |
| 11357 | return file_level_metadata[15]; |
| 11358 | } |
| 11359 | |
| 11360 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11361 | // EnumOptions |
| 11362 | |
| 11363 | // optional bool allow_alias = 2; |
| 11364 | bool EnumOptions::has_allow_alias() const { |
| 11365 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 11366 | } |
| 11367 | void EnumOptions::set_has_allow_alias() { |
| 11368 | _has_bits_[0] |= 0x00000001u; |
| 11369 | } |
| 11370 | void EnumOptions::clear_has_allow_alias() { |
| 11371 | _has_bits_[0] &= ~0x00000001u; |
| 11372 | } |
| 11373 | void EnumOptions::clear_allow_alias() { |
| 11374 | allow_alias_ = false; |
| 11375 | clear_has_allow_alias(); |
| 11376 | } |
| 11377 | bool EnumOptions::allow_alias() const { |
| 11378 | // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias) |
| 11379 | return allow_alias_; |
| 11380 | } |
| 11381 | void EnumOptions::set_allow_alias(bool value) { |
| 11382 | set_has_allow_alias(); |
| 11383 | allow_alias_ = value; |
| 11384 | // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias) |
| 11385 | } |
| 11386 | |
| 11387 | // optional bool deprecated = 3 [default = false]; |
| 11388 | bool EnumOptions::has_deprecated() const { |
| 11389 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 11390 | } |
| 11391 | void EnumOptions::set_has_deprecated() { |
| 11392 | _has_bits_[0] |= 0x00000002u; |
| 11393 | } |
| 11394 | void EnumOptions::clear_has_deprecated() { |
| 11395 | _has_bits_[0] &= ~0x00000002u; |
| 11396 | } |
| 11397 | void EnumOptions::clear_deprecated() { |
| 11398 | deprecated_ = false; |
| 11399 | clear_has_deprecated(); |
| 11400 | } |
| 11401 | bool EnumOptions::deprecated() const { |
| 11402 | // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated) |
| 11403 | return deprecated_; |
| 11404 | } |
| 11405 | void EnumOptions::set_deprecated(bool value) { |
| 11406 | set_has_deprecated(); |
| 11407 | deprecated_ = value; |
| 11408 | // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated) |
| 11409 | } |
| 11410 | |
| 11411 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11412 | int EnumOptions::uninterpreted_option_size() const { |
| 11413 | return uninterpreted_option_.size(); |
| 11414 | } |
| 11415 | void EnumOptions::clear_uninterpreted_option() { |
| 11416 | uninterpreted_option_.Clear(); |
| 11417 | } |
| 11418 | const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const { |
| 11419 | // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option) |
| 11420 | return uninterpreted_option_.Get(index); |
| 11421 | } |
| 11422 | ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) { |
| 11423 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option) |
| 11424 | return uninterpreted_option_.Mutable(index); |
| 11425 | } |
| 11426 | ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() { |
| 11427 | // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option) |
| 11428 | return uninterpreted_option_.Add(); |
| 11429 | } |
| 11430 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 11431 | EnumOptions::mutable_uninterpreted_option() { |
| 11432 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option) |
| 11433 | return &uninterpreted_option_; |
| 11434 | } |
| 11435 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 11436 | EnumOptions::uninterpreted_option() const { |
| 11437 | // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option) |
| 11438 | return uninterpreted_option_; |
| 11439 | } |
| 11440 | |
| 11441 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11442 | |
| 11443 | // =================================================================== |
| 11444 | |
| 11445 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11446 | const int EnumValueOptions::kDeprecatedFieldNumber; |
| 11447 | const int EnumValueOptions::kUninterpretedOptionFieldNumber; |
| 11448 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11449 | |
| 11450 | EnumValueOptions::EnumValueOptions() |
| 11451 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 11452 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 11453 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 11454 | } |
| 11455 | SharedCtor(); |
| 11456 | // @@protoc_insertion_point(constructor:google.protobuf.EnumValueOptions) |
| 11457 | } |
| 11458 | EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) |
| 11459 | : ::google::protobuf::Message(), |
| 11460 | _internal_metadata_(NULL), |
| 11461 | _has_bits_(from._has_bits_), |
| 11462 | _cached_size_(0), |
| 11463 | uninterpreted_option_(from.uninterpreted_option_) { |
| 11464 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11465 | _extensions_.MergeFrom(from._extensions_); |
| 11466 | deprecated_ = from.deprecated_; |
| 11467 | // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions) |
| 11468 | } |
| 11469 | |
| 11470 | void EnumValueOptions::SharedCtor() { |
| 11471 | _cached_size_ = 0; |
| 11472 | deprecated_ = false; |
| 11473 | } |
| 11474 | |
| 11475 | EnumValueOptions::~EnumValueOptions() { |
| 11476 | // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions) |
| 11477 | SharedDtor(); |
| 11478 | } |
| 11479 | |
| 11480 | void EnumValueOptions::SharedDtor() { |
| 11481 | } |
| 11482 | |
| 11483 | void EnumValueOptions::SetCachedSize(int size) const { |
| 11484 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11485 | _cached_size_ = size; |
| 11486 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11487 | } |
| 11488 | const ::google::protobuf::Descriptor* EnumValueOptions::descriptor() { |
| 11489 | protobuf_AssignDescriptorsOnce(); |
| 11490 | return file_level_metadata[16].descriptor; |
| 11491 | } |
| 11492 | |
| 11493 | const EnumValueOptions& EnumValueOptions::default_instance() { |
| 11494 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 11495 | return *internal_default_instance(); |
| 11496 | } |
| 11497 | |
| 11498 | EnumValueOptions* EnumValueOptions::New(::google::protobuf::Arena* arena) const { |
| 11499 | EnumValueOptions* n = new EnumValueOptions; |
| 11500 | if (arena != NULL) { |
| 11501 | arena->Own(n); |
| 11502 | } |
| 11503 | return n; |
| 11504 | } |
| 11505 | |
| 11506 | void EnumValueOptions::Clear() { |
| 11507 | // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValueOptions) |
| 11508 | _extensions_.Clear(); |
| 11509 | uninterpreted_option_.Clear(); |
| 11510 | deprecated_ = false; |
| 11511 | _has_bits_.Clear(); |
| 11512 | _internal_metadata_.Clear(); |
| 11513 | } |
| 11514 | |
| 11515 | bool EnumValueOptions::MergePartialFromCodedStream( |
| 11516 | ::google::protobuf::io::CodedInputStream* input) { |
| 11517 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 11518 | ::google::protobuf::uint32 tag; |
| 11519 | // @@protoc_insertion_point(parse_start:google.protobuf.EnumValueOptions) |
| 11520 | for (;;) { |
| 11521 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 11522 | tag = p.first; |
| 11523 | if (!p.second) goto handle_unusual; |
| 11524 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 11525 | // optional bool deprecated = 1 [default = false]; |
| 11526 | case 1: { |
| 11527 | if (tag == 8u) { |
| 11528 | set_has_deprecated(); |
| 11529 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11530 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 11531 | input, &deprecated_))); |
| 11532 | } else { |
| 11533 | goto handle_unusual; |
| 11534 | } |
| 11535 | break; |
| 11536 | } |
| 11537 | |
| 11538 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11539 | case 999: { |
| 11540 | if (tag == 7994u) { |
| 11541 | DO_(input->IncrementRecursionDepth()); |
| 11542 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 11543 | input, add_uninterpreted_option())); |
| 11544 | } else { |
| 11545 | goto handle_unusual; |
| 11546 | } |
| 11547 | input->UnsafeDecrementRecursionDepth(); |
| 11548 | break; |
| 11549 | } |
| 11550 | |
| 11551 | default: { |
| 11552 | handle_unusual: |
| 11553 | if (tag == 0 || |
| 11554 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 11555 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 11556 | goto success; |
| 11557 | } |
| 11558 | if ((8000u <= tag)) { |
| 11559 | DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
| 11560 | mutable_unknown_fields())); |
| 11561 | continue; |
| 11562 | } |
| 11563 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11564 | input, tag, mutable_unknown_fields())); |
| 11565 | break; |
| 11566 | } |
| 11567 | } |
| 11568 | } |
| 11569 | success: |
| 11570 | // @@protoc_insertion_point(parse_success:google.protobuf.EnumValueOptions) |
| 11571 | return true; |
| 11572 | failure: |
| 11573 | // @@protoc_insertion_point(parse_failure:google.protobuf.EnumValueOptions) |
| 11574 | return false; |
| 11575 | #undef DO_ |
| 11576 | } |
| 11577 | |
| 11578 | void EnumValueOptions::SerializeWithCachedSizes( |
| 11579 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11580 | // @@protoc_insertion_point(serialize_start:google.protobuf.EnumValueOptions) |
| 11581 | // optional bool deprecated = 1 [default = false]; |
| 11582 | if (has_deprecated()) { |
| 11583 | ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->deprecated(), output); |
| 11584 | } |
| 11585 | |
| 11586 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11587 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11588 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 11589 | 999, this->uninterpreted_option(i), output); |
| 11590 | } |
| 11591 | |
| 11592 | // Extension range [1000, 536870912) |
| 11593 | _extensions_.SerializeWithCachedSizes( |
| 11594 | 1000, 536870912, output); |
| 11595 | |
| 11596 | if (_internal_metadata_.have_unknown_fields()) { |
| 11597 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11598 | unknown_fields(), output); |
| 11599 | } |
| 11600 | // @@protoc_insertion_point(serialize_end:google.protobuf.EnumValueOptions) |
| 11601 | } |
| 11602 | |
| 11603 | ::google::protobuf::uint8* EnumValueOptions::InternalSerializeWithCachedSizesToArray( |
| 11604 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 11605 | (void)deterministic; // Unused |
| 11606 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions) |
| 11607 | // optional bool deprecated = 1 [default = false]; |
| 11608 | if (has_deprecated()) { |
| 11609 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->deprecated(), target); |
| 11610 | } |
| 11611 | |
| 11612 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11613 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11614 | target = ::google::protobuf::internal::WireFormatLite:: |
| 11615 | InternalWriteMessageNoVirtualToArray( |
| 11616 | 999, this->uninterpreted_option(i), false, target); |
| 11617 | } |
| 11618 | |
| 11619 | // Extension range [1000, 536870912) |
| 11620 | target = _extensions_.InternalSerializeWithCachedSizesToArray( |
| 11621 | 1000, 536870912, false, target); |
| 11622 | |
| 11623 | if (_internal_metadata_.have_unknown_fields()) { |
| 11624 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11625 | unknown_fields(), target); |
| 11626 | } |
| 11627 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValueOptions) |
| 11628 | return target; |
| 11629 | } |
| 11630 | |
| 11631 | size_t EnumValueOptions::ByteSizeLong() const { |
| 11632 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValueOptions) |
| 11633 | size_t total_size = 0; |
| 11634 | |
| 11635 | total_size += _extensions_.ByteSize(); |
| 11636 | |
| 11637 | if (_internal_metadata_.have_unknown_fields()) { |
| 11638 | total_size += |
| 11639 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11640 | unknown_fields()); |
| 11641 | } |
| 11642 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11643 | { |
| 11644 | unsigned int count = this->uninterpreted_option_size(); |
| 11645 | total_size += 2UL * count; |
| 11646 | for (unsigned int i = 0; i < count; i++) { |
| 11647 | total_size += |
| 11648 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 11649 | this->uninterpreted_option(i)); |
| 11650 | } |
| 11651 | } |
| 11652 | |
| 11653 | // optional bool deprecated = 1 [default = false]; |
| 11654 | if (has_deprecated()) { |
| 11655 | total_size += 1 + 1; |
| 11656 | } |
| 11657 | |
| 11658 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 11659 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11660 | _cached_size_ = cached_size; |
| 11661 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11662 | return total_size; |
| 11663 | } |
| 11664 | |
| 11665 | void EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 11666 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValueOptions) |
| 11667 | GOOGLE_DCHECK_NE(&from, this); |
| 11668 | const EnumValueOptions* source = |
| 11669 | ::google::protobuf::internal::DynamicCastToGenerated<const EnumValueOptions>( |
| 11670 | &from); |
| 11671 | if (source == NULL) { |
| 11672 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValueOptions) |
| 11673 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11674 | } else { |
| 11675 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValueOptions) |
| 11676 | MergeFrom(*source); |
| 11677 | } |
| 11678 | } |
| 11679 | |
| 11680 | void EnumValueOptions::MergeFrom(const EnumValueOptions& from) { |
| 11681 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValueOptions) |
| 11682 | GOOGLE_DCHECK_NE(&from, this); |
| 11683 | _extensions_.MergeFrom(from._extensions_); |
| 11684 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11685 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 11686 | if (from.has_deprecated()) { |
| 11687 | set_deprecated(from.deprecated()); |
| 11688 | } |
| 11689 | } |
| 11690 | |
| 11691 | void EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 11692 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValueOptions) |
| 11693 | if (&from == this) return; |
| 11694 | Clear(); |
| 11695 | MergeFrom(from); |
| 11696 | } |
| 11697 | |
| 11698 | void EnumValueOptions::CopyFrom(const EnumValueOptions& from) { |
| 11699 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValueOptions) |
| 11700 | if (&from == this) return; |
| 11701 | Clear(); |
| 11702 | MergeFrom(from); |
| 11703 | } |
| 11704 | |
| 11705 | bool EnumValueOptions::IsInitialized() const { |
| 11706 | if (!_extensions_.IsInitialized()) { |
| 11707 | return false; |
| 11708 | } |
| 11709 | |
| 11710 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 11711 | return true; |
| 11712 | } |
| 11713 | |
| 11714 | void EnumValueOptions::Swap(EnumValueOptions* other) { |
| 11715 | if (other == this) return; |
| 11716 | InternalSwap(other); |
| 11717 | } |
| 11718 | void EnumValueOptions::InternalSwap(EnumValueOptions* other) { |
| 11719 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 11720 | std::swap(deprecated_, other->deprecated_); |
| 11721 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 11722 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11723 | std::swap(_cached_size_, other->_cached_size_); |
| 11724 | _extensions_.Swap(&other->_extensions_); |
| 11725 | } |
| 11726 | |
| 11727 | ::google::protobuf::Metadata EnumValueOptions::GetMetadata() const { |
| 11728 | protobuf_AssignDescriptorsOnce(); |
| 11729 | return file_level_metadata[16]; |
| 11730 | } |
| 11731 | |
| 11732 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11733 | // EnumValueOptions |
| 11734 | |
| 11735 | // optional bool deprecated = 1 [default = false]; |
| 11736 | bool EnumValueOptions::has_deprecated() const { |
| 11737 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 11738 | } |
| 11739 | void EnumValueOptions::set_has_deprecated() { |
| 11740 | _has_bits_[0] |= 0x00000001u; |
| 11741 | } |
| 11742 | void EnumValueOptions::clear_has_deprecated() { |
| 11743 | _has_bits_[0] &= ~0x00000001u; |
| 11744 | } |
| 11745 | void EnumValueOptions::clear_deprecated() { |
| 11746 | deprecated_ = false; |
| 11747 | clear_has_deprecated(); |
| 11748 | } |
| 11749 | bool EnumValueOptions::deprecated() const { |
| 11750 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated) |
| 11751 | return deprecated_; |
| 11752 | } |
| 11753 | void EnumValueOptions::set_deprecated(bool value) { |
| 11754 | set_has_deprecated(); |
| 11755 | deprecated_ = value; |
| 11756 | // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated) |
| 11757 | } |
| 11758 | |
| 11759 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11760 | int EnumValueOptions::uninterpreted_option_size() const { |
| 11761 | return uninterpreted_option_.size(); |
| 11762 | } |
| 11763 | void EnumValueOptions::clear_uninterpreted_option() { |
| 11764 | uninterpreted_option_.Clear(); |
| 11765 | } |
| 11766 | const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const { |
| 11767 | // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11768 | return uninterpreted_option_.Get(index); |
| 11769 | } |
| 11770 | ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) { |
| 11771 | // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11772 | return uninterpreted_option_.Mutable(index); |
| 11773 | } |
| 11774 | ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() { |
| 11775 | // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11776 | return uninterpreted_option_.Add(); |
| 11777 | } |
| 11778 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 11779 | EnumValueOptions::mutable_uninterpreted_option() { |
| 11780 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11781 | return &uninterpreted_option_; |
| 11782 | } |
| 11783 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 11784 | EnumValueOptions::uninterpreted_option() const { |
| 11785 | // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option) |
| 11786 | return uninterpreted_option_; |
| 11787 | } |
| 11788 | |
| 11789 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 11790 | |
| 11791 | // =================================================================== |
| 11792 | |
| 11793 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11794 | const int ServiceOptions::kDeprecatedFieldNumber; |
| 11795 | const int ServiceOptions::kUninterpretedOptionFieldNumber; |
| 11796 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11797 | |
| 11798 | ServiceOptions::ServiceOptions() |
| 11799 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 11800 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 11801 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 11802 | } |
| 11803 | SharedCtor(); |
| 11804 | // @@protoc_insertion_point(constructor:google.protobuf.ServiceOptions) |
| 11805 | } |
| 11806 | ServiceOptions::ServiceOptions(const ServiceOptions& from) |
| 11807 | : ::google::protobuf::Message(), |
| 11808 | _internal_metadata_(NULL), |
| 11809 | _has_bits_(from._has_bits_), |
| 11810 | _cached_size_(0), |
| 11811 | uninterpreted_option_(from.uninterpreted_option_) { |
| 11812 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11813 | _extensions_.MergeFrom(from._extensions_); |
| 11814 | deprecated_ = from.deprecated_; |
| 11815 | // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions) |
| 11816 | } |
| 11817 | |
| 11818 | void ServiceOptions::SharedCtor() { |
| 11819 | _cached_size_ = 0; |
| 11820 | deprecated_ = false; |
| 11821 | } |
| 11822 | |
| 11823 | ServiceOptions::~ServiceOptions() { |
| 11824 | // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions) |
| 11825 | SharedDtor(); |
| 11826 | } |
| 11827 | |
| 11828 | void ServiceOptions::SharedDtor() { |
| 11829 | } |
| 11830 | |
| 11831 | void ServiceOptions::SetCachedSize(int size) const { |
| 11832 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 11833 | _cached_size_ = size; |
| 11834 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 11835 | } |
| 11836 | const ::google::protobuf::Descriptor* ServiceOptions::descriptor() { |
| 11837 | protobuf_AssignDescriptorsOnce(); |
| 11838 | return file_level_metadata[17].descriptor; |
| 11839 | } |
| 11840 | |
| 11841 | const ServiceOptions& ServiceOptions::default_instance() { |
| 11842 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 11843 | return *internal_default_instance(); |
| 11844 | } |
| 11845 | |
| 11846 | ServiceOptions* ServiceOptions::New(::google::protobuf::Arena* arena) const { |
| 11847 | ServiceOptions* n = new ServiceOptions; |
| 11848 | if (arena != NULL) { |
| 11849 | arena->Own(n); |
| 11850 | } |
| 11851 | return n; |
| 11852 | } |
| 11853 | |
| 11854 | void ServiceOptions::Clear() { |
| 11855 | // @@protoc_insertion_point(message_clear_start:google.protobuf.ServiceOptions) |
| 11856 | _extensions_.Clear(); |
| 11857 | uninterpreted_option_.Clear(); |
| 11858 | deprecated_ = false; |
| 11859 | _has_bits_.Clear(); |
| 11860 | _internal_metadata_.Clear(); |
| 11861 | } |
| 11862 | |
| 11863 | bool ServiceOptions::MergePartialFromCodedStream( |
| 11864 | ::google::protobuf::io::CodedInputStream* input) { |
| 11865 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 11866 | ::google::protobuf::uint32 tag; |
| 11867 | // @@protoc_insertion_point(parse_start:google.protobuf.ServiceOptions) |
| 11868 | for (;;) { |
| 11869 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 11870 | tag = p.first; |
| 11871 | if (!p.second) goto handle_unusual; |
| 11872 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 11873 | // optional bool deprecated = 33 [default = false]; |
| 11874 | case 33: { |
| 11875 | if (tag == 264u) { |
| 11876 | set_has_deprecated(); |
| 11877 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11878 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 11879 | input, &deprecated_))); |
| 11880 | } else { |
| 11881 | goto handle_unusual; |
| 11882 | } |
| 11883 | break; |
| 11884 | } |
| 11885 | |
| 11886 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11887 | case 999: { |
| 11888 | if (tag == 7994u) { |
| 11889 | DO_(input->IncrementRecursionDepth()); |
| 11890 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 11891 | input, add_uninterpreted_option())); |
| 11892 | } else { |
| 11893 | goto handle_unusual; |
| 11894 | } |
| 11895 | input->UnsafeDecrementRecursionDepth(); |
| 11896 | break; |
| 11897 | } |
| 11898 | |
| 11899 | default: { |
| 11900 | handle_unusual: |
| 11901 | if (tag == 0 || |
| 11902 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 11903 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 11904 | goto success; |
| 11905 | } |
| 11906 | if ((8000u <= tag)) { |
| 11907 | DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
| 11908 | mutable_unknown_fields())); |
| 11909 | continue; |
| 11910 | } |
| 11911 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11912 | input, tag, mutable_unknown_fields())); |
| 11913 | break; |
| 11914 | } |
| 11915 | } |
| 11916 | } |
| 11917 | success: |
| 11918 | // @@protoc_insertion_point(parse_success:google.protobuf.ServiceOptions) |
| 11919 | return true; |
| 11920 | failure: |
| 11921 | // @@protoc_insertion_point(parse_failure:google.protobuf.ServiceOptions) |
| 11922 | return false; |
| 11923 | #undef DO_ |
| 11924 | } |
| 11925 | |
| 11926 | void ServiceOptions::SerializeWithCachedSizes( |
| 11927 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11928 | // @@protoc_insertion_point(serialize_start:google.protobuf.ServiceOptions) |
| 11929 | // optional bool deprecated = 33 [default = false]; |
| 11930 | if (has_deprecated()) { |
| 11931 | ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output); |
| 11932 | } |
| 11933 | |
| 11934 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11935 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11936 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 11937 | 999, this->uninterpreted_option(i), output); |
| 11938 | } |
| 11939 | |
| 11940 | // Extension range [1000, 536870912) |
| 11941 | _extensions_.SerializeWithCachedSizes( |
| 11942 | 1000, 536870912, output); |
| 11943 | |
| 11944 | if (_internal_metadata_.have_unknown_fields()) { |
| 11945 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11946 | unknown_fields(), output); |
| 11947 | } |
| 11948 | // @@protoc_insertion_point(serialize_end:google.protobuf.ServiceOptions) |
| 11949 | } |
| 11950 | |
| 11951 | ::google::protobuf::uint8* ServiceOptions::InternalSerializeWithCachedSizesToArray( |
| 11952 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 11953 | (void)deterministic; // Unused |
| 11954 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions) |
| 11955 | // optional bool deprecated = 33 [default = false]; |
| 11956 | if (has_deprecated()) { |
| 11957 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target); |
| 11958 | } |
| 11959 | |
| 11960 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11961 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 11962 | target = ::google::protobuf::internal::WireFormatLite:: |
| 11963 | InternalWriteMessageNoVirtualToArray( |
| 11964 | 999, this->uninterpreted_option(i), false, target); |
| 11965 | } |
| 11966 | |
| 11967 | // Extension range [1000, 536870912) |
| 11968 | target = _extensions_.InternalSerializeWithCachedSizesToArray( |
| 11969 | 1000, 536870912, false, target); |
| 11970 | |
| 11971 | if (_internal_metadata_.have_unknown_fields()) { |
| 11972 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11973 | unknown_fields(), target); |
| 11974 | } |
| 11975 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ServiceOptions) |
| 11976 | return target; |
| 11977 | } |
| 11978 | |
| 11979 | size_t ServiceOptions::ByteSizeLong() const { |
| 11980 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ServiceOptions) |
| 11981 | size_t total_size = 0; |
| 11982 | |
| 11983 | total_size += _extensions_.ByteSize(); |
| 11984 | |
| 11985 | if (_internal_metadata_.have_unknown_fields()) { |
| 11986 | total_size += |
| 11987 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11988 | unknown_fields()); |
| 11989 | } |
| 11990 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 11991 | { |
| 11992 | unsigned int count = this->uninterpreted_option_size(); |
| 11993 | total_size += 2UL * count; |
| 11994 | for (unsigned int i = 0; i < count; i++) { |
| 11995 | total_size += |
| 11996 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 11997 | this->uninterpreted_option(i)); |
| 11998 | } |
| 11999 | } |
| 12000 | |
| 12001 | // optional bool deprecated = 33 [default = false]; |
| 12002 | if (has_deprecated()) { |
| 12003 | total_size += 2 + 1; |
| 12004 | } |
| 12005 | |
| 12006 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 12007 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12008 | _cached_size_ = cached_size; |
| 12009 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12010 | return total_size; |
| 12011 | } |
| 12012 | |
| 12013 | void ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 12014 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ServiceOptions) |
| 12015 | GOOGLE_DCHECK_NE(&from, this); |
| 12016 | const ServiceOptions* source = |
| 12017 | ::google::protobuf::internal::DynamicCastToGenerated<const ServiceOptions>( |
| 12018 | &from); |
| 12019 | if (source == NULL) { |
| 12020 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.ServiceOptions) |
| 12021 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 12022 | } else { |
| 12023 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.ServiceOptions) |
| 12024 | MergeFrom(*source); |
| 12025 | } |
| 12026 | } |
| 12027 | |
| 12028 | void ServiceOptions::MergeFrom(const ServiceOptions& from) { |
| 12029 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ServiceOptions) |
| 12030 | GOOGLE_DCHECK_NE(&from, this); |
| 12031 | _extensions_.MergeFrom(from._extensions_); |
| 12032 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12033 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 12034 | if (from.has_deprecated()) { |
| 12035 | set_deprecated(from.deprecated()); |
| 12036 | } |
| 12037 | } |
| 12038 | |
| 12039 | void ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 12040 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ServiceOptions) |
| 12041 | if (&from == this) return; |
| 12042 | Clear(); |
| 12043 | MergeFrom(from); |
| 12044 | } |
| 12045 | |
| 12046 | void ServiceOptions::CopyFrom(const ServiceOptions& from) { |
| 12047 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ServiceOptions) |
| 12048 | if (&from == this) return; |
| 12049 | Clear(); |
| 12050 | MergeFrom(from); |
| 12051 | } |
| 12052 | |
| 12053 | bool ServiceOptions::IsInitialized() const { |
| 12054 | if (!_extensions_.IsInitialized()) { |
| 12055 | return false; |
| 12056 | } |
| 12057 | |
| 12058 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 12059 | return true; |
| 12060 | } |
| 12061 | |
| 12062 | void ServiceOptions::Swap(ServiceOptions* other) { |
| 12063 | if (other == this) return; |
| 12064 | InternalSwap(other); |
| 12065 | } |
| 12066 | void ServiceOptions::InternalSwap(ServiceOptions* other) { |
| 12067 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 12068 | std::swap(deprecated_, other->deprecated_); |
| 12069 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 12070 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12071 | std::swap(_cached_size_, other->_cached_size_); |
| 12072 | _extensions_.Swap(&other->_extensions_); |
| 12073 | } |
| 12074 | |
| 12075 | ::google::protobuf::Metadata ServiceOptions::GetMetadata() const { |
| 12076 | protobuf_AssignDescriptorsOnce(); |
| 12077 | return file_level_metadata[17]; |
| 12078 | } |
| 12079 | |
| 12080 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 12081 | // ServiceOptions |
| 12082 | |
| 12083 | // optional bool deprecated = 33 [default = false]; |
| 12084 | bool ServiceOptions::has_deprecated() const { |
| 12085 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 12086 | } |
| 12087 | void ServiceOptions::set_has_deprecated() { |
| 12088 | _has_bits_[0] |= 0x00000001u; |
| 12089 | } |
| 12090 | void ServiceOptions::clear_has_deprecated() { |
| 12091 | _has_bits_[0] &= ~0x00000001u; |
| 12092 | } |
| 12093 | void ServiceOptions::clear_deprecated() { |
| 12094 | deprecated_ = false; |
| 12095 | clear_has_deprecated(); |
| 12096 | } |
| 12097 | bool ServiceOptions::deprecated() const { |
| 12098 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated) |
| 12099 | return deprecated_; |
| 12100 | } |
| 12101 | void ServiceOptions::set_deprecated(bool value) { |
| 12102 | set_has_deprecated(); |
| 12103 | deprecated_ = value; |
| 12104 | // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated) |
| 12105 | } |
| 12106 | |
| 12107 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 12108 | int ServiceOptions::uninterpreted_option_size() const { |
| 12109 | return uninterpreted_option_.size(); |
| 12110 | } |
| 12111 | void ServiceOptions::clear_uninterpreted_option() { |
| 12112 | uninterpreted_option_.Clear(); |
| 12113 | } |
| 12114 | const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const { |
| 12115 | // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option) |
| 12116 | return uninterpreted_option_.Get(index); |
| 12117 | } |
| 12118 | ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) { |
| 12119 | // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option) |
| 12120 | return uninterpreted_option_.Mutable(index); |
| 12121 | } |
| 12122 | ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() { |
| 12123 | // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option) |
| 12124 | return uninterpreted_option_.Add(); |
| 12125 | } |
| 12126 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 12127 | ServiceOptions::mutable_uninterpreted_option() { |
| 12128 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option) |
| 12129 | return &uninterpreted_option_; |
| 12130 | } |
| 12131 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 12132 | ServiceOptions::uninterpreted_option() const { |
| 12133 | // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option) |
| 12134 | return uninterpreted_option_; |
| 12135 | } |
| 12136 | |
| 12137 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 12138 | |
| 12139 | // =================================================================== |
| 12140 | |
| 12141 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12142 | const int MethodOptions::kDeprecatedFieldNumber; |
| 12143 | const int MethodOptions::kIdempotencyLevelFieldNumber; |
| 12144 | const int MethodOptions::kUninterpretedOptionFieldNumber; |
| 12145 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12146 | |
| 12147 | MethodOptions::MethodOptions() |
| 12148 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 12149 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 12150 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 12151 | } |
| 12152 | SharedCtor(); |
| 12153 | // @@protoc_insertion_point(constructor:google.protobuf.MethodOptions) |
| 12154 | } |
| 12155 | MethodOptions::MethodOptions(const MethodOptions& from) |
| 12156 | : ::google::protobuf::Message(), |
| 12157 | _internal_metadata_(NULL), |
| 12158 | _has_bits_(from._has_bits_), |
| 12159 | _cached_size_(0), |
| 12160 | uninterpreted_option_(from.uninterpreted_option_) { |
| 12161 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12162 | _extensions_.MergeFrom(from._extensions_); |
| 12163 | ::memcpy(&deprecated_, &from.deprecated_, |
| 12164 | reinterpret_cast<char*>(&idempotency_level_) - |
| 12165 | reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_)); |
| 12166 | // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions) |
| 12167 | } |
| 12168 | |
| 12169 | void MethodOptions::SharedCtor() { |
| 12170 | _cached_size_ = 0; |
| 12171 | ::memset(&deprecated_, 0, reinterpret_cast<char*>(&idempotency_level_) - |
| 12172 | reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_)); |
| 12173 | } |
| 12174 | |
| 12175 | MethodOptions::~MethodOptions() { |
| 12176 | // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions) |
| 12177 | SharedDtor(); |
| 12178 | } |
| 12179 | |
| 12180 | void MethodOptions::SharedDtor() { |
| 12181 | } |
| 12182 | |
| 12183 | void MethodOptions::SetCachedSize(int size) const { |
| 12184 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12185 | _cached_size_ = size; |
| 12186 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12187 | } |
| 12188 | const ::google::protobuf::Descriptor* MethodOptions::descriptor() { |
| 12189 | protobuf_AssignDescriptorsOnce(); |
| 12190 | return file_level_metadata[18].descriptor; |
| 12191 | } |
| 12192 | |
| 12193 | const MethodOptions& MethodOptions::default_instance() { |
| 12194 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 12195 | return *internal_default_instance(); |
| 12196 | } |
| 12197 | |
| 12198 | MethodOptions* MethodOptions::New(::google::protobuf::Arena* arena) const { |
| 12199 | MethodOptions* n = new MethodOptions; |
| 12200 | if (arena != NULL) { |
| 12201 | arena->Own(n); |
| 12202 | } |
| 12203 | return n; |
| 12204 | } |
| 12205 | |
| 12206 | void MethodOptions::Clear() { |
| 12207 | // @@protoc_insertion_point(message_clear_start:google.protobuf.MethodOptions) |
| 12208 | _extensions_.Clear(); |
| 12209 | uninterpreted_option_.Clear(); |
| 12210 | if (_has_bits_[0 / 32] & 3u) { |
| 12211 | ::memset(&deprecated_, 0, reinterpret_cast<char*>(&idempotency_level_) - |
| 12212 | reinterpret_cast<char*>(&deprecated_) + sizeof(idempotency_level_)); |
| 12213 | } |
| 12214 | _has_bits_.Clear(); |
| 12215 | _internal_metadata_.Clear(); |
| 12216 | } |
| 12217 | |
| 12218 | bool MethodOptions::MergePartialFromCodedStream( |
| 12219 | ::google::protobuf::io::CodedInputStream* input) { |
| 12220 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 12221 | ::google::protobuf::uint32 tag; |
| 12222 | // @@protoc_insertion_point(parse_start:google.protobuf.MethodOptions) |
| 12223 | for (;;) { |
| 12224 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 12225 | tag = p.first; |
| 12226 | if (!p.second) goto handle_unusual; |
| 12227 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 12228 | // optional bool deprecated = 33 [default = false]; |
| 12229 | case 33: { |
| 12230 | if (tag == 264u) { |
| 12231 | set_has_deprecated(); |
| 12232 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12233 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 12234 | input, &deprecated_))); |
| 12235 | } else { |
| 12236 | goto handle_unusual; |
| 12237 | } |
| 12238 | break; |
| 12239 | } |
| 12240 | |
| 12241 | // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; |
| 12242 | case 34: { |
| 12243 | if (tag == 272u) { |
| 12244 | int value; |
| 12245 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12246 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 12247 | input, &value))); |
| 12248 | if (::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value)) { |
| 12249 | set_idempotency_level(static_cast< ::google::protobuf::MethodOptions_IdempotencyLevel >(value)); |
| 12250 | } else { |
| 12251 | mutable_unknown_fields()->AddVarint(34, value); |
| 12252 | } |
| 12253 | } else { |
| 12254 | goto handle_unusual; |
| 12255 | } |
| 12256 | break; |
| 12257 | } |
| 12258 | |
| 12259 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 12260 | case 999: { |
| 12261 | if (tag == 7994u) { |
| 12262 | DO_(input->IncrementRecursionDepth()); |
| 12263 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 12264 | input, add_uninterpreted_option())); |
| 12265 | } else { |
| 12266 | goto handle_unusual; |
| 12267 | } |
| 12268 | input->UnsafeDecrementRecursionDepth(); |
| 12269 | break; |
| 12270 | } |
| 12271 | |
| 12272 | default: { |
| 12273 | handle_unusual: |
| 12274 | if (tag == 0 || |
| 12275 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 12276 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 12277 | goto success; |
| 12278 | } |
| 12279 | if ((8000u <= tag)) { |
| 12280 | DO_(_extensions_.ParseField(tag, input, internal_default_instance(), |
| 12281 | mutable_unknown_fields())); |
| 12282 | continue; |
| 12283 | } |
| 12284 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 12285 | input, tag, mutable_unknown_fields())); |
| 12286 | break; |
| 12287 | } |
| 12288 | } |
| 12289 | } |
| 12290 | success: |
| 12291 | // @@protoc_insertion_point(parse_success:google.protobuf.MethodOptions) |
| 12292 | return true; |
| 12293 | failure: |
| 12294 | // @@protoc_insertion_point(parse_failure:google.protobuf.MethodOptions) |
| 12295 | return false; |
| 12296 | #undef DO_ |
| 12297 | } |
| 12298 | |
| 12299 | void MethodOptions::SerializeWithCachedSizes( |
| 12300 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 12301 | // @@protoc_insertion_point(serialize_start:google.protobuf.MethodOptions) |
| 12302 | // optional bool deprecated = 33 [default = false]; |
| 12303 | if (has_deprecated()) { |
| 12304 | ::google::protobuf::internal::WireFormatLite::WriteBool(33, this->deprecated(), output); |
| 12305 | } |
| 12306 | |
| 12307 | // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; |
| 12308 | if (has_idempotency_level()) { |
| 12309 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 12310 | 34, this->idempotency_level(), output); |
| 12311 | } |
| 12312 | |
| 12313 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 12314 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 12315 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 12316 | 999, this->uninterpreted_option(i), output); |
| 12317 | } |
| 12318 | |
| 12319 | // Extension range [1000, 536870912) |
| 12320 | _extensions_.SerializeWithCachedSizes( |
| 12321 | 1000, 536870912, output); |
| 12322 | |
| 12323 | if (_internal_metadata_.have_unknown_fields()) { |
| 12324 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 12325 | unknown_fields(), output); |
| 12326 | } |
| 12327 | // @@protoc_insertion_point(serialize_end:google.protobuf.MethodOptions) |
| 12328 | } |
| 12329 | |
| 12330 | ::google::protobuf::uint8* MethodOptions::InternalSerializeWithCachedSizesToArray( |
| 12331 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 12332 | (void)deterministic; // Unused |
| 12333 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions) |
| 12334 | // optional bool deprecated = 33 [default = false]; |
| 12335 | if (has_deprecated()) { |
| 12336 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(33, this->deprecated(), target); |
| 12337 | } |
| 12338 | |
| 12339 | // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; |
| 12340 | if (has_idempotency_level()) { |
| 12341 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 12342 | 34, this->idempotency_level(), target); |
| 12343 | } |
| 12344 | |
| 12345 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 12346 | for (unsigned int i = 0, n = this->uninterpreted_option_size(); i < n; i++) { |
| 12347 | target = ::google::protobuf::internal::WireFormatLite:: |
| 12348 | InternalWriteMessageNoVirtualToArray( |
| 12349 | 999, this->uninterpreted_option(i), false, target); |
| 12350 | } |
| 12351 | |
| 12352 | // Extension range [1000, 536870912) |
| 12353 | target = _extensions_.InternalSerializeWithCachedSizesToArray( |
| 12354 | 1000, 536870912, false, target); |
| 12355 | |
| 12356 | if (_internal_metadata_.have_unknown_fields()) { |
| 12357 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 12358 | unknown_fields(), target); |
| 12359 | } |
| 12360 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.MethodOptions) |
| 12361 | return target; |
| 12362 | } |
| 12363 | |
| 12364 | size_t MethodOptions::ByteSizeLong() const { |
| 12365 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.MethodOptions) |
| 12366 | size_t total_size = 0; |
| 12367 | |
| 12368 | total_size += _extensions_.ByteSize(); |
| 12369 | |
| 12370 | if (_internal_metadata_.have_unknown_fields()) { |
| 12371 | total_size += |
| 12372 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 12373 | unknown_fields()); |
| 12374 | } |
| 12375 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 12376 | { |
| 12377 | unsigned int count = this->uninterpreted_option_size(); |
| 12378 | total_size += 2UL * count; |
| 12379 | for (unsigned int i = 0; i < count; i++) { |
| 12380 | total_size += |
| 12381 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 12382 | this->uninterpreted_option(i)); |
| 12383 | } |
| 12384 | } |
| 12385 | |
| 12386 | if (_has_bits_[0 / 32] & 3u) { |
| 12387 | // optional bool deprecated = 33 [default = false]; |
| 12388 | if (has_deprecated()) { |
| 12389 | total_size += 2 + 1; |
| 12390 | } |
| 12391 | |
| 12392 | // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; |
| 12393 | if (has_idempotency_level()) { |
| 12394 | total_size += 2 + |
| 12395 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->idempotency_level()); |
| 12396 | } |
| 12397 | |
| 12398 | } |
| 12399 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 12400 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12401 | _cached_size_ = cached_size; |
| 12402 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12403 | return total_size; |
| 12404 | } |
| 12405 | |
| 12406 | void MethodOptions::MergeFrom(const ::google::protobuf::Message& from) { |
| 12407 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.MethodOptions) |
| 12408 | GOOGLE_DCHECK_NE(&from, this); |
| 12409 | const MethodOptions* source = |
| 12410 | ::google::protobuf::internal::DynamicCastToGenerated<const MethodOptions>( |
| 12411 | &from); |
| 12412 | if (source == NULL) { |
| 12413 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.MethodOptions) |
| 12414 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 12415 | } else { |
| 12416 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.MethodOptions) |
| 12417 | MergeFrom(*source); |
| 12418 | } |
| 12419 | } |
| 12420 | |
| 12421 | void MethodOptions::MergeFrom(const MethodOptions& from) { |
| 12422 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodOptions) |
| 12423 | GOOGLE_DCHECK_NE(&from, this); |
| 12424 | _extensions_.MergeFrom(from._extensions_); |
| 12425 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12426 | uninterpreted_option_.MergeFrom(from.uninterpreted_option_); |
| 12427 | if (from._has_bits_[0 / 32] & 3u) { |
| 12428 | if (from.has_deprecated()) { |
| 12429 | set_deprecated(from.deprecated()); |
| 12430 | } |
| 12431 | if (from.has_idempotency_level()) { |
| 12432 | set_idempotency_level(from.idempotency_level()); |
| 12433 | } |
| 12434 | } |
| 12435 | } |
| 12436 | |
| 12437 | void MethodOptions::CopyFrom(const ::google::protobuf::Message& from) { |
| 12438 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.MethodOptions) |
| 12439 | if (&from == this) return; |
| 12440 | Clear(); |
| 12441 | MergeFrom(from); |
| 12442 | } |
| 12443 | |
| 12444 | void MethodOptions::CopyFrom(const MethodOptions& from) { |
| 12445 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.MethodOptions) |
| 12446 | if (&from == this) return; |
| 12447 | Clear(); |
| 12448 | MergeFrom(from); |
| 12449 | } |
| 12450 | |
| 12451 | bool MethodOptions::IsInitialized() const { |
| 12452 | if (!_extensions_.IsInitialized()) { |
| 12453 | return false; |
| 12454 | } |
| 12455 | |
| 12456 | if (!::google::protobuf::internal::AllAreInitialized(this->uninterpreted_option())) return false; |
| 12457 | return true; |
| 12458 | } |
| 12459 | |
| 12460 | void MethodOptions::Swap(MethodOptions* other) { |
| 12461 | if (other == this) return; |
| 12462 | InternalSwap(other); |
| 12463 | } |
| 12464 | void MethodOptions::InternalSwap(MethodOptions* other) { |
| 12465 | uninterpreted_option_.UnsafeArenaSwap(&other->uninterpreted_option_); |
| 12466 | std::swap(deprecated_, other->deprecated_); |
| 12467 | std::swap(idempotency_level_, other->idempotency_level_); |
| 12468 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 12469 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12470 | std::swap(_cached_size_, other->_cached_size_); |
| 12471 | _extensions_.Swap(&other->_extensions_); |
| 12472 | } |
| 12473 | |
| 12474 | ::google::protobuf::Metadata MethodOptions::GetMetadata() const { |
| 12475 | protobuf_AssignDescriptorsOnce(); |
| 12476 | return file_level_metadata[18]; |
| 12477 | } |
| 12478 | |
| 12479 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 12480 | // MethodOptions |
| 12481 | |
| 12482 | // optional bool deprecated = 33 [default = false]; |
| 12483 | bool MethodOptions::has_deprecated() const { |
| 12484 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 12485 | } |
| 12486 | void MethodOptions::set_has_deprecated() { |
| 12487 | _has_bits_[0] |= 0x00000001u; |
| 12488 | } |
| 12489 | void MethodOptions::clear_has_deprecated() { |
| 12490 | _has_bits_[0] &= ~0x00000001u; |
| 12491 | } |
| 12492 | void MethodOptions::clear_deprecated() { |
| 12493 | deprecated_ = false; |
| 12494 | clear_has_deprecated(); |
| 12495 | } |
| 12496 | bool MethodOptions::deprecated() const { |
| 12497 | // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated) |
| 12498 | return deprecated_; |
| 12499 | } |
| 12500 | void MethodOptions::set_deprecated(bool value) { |
| 12501 | set_has_deprecated(); |
| 12502 | deprecated_ = value; |
| 12503 | // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated) |
| 12504 | } |
| 12505 | |
| 12506 | // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; |
| 12507 | bool MethodOptions::has_idempotency_level() const { |
| 12508 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 12509 | } |
| 12510 | void MethodOptions::set_has_idempotency_level() { |
| 12511 | _has_bits_[0] |= 0x00000002u; |
| 12512 | } |
| 12513 | void MethodOptions::clear_has_idempotency_level() { |
| 12514 | _has_bits_[0] &= ~0x00000002u; |
| 12515 | } |
| 12516 | void MethodOptions::clear_idempotency_level() { |
| 12517 | idempotency_level_ = 0; |
| 12518 | clear_has_idempotency_level(); |
| 12519 | } |
| 12520 | ::google::protobuf::MethodOptions_IdempotencyLevel MethodOptions::idempotency_level() const { |
| 12521 | // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotency_level) |
| 12522 | return static_cast< ::google::protobuf::MethodOptions_IdempotencyLevel >(idempotency_level_); |
| 12523 | } |
| 12524 | void MethodOptions::set_idempotency_level(::google::protobuf::MethodOptions_IdempotencyLevel value) { |
| 12525 | assert(::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value)); |
| 12526 | set_has_idempotency_level(); |
| 12527 | idempotency_level_ = value; |
| 12528 | // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotency_level) |
| 12529 | } |
| 12530 | |
| 12531 | // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
| 12532 | int MethodOptions::uninterpreted_option_size() const { |
| 12533 | return uninterpreted_option_.size(); |
| 12534 | } |
| 12535 | void MethodOptions::clear_uninterpreted_option() { |
| 12536 | uninterpreted_option_.Clear(); |
| 12537 | } |
| 12538 | const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const { |
| 12539 | // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option) |
| 12540 | return uninterpreted_option_.Get(index); |
| 12541 | } |
| 12542 | ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) { |
| 12543 | // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option) |
| 12544 | return uninterpreted_option_.Mutable(index); |
| 12545 | } |
| 12546 | ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() { |
| 12547 | // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option) |
| 12548 | return uninterpreted_option_.Add(); |
| 12549 | } |
| 12550 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >* |
| 12551 | MethodOptions::mutable_uninterpreted_option() { |
| 12552 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option) |
| 12553 | return &uninterpreted_option_; |
| 12554 | } |
| 12555 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >& |
| 12556 | MethodOptions::uninterpreted_option() const { |
| 12557 | // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option) |
| 12558 | return uninterpreted_option_; |
| 12559 | } |
| 12560 | |
| 12561 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 12562 | |
| 12563 | // =================================================================== |
| 12564 | |
| 12565 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12566 | const int UninterpretedOption_NamePart::kNamePartFieldNumber; |
| 12567 | const int UninterpretedOption_NamePart::kIsExtensionFieldNumber; |
| 12568 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12569 | |
| 12570 | UninterpretedOption_NamePart::UninterpretedOption_NamePart() |
| 12571 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 12572 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 12573 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 12574 | } |
| 12575 | SharedCtor(); |
| 12576 | // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption.NamePart) |
| 12577 | } |
| 12578 | UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from) |
| 12579 | : ::google::protobuf::Message(), |
| 12580 | _internal_metadata_(NULL), |
| 12581 | _has_bits_(from._has_bits_), |
| 12582 | _cached_size_(0) { |
| 12583 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12584 | name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12585 | if (from.has_name_part()) { |
| 12586 | name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_part_); |
| 12587 | } |
| 12588 | is_extension_ = from.is_extension_; |
| 12589 | // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart) |
| 12590 | } |
| 12591 | |
| 12592 | void UninterpretedOption_NamePart::SharedCtor() { |
| 12593 | _cached_size_ = 0; |
| 12594 | name_part_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12595 | is_extension_ = false; |
| 12596 | } |
| 12597 | |
| 12598 | UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { |
| 12599 | // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart) |
| 12600 | SharedDtor(); |
| 12601 | } |
| 12602 | |
| 12603 | void UninterpretedOption_NamePart::SharedDtor() { |
| 12604 | name_part_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12605 | } |
| 12606 | |
| 12607 | void UninterpretedOption_NamePart::SetCachedSize(int size) const { |
| 12608 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12609 | _cached_size_ = size; |
| 12610 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12611 | } |
| 12612 | const ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() { |
| 12613 | protobuf_AssignDescriptorsOnce(); |
| 12614 | return file_level_metadata[19].descriptor; |
| 12615 | } |
| 12616 | |
| 12617 | const UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() { |
| 12618 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 12619 | return *internal_default_instance(); |
| 12620 | } |
| 12621 | |
| 12622 | UninterpretedOption_NamePart* UninterpretedOption_NamePart::New(::google::protobuf::Arena* arena) const { |
| 12623 | UninterpretedOption_NamePart* n = new UninterpretedOption_NamePart; |
| 12624 | if (arena != NULL) { |
| 12625 | arena->Own(n); |
| 12626 | } |
| 12627 | return n; |
| 12628 | } |
| 12629 | |
| 12630 | void UninterpretedOption_NamePart::Clear() { |
| 12631 | // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption.NamePart) |
| 12632 | if (has_name_part()) { |
| 12633 | GOOGLE_DCHECK(!name_part_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 12634 | (*name_part_.UnsafeRawStringPointer())->clear(); |
| 12635 | } |
| 12636 | is_extension_ = false; |
| 12637 | _has_bits_.Clear(); |
| 12638 | _internal_metadata_.Clear(); |
| 12639 | } |
| 12640 | |
| 12641 | bool UninterpretedOption_NamePart::MergePartialFromCodedStream( |
| 12642 | ::google::protobuf::io::CodedInputStream* input) { |
| 12643 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 12644 | ::google::protobuf::uint32 tag; |
| 12645 | // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption.NamePart) |
| 12646 | for (;;) { |
| 12647 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 12648 | tag = p.first; |
| 12649 | if (!p.second) goto handle_unusual; |
| 12650 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 12651 | // required string name_part = 1; |
| 12652 | case 1: { |
| 12653 | if (tag == 10u) { |
| 12654 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 12655 | input, this->mutable_name_part())); |
| 12656 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12657 | this->name_part().data(), this->name_part().length(), |
| 12658 | ::google::protobuf::internal::WireFormat::PARSE, |
| 12659 | "google.protobuf.UninterpretedOption.NamePart.name_part"); |
| 12660 | } else { |
| 12661 | goto handle_unusual; |
| 12662 | } |
| 12663 | break; |
| 12664 | } |
| 12665 | |
| 12666 | // required bool is_extension = 2; |
| 12667 | case 2: { |
| 12668 | if (tag == 16u) { |
| 12669 | set_has_is_extension(); |
| 12670 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12671 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 12672 | input, &is_extension_))); |
| 12673 | } else { |
| 12674 | goto handle_unusual; |
| 12675 | } |
| 12676 | break; |
| 12677 | } |
| 12678 | |
| 12679 | default: { |
| 12680 | handle_unusual: |
| 12681 | if (tag == 0 || |
| 12682 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 12683 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 12684 | goto success; |
| 12685 | } |
| 12686 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 12687 | input, tag, mutable_unknown_fields())); |
| 12688 | break; |
| 12689 | } |
| 12690 | } |
| 12691 | } |
| 12692 | success: |
| 12693 | // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption.NamePart) |
| 12694 | return true; |
| 12695 | failure: |
| 12696 | // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption.NamePart) |
| 12697 | return false; |
| 12698 | #undef DO_ |
| 12699 | } |
| 12700 | |
| 12701 | void UninterpretedOption_NamePart::SerializeWithCachedSizes( |
| 12702 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 12703 | // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption.NamePart) |
| 12704 | // required string name_part = 1; |
| 12705 | if (has_name_part()) { |
| 12706 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12707 | this->name_part().data(), this->name_part().length(), |
| 12708 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 12709 | "google.protobuf.UninterpretedOption.NamePart.name_part"); |
| 12710 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 12711 | 1, this->name_part(), output); |
| 12712 | } |
| 12713 | |
| 12714 | // required bool is_extension = 2; |
| 12715 | if (has_is_extension()) { |
| 12716 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output); |
| 12717 | } |
| 12718 | |
| 12719 | if (_internal_metadata_.have_unknown_fields()) { |
| 12720 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 12721 | unknown_fields(), output); |
| 12722 | } |
| 12723 | // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption.NamePart) |
| 12724 | } |
| 12725 | |
| 12726 | ::google::protobuf::uint8* UninterpretedOption_NamePart::InternalSerializeWithCachedSizesToArray( |
| 12727 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 12728 | (void)deterministic; // Unused |
| 12729 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart) |
| 12730 | // required string name_part = 1; |
| 12731 | if (has_name_part()) { |
| 12732 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 12733 | this->name_part().data(), this->name_part().length(), |
| 12734 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 12735 | "google.protobuf.UninterpretedOption.NamePart.name_part"); |
| 12736 | target = |
| 12737 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 12738 | 1, this->name_part(), target); |
| 12739 | } |
| 12740 | |
| 12741 | // required bool is_extension = 2; |
| 12742 | if (has_is_extension()) { |
| 12743 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target); |
| 12744 | } |
| 12745 | |
| 12746 | if (_internal_metadata_.have_unknown_fields()) { |
| 12747 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 12748 | unknown_fields(), target); |
| 12749 | } |
| 12750 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption.NamePart) |
| 12751 | return target; |
| 12752 | } |
| 12753 | |
| 12754 | size_t UninterpretedOption_NamePart::RequiredFieldsByteSizeFallback() const { |
| 12755 | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:google.protobuf.UninterpretedOption.NamePart) |
| 12756 | size_t total_size = 0; |
| 12757 | |
| 12758 | if (has_name_part()) { |
| 12759 | // required string name_part = 1; |
| 12760 | total_size += 1 + |
| 12761 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12762 | this->name_part()); |
| 12763 | } |
| 12764 | |
| 12765 | if (has_is_extension()) { |
| 12766 | // required bool is_extension = 2; |
| 12767 | total_size += 1 + 1; |
| 12768 | } |
| 12769 | |
| 12770 | return total_size; |
| 12771 | } |
| 12772 | size_t UninterpretedOption_NamePart::ByteSizeLong() const { |
| 12773 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption.NamePart) |
| 12774 | size_t total_size = 0; |
| 12775 | |
| 12776 | if (_internal_metadata_.have_unknown_fields()) { |
| 12777 | total_size += |
| 12778 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 12779 | unknown_fields()); |
| 12780 | } |
| 12781 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
| 12782 | // required string name_part = 1; |
| 12783 | total_size += 1 + |
| 12784 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12785 | this->name_part()); |
| 12786 | |
| 12787 | // required bool is_extension = 2; |
| 12788 | total_size += 1 + 1; |
| 12789 | |
| 12790 | } else { |
| 12791 | total_size += RequiredFieldsByteSizeFallback(); |
| 12792 | } |
| 12793 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 12794 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 12795 | _cached_size_ = cached_size; |
| 12796 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 12797 | return total_size; |
| 12798 | } |
| 12799 | |
| 12800 | void UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) { |
| 12801 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption.NamePart) |
| 12802 | GOOGLE_DCHECK_NE(&from, this); |
| 12803 | const UninterpretedOption_NamePart* source = |
| 12804 | ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption_NamePart>( |
| 12805 | &from); |
| 12806 | if (source == NULL) { |
| 12807 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UninterpretedOption.NamePart) |
| 12808 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 12809 | } else { |
| 12810 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption.NamePart) |
| 12811 | MergeFrom(*source); |
| 12812 | } |
| 12813 | } |
| 12814 | |
| 12815 | void UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) { |
| 12816 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption.NamePart) |
| 12817 | GOOGLE_DCHECK_NE(&from, this); |
| 12818 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12819 | if (from._has_bits_[0 / 32] & 3u) { |
| 12820 | if (from.has_name_part()) { |
| 12821 | set_has_name_part(); |
| 12822 | name_part_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_part_); |
| 12823 | } |
| 12824 | if (from.has_is_extension()) { |
| 12825 | set_is_extension(from.is_extension()); |
| 12826 | } |
| 12827 | } |
| 12828 | } |
| 12829 | |
| 12830 | void UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) { |
| 12831 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UninterpretedOption.NamePart) |
| 12832 | if (&from == this) return; |
| 12833 | Clear(); |
| 12834 | MergeFrom(from); |
| 12835 | } |
| 12836 | |
| 12837 | void UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) { |
| 12838 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption.NamePart) |
| 12839 | if (&from == this) return; |
| 12840 | Clear(); |
| 12841 | MergeFrom(from); |
| 12842 | } |
| 12843 | |
| 12844 | bool UninterpretedOption_NamePart::IsInitialized() const { |
| 12845 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
| 12846 | return true; |
| 12847 | } |
| 12848 | |
| 12849 | void UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) { |
| 12850 | if (other == this) return; |
| 12851 | InternalSwap(other); |
| 12852 | } |
| 12853 | void UninterpretedOption_NamePart::InternalSwap(UninterpretedOption_NamePart* other) { |
| 12854 | name_part_.Swap(&other->name_part_); |
| 12855 | std::swap(is_extension_, other->is_extension_); |
| 12856 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 12857 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12858 | std::swap(_cached_size_, other->_cached_size_); |
| 12859 | } |
| 12860 | |
| 12861 | ::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const { |
| 12862 | protobuf_AssignDescriptorsOnce(); |
| 12863 | return file_level_metadata[19]; |
| 12864 | } |
| 12865 | |
| 12866 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 12867 | // UninterpretedOption_NamePart |
| 12868 | |
| 12869 | // required string name_part = 1; |
| 12870 | bool UninterpretedOption_NamePart::has_name_part() const { |
| 12871 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 12872 | } |
| 12873 | void UninterpretedOption_NamePart::set_has_name_part() { |
| 12874 | _has_bits_[0] |= 0x00000001u; |
| 12875 | } |
| 12876 | void UninterpretedOption_NamePart::clear_has_name_part() { |
| 12877 | _has_bits_[0] &= ~0x00000001u; |
| 12878 | } |
| 12879 | void UninterpretedOption_NamePart::clear_name_part() { |
| 12880 | name_part_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12881 | clear_has_name_part(); |
| 12882 | } |
| 12883 | const ::std::string& UninterpretedOption_NamePart::name_part() const { |
| 12884 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12885 | return name_part_.GetNoArena(); |
| 12886 | } |
| 12887 | void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) { |
| 12888 | set_has_name_part(); |
| 12889 | name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 12890 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12891 | } |
| 12892 | #if LANG_CXX11 |
| 12893 | void UninterpretedOption_NamePart::set_name_part(::std::string&& value) { |
| 12894 | set_has_name_part(); |
| 12895 | name_part_.SetNoArena( |
| 12896 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 12897 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12898 | } |
| 12899 | #endif |
| 12900 | void UninterpretedOption_NamePart::set_name_part(const char* value) { |
| 12901 | set_has_name_part(); |
| 12902 | name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 12903 | // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12904 | } |
| 12905 | void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) { |
| 12906 | set_has_name_part(); |
| 12907 | name_part_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12908 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 12909 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12910 | } |
| 12911 | ::std::string* UninterpretedOption_NamePart::mutable_name_part() { |
| 12912 | set_has_name_part(); |
| 12913 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12914 | return name_part_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12915 | } |
| 12916 | ::std::string* UninterpretedOption_NamePart::release_name_part() { |
| 12917 | // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12918 | clear_has_name_part(); |
| 12919 | return name_part_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12920 | } |
| 12921 | void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) { |
| 12922 | if (name_part != NULL) { |
| 12923 | set_has_name_part(); |
| 12924 | } else { |
| 12925 | clear_has_name_part(); |
| 12926 | } |
| 12927 | name_part_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_part); |
| 12928 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part) |
| 12929 | } |
| 12930 | |
| 12931 | // required bool is_extension = 2; |
| 12932 | bool UninterpretedOption_NamePart::has_is_extension() const { |
| 12933 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 12934 | } |
| 12935 | void UninterpretedOption_NamePart::set_has_is_extension() { |
| 12936 | _has_bits_[0] |= 0x00000002u; |
| 12937 | } |
| 12938 | void UninterpretedOption_NamePart::clear_has_is_extension() { |
| 12939 | _has_bits_[0] &= ~0x00000002u; |
| 12940 | } |
| 12941 | void UninterpretedOption_NamePart::clear_is_extension() { |
| 12942 | is_extension_ = false; |
| 12943 | clear_has_is_extension(); |
| 12944 | } |
| 12945 | bool UninterpretedOption_NamePart::is_extension() const { |
| 12946 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension) |
| 12947 | return is_extension_; |
| 12948 | } |
| 12949 | void UninterpretedOption_NamePart::set_is_extension(bool value) { |
| 12950 | set_has_is_extension(); |
| 12951 | is_extension_ = value; |
| 12952 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension) |
| 12953 | } |
| 12954 | |
| 12955 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 12956 | |
| 12957 | // =================================================================== |
| 12958 | |
| 12959 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12960 | const int UninterpretedOption::kNameFieldNumber; |
| 12961 | const int UninterpretedOption::kIdentifierValueFieldNumber; |
| 12962 | const int UninterpretedOption::kPositiveIntValueFieldNumber; |
| 12963 | const int UninterpretedOption::kNegativeIntValueFieldNumber; |
| 12964 | const int UninterpretedOption::kDoubleValueFieldNumber; |
| 12965 | const int UninterpretedOption::kStringValueFieldNumber; |
| 12966 | const int UninterpretedOption::kAggregateValueFieldNumber; |
| 12967 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12968 | |
| 12969 | UninterpretedOption::UninterpretedOption() |
| 12970 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 12971 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 12972 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 12973 | } |
| 12974 | SharedCtor(); |
| 12975 | // @@protoc_insertion_point(constructor:google.protobuf.UninterpretedOption) |
| 12976 | } |
| 12977 | UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) |
| 12978 | : ::google::protobuf::Message(), |
| 12979 | _internal_metadata_(NULL), |
| 12980 | _has_bits_(from._has_bits_), |
| 12981 | _cached_size_(0), |
| 12982 | name_(from.name_) { |
| 12983 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12984 | identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12985 | if (from.has_identifier_value()) { |
| 12986 | identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_value_); |
| 12987 | } |
| 12988 | string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12989 | if (from.has_string_value()) { |
| 12990 | string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_value_); |
| 12991 | } |
| 12992 | aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12993 | if (from.has_aggregate_value()) { |
| 12994 | aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.aggregate_value_); |
| 12995 | } |
| 12996 | ::memcpy(&positive_int_value_, &from.positive_int_value_, |
| 12997 | reinterpret_cast<char*>(&double_value_) - |
| 12998 | reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_)); |
| 12999 | // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption) |
| 13000 | } |
| 13001 | |
| 13002 | void UninterpretedOption::SharedCtor() { |
| 13003 | _cached_size_ = 0; |
| 13004 | identifier_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13005 | string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13006 | aggregate_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13007 | ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) - |
| 13008 | reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_)); |
| 13009 | } |
| 13010 | |
| 13011 | UninterpretedOption::~UninterpretedOption() { |
| 13012 | // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption) |
| 13013 | SharedDtor(); |
| 13014 | } |
| 13015 | |
| 13016 | void UninterpretedOption::SharedDtor() { |
| 13017 | identifier_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13018 | string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13019 | aggregate_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13020 | } |
| 13021 | |
| 13022 | void UninterpretedOption::SetCachedSize(int size) const { |
| 13023 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13024 | _cached_size_ = size; |
| 13025 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13026 | } |
| 13027 | const ::google::protobuf::Descriptor* UninterpretedOption::descriptor() { |
| 13028 | protobuf_AssignDescriptorsOnce(); |
| 13029 | return file_level_metadata[20].descriptor; |
| 13030 | } |
| 13031 | |
| 13032 | const UninterpretedOption& UninterpretedOption::default_instance() { |
| 13033 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 13034 | return *internal_default_instance(); |
| 13035 | } |
| 13036 | |
| 13037 | UninterpretedOption* UninterpretedOption::New(::google::protobuf::Arena* arena) const { |
| 13038 | UninterpretedOption* n = new UninterpretedOption; |
| 13039 | if (arena != NULL) { |
| 13040 | arena->Own(n); |
| 13041 | } |
| 13042 | return n; |
| 13043 | } |
| 13044 | |
| 13045 | void UninterpretedOption::Clear() { |
| 13046 | // @@protoc_insertion_point(message_clear_start:google.protobuf.UninterpretedOption) |
| 13047 | name_.Clear(); |
| 13048 | if (_has_bits_[0 / 32] & 7u) { |
| 13049 | if (has_identifier_value()) { |
| 13050 | GOOGLE_DCHECK(!identifier_value_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 13051 | (*identifier_value_.UnsafeRawStringPointer())->clear(); |
| 13052 | } |
| 13053 | if (has_string_value()) { |
| 13054 | GOOGLE_DCHECK(!string_value_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 13055 | (*string_value_.UnsafeRawStringPointer())->clear(); |
| 13056 | } |
| 13057 | if (has_aggregate_value()) { |
| 13058 | GOOGLE_DCHECK(!aggregate_value_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 13059 | (*aggregate_value_.UnsafeRawStringPointer())->clear(); |
| 13060 | } |
| 13061 | } |
| 13062 | if (_has_bits_[0 / 32] & 56u) { |
| 13063 | ::memset(&positive_int_value_, 0, reinterpret_cast<char*>(&double_value_) - |
| 13064 | reinterpret_cast<char*>(&positive_int_value_) + sizeof(double_value_)); |
| 13065 | } |
| 13066 | _has_bits_.Clear(); |
| 13067 | _internal_metadata_.Clear(); |
| 13068 | } |
| 13069 | |
| 13070 | bool UninterpretedOption::MergePartialFromCodedStream( |
| 13071 | ::google::protobuf::io::CodedInputStream* input) { |
| 13072 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 13073 | ::google::protobuf::uint32 tag; |
| 13074 | // @@protoc_insertion_point(parse_start:google.protobuf.UninterpretedOption) |
| 13075 | for (;;) { |
| 13076 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 13077 | tag = p.first; |
| 13078 | if (!p.second) goto handle_unusual; |
| 13079 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 13080 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 13081 | case 2: { |
| 13082 | if (tag == 18u) { |
| 13083 | DO_(input->IncrementRecursionDepth()); |
| 13084 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 13085 | input, add_name())); |
| 13086 | } else { |
| 13087 | goto handle_unusual; |
| 13088 | } |
| 13089 | input->UnsafeDecrementRecursionDepth(); |
| 13090 | break; |
| 13091 | } |
| 13092 | |
| 13093 | // optional string identifier_value = 3; |
| 13094 | case 3: { |
| 13095 | if (tag == 26u) { |
| 13096 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13097 | input, this->mutable_identifier_value())); |
| 13098 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13099 | this->identifier_value().data(), this->identifier_value().length(), |
| 13100 | ::google::protobuf::internal::WireFormat::PARSE, |
| 13101 | "google.protobuf.UninterpretedOption.identifier_value"); |
| 13102 | } else { |
| 13103 | goto handle_unusual; |
| 13104 | } |
| 13105 | break; |
| 13106 | } |
| 13107 | |
| 13108 | // optional uint64 positive_int_value = 4; |
| 13109 | case 4: { |
| 13110 | if (tag == 32u) { |
| 13111 | set_has_positive_int_value(); |
| 13112 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 13113 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
| 13114 | input, &positive_int_value_))); |
| 13115 | } else { |
| 13116 | goto handle_unusual; |
| 13117 | } |
| 13118 | break; |
| 13119 | } |
| 13120 | |
| 13121 | // optional int64 negative_int_value = 5; |
| 13122 | case 5: { |
| 13123 | if (tag == 40u) { |
| 13124 | set_has_negative_int_value(); |
| 13125 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 13126 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
| 13127 | input, &negative_int_value_))); |
| 13128 | } else { |
| 13129 | goto handle_unusual; |
| 13130 | } |
| 13131 | break; |
| 13132 | } |
| 13133 | |
| 13134 | // optional double double_value = 6; |
| 13135 | case 6: { |
| 13136 | if (tag == 49u) { |
| 13137 | set_has_double_value(); |
| 13138 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 13139 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
| 13140 | input, &double_value_))); |
| 13141 | } else { |
| 13142 | goto handle_unusual; |
| 13143 | } |
| 13144 | break; |
| 13145 | } |
| 13146 | |
| 13147 | // optional bytes string_value = 7; |
| 13148 | case 7: { |
| 13149 | if (tag == 58u) { |
| 13150 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
| 13151 | input, this->mutable_string_value())); |
| 13152 | } else { |
| 13153 | goto handle_unusual; |
| 13154 | } |
| 13155 | break; |
| 13156 | } |
| 13157 | |
| 13158 | // optional string aggregate_value = 8; |
| 13159 | case 8: { |
| 13160 | if (tag == 66u) { |
| 13161 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13162 | input, this->mutable_aggregate_value())); |
| 13163 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13164 | this->aggregate_value().data(), this->aggregate_value().length(), |
| 13165 | ::google::protobuf::internal::WireFormat::PARSE, |
| 13166 | "google.protobuf.UninterpretedOption.aggregate_value"); |
| 13167 | } else { |
| 13168 | goto handle_unusual; |
| 13169 | } |
| 13170 | break; |
| 13171 | } |
| 13172 | |
| 13173 | default: { |
| 13174 | handle_unusual: |
| 13175 | if (tag == 0 || |
| 13176 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 13177 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 13178 | goto success; |
| 13179 | } |
| 13180 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 13181 | input, tag, mutable_unknown_fields())); |
| 13182 | break; |
| 13183 | } |
| 13184 | } |
| 13185 | } |
| 13186 | success: |
| 13187 | // @@protoc_insertion_point(parse_success:google.protobuf.UninterpretedOption) |
| 13188 | return true; |
| 13189 | failure: |
| 13190 | // @@protoc_insertion_point(parse_failure:google.protobuf.UninterpretedOption) |
| 13191 | return false; |
| 13192 | #undef DO_ |
| 13193 | } |
| 13194 | |
| 13195 | void UninterpretedOption::SerializeWithCachedSizes( |
| 13196 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 13197 | // @@protoc_insertion_point(serialize_start:google.protobuf.UninterpretedOption) |
| 13198 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 13199 | for (unsigned int i = 0, n = this->name_size(); i < n; i++) { |
| 13200 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 13201 | 2, this->name(i), output); |
| 13202 | } |
| 13203 | |
| 13204 | // optional string identifier_value = 3; |
| 13205 | if (has_identifier_value()) { |
| 13206 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13207 | this->identifier_value().data(), this->identifier_value().length(), |
| 13208 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13209 | "google.protobuf.UninterpretedOption.identifier_value"); |
| 13210 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 13211 | 3, this->identifier_value(), output); |
| 13212 | } |
| 13213 | |
| 13214 | // optional uint64 positive_int_value = 4; |
| 13215 | if (has_positive_int_value()) { |
| 13216 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output); |
| 13217 | } |
| 13218 | |
| 13219 | // optional int64 negative_int_value = 5; |
| 13220 | if (has_negative_int_value()) { |
| 13221 | ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output); |
| 13222 | } |
| 13223 | |
| 13224 | // optional double double_value = 6; |
| 13225 | if (has_double_value()) { |
| 13226 | ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output); |
| 13227 | } |
| 13228 | |
| 13229 | // optional bytes string_value = 7; |
| 13230 | if (has_string_value()) { |
| 13231 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
| 13232 | 7, this->string_value(), output); |
| 13233 | } |
| 13234 | |
| 13235 | // optional string aggregate_value = 8; |
| 13236 | if (has_aggregate_value()) { |
| 13237 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13238 | this->aggregate_value().data(), this->aggregate_value().length(), |
| 13239 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13240 | "google.protobuf.UninterpretedOption.aggregate_value"); |
| 13241 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 13242 | 8, this->aggregate_value(), output); |
| 13243 | } |
| 13244 | |
| 13245 | if (_internal_metadata_.have_unknown_fields()) { |
| 13246 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 13247 | unknown_fields(), output); |
| 13248 | } |
| 13249 | // @@protoc_insertion_point(serialize_end:google.protobuf.UninterpretedOption) |
| 13250 | } |
| 13251 | |
| 13252 | ::google::protobuf::uint8* UninterpretedOption::InternalSerializeWithCachedSizesToArray( |
| 13253 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 13254 | (void)deterministic; // Unused |
| 13255 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption) |
| 13256 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 13257 | for (unsigned int i = 0, n = this->name_size(); i < n; i++) { |
| 13258 | target = ::google::protobuf::internal::WireFormatLite:: |
| 13259 | InternalWriteMessageNoVirtualToArray( |
| 13260 | 2, this->name(i), false, target); |
| 13261 | } |
| 13262 | |
| 13263 | // optional string identifier_value = 3; |
| 13264 | if (has_identifier_value()) { |
| 13265 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13266 | this->identifier_value().data(), this->identifier_value().length(), |
| 13267 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13268 | "google.protobuf.UninterpretedOption.identifier_value"); |
| 13269 | target = |
| 13270 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 13271 | 3, this->identifier_value(), target); |
| 13272 | } |
| 13273 | |
| 13274 | // optional uint64 positive_int_value = 4; |
| 13275 | if (has_positive_int_value()) { |
| 13276 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target); |
| 13277 | } |
| 13278 | |
| 13279 | // optional int64 negative_int_value = 5; |
| 13280 | if (has_negative_int_value()) { |
| 13281 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target); |
| 13282 | } |
| 13283 | |
| 13284 | // optional double double_value = 6; |
| 13285 | if (has_double_value()) { |
| 13286 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target); |
| 13287 | } |
| 13288 | |
| 13289 | // optional bytes string_value = 7; |
| 13290 | if (has_string_value()) { |
| 13291 | target = |
| 13292 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
| 13293 | 7, this->string_value(), target); |
| 13294 | } |
| 13295 | |
| 13296 | // optional string aggregate_value = 8; |
| 13297 | if (has_aggregate_value()) { |
| 13298 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13299 | this->aggregate_value().data(), this->aggregate_value().length(), |
| 13300 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13301 | "google.protobuf.UninterpretedOption.aggregate_value"); |
| 13302 | target = |
| 13303 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 13304 | 8, this->aggregate_value(), target); |
| 13305 | } |
| 13306 | |
| 13307 | if (_internal_metadata_.have_unknown_fields()) { |
| 13308 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 13309 | unknown_fields(), target); |
| 13310 | } |
| 13311 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UninterpretedOption) |
| 13312 | return target; |
| 13313 | } |
| 13314 | |
| 13315 | size_t UninterpretedOption::ByteSizeLong() const { |
| 13316 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UninterpretedOption) |
| 13317 | size_t total_size = 0; |
| 13318 | |
| 13319 | if (_internal_metadata_.have_unknown_fields()) { |
| 13320 | total_size += |
| 13321 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 13322 | unknown_fields()); |
| 13323 | } |
| 13324 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 13325 | { |
| 13326 | unsigned int count = this->name_size(); |
| 13327 | total_size += 1UL * count; |
| 13328 | for (unsigned int i = 0; i < count; i++) { |
| 13329 | total_size += |
| 13330 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 13331 | this->name(i)); |
| 13332 | } |
| 13333 | } |
| 13334 | |
| 13335 | if (_has_bits_[0 / 32] & 63u) { |
| 13336 | // optional string identifier_value = 3; |
| 13337 | if (has_identifier_value()) { |
| 13338 | total_size += 1 + |
| 13339 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13340 | this->identifier_value()); |
| 13341 | } |
| 13342 | |
| 13343 | // optional bytes string_value = 7; |
| 13344 | if (has_string_value()) { |
| 13345 | total_size += 1 + |
| 13346 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
| 13347 | this->string_value()); |
| 13348 | } |
| 13349 | |
| 13350 | // optional string aggregate_value = 8; |
| 13351 | if (has_aggregate_value()) { |
| 13352 | total_size += 1 + |
| 13353 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13354 | this->aggregate_value()); |
| 13355 | } |
| 13356 | |
| 13357 | // optional uint64 positive_int_value = 4; |
| 13358 | if (has_positive_int_value()) { |
| 13359 | total_size += 1 + |
| 13360 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
| 13361 | this->positive_int_value()); |
| 13362 | } |
| 13363 | |
| 13364 | // optional int64 negative_int_value = 5; |
| 13365 | if (has_negative_int_value()) { |
| 13366 | total_size += 1 + |
| 13367 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
| 13368 | this->negative_int_value()); |
| 13369 | } |
| 13370 | |
| 13371 | // optional double double_value = 6; |
| 13372 | if (has_double_value()) { |
| 13373 | total_size += 1 + 8; |
| 13374 | } |
| 13375 | |
| 13376 | } |
| 13377 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 13378 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13379 | _cached_size_ = cached_size; |
| 13380 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13381 | return total_size; |
| 13382 | } |
| 13383 | |
| 13384 | void UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) { |
| 13385 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UninterpretedOption) |
| 13386 | GOOGLE_DCHECK_NE(&from, this); |
| 13387 | const UninterpretedOption* source = |
| 13388 | ::google::protobuf::internal::DynamicCastToGenerated<const UninterpretedOption>( |
| 13389 | &from); |
| 13390 | if (source == NULL) { |
| 13391 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UninterpretedOption) |
| 13392 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 13393 | } else { |
| 13394 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UninterpretedOption) |
| 13395 | MergeFrom(*source); |
| 13396 | } |
| 13397 | } |
| 13398 | |
| 13399 | void UninterpretedOption::MergeFrom(const UninterpretedOption& from) { |
| 13400 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption) |
| 13401 | GOOGLE_DCHECK_NE(&from, this); |
| 13402 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 13403 | name_.MergeFrom(from.name_); |
| 13404 | if (from._has_bits_[0 / 32] & 63u) { |
| 13405 | if (from.has_identifier_value()) { |
| 13406 | set_has_identifier_value(); |
| 13407 | identifier_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.identifier_value_); |
| 13408 | } |
| 13409 | if (from.has_string_value()) { |
| 13410 | set_has_string_value(); |
| 13411 | string_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_value_); |
| 13412 | } |
| 13413 | if (from.has_aggregate_value()) { |
| 13414 | set_has_aggregate_value(); |
| 13415 | aggregate_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.aggregate_value_); |
| 13416 | } |
| 13417 | if (from.has_positive_int_value()) { |
| 13418 | set_positive_int_value(from.positive_int_value()); |
| 13419 | } |
| 13420 | if (from.has_negative_int_value()) { |
| 13421 | set_negative_int_value(from.negative_int_value()); |
| 13422 | } |
| 13423 | if (from.has_double_value()) { |
| 13424 | set_double_value(from.double_value()); |
| 13425 | } |
| 13426 | } |
| 13427 | } |
| 13428 | |
| 13429 | void UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) { |
| 13430 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UninterpretedOption) |
| 13431 | if (&from == this) return; |
| 13432 | Clear(); |
| 13433 | MergeFrom(from); |
| 13434 | } |
| 13435 | |
| 13436 | void UninterpretedOption::CopyFrom(const UninterpretedOption& from) { |
| 13437 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UninterpretedOption) |
| 13438 | if (&from == this) return; |
| 13439 | Clear(); |
| 13440 | MergeFrom(from); |
| 13441 | } |
| 13442 | |
| 13443 | bool UninterpretedOption::IsInitialized() const { |
| 13444 | if (!::google::protobuf::internal::AllAreInitialized(this->name())) return false; |
| 13445 | return true; |
| 13446 | } |
| 13447 | |
| 13448 | void UninterpretedOption::Swap(UninterpretedOption* other) { |
| 13449 | if (other == this) return; |
| 13450 | InternalSwap(other); |
| 13451 | } |
| 13452 | void UninterpretedOption::InternalSwap(UninterpretedOption* other) { |
| 13453 | name_.UnsafeArenaSwap(&other->name_); |
| 13454 | identifier_value_.Swap(&other->identifier_value_); |
| 13455 | string_value_.Swap(&other->string_value_); |
| 13456 | aggregate_value_.Swap(&other->aggregate_value_); |
| 13457 | std::swap(positive_int_value_, other->positive_int_value_); |
| 13458 | std::swap(negative_int_value_, other->negative_int_value_); |
| 13459 | std::swap(double_value_, other->double_value_); |
| 13460 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 13461 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 13462 | std::swap(_cached_size_, other->_cached_size_); |
| 13463 | } |
| 13464 | |
| 13465 | ::google::protobuf::Metadata UninterpretedOption::GetMetadata() const { |
| 13466 | protobuf_AssignDescriptorsOnce(); |
| 13467 | return file_level_metadata[20]; |
| 13468 | } |
| 13469 | |
| 13470 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 13471 | // UninterpretedOption |
| 13472 | |
| 13473 | // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
| 13474 | int UninterpretedOption::name_size() const { |
| 13475 | return name_.size(); |
| 13476 | } |
| 13477 | void UninterpretedOption::clear_name() { |
| 13478 | name_.Clear(); |
| 13479 | } |
| 13480 | const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const { |
| 13481 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name) |
| 13482 | return name_.Get(index); |
| 13483 | } |
| 13484 | ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) { |
| 13485 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name) |
| 13486 | return name_.Mutable(index); |
| 13487 | } |
| 13488 | ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() { |
| 13489 | // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name) |
| 13490 | return name_.Add(); |
| 13491 | } |
| 13492 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >* |
| 13493 | UninterpretedOption::mutable_name() { |
| 13494 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name) |
| 13495 | return &name_; |
| 13496 | } |
| 13497 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >& |
| 13498 | UninterpretedOption::name() const { |
| 13499 | // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name) |
| 13500 | return name_; |
| 13501 | } |
| 13502 | |
| 13503 | // optional string identifier_value = 3; |
| 13504 | bool UninterpretedOption::has_identifier_value() const { |
| 13505 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 13506 | } |
| 13507 | void UninterpretedOption::set_has_identifier_value() { |
| 13508 | _has_bits_[0] |= 0x00000001u; |
| 13509 | } |
| 13510 | void UninterpretedOption::clear_has_identifier_value() { |
| 13511 | _has_bits_[0] &= ~0x00000001u; |
| 13512 | } |
| 13513 | void UninterpretedOption::clear_identifier_value() { |
| 13514 | identifier_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13515 | clear_has_identifier_value(); |
| 13516 | } |
| 13517 | const ::std::string& UninterpretedOption::identifier_value() const { |
| 13518 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value) |
| 13519 | return identifier_value_.GetNoArena(); |
| 13520 | } |
| 13521 | void UninterpretedOption::set_identifier_value(const ::std::string& value) { |
| 13522 | set_has_identifier_value(); |
| 13523 | identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 13524 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value) |
| 13525 | } |
| 13526 | #if LANG_CXX11 |
| 13527 | void UninterpretedOption::set_identifier_value(::std::string&& value) { |
| 13528 | set_has_identifier_value(); |
| 13529 | identifier_value_.SetNoArena( |
| 13530 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 13531 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.identifier_value) |
| 13532 | } |
| 13533 | #endif |
| 13534 | void UninterpretedOption::set_identifier_value(const char* value) { |
| 13535 | set_has_identifier_value(); |
| 13536 | identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 13537 | // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value) |
| 13538 | } |
| 13539 | void UninterpretedOption::set_identifier_value(const char* value, size_t size) { |
| 13540 | set_has_identifier_value(); |
| 13541 | identifier_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13542 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13543 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value) |
| 13544 | } |
| 13545 | ::std::string* UninterpretedOption::mutable_identifier_value() { |
| 13546 | set_has_identifier_value(); |
| 13547 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value) |
| 13548 | return identifier_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13549 | } |
| 13550 | ::std::string* UninterpretedOption::release_identifier_value() { |
| 13551 | // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value) |
| 13552 | clear_has_identifier_value(); |
| 13553 | return identifier_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13554 | } |
| 13555 | void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) { |
| 13556 | if (identifier_value != NULL) { |
| 13557 | set_has_identifier_value(); |
| 13558 | } else { |
| 13559 | clear_has_identifier_value(); |
| 13560 | } |
| 13561 | identifier_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), identifier_value); |
| 13562 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value) |
| 13563 | } |
| 13564 | |
| 13565 | // optional uint64 positive_int_value = 4; |
| 13566 | bool UninterpretedOption::has_positive_int_value() const { |
| 13567 | return (_has_bits_[0] & 0x00000008u) != 0; |
| 13568 | } |
| 13569 | void UninterpretedOption::set_has_positive_int_value() { |
| 13570 | _has_bits_[0] |= 0x00000008u; |
| 13571 | } |
| 13572 | void UninterpretedOption::clear_has_positive_int_value() { |
| 13573 | _has_bits_[0] &= ~0x00000008u; |
| 13574 | } |
| 13575 | void UninterpretedOption::clear_positive_int_value() { |
| 13576 | positive_int_value_ = GOOGLE_ULONGLONG(0); |
| 13577 | clear_has_positive_int_value(); |
| 13578 | } |
| 13579 | ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const { |
| 13580 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value) |
| 13581 | return positive_int_value_; |
| 13582 | } |
| 13583 | void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) { |
| 13584 | set_has_positive_int_value(); |
| 13585 | positive_int_value_ = value; |
| 13586 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value) |
| 13587 | } |
| 13588 | |
| 13589 | // optional int64 negative_int_value = 5; |
| 13590 | bool UninterpretedOption::has_negative_int_value() const { |
| 13591 | return (_has_bits_[0] & 0x00000010u) != 0; |
| 13592 | } |
| 13593 | void UninterpretedOption::set_has_negative_int_value() { |
| 13594 | _has_bits_[0] |= 0x00000010u; |
| 13595 | } |
| 13596 | void UninterpretedOption::clear_has_negative_int_value() { |
| 13597 | _has_bits_[0] &= ~0x00000010u; |
| 13598 | } |
| 13599 | void UninterpretedOption::clear_negative_int_value() { |
| 13600 | negative_int_value_ = GOOGLE_LONGLONG(0); |
| 13601 | clear_has_negative_int_value(); |
| 13602 | } |
| 13603 | ::google::protobuf::int64 UninterpretedOption::negative_int_value() const { |
| 13604 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value) |
| 13605 | return negative_int_value_; |
| 13606 | } |
| 13607 | void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) { |
| 13608 | set_has_negative_int_value(); |
| 13609 | negative_int_value_ = value; |
| 13610 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value) |
| 13611 | } |
| 13612 | |
| 13613 | // optional double double_value = 6; |
| 13614 | bool UninterpretedOption::has_double_value() const { |
| 13615 | return (_has_bits_[0] & 0x00000020u) != 0; |
| 13616 | } |
| 13617 | void UninterpretedOption::set_has_double_value() { |
| 13618 | _has_bits_[0] |= 0x00000020u; |
| 13619 | } |
| 13620 | void UninterpretedOption::clear_has_double_value() { |
| 13621 | _has_bits_[0] &= ~0x00000020u; |
| 13622 | } |
| 13623 | void UninterpretedOption::clear_double_value() { |
| 13624 | double_value_ = 0; |
| 13625 | clear_has_double_value(); |
| 13626 | } |
| 13627 | double UninterpretedOption::double_value() const { |
| 13628 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value) |
| 13629 | return double_value_; |
| 13630 | } |
| 13631 | void UninterpretedOption::set_double_value(double value) { |
| 13632 | set_has_double_value(); |
| 13633 | double_value_ = value; |
| 13634 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value) |
| 13635 | } |
| 13636 | |
| 13637 | // optional bytes string_value = 7; |
| 13638 | bool UninterpretedOption::has_string_value() const { |
| 13639 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 13640 | } |
| 13641 | void UninterpretedOption::set_has_string_value() { |
| 13642 | _has_bits_[0] |= 0x00000002u; |
| 13643 | } |
| 13644 | void UninterpretedOption::clear_has_string_value() { |
| 13645 | _has_bits_[0] &= ~0x00000002u; |
| 13646 | } |
| 13647 | void UninterpretedOption::clear_string_value() { |
| 13648 | string_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13649 | clear_has_string_value(); |
| 13650 | } |
| 13651 | const ::std::string& UninterpretedOption::string_value() const { |
| 13652 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value) |
| 13653 | return string_value_.GetNoArena(); |
| 13654 | } |
| 13655 | void UninterpretedOption::set_string_value(const ::std::string& value) { |
| 13656 | set_has_string_value(); |
| 13657 | string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 13658 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value) |
| 13659 | } |
| 13660 | #if LANG_CXX11 |
| 13661 | void UninterpretedOption::set_string_value(::std::string&& value) { |
| 13662 | set_has_string_value(); |
| 13663 | string_value_.SetNoArena( |
| 13664 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 13665 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.string_value) |
| 13666 | } |
| 13667 | #endif |
| 13668 | void UninterpretedOption::set_string_value(const char* value) { |
| 13669 | set_has_string_value(); |
| 13670 | string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 13671 | // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value) |
| 13672 | } |
| 13673 | void UninterpretedOption::set_string_value(const void* value, size_t size) { |
| 13674 | set_has_string_value(); |
| 13675 | string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13676 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13677 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value) |
| 13678 | } |
| 13679 | ::std::string* UninterpretedOption::mutable_string_value() { |
| 13680 | set_has_string_value(); |
| 13681 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value) |
| 13682 | return string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13683 | } |
| 13684 | ::std::string* UninterpretedOption::release_string_value() { |
| 13685 | // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value) |
| 13686 | clear_has_string_value(); |
| 13687 | return string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13688 | } |
| 13689 | void UninterpretedOption::set_allocated_string_value(::std::string* string_value) { |
| 13690 | if (string_value != NULL) { |
| 13691 | set_has_string_value(); |
| 13692 | } else { |
| 13693 | clear_has_string_value(); |
| 13694 | } |
| 13695 | string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value); |
| 13696 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value) |
| 13697 | } |
| 13698 | |
| 13699 | // optional string aggregate_value = 8; |
| 13700 | bool UninterpretedOption::has_aggregate_value() const { |
| 13701 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 13702 | } |
| 13703 | void UninterpretedOption::set_has_aggregate_value() { |
| 13704 | _has_bits_[0] |= 0x00000004u; |
| 13705 | } |
| 13706 | void UninterpretedOption::clear_has_aggregate_value() { |
| 13707 | _has_bits_[0] &= ~0x00000004u; |
| 13708 | } |
| 13709 | void UninterpretedOption::clear_aggregate_value() { |
| 13710 | aggregate_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13711 | clear_has_aggregate_value(); |
| 13712 | } |
| 13713 | const ::std::string& UninterpretedOption::aggregate_value() const { |
| 13714 | // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value) |
| 13715 | return aggregate_value_.GetNoArena(); |
| 13716 | } |
| 13717 | void UninterpretedOption::set_aggregate_value(const ::std::string& value) { |
| 13718 | set_has_aggregate_value(); |
| 13719 | aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 13720 | // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value) |
| 13721 | } |
| 13722 | #if LANG_CXX11 |
| 13723 | void UninterpretedOption::set_aggregate_value(::std::string&& value) { |
| 13724 | set_has_aggregate_value(); |
| 13725 | aggregate_value_.SetNoArena( |
| 13726 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 13727 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.aggregate_value) |
| 13728 | } |
| 13729 | #endif |
| 13730 | void UninterpretedOption::set_aggregate_value(const char* value) { |
| 13731 | set_has_aggregate_value(); |
| 13732 | aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 13733 | // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value) |
| 13734 | } |
| 13735 | void UninterpretedOption::set_aggregate_value(const char* value, size_t size) { |
| 13736 | set_has_aggregate_value(); |
| 13737 | aggregate_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13738 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 13739 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value) |
| 13740 | } |
| 13741 | ::std::string* UninterpretedOption::mutable_aggregate_value() { |
| 13742 | set_has_aggregate_value(); |
| 13743 | // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value) |
| 13744 | return aggregate_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13745 | } |
| 13746 | ::std::string* UninterpretedOption::release_aggregate_value() { |
| 13747 | // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value) |
| 13748 | clear_has_aggregate_value(); |
| 13749 | return aggregate_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13750 | } |
| 13751 | void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) { |
| 13752 | if (aggregate_value != NULL) { |
| 13753 | set_has_aggregate_value(); |
| 13754 | } else { |
| 13755 | clear_has_aggregate_value(); |
| 13756 | } |
| 13757 | aggregate_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), aggregate_value); |
| 13758 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value) |
| 13759 | } |
| 13760 | |
| 13761 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 13762 | |
| 13763 | // =================================================================== |
| 13764 | |
| 13765 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13766 | const int SourceCodeInfo_Location::kPathFieldNumber; |
| 13767 | const int SourceCodeInfo_Location::kSpanFieldNumber; |
| 13768 | const int SourceCodeInfo_Location::kLeadingCommentsFieldNumber; |
| 13769 | const int SourceCodeInfo_Location::kTrailingCommentsFieldNumber; |
| 13770 | const int SourceCodeInfo_Location::kLeadingDetachedCommentsFieldNumber; |
| 13771 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13772 | |
| 13773 | SourceCodeInfo_Location::SourceCodeInfo_Location() |
| 13774 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 13775 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 13776 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 13777 | } |
| 13778 | SharedCtor(); |
| 13779 | // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo.Location) |
| 13780 | } |
| 13781 | SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from) |
| 13782 | : ::google::protobuf::Message(), |
| 13783 | _internal_metadata_(NULL), |
| 13784 | _has_bits_(from._has_bits_), |
| 13785 | _cached_size_(0), |
| 13786 | path_(from.path_), |
| 13787 | span_(from.span_), |
| 13788 | leading_detached_comments_(from.leading_detached_comments_) { |
| 13789 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 13790 | leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13791 | if (from.has_leading_comments()) { |
| 13792 | leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leading_comments_); |
| 13793 | } |
| 13794 | trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13795 | if (from.has_trailing_comments()) { |
| 13796 | trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trailing_comments_); |
| 13797 | } |
| 13798 | // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location) |
| 13799 | } |
| 13800 | |
| 13801 | void SourceCodeInfo_Location::SharedCtor() { |
| 13802 | _cached_size_ = 0; |
| 13803 | leading_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13804 | trailing_comments_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13805 | } |
| 13806 | |
| 13807 | SourceCodeInfo_Location::~SourceCodeInfo_Location() { |
| 13808 | // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location) |
| 13809 | SharedDtor(); |
| 13810 | } |
| 13811 | |
| 13812 | void SourceCodeInfo_Location::SharedDtor() { |
| 13813 | leading_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13814 | trailing_comments_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13815 | } |
| 13816 | |
| 13817 | void SourceCodeInfo_Location::SetCachedSize(int size) const { |
| 13818 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 13819 | _cached_size_ = size; |
| 13820 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 13821 | } |
| 13822 | const ::google::protobuf::Descriptor* SourceCodeInfo_Location::descriptor() { |
| 13823 | protobuf_AssignDescriptorsOnce(); |
| 13824 | return file_level_metadata[21].descriptor; |
| 13825 | } |
| 13826 | |
| 13827 | const SourceCodeInfo_Location& SourceCodeInfo_Location::default_instance() { |
| 13828 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 13829 | return *internal_default_instance(); |
| 13830 | } |
| 13831 | |
| 13832 | SourceCodeInfo_Location* SourceCodeInfo_Location::New(::google::protobuf::Arena* arena) const { |
| 13833 | SourceCodeInfo_Location* n = new SourceCodeInfo_Location; |
| 13834 | if (arena != NULL) { |
| 13835 | arena->Own(n); |
| 13836 | } |
| 13837 | return n; |
| 13838 | } |
| 13839 | |
| 13840 | void SourceCodeInfo_Location::Clear() { |
| 13841 | // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo.Location) |
| 13842 | path_.Clear(); |
| 13843 | span_.Clear(); |
| 13844 | leading_detached_comments_.Clear(); |
| 13845 | if (_has_bits_[0 / 32] & 3u) { |
| 13846 | if (has_leading_comments()) { |
| 13847 | GOOGLE_DCHECK(!leading_comments_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 13848 | (*leading_comments_.UnsafeRawStringPointer())->clear(); |
| 13849 | } |
| 13850 | if (has_trailing_comments()) { |
| 13851 | GOOGLE_DCHECK(!trailing_comments_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 13852 | (*trailing_comments_.UnsafeRawStringPointer())->clear(); |
| 13853 | } |
| 13854 | } |
| 13855 | _has_bits_.Clear(); |
| 13856 | _internal_metadata_.Clear(); |
| 13857 | } |
| 13858 | |
| 13859 | bool SourceCodeInfo_Location::MergePartialFromCodedStream( |
| 13860 | ::google::protobuf::io::CodedInputStream* input) { |
| 13861 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 13862 | ::google::protobuf::uint32 tag; |
| 13863 | // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo.Location) |
| 13864 | for (;;) { |
| 13865 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 13866 | tag = p.first; |
| 13867 | if (!p.second) goto handle_unusual; |
| 13868 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 13869 | // repeated int32 path = 1 [packed = true]; |
| 13870 | case 1: { |
| 13871 | if (tag == 10u) { |
| 13872 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 13873 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 13874 | input, this->mutable_path()))); |
| 13875 | } else if (tag == 8u) { |
| 13876 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 13877 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 13878 | 1, 10u, input, this->mutable_path()))); |
| 13879 | } else { |
| 13880 | goto handle_unusual; |
| 13881 | } |
| 13882 | break; |
| 13883 | } |
| 13884 | |
| 13885 | // repeated int32 span = 2 [packed = true]; |
| 13886 | case 2: { |
| 13887 | if (tag == 18u) { |
| 13888 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 13889 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 13890 | input, this->mutable_span()))); |
| 13891 | } else if (tag == 16u) { |
| 13892 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 13893 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 13894 | 1, 18u, input, this->mutable_span()))); |
| 13895 | } else { |
| 13896 | goto handle_unusual; |
| 13897 | } |
| 13898 | break; |
| 13899 | } |
| 13900 | |
| 13901 | // optional string leading_comments = 3; |
| 13902 | case 3: { |
| 13903 | if (tag == 26u) { |
| 13904 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13905 | input, this->mutable_leading_comments())); |
| 13906 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13907 | this->leading_comments().data(), this->leading_comments().length(), |
| 13908 | ::google::protobuf::internal::WireFormat::PARSE, |
| 13909 | "google.protobuf.SourceCodeInfo.Location.leading_comments"); |
| 13910 | } else { |
| 13911 | goto handle_unusual; |
| 13912 | } |
| 13913 | break; |
| 13914 | } |
| 13915 | |
| 13916 | // optional string trailing_comments = 4; |
| 13917 | case 4: { |
| 13918 | if (tag == 34u) { |
| 13919 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13920 | input, this->mutable_trailing_comments())); |
| 13921 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13922 | this->trailing_comments().data(), this->trailing_comments().length(), |
| 13923 | ::google::protobuf::internal::WireFormat::PARSE, |
| 13924 | "google.protobuf.SourceCodeInfo.Location.trailing_comments"); |
| 13925 | } else { |
| 13926 | goto handle_unusual; |
| 13927 | } |
| 13928 | break; |
| 13929 | } |
| 13930 | |
| 13931 | // repeated string leading_detached_comments = 6; |
| 13932 | case 6: { |
| 13933 | if (tag == 50u) { |
| 13934 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13935 | input, this->add_leading_detached_comments())); |
| 13936 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13937 | this->leading_detached_comments(this->leading_detached_comments_size() - 1).data(), |
| 13938 | this->leading_detached_comments(this->leading_detached_comments_size() - 1).length(), |
| 13939 | ::google::protobuf::internal::WireFormat::PARSE, |
| 13940 | "google.protobuf.SourceCodeInfo.Location.leading_detached_comments"); |
| 13941 | } else { |
| 13942 | goto handle_unusual; |
| 13943 | } |
| 13944 | break; |
| 13945 | } |
| 13946 | |
| 13947 | default: { |
| 13948 | handle_unusual: |
| 13949 | if (tag == 0 || |
| 13950 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 13951 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 13952 | goto success; |
| 13953 | } |
| 13954 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 13955 | input, tag, mutable_unknown_fields())); |
| 13956 | break; |
| 13957 | } |
| 13958 | } |
| 13959 | } |
| 13960 | success: |
| 13961 | // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo.Location) |
| 13962 | return true; |
| 13963 | failure: |
| 13964 | // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo.Location) |
| 13965 | return false; |
| 13966 | #undef DO_ |
| 13967 | } |
| 13968 | |
| 13969 | void SourceCodeInfo_Location::SerializeWithCachedSizes( |
| 13970 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 13971 | // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo.Location) |
| 13972 | // repeated int32 path = 1 [packed = true]; |
| 13973 | if (this->path_size() > 0) { |
| 13974 | ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 13975 | output->WriteVarint32(_path_cached_byte_size_); |
| 13976 | } |
| 13977 | for (int i = 0; i < this->path_size(); i++) { |
| 13978 | ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
| 13979 | this->path(i), output); |
| 13980 | } |
| 13981 | |
| 13982 | // repeated int32 span = 2 [packed = true]; |
| 13983 | if (this->span_size() > 0) { |
| 13984 | ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 13985 | output->WriteVarint32(_span_cached_byte_size_); |
| 13986 | } |
| 13987 | for (int i = 0; i < this->span_size(); i++) { |
| 13988 | ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
| 13989 | this->span(i), output); |
| 13990 | } |
| 13991 | |
| 13992 | // optional string leading_comments = 3; |
| 13993 | if (has_leading_comments()) { |
| 13994 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 13995 | this->leading_comments().data(), this->leading_comments().length(), |
| 13996 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 13997 | "google.protobuf.SourceCodeInfo.Location.leading_comments"); |
| 13998 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 13999 | 3, this->leading_comments(), output); |
| 14000 | } |
| 14001 | |
| 14002 | // optional string trailing_comments = 4; |
| 14003 | if (has_trailing_comments()) { |
| 14004 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14005 | this->trailing_comments().data(), this->trailing_comments().length(), |
| 14006 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 14007 | "google.protobuf.SourceCodeInfo.Location.trailing_comments"); |
| 14008 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 14009 | 4, this->trailing_comments(), output); |
| 14010 | } |
| 14011 | |
| 14012 | // repeated string leading_detached_comments = 6; |
| 14013 | for (int i = 0; i < this->leading_detached_comments_size(); i++) { |
| 14014 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14015 | this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(), |
| 14016 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 14017 | "google.protobuf.SourceCodeInfo.Location.leading_detached_comments"); |
| 14018 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 14019 | 6, this->leading_detached_comments(i), output); |
| 14020 | } |
| 14021 | |
| 14022 | if (_internal_metadata_.have_unknown_fields()) { |
| 14023 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 14024 | unknown_fields(), output); |
| 14025 | } |
| 14026 | // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo.Location) |
| 14027 | } |
| 14028 | |
| 14029 | ::google::protobuf::uint8* SourceCodeInfo_Location::InternalSerializeWithCachedSizesToArray( |
| 14030 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 14031 | (void)deterministic; // Unused |
| 14032 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location) |
| 14033 | // repeated int32 path = 1 [packed = true]; |
| 14034 | if (this->path_size() > 0) { |
| 14035 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 14036 | 1, |
| 14037 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 14038 | target); |
| 14039 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 14040 | _path_cached_byte_size_, target); |
| 14041 | } |
| 14042 | for (int i = 0; i < this->path_size(); i++) { |
| 14043 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14044 | WriteInt32NoTagToArray(this->path(i), target); |
| 14045 | } |
| 14046 | |
| 14047 | // repeated int32 span = 2 [packed = true]; |
| 14048 | if (this->span_size() > 0) { |
| 14049 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 14050 | 2, |
| 14051 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 14052 | target); |
| 14053 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 14054 | _span_cached_byte_size_, target); |
| 14055 | } |
| 14056 | for (int i = 0; i < this->span_size(); i++) { |
| 14057 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14058 | WriteInt32NoTagToArray(this->span(i), target); |
| 14059 | } |
| 14060 | |
| 14061 | // optional string leading_comments = 3; |
| 14062 | if (has_leading_comments()) { |
| 14063 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14064 | this->leading_comments().data(), this->leading_comments().length(), |
| 14065 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 14066 | "google.protobuf.SourceCodeInfo.Location.leading_comments"); |
| 14067 | target = |
| 14068 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 14069 | 3, this->leading_comments(), target); |
| 14070 | } |
| 14071 | |
| 14072 | // optional string trailing_comments = 4; |
| 14073 | if (has_trailing_comments()) { |
| 14074 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14075 | this->trailing_comments().data(), this->trailing_comments().length(), |
| 14076 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 14077 | "google.protobuf.SourceCodeInfo.Location.trailing_comments"); |
| 14078 | target = |
| 14079 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 14080 | 4, this->trailing_comments(), target); |
| 14081 | } |
| 14082 | |
| 14083 | // repeated string leading_detached_comments = 6; |
| 14084 | for (int i = 0; i < this->leading_detached_comments_size(); i++) { |
| 14085 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14086 | this->leading_detached_comments(i).data(), this->leading_detached_comments(i).length(), |
| 14087 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 14088 | "google.protobuf.SourceCodeInfo.Location.leading_detached_comments"); |
| 14089 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14090 | WriteStringToArray(6, this->leading_detached_comments(i), target); |
| 14091 | } |
| 14092 | |
| 14093 | if (_internal_metadata_.have_unknown_fields()) { |
| 14094 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 14095 | unknown_fields(), target); |
| 14096 | } |
| 14097 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo.Location) |
| 14098 | return target; |
| 14099 | } |
| 14100 | |
| 14101 | size_t SourceCodeInfo_Location::ByteSizeLong() const { |
| 14102 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo.Location) |
| 14103 | size_t total_size = 0; |
| 14104 | |
| 14105 | if (_internal_metadata_.have_unknown_fields()) { |
| 14106 | total_size += |
| 14107 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 14108 | unknown_fields()); |
| 14109 | } |
| 14110 | // repeated int32 path = 1 [packed = true]; |
| 14111 | { |
| 14112 | size_t data_size = 0; |
| 14113 | unsigned int count = this->path_size(); |
| 14114 | for (unsigned int i = 0; i < count; i++) { |
| 14115 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 14116 | Int32Size(this->path(i)); |
| 14117 | } |
| 14118 | if (data_size > 0) { |
| 14119 | total_size += 1 + |
| 14120 | ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| 14121 | } |
| 14122 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
| 14123 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14124 | _path_cached_byte_size_ = cached_size; |
| 14125 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14126 | total_size += data_size; |
| 14127 | } |
| 14128 | |
| 14129 | // repeated int32 span = 2 [packed = true]; |
| 14130 | { |
| 14131 | size_t data_size = 0; |
| 14132 | unsigned int count = this->span_size(); |
| 14133 | for (unsigned int i = 0; i < count; i++) { |
| 14134 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 14135 | Int32Size(this->span(i)); |
| 14136 | } |
| 14137 | if (data_size > 0) { |
| 14138 | total_size += 1 + |
| 14139 | ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| 14140 | } |
| 14141 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
| 14142 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14143 | _span_cached_byte_size_ = cached_size; |
| 14144 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14145 | total_size += data_size; |
| 14146 | } |
| 14147 | |
| 14148 | // repeated string leading_detached_comments = 6; |
| 14149 | total_size += 1 * |
| 14150 | ::google::protobuf::internal::FromIntSize(this->leading_detached_comments_size()); |
| 14151 | for (int i = 0; i < this->leading_detached_comments_size(); i++) { |
| 14152 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 14153 | this->leading_detached_comments(i)); |
| 14154 | } |
| 14155 | |
| 14156 | if (_has_bits_[0 / 32] & 3u) { |
| 14157 | // optional string leading_comments = 3; |
| 14158 | if (has_leading_comments()) { |
| 14159 | total_size += 1 + |
| 14160 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 14161 | this->leading_comments()); |
| 14162 | } |
| 14163 | |
| 14164 | // optional string trailing_comments = 4; |
| 14165 | if (has_trailing_comments()) { |
| 14166 | total_size += 1 + |
| 14167 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 14168 | this->trailing_comments()); |
| 14169 | } |
| 14170 | |
| 14171 | } |
| 14172 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 14173 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14174 | _cached_size_ = cached_size; |
| 14175 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14176 | return total_size; |
| 14177 | } |
| 14178 | |
| 14179 | void SourceCodeInfo_Location::MergeFrom(const ::google::protobuf::Message& from) { |
| 14180 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo.Location) |
| 14181 | GOOGLE_DCHECK_NE(&from, this); |
| 14182 | const SourceCodeInfo_Location* source = |
| 14183 | ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo_Location>( |
| 14184 | &from); |
| 14185 | if (source == NULL) { |
| 14186 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.SourceCodeInfo.Location) |
| 14187 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 14188 | } else { |
| 14189 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo.Location) |
| 14190 | MergeFrom(*source); |
| 14191 | } |
| 14192 | } |
| 14193 | |
| 14194 | void SourceCodeInfo_Location::MergeFrom(const SourceCodeInfo_Location& from) { |
| 14195 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo.Location) |
| 14196 | GOOGLE_DCHECK_NE(&from, this); |
| 14197 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 14198 | path_.MergeFrom(from.path_); |
| 14199 | span_.MergeFrom(from.span_); |
| 14200 | leading_detached_comments_.MergeFrom(from.leading_detached_comments_); |
| 14201 | if (from._has_bits_[0 / 32] & 3u) { |
| 14202 | if (from.has_leading_comments()) { |
| 14203 | set_has_leading_comments(); |
| 14204 | leading_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.leading_comments_); |
| 14205 | } |
| 14206 | if (from.has_trailing_comments()) { |
| 14207 | set_has_trailing_comments(); |
| 14208 | trailing_comments_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trailing_comments_); |
| 14209 | } |
| 14210 | } |
| 14211 | } |
| 14212 | |
| 14213 | void SourceCodeInfo_Location::CopyFrom(const ::google::protobuf::Message& from) { |
| 14214 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCodeInfo.Location) |
| 14215 | if (&from == this) return; |
| 14216 | Clear(); |
| 14217 | MergeFrom(from); |
| 14218 | } |
| 14219 | |
| 14220 | void SourceCodeInfo_Location::CopyFrom(const SourceCodeInfo_Location& from) { |
| 14221 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo.Location) |
| 14222 | if (&from == this) return; |
| 14223 | Clear(); |
| 14224 | MergeFrom(from); |
| 14225 | } |
| 14226 | |
| 14227 | bool SourceCodeInfo_Location::IsInitialized() const { |
| 14228 | return true; |
| 14229 | } |
| 14230 | |
| 14231 | void SourceCodeInfo_Location::Swap(SourceCodeInfo_Location* other) { |
| 14232 | if (other == this) return; |
| 14233 | InternalSwap(other); |
| 14234 | } |
| 14235 | void SourceCodeInfo_Location::InternalSwap(SourceCodeInfo_Location* other) { |
| 14236 | path_.UnsafeArenaSwap(&other->path_); |
| 14237 | span_.UnsafeArenaSwap(&other->span_); |
| 14238 | leading_detached_comments_.UnsafeArenaSwap(&other->leading_detached_comments_); |
| 14239 | leading_comments_.Swap(&other->leading_comments_); |
| 14240 | trailing_comments_.Swap(&other->trailing_comments_); |
| 14241 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 14242 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 14243 | std::swap(_cached_size_, other->_cached_size_); |
| 14244 | } |
| 14245 | |
| 14246 | ::google::protobuf::Metadata SourceCodeInfo_Location::GetMetadata() const { |
| 14247 | protobuf_AssignDescriptorsOnce(); |
| 14248 | return file_level_metadata[21]; |
| 14249 | } |
| 14250 | |
| 14251 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 14252 | // SourceCodeInfo_Location |
| 14253 | |
| 14254 | // repeated int32 path = 1 [packed = true]; |
| 14255 | int SourceCodeInfo_Location::path_size() const { |
| 14256 | return path_.size(); |
| 14257 | } |
| 14258 | void SourceCodeInfo_Location::clear_path() { |
| 14259 | path_.Clear(); |
| 14260 | } |
| 14261 | ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const { |
| 14262 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path) |
| 14263 | return path_.Get(index); |
| 14264 | } |
| 14265 | void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) { |
| 14266 | path_.Set(index, value); |
| 14267 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path) |
| 14268 | } |
| 14269 | void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) { |
| 14270 | path_.Add(value); |
| 14271 | // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path) |
| 14272 | } |
| 14273 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 14274 | SourceCodeInfo_Location::path() const { |
| 14275 | // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path) |
| 14276 | return path_; |
| 14277 | } |
| 14278 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 14279 | SourceCodeInfo_Location::mutable_path() { |
| 14280 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path) |
| 14281 | return &path_; |
| 14282 | } |
| 14283 | |
| 14284 | // repeated int32 span = 2 [packed = true]; |
| 14285 | int SourceCodeInfo_Location::span_size() const { |
| 14286 | return span_.size(); |
| 14287 | } |
| 14288 | void SourceCodeInfo_Location::clear_span() { |
| 14289 | span_.Clear(); |
| 14290 | } |
| 14291 | ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const { |
| 14292 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span) |
| 14293 | return span_.Get(index); |
| 14294 | } |
| 14295 | void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) { |
| 14296 | span_.Set(index, value); |
| 14297 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span) |
| 14298 | } |
| 14299 | void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) { |
| 14300 | span_.Add(value); |
| 14301 | // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span) |
| 14302 | } |
| 14303 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 14304 | SourceCodeInfo_Location::span() const { |
| 14305 | // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span) |
| 14306 | return span_; |
| 14307 | } |
| 14308 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 14309 | SourceCodeInfo_Location::mutable_span() { |
| 14310 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span) |
| 14311 | return &span_; |
| 14312 | } |
| 14313 | |
| 14314 | // optional string leading_comments = 3; |
| 14315 | bool SourceCodeInfo_Location::has_leading_comments() const { |
| 14316 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 14317 | } |
| 14318 | void SourceCodeInfo_Location::set_has_leading_comments() { |
| 14319 | _has_bits_[0] |= 0x00000001u; |
| 14320 | } |
| 14321 | void SourceCodeInfo_Location::clear_has_leading_comments() { |
| 14322 | _has_bits_[0] &= ~0x00000001u; |
| 14323 | } |
| 14324 | void SourceCodeInfo_Location::clear_leading_comments() { |
| 14325 | leading_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14326 | clear_has_leading_comments(); |
| 14327 | } |
| 14328 | const ::std::string& SourceCodeInfo_Location::leading_comments() const { |
| 14329 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 14330 | return leading_comments_.GetNoArena(); |
| 14331 | } |
| 14332 | void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) { |
| 14333 | set_has_leading_comments(); |
| 14334 | leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 14335 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 14336 | } |
| 14337 | #if LANG_CXX11 |
| 14338 | void SourceCodeInfo_Location::set_leading_comments(::std::string&& value) { |
| 14339 | set_has_leading_comments(); |
| 14340 | leading_comments_.SetNoArena( |
| 14341 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 14342 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 14343 | } |
| 14344 | #endif |
| 14345 | void SourceCodeInfo_Location::set_leading_comments(const char* value) { |
| 14346 | set_has_leading_comments(); |
| 14347 | leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 14348 | // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 14349 | } |
| 14350 | void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t size) { |
| 14351 | set_has_leading_comments(); |
| 14352 | leading_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 14353 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 14354 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 14355 | } |
| 14356 | ::std::string* SourceCodeInfo_Location::mutable_leading_comments() { |
| 14357 | set_has_leading_comments(); |
| 14358 | // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 14359 | return leading_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14360 | } |
| 14361 | ::std::string* SourceCodeInfo_Location::release_leading_comments() { |
| 14362 | // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 14363 | clear_has_leading_comments(); |
| 14364 | return leading_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14365 | } |
| 14366 | void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) { |
| 14367 | if (leading_comments != NULL) { |
| 14368 | set_has_leading_comments(); |
| 14369 | } else { |
| 14370 | clear_has_leading_comments(); |
| 14371 | } |
| 14372 | leading_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leading_comments); |
| 14373 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments) |
| 14374 | } |
| 14375 | |
| 14376 | // optional string trailing_comments = 4; |
| 14377 | bool SourceCodeInfo_Location::has_trailing_comments() const { |
| 14378 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 14379 | } |
| 14380 | void SourceCodeInfo_Location::set_has_trailing_comments() { |
| 14381 | _has_bits_[0] |= 0x00000002u; |
| 14382 | } |
| 14383 | void SourceCodeInfo_Location::clear_has_trailing_comments() { |
| 14384 | _has_bits_[0] &= ~0x00000002u; |
| 14385 | } |
| 14386 | void SourceCodeInfo_Location::clear_trailing_comments() { |
| 14387 | trailing_comments_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14388 | clear_has_trailing_comments(); |
| 14389 | } |
| 14390 | const ::std::string& SourceCodeInfo_Location::trailing_comments() const { |
| 14391 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14392 | return trailing_comments_.GetNoArena(); |
| 14393 | } |
| 14394 | void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) { |
| 14395 | set_has_trailing_comments(); |
| 14396 | trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 14397 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14398 | } |
| 14399 | #if LANG_CXX11 |
| 14400 | void SourceCodeInfo_Location::set_trailing_comments(::std::string&& value) { |
| 14401 | set_has_trailing_comments(); |
| 14402 | trailing_comments_.SetNoArena( |
| 14403 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 14404 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14405 | } |
| 14406 | #endif |
| 14407 | void SourceCodeInfo_Location::set_trailing_comments(const char* value) { |
| 14408 | set_has_trailing_comments(); |
| 14409 | trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 14410 | // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14411 | } |
| 14412 | void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t size) { |
| 14413 | set_has_trailing_comments(); |
| 14414 | trailing_comments_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 14415 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 14416 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14417 | } |
| 14418 | ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() { |
| 14419 | set_has_trailing_comments(); |
| 14420 | // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14421 | return trailing_comments_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14422 | } |
| 14423 | ::std::string* SourceCodeInfo_Location::release_trailing_comments() { |
| 14424 | // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14425 | clear_has_trailing_comments(); |
| 14426 | return trailing_comments_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14427 | } |
| 14428 | void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) { |
| 14429 | if (trailing_comments != NULL) { |
| 14430 | set_has_trailing_comments(); |
| 14431 | } else { |
| 14432 | clear_has_trailing_comments(); |
| 14433 | } |
| 14434 | trailing_comments_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trailing_comments); |
| 14435 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments) |
| 14436 | } |
| 14437 | |
| 14438 | // repeated string leading_detached_comments = 6; |
| 14439 | int SourceCodeInfo_Location::leading_detached_comments_size() const { |
| 14440 | return leading_detached_comments_.size(); |
| 14441 | } |
| 14442 | void SourceCodeInfo_Location::clear_leading_detached_comments() { |
| 14443 | leading_detached_comments_.Clear(); |
| 14444 | } |
| 14445 | const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const { |
| 14446 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14447 | return leading_detached_comments_.Get(index); |
| 14448 | } |
| 14449 | ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) { |
| 14450 | // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14451 | return leading_detached_comments_.Mutable(index); |
| 14452 | } |
| 14453 | void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) { |
| 14454 | // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14455 | leading_detached_comments_.Mutable(index)->assign(value); |
| 14456 | } |
| 14457 | void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) { |
| 14458 | leading_detached_comments_.Mutable(index)->assign(value); |
| 14459 | // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14460 | } |
| 14461 | void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) { |
| 14462 | leading_detached_comments_.Mutable(index)->assign( |
| 14463 | reinterpret_cast<const char*>(value), size); |
| 14464 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14465 | } |
| 14466 | ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() { |
| 14467 | // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14468 | return leading_detached_comments_.Add(); |
| 14469 | } |
| 14470 | void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) { |
| 14471 | leading_detached_comments_.Add()->assign(value); |
| 14472 | // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14473 | } |
| 14474 | void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) { |
| 14475 | leading_detached_comments_.Add()->assign(value); |
| 14476 | // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14477 | } |
| 14478 | void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) { |
| 14479 | leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size); |
| 14480 | // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14481 | } |
| 14482 | const ::google::protobuf::RepeatedPtrField< ::std::string>& |
| 14483 | SourceCodeInfo_Location::leading_detached_comments() const { |
| 14484 | // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14485 | return leading_detached_comments_; |
| 14486 | } |
| 14487 | ::google::protobuf::RepeatedPtrField< ::std::string>* |
| 14488 | SourceCodeInfo_Location::mutable_leading_detached_comments() { |
| 14489 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments) |
| 14490 | return &leading_detached_comments_; |
| 14491 | } |
| 14492 | |
| 14493 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 14494 | |
| 14495 | // =================================================================== |
| 14496 | |
| 14497 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14498 | const int SourceCodeInfo::kLocationFieldNumber; |
| 14499 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14500 | |
| 14501 | SourceCodeInfo::SourceCodeInfo() |
| 14502 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 14503 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 14504 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 14505 | } |
| 14506 | SharedCtor(); |
| 14507 | // @@protoc_insertion_point(constructor:google.protobuf.SourceCodeInfo) |
| 14508 | } |
| 14509 | SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from) |
| 14510 | : ::google::protobuf::Message(), |
| 14511 | _internal_metadata_(NULL), |
| 14512 | _has_bits_(from._has_bits_), |
| 14513 | _cached_size_(0), |
| 14514 | location_(from.location_) { |
| 14515 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 14516 | // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo) |
| 14517 | } |
| 14518 | |
| 14519 | void SourceCodeInfo::SharedCtor() { |
| 14520 | _cached_size_ = 0; |
| 14521 | } |
| 14522 | |
| 14523 | SourceCodeInfo::~SourceCodeInfo() { |
| 14524 | // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo) |
| 14525 | SharedDtor(); |
| 14526 | } |
| 14527 | |
| 14528 | void SourceCodeInfo::SharedDtor() { |
| 14529 | } |
| 14530 | |
| 14531 | void SourceCodeInfo::SetCachedSize(int size) const { |
| 14532 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14533 | _cached_size_ = size; |
| 14534 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14535 | } |
| 14536 | const ::google::protobuf::Descriptor* SourceCodeInfo::descriptor() { |
| 14537 | protobuf_AssignDescriptorsOnce(); |
| 14538 | return file_level_metadata[22].descriptor; |
| 14539 | } |
| 14540 | |
| 14541 | const SourceCodeInfo& SourceCodeInfo::default_instance() { |
| 14542 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 14543 | return *internal_default_instance(); |
| 14544 | } |
| 14545 | |
| 14546 | SourceCodeInfo* SourceCodeInfo::New(::google::protobuf::Arena* arena) const { |
| 14547 | SourceCodeInfo* n = new SourceCodeInfo; |
| 14548 | if (arena != NULL) { |
| 14549 | arena->Own(n); |
| 14550 | } |
| 14551 | return n; |
| 14552 | } |
| 14553 | |
| 14554 | void SourceCodeInfo::Clear() { |
| 14555 | // @@protoc_insertion_point(message_clear_start:google.protobuf.SourceCodeInfo) |
| 14556 | location_.Clear(); |
| 14557 | _has_bits_.Clear(); |
| 14558 | _internal_metadata_.Clear(); |
| 14559 | } |
| 14560 | |
| 14561 | bool SourceCodeInfo::MergePartialFromCodedStream( |
| 14562 | ::google::protobuf::io::CodedInputStream* input) { |
| 14563 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 14564 | ::google::protobuf::uint32 tag; |
| 14565 | // @@protoc_insertion_point(parse_start:google.protobuf.SourceCodeInfo) |
| 14566 | for (;;) { |
| 14567 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 14568 | tag = p.first; |
| 14569 | if (!p.second) goto handle_unusual; |
| 14570 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 14571 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 14572 | case 1: { |
| 14573 | if (tag == 10u) { |
| 14574 | DO_(input->IncrementRecursionDepth()); |
| 14575 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 14576 | input, add_location())); |
| 14577 | } else { |
| 14578 | goto handle_unusual; |
| 14579 | } |
| 14580 | input->UnsafeDecrementRecursionDepth(); |
| 14581 | break; |
| 14582 | } |
| 14583 | |
| 14584 | default: { |
| 14585 | handle_unusual: |
| 14586 | if (tag == 0 || |
| 14587 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 14588 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 14589 | goto success; |
| 14590 | } |
| 14591 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 14592 | input, tag, mutable_unknown_fields())); |
| 14593 | break; |
| 14594 | } |
| 14595 | } |
| 14596 | } |
| 14597 | success: |
| 14598 | // @@protoc_insertion_point(parse_success:google.protobuf.SourceCodeInfo) |
| 14599 | return true; |
| 14600 | failure: |
| 14601 | // @@protoc_insertion_point(parse_failure:google.protobuf.SourceCodeInfo) |
| 14602 | return false; |
| 14603 | #undef DO_ |
| 14604 | } |
| 14605 | |
| 14606 | void SourceCodeInfo::SerializeWithCachedSizes( |
| 14607 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 14608 | // @@protoc_insertion_point(serialize_start:google.protobuf.SourceCodeInfo) |
| 14609 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 14610 | for (unsigned int i = 0, n = this->location_size(); i < n; i++) { |
| 14611 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 14612 | 1, this->location(i), output); |
| 14613 | } |
| 14614 | |
| 14615 | if (_internal_metadata_.have_unknown_fields()) { |
| 14616 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 14617 | unknown_fields(), output); |
| 14618 | } |
| 14619 | // @@protoc_insertion_point(serialize_end:google.protobuf.SourceCodeInfo) |
| 14620 | } |
| 14621 | |
| 14622 | ::google::protobuf::uint8* SourceCodeInfo::InternalSerializeWithCachedSizesToArray( |
| 14623 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 14624 | (void)deterministic; // Unused |
| 14625 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo) |
| 14626 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 14627 | for (unsigned int i = 0, n = this->location_size(); i < n; i++) { |
| 14628 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14629 | InternalWriteMessageNoVirtualToArray( |
| 14630 | 1, this->location(i), false, target); |
| 14631 | } |
| 14632 | |
| 14633 | if (_internal_metadata_.have_unknown_fields()) { |
| 14634 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 14635 | unknown_fields(), target); |
| 14636 | } |
| 14637 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.SourceCodeInfo) |
| 14638 | return target; |
| 14639 | } |
| 14640 | |
| 14641 | size_t SourceCodeInfo::ByteSizeLong() const { |
| 14642 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.SourceCodeInfo) |
| 14643 | size_t total_size = 0; |
| 14644 | |
| 14645 | if (_internal_metadata_.have_unknown_fields()) { |
| 14646 | total_size += |
| 14647 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 14648 | unknown_fields()); |
| 14649 | } |
| 14650 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 14651 | { |
| 14652 | unsigned int count = this->location_size(); |
| 14653 | total_size += 1UL * count; |
| 14654 | for (unsigned int i = 0; i < count; i++) { |
| 14655 | total_size += |
| 14656 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 14657 | this->location(i)); |
| 14658 | } |
| 14659 | } |
| 14660 | |
| 14661 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 14662 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14663 | _cached_size_ = cached_size; |
| 14664 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14665 | return total_size; |
| 14666 | } |
| 14667 | |
| 14668 | void SourceCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 14669 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.SourceCodeInfo) |
| 14670 | GOOGLE_DCHECK_NE(&from, this); |
| 14671 | const SourceCodeInfo* source = |
| 14672 | ::google::protobuf::internal::DynamicCastToGenerated<const SourceCodeInfo>( |
| 14673 | &from); |
| 14674 | if (source == NULL) { |
| 14675 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.SourceCodeInfo) |
| 14676 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 14677 | } else { |
| 14678 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.SourceCodeInfo) |
| 14679 | MergeFrom(*source); |
| 14680 | } |
| 14681 | } |
| 14682 | |
| 14683 | void SourceCodeInfo::MergeFrom(const SourceCodeInfo& from) { |
| 14684 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.SourceCodeInfo) |
| 14685 | GOOGLE_DCHECK_NE(&from, this); |
| 14686 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 14687 | location_.MergeFrom(from.location_); |
| 14688 | } |
| 14689 | |
| 14690 | void SourceCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 14691 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.SourceCodeInfo) |
| 14692 | if (&from == this) return; |
| 14693 | Clear(); |
| 14694 | MergeFrom(from); |
| 14695 | } |
| 14696 | |
| 14697 | void SourceCodeInfo::CopyFrom(const SourceCodeInfo& from) { |
| 14698 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.SourceCodeInfo) |
| 14699 | if (&from == this) return; |
| 14700 | Clear(); |
| 14701 | MergeFrom(from); |
| 14702 | } |
| 14703 | |
| 14704 | bool SourceCodeInfo::IsInitialized() const { |
| 14705 | return true; |
| 14706 | } |
| 14707 | |
| 14708 | void SourceCodeInfo::Swap(SourceCodeInfo* other) { |
| 14709 | if (other == this) return; |
| 14710 | InternalSwap(other); |
| 14711 | } |
| 14712 | void SourceCodeInfo::InternalSwap(SourceCodeInfo* other) { |
| 14713 | location_.UnsafeArenaSwap(&other->location_); |
| 14714 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 14715 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 14716 | std::swap(_cached_size_, other->_cached_size_); |
| 14717 | } |
| 14718 | |
| 14719 | ::google::protobuf::Metadata SourceCodeInfo::GetMetadata() const { |
| 14720 | protobuf_AssignDescriptorsOnce(); |
| 14721 | return file_level_metadata[22]; |
| 14722 | } |
| 14723 | |
| 14724 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 14725 | // SourceCodeInfo |
| 14726 | |
| 14727 | // repeated .google.protobuf.SourceCodeInfo.Location location = 1; |
| 14728 | int SourceCodeInfo::location_size() const { |
| 14729 | return location_.size(); |
| 14730 | } |
| 14731 | void SourceCodeInfo::clear_location() { |
| 14732 | location_.Clear(); |
| 14733 | } |
| 14734 | const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const { |
| 14735 | // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location) |
| 14736 | return location_.Get(index); |
| 14737 | } |
| 14738 | ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) { |
| 14739 | // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location) |
| 14740 | return location_.Mutable(index); |
| 14741 | } |
| 14742 | ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() { |
| 14743 | // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location) |
| 14744 | return location_.Add(); |
| 14745 | } |
| 14746 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >* |
| 14747 | SourceCodeInfo::mutable_location() { |
| 14748 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location) |
| 14749 | return &location_; |
| 14750 | } |
| 14751 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >& |
| 14752 | SourceCodeInfo::location() const { |
| 14753 | // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location) |
| 14754 | return location_; |
| 14755 | } |
| 14756 | |
| 14757 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 14758 | |
| 14759 | // =================================================================== |
| 14760 | |
| 14761 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14762 | const int GeneratedCodeInfo_Annotation::kPathFieldNumber; |
| 14763 | const int GeneratedCodeInfo_Annotation::kSourceFileFieldNumber; |
| 14764 | const int GeneratedCodeInfo_Annotation::kBeginFieldNumber; |
| 14765 | const int GeneratedCodeInfo_Annotation::kEndFieldNumber; |
| 14766 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14767 | |
| 14768 | GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation() |
| 14769 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 14770 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 14771 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 14772 | } |
| 14773 | SharedCtor(); |
| 14774 | // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14775 | } |
| 14776 | GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from) |
| 14777 | : ::google::protobuf::Message(), |
| 14778 | _internal_metadata_(NULL), |
| 14779 | _has_bits_(from._has_bits_), |
| 14780 | _cached_size_(0), |
| 14781 | path_(from.path_) { |
| 14782 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 14783 | source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14784 | if (from.has_source_file()) { |
| 14785 | source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_file_); |
| 14786 | } |
| 14787 | ::memcpy(&begin_, &from.begin_, |
| 14788 | reinterpret_cast<char*>(&end_) - |
| 14789 | reinterpret_cast<char*>(&begin_) + sizeof(end_)); |
| 14790 | // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14791 | } |
| 14792 | |
| 14793 | void GeneratedCodeInfo_Annotation::SharedCtor() { |
| 14794 | _cached_size_ = 0; |
| 14795 | source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14796 | ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) - |
| 14797 | reinterpret_cast<char*>(&begin_) + sizeof(end_)); |
| 14798 | } |
| 14799 | |
| 14800 | GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { |
| 14801 | // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14802 | SharedDtor(); |
| 14803 | } |
| 14804 | |
| 14805 | void GeneratedCodeInfo_Annotation::SharedDtor() { |
| 14806 | source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14807 | } |
| 14808 | |
| 14809 | void GeneratedCodeInfo_Annotation::SetCachedSize(int size) const { |
| 14810 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 14811 | _cached_size_ = size; |
| 14812 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 14813 | } |
| 14814 | const ::google::protobuf::Descriptor* GeneratedCodeInfo_Annotation::descriptor() { |
| 14815 | protobuf_AssignDescriptorsOnce(); |
| 14816 | return file_level_metadata[23].descriptor; |
| 14817 | } |
| 14818 | |
| 14819 | const GeneratedCodeInfo_Annotation& GeneratedCodeInfo_Annotation::default_instance() { |
| 14820 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 14821 | return *internal_default_instance(); |
| 14822 | } |
| 14823 | |
| 14824 | GeneratedCodeInfo_Annotation* GeneratedCodeInfo_Annotation::New(::google::protobuf::Arena* arena) const { |
| 14825 | GeneratedCodeInfo_Annotation* n = new GeneratedCodeInfo_Annotation; |
| 14826 | if (arena != NULL) { |
| 14827 | arena->Own(n); |
| 14828 | } |
| 14829 | return n; |
| 14830 | } |
| 14831 | |
| 14832 | void GeneratedCodeInfo_Annotation::Clear() { |
| 14833 | // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14834 | path_.Clear(); |
| 14835 | if (has_source_file()) { |
| 14836 | GOOGLE_DCHECK(!source_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); |
| 14837 | (*source_file_.UnsafeRawStringPointer())->clear(); |
| 14838 | } |
| 14839 | if (_has_bits_[0 / 32] & 6u) { |
| 14840 | ::memset(&begin_, 0, reinterpret_cast<char*>(&end_) - |
| 14841 | reinterpret_cast<char*>(&begin_) + sizeof(end_)); |
| 14842 | } |
| 14843 | _has_bits_.Clear(); |
| 14844 | _internal_metadata_.Clear(); |
| 14845 | } |
| 14846 | |
| 14847 | bool GeneratedCodeInfo_Annotation::MergePartialFromCodedStream( |
| 14848 | ::google::protobuf::io::CodedInputStream* input) { |
| 14849 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 14850 | ::google::protobuf::uint32 tag; |
| 14851 | // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14852 | for (;;) { |
| 14853 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 14854 | tag = p.first; |
| 14855 | if (!p.second) goto handle_unusual; |
| 14856 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 14857 | // repeated int32 path = 1 [packed = true]; |
| 14858 | case 1: { |
| 14859 | if (tag == 10u) { |
| 14860 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 14861 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 14862 | input, this->mutable_path()))); |
| 14863 | } else if (tag == 8u) { |
| 14864 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 14865 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 14866 | 1, 10u, input, this->mutable_path()))); |
| 14867 | } else { |
| 14868 | goto handle_unusual; |
| 14869 | } |
| 14870 | break; |
| 14871 | } |
| 14872 | |
| 14873 | // optional string source_file = 2; |
| 14874 | case 2: { |
| 14875 | if (tag == 18u) { |
| 14876 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 14877 | input, this->mutable_source_file())); |
| 14878 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14879 | this->source_file().data(), this->source_file().length(), |
| 14880 | ::google::protobuf::internal::WireFormat::PARSE, |
| 14881 | "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); |
| 14882 | } else { |
| 14883 | goto handle_unusual; |
| 14884 | } |
| 14885 | break; |
| 14886 | } |
| 14887 | |
| 14888 | // optional int32 begin = 3; |
| 14889 | case 3: { |
| 14890 | if (tag == 24u) { |
| 14891 | set_has_begin(); |
| 14892 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 14893 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 14894 | input, &begin_))); |
| 14895 | } else { |
| 14896 | goto handle_unusual; |
| 14897 | } |
| 14898 | break; |
| 14899 | } |
| 14900 | |
| 14901 | // optional int32 end = 4; |
| 14902 | case 4: { |
| 14903 | if (tag == 32u) { |
| 14904 | set_has_end(); |
| 14905 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 14906 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 14907 | input, &end_))); |
| 14908 | } else { |
| 14909 | goto handle_unusual; |
| 14910 | } |
| 14911 | break; |
| 14912 | } |
| 14913 | |
| 14914 | default: { |
| 14915 | handle_unusual: |
| 14916 | if (tag == 0 || |
| 14917 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 14918 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 14919 | goto success; |
| 14920 | } |
| 14921 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 14922 | input, tag, mutable_unknown_fields())); |
| 14923 | break; |
| 14924 | } |
| 14925 | } |
| 14926 | } |
| 14927 | success: |
| 14928 | // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14929 | return true; |
| 14930 | failure: |
| 14931 | // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14932 | return false; |
| 14933 | #undef DO_ |
| 14934 | } |
| 14935 | |
| 14936 | void GeneratedCodeInfo_Annotation::SerializeWithCachedSizes( |
| 14937 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 14938 | // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14939 | // repeated int32 path = 1 [packed = true]; |
| 14940 | if (this->path_size() > 0) { |
| 14941 | ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 14942 | output->WriteVarint32(_path_cached_byte_size_); |
| 14943 | } |
| 14944 | for (int i = 0; i < this->path_size(); i++) { |
| 14945 | ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
| 14946 | this->path(i), output); |
| 14947 | } |
| 14948 | |
| 14949 | // optional string source_file = 2; |
| 14950 | if (has_source_file()) { |
| 14951 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14952 | this->source_file().data(), this->source_file().length(), |
| 14953 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 14954 | "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); |
| 14955 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 14956 | 2, this->source_file(), output); |
| 14957 | } |
| 14958 | |
| 14959 | // optional int32 begin = 3; |
| 14960 | if (has_begin()) { |
| 14961 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->begin(), output); |
| 14962 | } |
| 14963 | |
| 14964 | // optional int32 end = 4; |
| 14965 | if (has_end()) { |
| 14966 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->end(), output); |
| 14967 | } |
| 14968 | |
| 14969 | if (_internal_metadata_.have_unknown_fields()) { |
| 14970 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 14971 | unknown_fields(), output); |
| 14972 | } |
| 14973 | // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14974 | } |
| 14975 | |
| 14976 | ::google::protobuf::uint8* GeneratedCodeInfo_Annotation::InternalSerializeWithCachedSizesToArray( |
| 14977 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 14978 | (void)deterministic; // Unused |
| 14979 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 14980 | // repeated int32 path = 1 [packed = true]; |
| 14981 | if (this->path_size() > 0) { |
| 14982 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 14983 | 1, |
| 14984 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 14985 | target); |
| 14986 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 14987 | _path_cached_byte_size_, target); |
| 14988 | } |
| 14989 | for (int i = 0; i < this->path_size(); i++) { |
| 14990 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14991 | WriteInt32NoTagToArray(this->path(i), target); |
| 14992 | } |
| 14993 | |
| 14994 | // optional string source_file = 2; |
| 14995 | if (has_source_file()) { |
| 14996 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
| 14997 | this->source_file().data(), this->source_file().length(), |
| 14998 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
| 14999 | "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); |
| 15000 | target = |
| 15001 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 15002 | 2, this->source_file(), target); |
| 15003 | } |
| 15004 | |
| 15005 | // optional int32 begin = 3; |
| 15006 | if (has_begin()) { |
| 15007 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->begin(), target); |
| 15008 | } |
| 15009 | |
| 15010 | // optional int32 end = 4; |
| 15011 | if (has_end()) { |
| 15012 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->end(), target); |
| 15013 | } |
| 15014 | |
| 15015 | if (_internal_metadata_.have_unknown_fields()) { |
| 15016 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 15017 | unknown_fields(), target); |
| 15018 | } |
| 15019 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo.Annotation) |
| 15020 | return target; |
| 15021 | } |
| 15022 | |
| 15023 | size_t GeneratedCodeInfo_Annotation::ByteSizeLong() const { |
| 15024 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 15025 | size_t total_size = 0; |
| 15026 | |
| 15027 | if (_internal_metadata_.have_unknown_fields()) { |
| 15028 | total_size += |
| 15029 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 15030 | unknown_fields()); |
| 15031 | } |
| 15032 | // repeated int32 path = 1 [packed = true]; |
| 15033 | { |
| 15034 | size_t data_size = 0; |
| 15035 | unsigned int count = this->path_size(); |
| 15036 | for (unsigned int i = 0; i < count; i++) { |
| 15037 | data_size += ::google::protobuf::internal::WireFormatLite:: |
| 15038 | Int32Size(this->path(i)); |
| 15039 | } |
| 15040 | if (data_size > 0) { |
| 15041 | total_size += 1 + |
| 15042 | ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); |
| 15043 | } |
| 15044 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
| 15045 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 15046 | _path_cached_byte_size_ = cached_size; |
| 15047 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 15048 | total_size += data_size; |
| 15049 | } |
| 15050 | |
| 15051 | if (_has_bits_[0 / 32] & 7u) { |
| 15052 | // optional string source_file = 2; |
| 15053 | if (has_source_file()) { |
| 15054 | total_size += 1 + |
| 15055 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 15056 | this->source_file()); |
| 15057 | } |
| 15058 | |
| 15059 | // optional int32 begin = 3; |
| 15060 | if (has_begin()) { |
| 15061 | total_size += 1 + |
| 15062 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 15063 | this->begin()); |
| 15064 | } |
| 15065 | |
| 15066 | // optional int32 end = 4; |
| 15067 | if (has_end()) { |
| 15068 | total_size += 1 + |
| 15069 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 15070 | this->end()); |
| 15071 | } |
| 15072 | |
| 15073 | } |
| 15074 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 15075 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 15076 | _cached_size_ = cached_size; |
| 15077 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 15078 | return total_size; |
| 15079 | } |
| 15080 | |
| 15081 | void GeneratedCodeInfo_Annotation::MergeFrom(const ::google::protobuf::Message& from) { |
| 15082 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 15083 | GOOGLE_DCHECK_NE(&from, this); |
| 15084 | const GeneratedCodeInfo_Annotation* source = |
| 15085 | ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo_Annotation>( |
| 15086 | &from); |
| 15087 | if (source == NULL) { |
| 15088 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.GeneratedCodeInfo.Annotation) |
| 15089 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 15090 | } else { |
| 15091 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo.Annotation) |
| 15092 | MergeFrom(*source); |
| 15093 | } |
| 15094 | } |
| 15095 | |
| 15096 | void GeneratedCodeInfo_Annotation::MergeFrom(const GeneratedCodeInfo_Annotation& from) { |
| 15097 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 15098 | GOOGLE_DCHECK_NE(&from, this); |
| 15099 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 15100 | path_.MergeFrom(from.path_); |
| 15101 | if (from._has_bits_[0 / 32] & 7u) { |
| 15102 | if (from.has_source_file()) { |
| 15103 | set_has_source_file(); |
| 15104 | source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_file_); |
| 15105 | } |
| 15106 | if (from.has_begin()) { |
| 15107 | set_begin(from.begin()); |
| 15108 | } |
| 15109 | if (from.has_end()) { |
| 15110 | set_end(from.end()); |
| 15111 | } |
| 15112 | } |
| 15113 | } |
| 15114 | |
| 15115 | void GeneratedCodeInfo_Annotation::CopyFrom(const ::google::protobuf::Message& from) { |
| 15116 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 15117 | if (&from == this) return; |
| 15118 | Clear(); |
| 15119 | MergeFrom(from); |
| 15120 | } |
| 15121 | |
| 15122 | void GeneratedCodeInfo_Annotation::CopyFrom(const GeneratedCodeInfo_Annotation& from) { |
| 15123 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo.Annotation) |
| 15124 | if (&from == this) return; |
| 15125 | Clear(); |
| 15126 | MergeFrom(from); |
| 15127 | } |
| 15128 | |
| 15129 | bool GeneratedCodeInfo_Annotation::IsInitialized() const { |
| 15130 | return true; |
| 15131 | } |
| 15132 | |
| 15133 | void GeneratedCodeInfo_Annotation::Swap(GeneratedCodeInfo_Annotation* other) { |
| 15134 | if (other == this) return; |
| 15135 | InternalSwap(other); |
| 15136 | } |
| 15137 | void GeneratedCodeInfo_Annotation::InternalSwap(GeneratedCodeInfo_Annotation* other) { |
| 15138 | path_.UnsafeArenaSwap(&other->path_); |
| 15139 | source_file_.Swap(&other->source_file_); |
| 15140 | std::swap(begin_, other->begin_); |
| 15141 | std::swap(end_, other->end_); |
| 15142 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 15143 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 15144 | std::swap(_cached_size_, other->_cached_size_); |
| 15145 | } |
| 15146 | |
| 15147 | ::google::protobuf::Metadata GeneratedCodeInfo_Annotation::GetMetadata() const { |
| 15148 | protobuf_AssignDescriptorsOnce(); |
| 15149 | return file_level_metadata[23]; |
| 15150 | } |
| 15151 | |
| 15152 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 15153 | // GeneratedCodeInfo_Annotation |
| 15154 | |
| 15155 | // repeated int32 path = 1 [packed = true]; |
| 15156 | int GeneratedCodeInfo_Annotation::path_size() const { |
| 15157 | return path_.size(); |
| 15158 | } |
| 15159 | void GeneratedCodeInfo_Annotation::clear_path() { |
| 15160 | path_.Clear(); |
| 15161 | } |
| 15162 | ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const { |
| 15163 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 15164 | return path_.Get(index); |
| 15165 | } |
| 15166 | void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32 value) { |
| 15167 | path_.Set(index, value); |
| 15168 | // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 15169 | } |
| 15170 | void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) { |
| 15171 | path_.Add(value); |
| 15172 | // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 15173 | } |
| 15174 | const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& |
| 15175 | GeneratedCodeInfo_Annotation::path() const { |
| 15176 | // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 15177 | return path_; |
| 15178 | } |
| 15179 | ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* |
| 15180 | GeneratedCodeInfo_Annotation::mutable_path() { |
| 15181 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path) |
| 15182 | return &path_; |
| 15183 | } |
| 15184 | |
| 15185 | // optional string source_file = 2; |
| 15186 | bool GeneratedCodeInfo_Annotation::has_source_file() const { |
| 15187 | return (_has_bits_[0] & 0x00000001u) != 0; |
| 15188 | } |
| 15189 | void GeneratedCodeInfo_Annotation::set_has_source_file() { |
| 15190 | _has_bits_[0] |= 0x00000001u; |
| 15191 | } |
| 15192 | void GeneratedCodeInfo_Annotation::clear_has_source_file() { |
| 15193 | _has_bits_[0] &= ~0x00000001u; |
| 15194 | } |
| 15195 | void GeneratedCodeInfo_Annotation::clear_source_file() { |
| 15196 | source_file_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 15197 | clear_has_source_file(); |
| 15198 | } |
| 15199 | const ::std::string& GeneratedCodeInfo_Annotation::source_file() const { |
| 15200 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 15201 | return source_file_.GetNoArena(); |
| 15202 | } |
| 15203 | void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) { |
| 15204 | set_has_source_file(); |
| 15205 | source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 15206 | // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 15207 | } |
| 15208 | #if LANG_CXX11 |
| 15209 | void GeneratedCodeInfo_Annotation::set_source_file(::std::string&& value) { |
| 15210 | set_has_source_file(); |
| 15211 | source_file_.SetNoArena( |
| 15212 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 15213 | // @@protoc_insertion_point(field_set_rvalue:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 15214 | } |
| 15215 | #endif |
| 15216 | void GeneratedCodeInfo_Annotation::set_source_file(const char* value) { |
| 15217 | set_has_source_file(); |
| 15218 | source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 15219 | // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 15220 | } |
| 15221 | void GeneratedCodeInfo_Annotation::set_source_file(const char* value, size_t size) { |
| 15222 | set_has_source_file(); |
| 15223 | source_file_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 15224 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 15225 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 15226 | } |
| 15227 | ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() { |
| 15228 | set_has_source_file(); |
| 15229 | // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 15230 | return source_file_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 15231 | } |
| 15232 | ::std::string* GeneratedCodeInfo_Annotation::release_source_file() { |
| 15233 | // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 15234 | clear_has_source_file(); |
| 15235 | return source_file_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 15236 | } |
| 15237 | void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* source_file) { |
| 15238 | if (source_file != NULL) { |
| 15239 | set_has_source_file(); |
| 15240 | } else { |
| 15241 | clear_has_source_file(); |
| 15242 | } |
| 15243 | source_file_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_file); |
| 15244 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file) |
| 15245 | } |
| 15246 | |
| 15247 | // optional int32 begin = 3; |
| 15248 | bool GeneratedCodeInfo_Annotation::has_begin() const { |
| 15249 | return (_has_bits_[0] & 0x00000002u) != 0; |
| 15250 | } |
| 15251 | void GeneratedCodeInfo_Annotation::set_has_begin() { |
| 15252 | _has_bits_[0] |= 0x00000002u; |
| 15253 | } |
| 15254 | void GeneratedCodeInfo_Annotation::clear_has_begin() { |
| 15255 | _has_bits_[0] &= ~0x00000002u; |
| 15256 | } |
| 15257 | void GeneratedCodeInfo_Annotation::clear_begin() { |
| 15258 | begin_ = 0; |
| 15259 | clear_has_begin(); |
| 15260 | } |
| 15261 | ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const { |
| 15262 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin) |
| 15263 | return begin_; |
| 15264 | } |
| 15265 | void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) { |
| 15266 | set_has_begin(); |
| 15267 | begin_ = value; |
| 15268 | // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin) |
| 15269 | } |
| 15270 | |
| 15271 | // optional int32 end = 4; |
| 15272 | bool GeneratedCodeInfo_Annotation::has_end() const { |
| 15273 | return (_has_bits_[0] & 0x00000004u) != 0; |
| 15274 | } |
| 15275 | void GeneratedCodeInfo_Annotation::set_has_end() { |
| 15276 | _has_bits_[0] |= 0x00000004u; |
| 15277 | } |
| 15278 | void GeneratedCodeInfo_Annotation::clear_has_end() { |
| 15279 | _has_bits_[0] &= ~0x00000004u; |
| 15280 | } |
| 15281 | void GeneratedCodeInfo_Annotation::clear_end() { |
| 15282 | end_ = 0; |
| 15283 | clear_has_end(); |
| 15284 | } |
| 15285 | ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const { |
| 15286 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end) |
| 15287 | return end_; |
| 15288 | } |
| 15289 | void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) { |
| 15290 | set_has_end(); |
| 15291 | end_ = value; |
| 15292 | // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end) |
| 15293 | } |
| 15294 | |
| 15295 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 15296 | |
| 15297 | // =================================================================== |
| 15298 | |
| 15299 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 15300 | const int GeneratedCodeInfo::kAnnotationFieldNumber; |
| 15301 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 15302 | |
| 15303 | GeneratedCodeInfo::GeneratedCodeInfo() |
| 15304 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 15305 | if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { |
| 15306 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 15307 | } |
| 15308 | SharedCtor(); |
| 15309 | // @@protoc_insertion_point(constructor:google.protobuf.GeneratedCodeInfo) |
| 15310 | } |
| 15311 | GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) |
| 15312 | : ::google::protobuf::Message(), |
| 15313 | _internal_metadata_(NULL), |
| 15314 | _has_bits_(from._has_bits_), |
| 15315 | _cached_size_(0), |
| 15316 | annotation_(from.annotation_) { |
| 15317 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 15318 | // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo) |
| 15319 | } |
| 15320 | |
| 15321 | void GeneratedCodeInfo::SharedCtor() { |
| 15322 | _cached_size_ = 0; |
| 15323 | } |
| 15324 | |
| 15325 | GeneratedCodeInfo::~GeneratedCodeInfo() { |
| 15326 | // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo) |
| 15327 | SharedDtor(); |
| 15328 | } |
| 15329 | |
| 15330 | void GeneratedCodeInfo::SharedDtor() { |
| 15331 | } |
| 15332 | |
| 15333 | void GeneratedCodeInfo::SetCachedSize(int size) const { |
| 15334 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 15335 | _cached_size_ = size; |
| 15336 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 15337 | } |
| 15338 | const ::google::protobuf::Descriptor* GeneratedCodeInfo::descriptor() { |
| 15339 | protobuf_AssignDescriptorsOnce(); |
| 15340 | return file_level_metadata[24].descriptor; |
| 15341 | } |
| 15342 | |
| 15343 | const GeneratedCodeInfo& GeneratedCodeInfo::default_instance() { |
| 15344 | protobuf_InitDefaults_google_2fprotobuf_2fdescriptor_2eproto(); |
| 15345 | return *internal_default_instance(); |
| 15346 | } |
| 15347 | |
| 15348 | GeneratedCodeInfo* GeneratedCodeInfo::New(::google::protobuf::Arena* arena) const { |
| 15349 | GeneratedCodeInfo* n = new GeneratedCodeInfo; |
| 15350 | if (arena != NULL) { |
| 15351 | arena->Own(n); |
| 15352 | } |
| 15353 | return n; |
| 15354 | } |
| 15355 | |
| 15356 | void GeneratedCodeInfo::Clear() { |
| 15357 | // @@protoc_insertion_point(message_clear_start:google.protobuf.GeneratedCodeInfo) |
| 15358 | annotation_.Clear(); |
| 15359 | _has_bits_.Clear(); |
| 15360 | _internal_metadata_.Clear(); |
| 15361 | } |
| 15362 | |
| 15363 | bool GeneratedCodeInfo::MergePartialFromCodedStream( |
| 15364 | ::google::protobuf::io::CodedInputStream* input) { |
| 15365 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 15366 | ::google::protobuf::uint32 tag; |
| 15367 | // @@protoc_insertion_point(parse_start:google.protobuf.GeneratedCodeInfo) |
| 15368 | for (;;) { |
| 15369 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 15370 | tag = p.first; |
| 15371 | if (!p.second) goto handle_unusual; |
| 15372 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 15373 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 15374 | case 1: { |
| 15375 | if (tag == 10u) { |
| 15376 | DO_(input->IncrementRecursionDepth()); |
| 15377 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( |
| 15378 | input, add_annotation())); |
| 15379 | } else { |
| 15380 | goto handle_unusual; |
| 15381 | } |
| 15382 | input->UnsafeDecrementRecursionDepth(); |
| 15383 | break; |
| 15384 | } |
| 15385 | |
| 15386 | default: { |
| 15387 | handle_unusual: |
| 15388 | if (tag == 0 || |
| 15389 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 15390 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 15391 | goto success; |
| 15392 | } |
| 15393 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 15394 | input, tag, mutable_unknown_fields())); |
| 15395 | break; |
| 15396 | } |
| 15397 | } |
| 15398 | } |
| 15399 | success: |
| 15400 | // @@protoc_insertion_point(parse_success:google.protobuf.GeneratedCodeInfo) |
| 15401 | return true; |
| 15402 | failure: |
| 15403 | // @@protoc_insertion_point(parse_failure:google.protobuf.GeneratedCodeInfo) |
| 15404 | return false; |
| 15405 | #undef DO_ |
| 15406 | } |
| 15407 | |
| 15408 | void GeneratedCodeInfo::SerializeWithCachedSizes( |
| 15409 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 15410 | // @@protoc_insertion_point(serialize_start:google.protobuf.GeneratedCodeInfo) |
| 15411 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 15412 | for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) { |
| 15413 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 15414 | 1, this->annotation(i), output); |
| 15415 | } |
| 15416 | |
| 15417 | if (_internal_metadata_.have_unknown_fields()) { |
| 15418 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 15419 | unknown_fields(), output); |
| 15420 | } |
| 15421 | // @@protoc_insertion_point(serialize_end:google.protobuf.GeneratedCodeInfo) |
| 15422 | } |
| 15423 | |
| 15424 | ::google::protobuf::uint8* GeneratedCodeInfo::InternalSerializeWithCachedSizesToArray( |
| 15425 | bool deterministic, ::google::protobuf::uint8* target) const { |
| 15426 | (void)deterministic; // Unused |
| 15427 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo) |
| 15428 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 15429 | for (unsigned int i = 0, n = this->annotation_size(); i < n; i++) { |
| 15430 | target = ::google::protobuf::internal::WireFormatLite:: |
| 15431 | InternalWriteMessageNoVirtualToArray( |
| 15432 | 1, this->annotation(i), false, target); |
| 15433 | } |
| 15434 | |
| 15435 | if (_internal_metadata_.have_unknown_fields()) { |
| 15436 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 15437 | unknown_fields(), target); |
| 15438 | } |
| 15439 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo) |
| 15440 | return target; |
| 15441 | } |
| 15442 | |
| 15443 | size_t GeneratedCodeInfo::ByteSizeLong() const { |
| 15444 | // @@protoc_insertion_point(message_byte_size_start:google.protobuf.GeneratedCodeInfo) |
| 15445 | size_t total_size = 0; |
| 15446 | |
| 15447 | if (_internal_metadata_.have_unknown_fields()) { |
| 15448 | total_size += |
| 15449 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 15450 | unknown_fields()); |
| 15451 | } |
| 15452 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 15453 | { |
| 15454 | unsigned int count = this->annotation_size(); |
| 15455 | total_size += 1UL * count; |
| 15456 | for (unsigned int i = 0; i < count; i++) { |
| 15457 | total_size += |
| 15458 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 15459 | this->annotation(i)); |
| 15460 | } |
| 15461 | } |
| 15462 | |
| 15463 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 15464 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 15465 | _cached_size_ = cached_size; |
| 15466 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 15467 | return total_size; |
| 15468 | } |
| 15469 | |
| 15470 | void GeneratedCodeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 15471 | // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.GeneratedCodeInfo) |
| 15472 | GOOGLE_DCHECK_NE(&from, this); |
| 15473 | const GeneratedCodeInfo* source = |
| 15474 | ::google::protobuf::internal::DynamicCastToGenerated<const GeneratedCodeInfo>( |
| 15475 | &from); |
| 15476 | if (source == NULL) { |
| 15477 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.GeneratedCodeInfo) |
| 15478 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 15479 | } else { |
| 15480 | // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.GeneratedCodeInfo) |
| 15481 | MergeFrom(*source); |
| 15482 | } |
| 15483 | } |
| 15484 | |
| 15485 | void GeneratedCodeInfo::MergeFrom(const GeneratedCodeInfo& from) { |
| 15486 | // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.GeneratedCodeInfo) |
| 15487 | GOOGLE_DCHECK_NE(&from, this); |
| 15488 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 15489 | annotation_.MergeFrom(from.annotation_); |
| 15490 | } |
| 15491 | |
| 15492 | void GeneratedCodeInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 15493 | // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.GeneratedCodeInfo) |
| 15494 | if (&from == this) return; |
| 15495 | Clear(); |
| 15496 | MergeFrom(from); |
| 15497 | } |
| 15498 | |
| 15499 | void GeneratedCodeInfo::CopyFrom(const GeneratedCodeInfo& from) { |
| 15500 | // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.GeneratedCodeInfo) |
| 15501 | if (&from == this) return; |
| 15502 | Clear(); |
| 15503 | MergeFrom(from); |
| 15504 | } |
| 15505 | |
| 15506 | bool GeneratedCodeInfo::IsInitialized() const { |
| 15507 | return true; |
| 15508 | } |
| 15509 | |
| 15510 | void GeneratedCodeInfo::Swap(GeneratedCodeInfo* other) { |
| 15511 | if (other == this) return; |
| 15512 | InternalSwap(other); |
| 15513 | } |
| 15514 | void GeneratedCodeInfo::InternalSwap(GeneratedCodeInfo* other) { |
| 15515 | annotation_.UnsafeArenaSwap(&other->annotation_); |
| 15516 | std::swap(_has_bits_[0], other->_has_bits_[0]); |
| 15517 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 15518 | std::swap(_cached_size_, other->_cached_size_); |
| 15519 | } |
| 15520 | |
| 15521 | ::google::protobuf::Metadata GeneratedCodeInfo::GetMetadata() const { |
| 15522 | protobuf_AssignDescriptorsOnce(); |
| 15523 | return file_level_metadata[24]; |
| 15524 | } |
| 15525 | |
| 15526 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 15527 | // GeneratedCodeInfo |
| 15528 | |
| 15529 | // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; |
| 15530 | int GeneratedCodeInfo::annotation_size() const { |
| 15531 | return annotation_.size(); |
| 15532 | } |
| 15533 | void GeneratedCodeInfo::clear_annotation() { |
| 15534 | annotation_.Clear(); |
| 15535 | } |
| 15536 | const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const { |
| 15537 | // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation) |
| 15538 | return annotation_.Get(index); |
| 15539 | } |
| 15540 | ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) { |
| 15541 | // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation) |
| 15542 | return annotation_.Mutable(index); |
| 15543 | } |
| 15544 | ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() { |
| 15545 | // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation) |
| 15546 | return annotation_.Add(); |
| 15547 | } |
| 15548 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >* |
| 15549 | GeneratedCodeInfo::mutable_annotation() { |
| 15550 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation) |
| 15551 | return &annotation_; |
| 15552 | } |
| 15553 | const ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >& |
| 15554 | GeneratedCodeInfo::annotation() const { |
| 15555 | // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation) |
| 15556 | return annotation_; |
| 15557 | } |
| 15558 | |
| 15559 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 15560 | |
| 15561 | // @@protoc_insertion_point(namespace_scope) |
| 15562 | |
| 15563 | } // namespace protobuf |
| 15564 | } // namespace google |
| 15565 | |
| 15566 | // @@protoc_insertion_point(global_scope) |