Home
last modified time | relevance | path

Searched refs:TYPE_ENUM (Results 1 – 25 of 54) sorted by relevance

123

/third_party/protobuf/php/src/Google/Protobuf/Internal/FieldDescriptorProto/
DType.php87 const TYPE_ENUM = 14; define in Google\\Protobuf\\Internal\\FieldDescriptorProto\\Type
123 self::TYPE_ENUM => 'TYPE_ENUM',
/third_party/protobuf/php/src/Google/Protobuf/Field/
DKind.php105 const TYPE_ENUM = 14; define in Google\\Protobuf\\Field\\Kind
146 self::TYPE_ENUM => 'TYPE_ENUM',
/third_party/protobuf/python/google/protobuf/internal/
Dtype_checkers.py332 _FieldDescriptor.TYPE_ENUM: wire_format.EnumByteSize,
355 _FieldDescriptor.TYPE_ENUM: encoder.EnumEncoder,
378 _FieldDescriptor.TYPE_ENUM: encoder.EnumSizer,
401 _FieldDescriptor.TYPE_ENUM: decoder.EnumDecoder,
426 _FieldDescriptor.TYPE_ENUM: wire_format.WIRETYPE_VARINT,
/third_party/protobuf/src/google/protobuf/
Dextension_set_inl.h69 case WireFormatLite::TYPE_ENUM: in ParseFieldWithExtensionInfo()
143 case WireFormatLite::TYPE_ENUM: { in ParseFieldWithExtensionInfo()
153 AddEnum(number, WireFormatLite::TYPE_ENUM, extension.is_packed, value, in ParseFieldWithExtensionInfo()
156 SetEnum(number, WireFormatLite::TYPE_ENUM, value, in ParseFieldWithExtensionInfo()
Dgenerated_message_table_driven_lite.h307 (!WireFormatLite::ReadPrimitive<int, WireFormatLite::TYPE_ENUM>( in HandleEnum()
592 case WireFormatLite::TYPE_ENUM: { in MergePartialFromCodedStreamInlined()
601 case WireFormatLite::TYPE_ENUM | kRepeatedMask: { in MergePartialFromCodedStreamInlined()
610 case WireFormatLite::TYPE_ENUM | kOneofMask: { in MergePartialFromCodedStreamInlined()
787 case WireFormatLite::TYPE_ENUM: { in MergePartialFromCodedStreamInlined()
806 int, WireFormatLite::TYPE_ENUM>(input, &value)))) { in MergePartialFromCodedStreamInlined()
Dwire_format.cc180 if (!WireFormatLite::ReadPrimitive<int, WireFormatLite::TYPE_ENUM>( in ReadPackedEnumPreserveUnknowns()
482 case FieldDescriptor::TYPE_ENUM: { in ParseAndMergeField()
485 if (!WireFormatLite::ReadPrimitive<int, WireFormatLite::TYPE_ENUM>( in ParseAndMergeField()
555 case FieldDescriptor::TYPE_ENUM: { in ParseAndMergeField()
557 if (!WireFormatLite::ReadPrimitive<int, WireFormatLite::TYPE_ENUM>( in ParseAndMergeField()
859 case FieldDescriptor::TYPE_ENUM: { in _InternalParseAndMergeField()
961 case FieldDescriptor::TYPE_ENUM: { in _InternalParseAndMergeField()
1074 case FieldDescriptor::TYPE_ENUM: in SerializeMapKeyWithCachedSizes()
1374 case FieldDescriptor::TYPE_ENUM: { in InternalSerializeField()
1536 case FieldDescriptor::TYPE_ENUM: in MapKeyDataOnlyByteSize()
[all …]
Dextension_set.cc140 GOOGLE_CHECK_NE(type, WireFormatLite::TYPE_ENUM); in RegisterExtension()
164 GOOGLE_CHECK_EQ(type, WireFormatLite::TYPE_ENUM); in RegisterEnumExtension()
1264 case WireFormatLite::TYPE_ENUM: in ParseFieldWithExtensionInfo()
1267 if (!WireFormatLite::ReadPrimitive<int, WireFormatLite::TYPE_ENUM>( in ParseFieldWithExtensionInfo()
1272 AddEnum(number, WireFormatLite::TYPE_ENUM, extension.is_packed, in ParseFieldWithExtensionInfo()
1323 case WireFormatLite::TYPE_ENUM: { in ParseFieldWithExtensionInfo()
1325 if (!WireFormatLite::ReadPrimitive<int, WireFormatLite::TYPE_ENUM>( in ParseFieldWithExtensionInfo()
1334 AddEnum(number, WireFormatLite::TYPE_ENUM, extension.is_packed, value, in ParseFieldWithExtensionInfo()
1337 SetEnum(number, WireFormatLite::TYPE_ENUM, value, in ParseFieldWithExtensionInfo()
Dgenerated_message_util.cc206 struct PrimitiveTypeHelper<WireFormatLite::TYPE_ENUM>
640 SERIALIZERS_FOR_TYPE(WireFormatLite::TYPE_ENUM); in SerializeInternal()
685 SERIALIZERS_FOR_TYPE(WireFormatLite::TYPE_ENUM); in SerializeInternalToArray()
Ddescriptor_unittest.cc672 FieldDescriptorProto::TYPE_ENUM) in SetUp()
972 EXPECT_EQ(FieldDescriptor::TYPE_ENUM, bar_->type()); in TEST_F()
1877 FieldDescriptorProto::TYPE_ENUM) in SetUp()
1945 EXPECT_EQ(FieldDescriptor::TYPE_ENUM, foo_file_->extension(1)->type()); in TEST_F()
2294 } else if (type == FieldDescriptor::TYPE_ENUM) { in GetFieldDescriptorOfType()
2359 EXPECT_STREQ("enum", GetTypeNameForFieldType(FD::TYPE_ENUM)); in TEST_F()
2384 EXPECT_STREQ("enum", FD::TypeName(FD::TYPE_ENUM)); in TEST_F()
2409 EXPECT_EQ(FD::CPPTYPE_ENUM, GetCppTypeForFieldType(FD::TYPE_ENUM)); in TEST_F()
2434 EXPECT_STREQ("enum", GetCppTypeNameForFieldType(FD::TYPE_ENUM)); in TEST_F()
2476 EXPECT_TRUE(nullptr == GetMessageDescriptorForFieldType(FD::TYPE_ENUM)); in TEST_F()
[all …]
Dtype.proto95 TYPE_ENUM = 14; enumerator
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_field_base.cc212 case FieldDescriptor::TYPE_ENUM: in type_name()
268 case FieldDescriptor::TYPE_ENUM: in has_default_value()
339 case FieldDescriptor::TYPE_ENUM: in default_value()
414 case FieldDescriptor::TYPE_ENUM: in capitalized_type_name()
Dcsharp_helpers.cc91 case FieldDescriptor::TYPE_ENUM: in GetCSharpType()
448 case FieldDescriptor::TYPE_ENUM : return -1; in GetFixedSize()
531 case FieldDescriptor::TYPE_ENUM: in CreateFieldGenerator()
560 case FieldDescriptor::TYPE_ENUM: in IsNullable()
/third_party/protobuf/src/google/protobuf/util/
Dtype_resolver_util_test.cc230 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, Field::TYPE_ENUM, in TEST_F()
232 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, Field::TYPE_ENUM, in TEST_F()
291 EXPECT_TRUE(HasField(type, Field::CARDINALITY_REPEATED, Field::TYPE_ENUM, in TEST_F()
293 EXPECT_TRUE(HasField(type, Field::CARDINALITY_REPEATED, Field::TYPE_ENUM, in TEST_F()
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.cc350 case FieldDescriptor::TYPE_ENUM: in GetJavaType()
476 case FieldDescriptor::TYPE_ENUM: in FieldTypeName()
758 case FieldDescriptor::TYPE_ENUM: in GetCapitalizedType()
804 case FieldDescriptor::TYPE_ENUM: in FixedSize()
/third_party/protobuf/src/google/protobuf/util/internal/
Ddatapiece.h71 TYPE_ENUM = 8, enumerator
Ddatapiece.cc411 case TYPE_ENUM: in InternalCopy()
/third_party/protobuf/python/google/protobuf/
Ddescriptor_pool.py1060 field_proto.type = descriptor.FieldDescriptor.TYPE_ENUM
1069 if field_proto.type == descriptor.FieldDescriptor.TYPE_ENUM:
1084 elif field_proto.type == descriptor.FieldDescriptor.TYPE_ENUM:
1104 elif field_proto.type == descriptor.FieldDescriptor.TYPE_ENUM:
Ddescriptor.py474 TYPE_ENUM = 14 variable in FieldDescriptor
500 TYPE_ENUM: CPPTYPE_ENUM,
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_map_field.cc85 if (!IsProto3Field(descriptor) && val->type() == FieldDescriptor::TYPE_ENUM) { in SetMessageVariables()
Dcpp_primitive_field.cc81 case FieldDescriptor::TYPE_ENUM: in FixedSize()
Dcpp_helpers.cc618 case FieldDescriptor::TYPE_ENUM: in DeclaredTypeMethodName()
1535 if (field->type() == FieldDescriptor::TYPE_ENUM && in GenerateLengthDelim()
1568 if (val->type() == FieldDescriptor::TYPE_ENUM && in GenerateLengthDelim()
1657 if (field->type() == FieldDescriptor::TYPE_ENUM) { in GenerateFieldBody()
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc107 case FieldDescriptor::TYPE_ENUM: return "enum"; in TypeName()
470 (field->type() == FieldDescriptor::TYPE_ENUM && in UsesTypeFromFile()
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_field.cc91 if (descriptor->type() == FieldDescriptor::TYPE_ENUM) { in SetCommonFieldVariables()
/third_party/protobuf/conformance/
Dbinary_json_conformance_suite.cc158 case FieldDescriptor::TYPE_ENUM: in GetDefaultValue()
191 case FieldDescriptor::TYPE_ENUM: in GetNonDefaultValue()
332 case FieldDescriptor::TYPE_ENUM: in IsProto3Default()
1458 TestValidDataForType(FieldDescriptor::TYPE_ENUM, in RunSuiteImpl()
1507 FieldDescriptor::TYPE_ENUM); in RunSuiteImpl()
1520 TestValidDataForOneofType(FieldDescriptor::TYPE_ENUM); in RunSuiteImpl()
/third_party/protobuf/src/google/protobuf/compiler/php/
Dphp_generator.cc317 case FieldDescriptor::TYPE_ENUM: return "0"; in DefaultForField()
453 case FieldDescriptor::TYPE_ENUM: return "enum"; in TypeName()
473 case FieldDescriptor::TYPE_ENUM: in PhpSetterTypeName()
525 case FieldDescriptor::TYPE_ENUM: return "int"; in PhpGetterTypeName()

123