Home
last modified time | relevance | path

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

1234

/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DEnumDescriptor.cs45 private readonly IList<EnumValueDescriptor> values;
63 … (value, i) => new EnumValueDescriptor(value, file, this, i)); in EnumDescriptor()
91 public IList<EnumValueDescriptor> Values
101 public EnumValueDescriptor FindValueByNumber(int number) in FindValueByNumber()
111 public EnumValueDescriptor FindValueByName(string name) in FindValueByName()
113 return File.DescriptorPool.FindSymbol<EnumValueDescriptor>(FullName + "." + name); in FindValueByName()
DDescriptorPool.cs51 private readonly IDictionary<DescriptorIntPair, EnumValueDescriptor> enumValuesByNumber =
52 new Dictionary<DescriptorIntPair, EnumValueDescriptor>();
216 … internal EnumValueDescriptor FindEnumValueByNumber(EnumDescriptor enumDescriptor, int number) in FindEnumValueByNumber()
218 EnumValueDescriptor ret; in FindEnumValueByNumber()
247 internal void AddEnumValueByNumber(EnumValueDescriptor enumValue) in AddEnumValueByNumber()
DEnumValueDescriptor.cs38 …public sealed class EnumValueDescriptor : DescriptorBase … class
43 internal EnumValueDescriptor(EnumValueDescriptorProto proto, FileDescriptor file, in EnumValueDescriptor() method in Google.Protobuf.Reflection.EnumValueDescriptor
/external/protobuf/src/google/protobuf/
Dtest_util.h189 const EnumValueDescriptor* nested_foo_;
190 const EnumValueDescriptor* nested_bar_;
191 const EnumValueDescriptor* nested_baz_;
192 const EnumValueDescriptor* foreign_foo_;
193 const EnumValueDescriptor* foreign_bar_;
194 const EnumValueDescriptor* foreign_baz_;
195 const EnumValueDescriptor* import_foo_;
196 const EnumValueDescriptor* import_bar_;
197 const EnumValueDescriptor* import_baz_;
Ddescriptor.h80 class EnumValueDescriptor; variable
281 const EnumValueDescriptor* FindEnumValueByName(const string& name) const;
586 const EnumValueDescriptor* default_value_enum() const;
714 const EnumValueDescriptor* default_value_enum_;
820 const EnumValueDescriptor* value(int index) const;
823 const EnumValueDescriptor* FindValueByName(const string& name) const;
826 const EnumValueDescriptor* FindValueByNumber(int number) const;
874 const EnumValueDescriptor*
898 EnumValueDescriptor* values_;
908 friend class EnumValueDescriptor; variable
[all …]
Dmap_test_util.h115 const EnumValueDescriptor* map_enum_bar_;
116 const EnumValueDescriptor* map_enum_baz_;
117 const EnumValueDescriptor* map_enum_foo_;
Dpreserve_unknown_enum_test.cc196 const google::protobuf::EnumValueDescriptor* enum_value = r->GetEnum(message, field); in TEST()
201 const google::protobuf::EnumValueDescriptor* enum_value_second = in TEST()
239 const google::protobuf::EnumValueDescriptor* enum_value = r->GetEnum(message, in TEST()
253 const google::protobuf::EnumValueDescriptor* enum_value = in TEST()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DUnknownEnumValueTest.java35 import com.google.protobuf.Descriptors.EnumValueDescriptor;
145 EnumValueDescriptor unknown4321 = in testUnknownEnumValueInReflectionApi()
146 (EnumValueDescriptor) message.getField(optionalNestedEnumField); in testUnknownEnumValueInReflectionApi()
147 EnumValueDescriptor unknown5432 = in testUnknownEnumValueInReflectionApi()
148 (EnumValueDescriptor) message.getRepeatedField(repeatedNestedEnumField, 0); in testUnknownEnumValueInReflectionApi()
149 EnumValueDescriptor unknown6543 = in testUnknownEnumValueInReflectionApi()
150 (EnumValueDescriptor) message.getRepeatedField(packedNestedEnumField, 0); in testUnknownEnumValueInReflectionApi()
196 ((EnumValueDescriptor) message.getField(optionalNestedEnumField)).getNumber()); in testUnknownEnumValueWithDynamicMessage()
198 ((EnumValueDescriptor) message.getRepeatedField(repeatedNestedEnumField, 0)).getNumber()); in testUnknownEnumValueWithDynamicMessage()
200 ((EnumValueDescriptor) message.getRepeatedField(packedNestedEnumField, 0)).getNumber()); in testUnknownEnumValueWithDynamicMessage()
[all …]
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_enum.h71 vector<const EnumValueDescriptor*> canonical_values_;
74 const EnumValueDescriptor* value;
75 const EnumValueDescriptor* canonical_value;
Djavamicro_enum.cc53 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator()
54 const EnumValueDescriptor* canonical_value = in EnumGenerator()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_enum.h71 vector<const EnumValueDescriptor*> canonical_values_;
74 const EnumValueDescriptor* value;
75 const EnumValueDescriptor* canonical_value;
Djavanano_enum.cc53 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator()
54 const EnumValueDescriptor* canonical_value = in EnumGenerator()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_enum_lite.h76 vector<const EnumValueDescriptor*> canonical_values_;
79 const EnumValueDescriptor* value;
80 const EnumValueDescriptor* canonical_value;
Djava_enum.h76 vector<const EnumValueDescriptor*> canonical_values_;
79 const EnumValueDescriptor* value;
80 const EnumValueDescriptor* canonical_value;
Djava_enum_lite.cc56 const EnumValueDescriptor* value = descriptor->value(i); in EnumHasCustomOptions()
69 const EnumValueDescriptor* value = descriptor_->value(i); in EnumLiteGenerator()
70 const EnumValueDescriptor* canonical_value = in EnumLiteGenerator()
Djava_enum.cc56 const EnumValueDescriptor* value = descriptor->value(i); in EnumHasCustomOptions()
70 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator()
71 const EnumValueDescriptor* canonical_value = in EnumGenerator()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptors.java1527 implements Internal.EnumLiteMap<EnumValueDescriptor> {
1568 public List<EnumValueDescriptor> getValues() { in getValues()
1577 public EnumValueDescriptor findValueByName(final String name) { in findValueByName()
1580 if (result != null && result instanceof EnumValueDescriptor) { in findValueByName()
1581 return (EnumValueDescriptor)result; in findValueByName()
1594 public EnumValueDescriptor findValueByNumber(final int number) { in findValueByNumber()
1603 public EnumValueDescriptor findValueByNumberCreatingIfUnknown(final int number) { in findValueByNumberCreatingIfUnknown()
1604 EnumValueDescriptor result = findValueByNumber(number); in findValueByNumberCreatingIfUnknown()
1640 WeakReference<EnumValueDescriptor> reference = unknownValues.get(key); in findValueByNumberCreatingIfUnknown()
1645 result = new EnumValueDescriptor(file, this, key); in findValueByNumberCreatingIfUnknown()
[all …]
DProtocolMessageEnum.java34 import com.google.protobuf.Descriptors.EnumValueDescriptor;
52 EnumValueDescriptor getValueDescriptor(); in getValueDescriptor()
DAbstractMessage.java33 import com.google.protobuf.Descriptors.EnumValueDescriptor;
174 if (fieldValue instanceof EnumValueDescriptor) { in convertMapEntryListToMap()
175 fieldValue = ((EnumValueDescriptor) fieldValue).getNumber(); in convertMapEntryListToMap()
181 if (fieldValue instanceof EnumValueDescriptor) { in convertMapEntryListToMap()
182 fieldValue = ((EnumValueDescriptor) fieldValue).getNumber(); in convertMapEntryListToMap()
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_enum.h62 vector<const EnumValueDescriptor*> base_values_;
63 vector<const EnumValueDescriptor*> all_values_;
Dobjectivec_enum.cc48 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator()
49 const EnumValueDescriptor* canonical_value = in EnumGenerator()
/external/protobuf/src/google/protobuf/util/
Dfield_comparator.h45 class EnumValueDescriptor; variable
187 const EnumValueDescriptor* value_1,
188 const EnumValueDescriptor* value_2);
/external/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()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_enum.cc90 const EnumValueDescriptor* min_value = descriptor_->value(0); in GenerateDefinition()
91 const EnumValueDescriptor* max_value = descriptor_->value(0); in GenerateDefinition()
271 const EnumValueDescriptor* value = descriptor_->value(j); in GenerateMethods()
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.h49 class EnumValueDescriptor; variable
134 void PrintEnumValueDescriptor(const EnumValueDescriptor& descriptor) const;

1234