Home
last modified time | relevance | path

Searched refs:enumDescriptor (Results 1 – 19 of 19) sorted by relevance

/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyEnumBuilderContext.java63 public IRubyObject initialize(ThreadContext context, IRubyObject enumDescriptor) { in initialize() argument
64 this.enumDescriptor = (RubyEnumDescriptor) enumDescriptor; in initialize()
77 this.enumDescriptor.addValue(context, name, number); in value()
81 private RubyEnumDescriptor enumDescriptor; field in RubyEnumBuilderContext
DRubyDescriptorPool.java128 for (Descriptors.EnumDescriptor enumDescriptor : fileDescriptor.getEnumTypes()) { in buildFileDescriptor()
129 String enumName = Utils.unescapeIdentifier(enumDescriptor.getName()); in buildFileDescriptor()
130 if (enumDescriptor.findValueByNumber(0) == null) { in buildFileDescriptor()
135 .setDescriptor(enumDescriptor); in buildFileDescriptor()
DRubyMessage.java527 Descriptors.EnumDescriptor enumDescriptor = fieldDescriptor.getEnumType(); in convert() local
530 … val = enumDescriptor.findValueByNumberCreatingIfUnknown(RubyNumeric.num2int(value)); in convert()
532 val = enumDescriptor.findValueByName(value.asJavaString()); in convert()
686 Descriptors.EnumDescriptor enumDescriptor = fieldDescriptor.getEnumType(); in setField() local
689enumDescriptor.findValueByNumberCreatingIfUnknown(RubyNumeric.num2int(value)); in setField()
DUtils.java118 Descriptors.EnumDescriptor enumDescriptor = in checkType() local
120 val = enumDescriptor.findValueByName(value.asJavaString()); in checkType()
/external/protobuf/objectivec/Tests/
DGPBDescriptorTests.m54 XCTAssertNotNil(fieldDescriptorWithNumber.enumDescriptor);
55 XCTAssertEqualObjects(fieldDescriptorWithNumber.enumDescriptor.name,
64 XCTAssertNotNil(fieldDescriptorWithNumber.enumDescriptor);
65 XCTAssertEqualObjects(fieldDescriptorWithNumber.enumDescriptor.name,
74 XCTAssertNotNil(fieldDescriptorWithNumber.enumDescriptor);
75 XCTAssertEqualObjects(fieldDescriptorWithNumber.enumDescriptor.name,
84 XCTAssertNil(fieldDescriptorWithNumber.enumDescriptor);
93 XCTAssertNil(fieldDescriptorWithNumber.enumDescriptor);
101 XCTAssertNil(fieldDescriptorWithNumber.enumDescriptor);
DGPBMessageTests.m1818 GPBEnumDescriptor *enumDescriptor = extDescriptor.enumDescriptor;
1820 XCTAssertEqualObjects(enumDescriptor, expectedDescriptor);
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DEnumValueDescriptor.cs40 private readonly EnumDescriptor enumDescriptor; field in Google.Protobuf.Reflection.EnumValueDescriptor
48 enumDescriptor = parent; in EnumValueDescriptor()
68 public EnumDescriptor EnumDescriptor { get { return enumDescriptor; } }
DDescriptorPool.cs216 … internal EnumValueDescriptor FindEnumValueByNumber(EnumDescriptor enumDescriptor, int number) in FindEnumValueByNumber() argument
219 enumValuesByNumber.TryGetValue(new DescriptorIntPair(enumDescriptor, number), out ret); in FindEnumValueByNumber()
/external/grpc-grpc/src/csharp/Grpc.Reflection/
DSymbolRegistry.cs112 private void AddEnum(EnumDescriptor enumDescriptor) in AddEnum() argument
114 filesBySymbol[enumDescriptor.FullName] = enumDescriptor.File; in AddEnum()
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_doc_comment.cc100 void WriteEnumDocComment(io::Printer* printer, const EnumDescriptor* enumDescriptor) { in WriteEnumDocComment() argument
101 WriteDocCommentBody(printer, enumDescriptor); in WriteEnumDocComment()
Dcsharp_doc_comment.h44 void WriteEnumDocComment(io::Printer* printer, const EnumDescriptor* enumDescriptor);
/external/protobuf/objectivec/
DGPBDescriptor.h107 @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor;
137 @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor;
DGPBDescriptor.m348 // be a enumDescriptor, otherwise it will be a enumVerifier.
530 - (GPBEnumDescriptor *)enumDescriptor { method
903 - (GPBEnumDescriptor *)enumDescriptor { method
905 GPBEnumDescriptor *enumDescriptor = description_->enumDescriptorFunc();
906 return enumDescriptor;
DGPBMessage.m201 initWithValidationFunction:field.enumDescriptor.enumVerifier];
266 initWithValidationFunction:field.enumDescriptor.enumVerifier];
310 initWithValidationFunction:field.enumDescriptor.enumVerifier];
355 initWithValidationFunction:field.enumDescriptor.enumVerifier];
399 initWithValidationFunction:field.enumDescriptor.enumVerifier];
444 initWithValidationFunction:field.enumDescriptor.enumVerifier];
487 initWithValidationFunction:field.enumDescriptor.enumVerifier];
DGPBUtilities.m1196 GPBEnumDescriptor *descriptor = field.enumDescriptor;
1316 GPBEnumDescriptor *descriptor = field.enumDescriptor;
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDynamicMessageTest.java320 EnumDescriptor enumDescriptor = TestAllTypes.NestedEnum.getDescriptor(); in testSettersForRepeatedEnumField() local
321 builder.setField(repeatedEnumField, enumDescriptor.getValues()); in testSettersForRepeatedEnumField()
324 enumDescriptor.getValues(), message.getField(repeatedEnumField)); in testSettersForRepeatedEnumField()
DMapTest.java728 EnumDescriptor enumDescriptor = TestMap.EnumValue.getDescriptor(); in testUnknownEnumValuesInReflectionApi() local
750 enumDescriptor.findValueByNumberCreatingIfUnknown(value + 1)); in testUnknownEnumValuesInReflectionApi()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java1587 private EnumValueDescriptor parseEnum(EnumDescriptor enumDescriptor, in parseEnum() argument
1590 EnumValueDescriptor result = enumDescriptor.findValueByName(value); in parseEnum()
1595 if (enumDescriptor.getFile().getSyntax() == FileDescriptor.Syntax.PROTO3) { in parseEnum()
1596 result = enumDescriptor.findValueByNumberCreatingIfUnknown(numericValue); in parseEnum()
1598 result = enumDescriptor.findValueByNumber(numericValue); in parseEnum()
1609 + enumDescriptor.getFullName()); in parseEnum()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DGeneratedMessage.java2515 enumDescriptor = descriptor.getEnumType();
2533 private EnumDescriptor enumDescriptor;
2547 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2556 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2580 enumDescriptor = descriptor.getEnumType();
2599 private EnumDescriptor enumDescriptor;
2637 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2647 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);