Home
last modified time | relevance | path

Searched refs:EnumValueDescriptor (Results 1 – 25 of 81) sorted by relevance

1234

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DUnknownEnumValueTest.java35 import com.google.protobuf.Descriptors.EnumValueDescriptor;
147 EnumValueDescriptor unknown4321 = in testUnknownEnumValueInReflectionApi()
148 (EnumValueDescriptor) message.getField(optionalNestedEnumField); in testUnknownEnumValueInReflectionApi()
149 EnumValueDescriptor unknown5432 = in testUnknownEnumValueInReflectionApi()
150 (EnumValueDescriptor) message.getRepeatedField(repeatedNestedEnumField, 0); in testUnknownEnumValueInReflectionApi()
151 EnumValueDescriptor unknown6543 = in testUnknownEnumValueInReflectionApi()
152 (EnumValueDescriptor) message.getRepeatedField(packedNestedEnumField, 0); in testUnknownEnumValueInReflectionApi()
194 4321, ((EnumValueDescriptor) message.getField(optionalNestedEnumField)).getNumber()); in testUnknownEnumValueWithDynamicMessage()
197 ((EnumValueDescriptor) message.getRepeatedField(repeatedNestedEnumField, 0)).getNumber()); in testUnknownEnumValueWithDynamicMessage()
200 ((EnumValueDescriptor) message.getRepeatedField(packedNestedEnumField, 0)).getNumber()); in testUnknownEnumValueWithDynamicMessage()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
DEnumDescriptor.cs46 private readonly IList<EnumValueDescriptor> values;
64 … (value, i) => new EnumValueDescriptor(value, file, this, i)); in EnumDescriptor()
103 public IList<EnumValueDescriptor> Values
113 public EnumValueDescriptor FindValueByNumber(int number) in FindValueByNumber()
123 public EnumValueDescriptor FindValueByName(string name) in FindValueByName()
125 return File.DescriptorPool.FindSymbol<EnumValueDescriptor>(FullName + "." + name); in FindValueByName()
DDescriptorPool.cs51 … private readonly IDictionary<ObjectIntPair<IDescriptor>, EnumValueDescriptor> enumValuesByNumber =
52 new Dictionary<ObjectIntPair<IDescriptor>, EnumValueDescriptor>();
216 … internal EnumValueDescriptor FindEnumValueByNumber(EnumDescriptor enumDescriptor, int number) in FindEnumValueByNumber()
218 EnumValueDescriptor ret; in FindEnumValueByNumber()
248 internal void AddEnumValueByNumber(EnumValueDescriptor enumValue) in AddEnumValueByNumber()
DEnumValueDescriptor.cs41 public sealed class EnumValueDescriptor : DescriptorBase class
46 internal EnumValueDescriptor(EnumValueDescriptorProto proto, FileDescriptor file, in EnumValueDescriptor() method in Google.Protobuf.Reflection.EnumValueDescriptor
/third_party/protobuf/src/google/protobuf/
Ddescriptor.h87 class EnumValueDescriptor; variable
378 const EnumValueDescriptor* FindEnumValueByName(ConstStringParam name) const;
752 const EnumValueDescriptor* default_value_enum() const;
907 mutable const EnumValueDescriptor* default_value_enum_;
1030 const EnumValueDescriptor* value(int index) const;
1033 const EnumValueDescriptor* FindValueByName(ConstStringParam name) const;
1036 const EnumValueDescriptor* FindValueByNumber(int number) const;
1115 const EnumValueDescriptor* FindValueByNumberCreatingIfUnknown(
1138 EnumValueDescriptor* values_;
1154 friend class EnumValueDescriptor; variable
[all …]
Dpreserve_unknown_enum_test.cc193 const EnumValueDescriptor* enum_value = r->GetEnum(message, field); in TEST()
198 const EnumValueDescriptor* enum_value_second = r->GetEnum(message, field); in TEST()
233 const EnumValueDescriptor* enum_value = r->GetEnum(message, singular_field); in TEST()
246 const EnumValueDescriptor* enum_value = in TEST()
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_enum.h60 std::vector<const EnumValueDescriptor*> base_values_;
61 std::vector<const EnumValueDescriptor*> all_values_;
62 std::set<const EnumValueDescriptor*> alias_values_to_skip_;
Dobjectivec_enum.cc60 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator()
61 const EnumValueDescriptor* canonical_value = in EnumGenerator()
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_enum_lite.h77 std::vector<const EnumValueDescriptor*> canonical_values_;
80 const EnumValueDescriptor* value;
81 const EnumValueDescriptor* canonical_value;
Djava_enum.h77 std::vector<const EnumValueDescriptor*> canonical_values_;
80 const EnumValueDescriptor* value;
81 const EnumValueDescriptor* canonical_value;
Djava_enum_lite.cc60 const EnumValueDescriptor* value = descriptor_->value(i); in EnumLiteGenerator()
61 const EnumValueDescriptor* canonical_value = in EnumLiteGenerator()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DProtocolMessageEnum.java34 import com.google.protobuf.Descriptors.EnumValueDescriptor;
46 EnumValueDescriptor getValueDescriptor(); in getValueDescriptor()
DDescriptors.java1640 implements Internal.EnumLiteMap<EnumValueDescriptor> {
1689 public List<EnumValueDescriptor> getValues() { in getValues()
1699 public EnumValueDescriptor findValueByName(final String name) { in findValueByName()
1701 if (result != null && result instanceof EnumValueDescriptor) { in findValueByName()
1702 return (EnumValueDescriptor) result; in findValueByName()
1716 public EnumValueDescriptor findValueByNumber(final int number) { in findValueByNumber()
1724 public EnumValueDescriptor findValueByNumberCreatingIfUnknown(final int number) { in findValueByNumberCreatingIfUnknown()
1725 EnumValueDescriptor result = findValueByNumber(number); in findValueByNumberCreatingIfUnknown()
1761 WeakReference<EnumValueDescriptor> reference = unknownValues.get(key); in findValueByNumberCreatingIfUnknown()
1766 result = new EnumValueDescriptor(file, this, key); in findValueByNumberCreatingIfUnknown()
[all …]
DExtensionSchemaFull.java33 import com.google.protobuf.Descriptors.EnumValueDescriptor;
196 List<EnumValueDescriptor> enumList = new ArrayList<EnumValueDescriptor>(); in parseExtension()
198 EnumValueDescriptor enumDescriptor = in parseExtension()
415 List<EnumValueDescriptor> enumList = (List<EnumValueDescriptor>) extension.getValue(); in serializeExtension()
417 for (EnumValueDescriptor d : enumList) { in serializeExtension()
481 descriptor.getNumber(), ((EnumValueDescriptor) extension.getValue()).getNumber()); in serializeExtension()
DAbstractMessage.java33 import com.google.protobuf.Descriptors.EnumValueDescriptor;
203 if (fieldValue instanceof EnumValueDescriptor) { in convertMapEntryListToMap()
204 fieldValue = ((EnumValueDescriptor) fieldValue).getNumber(); in convertMapEntryListToMap()
210 if (fieldValue instanceof EnumValueDescriptor) { in convertMapEntryListToMap()
211 fieldValue = ((EnumValueDescriptor) fieldValue).getNumber(); in convertMapEntryListToMap()
/third_party/protobuf/php/src/Google/Protobuf/Internal/
DEnumBuilderContext.php36 use Google\Protobuf\EnumValueDescriptor; alias
54 $value = new EnumValueDescriptor($name, $number);
DEnumDescriptor.php5 use Google\Protobuf\EnumValueDescriptor; alias
37 $this->value_descriptor[] = new EnumValueDescriptor($value->getName(), $number);
/third_party/protobuf/src/google/protobuf/util/
Dfield_comparator.h48 class EnumValueDescriptor; variable
188 const EnumValueDescriptor* value_1,
189 const EnumValueDescriptor* value_2);
Dfield_comparator.cc160 const EnumValueDescriptor* value_1, in CompareEnum()
161 const EnumValueDescriptor* value_2) { in CompareEnum()
/third_party/protobuf/php/ext/google/protobuf/
Ddef.c64 } EnumValueDescriptor; typedef
76 EnumValueDescriptor *intern = emalloc(sizeof(EnumValueDescriptor)); in EnumValueDescriptor_Make()
90 PHP_METHOD(EnumValueDescriptor, getName) { in PHP_METHOD() argument
91 EnumValueDescriptor *intern = (EnumValueDescriptor*)Z_OBJ_P(getThis()); in PHP_METHOD()
100 PHP_METHOD(EnumValueDescriptor, getNumber) { in PHP_METHOD() argument
101 EnumValueDescriptor *intern = (EnumValueDescriptor*)Z_OBJ_P(getThis()); in PHP_METHOD()
106 PHP_ME(EnumValueDescriptor, getName, NULL, ZEND_ACC_PUBLIC)
107 PHP_ME(EnumValueDescriptor, getNumber, NULL, ZEND_ACC_PUBLIC)
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_enum.cc97 const EnumValueDescriptor* min_value = descriptor_->value(0); in GenerateDefinition()
98 const EnumValueDescriptor* max_value = descriptor_->value(0); in GenerateDefinition()
287 const EnumValueDescriptor* value = descriptor_->value(j); in GenerateMethods()
321 const EnumValueDescriptor* value = descriptor_->value(i); in GenerateMethods()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyEnum.java54 … Descriptors.EnumValueDescriptor value = descriptor.findValueByNumber(RubyNumeric.num2int(number)); in lookup()
70 Descriptors.EnumValueDescriptor value = descriptor.findValueByName(name.asJavaString()); in resolve()
DRubyEnumDescriptor.java133 for (Descriptors.EnumValueDescriptor enumValueDescriptor : descriptor.getValues()) { in each()
172 for (Descriptors.EnumValueDescriptor value : descriptor.getValues()) { in buildModuleFromDescriptor()
/third_party/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.h50 class EnumValueDescriptor; variable
141 void PrintEnumValueDescriptor(const EnumValueDescriptor& descriptor) const;
/third_party/protobuf/php/src/Google/Protobuf/
DEnumValueDescriptor.php35 class EnumValueDescriptor class

1234