Searched refs:enm (Results 1 – 2 of 2) sorted by relevance
3158 void ValidateEnumOptions(EnumDescriptor* enm,3172 void ValidateProto3Enum(EnumDescriptor* enm,5249 EnumDescriptor* enm, const EnumDescriptorProto& proto) { in ValidateProto3Enum() argument5250 if (enm->value_count() > 0 && enm->value(0)->number() != 0) { in ValidateProto3Enum()5252 enm->full_name(), proto, DescriptorPool::ErrorCollector::OTHER, in ValidateProto3Enum()5343 void DescriptorBuilder::ValidateEnumOptions(EnumDescriptor* enm, in ValidateEnumOptions() argument5345 VALIDATE_OPTIONS_FROM_ARRAY(enm, value, EnumValue); in ValidateEnumOptions()5346 if (!enm->options().has_allow_alias() || !enm->options().allow_alias()) { in ValidateEnumOptions()5348 for (int i = 0; i < enm->value_count(); ++i) { in ValidateEnumOptions()5349 const EnumValueDescriptor* enum_value = enm->value(i); in ValidateEnumOptions()[all …]
2708 const EnumDescriptor* enm = message->FindEnumTypeByName("AnEnum"); in TEST() local2725 enm->options().GetExtension(protobuf_unittest::enum_opt1)); in TEST()2727 enm->value(1)->options().GetExtension( in TEST()