Home
last modified time | relevance | path

Searched refs:enumDescriptor (Results 1 – 23 of 23) 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()
DUtils.java118 Descriptors.EnumDescriptor enumDescriptor = in checkType() local
120 val = enumDescriptor.findValueByName(value.asJavaString()); in checkType()
DRubyMessage.java555 Descriptors.EnumDescriptor enumDescriptor = fieldDescriptor.getEnumType(); in convert() local
558 … val = enumDescriptor.findValueByNumberCreatingIfUnknown(RubyNumeric.num2int(value)); in convert()
560 val = enumDescriptor.findValueByName(value.asJavaString()); in convert()
718 Descriptors.EnumDescriptor enumDescriptor = fieldDescriptor.getEnumType(); in setField() local
721enumDescriptor.findValueByNumberCreatingIfUnknown(RubyNumeric.num2int(value)); in setField()
/external/protobuf/objectivec/Tests/
DGPBDescriptorTests.m83 XCTAssertNotNil(fieldDescriptorWithNumber.enumDescriptor);
84 XCTAssertEqualObjects(fieldDescriptorWithNumber.enumDescriptor.name,
95 XCTAssertNotNil(fieldDescriptorWithNumber.enumDescriptor);
96 XCTAssertEqualObjects(fieldDescriptorWithNumber.enumDescriptor.name,
107 XCTAssertNotNil(fieldDescriptorWithNumber.enumDescriptor);
108 XCTAssertEqualObjects(fieldDescriptorWithNumber.enumDescriptor.name,
119 XCTAssertNil(fieldDescriptorWithNumber.enumDescriptor);
130 XCTAssertNil(fieldDescriptorWithNumber.enumDescriptor);
140 XCTAssertNil(fieldDescriptorWithNumber.enumDescriptor);
378 XCTAssertNil(descriptor.enumDescriptor);
[all …]
DGPBMessageTests.m1852 GPBEnumDescriptor *enumDescriptor = extDescriptor.enumDescriptor;
1854 XCTAssertEqualObjects(enumDescriptor, expectedDescriptor);
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DEnumValueDescriptor.cs43 private readonly EnumDescriptor enumDescriptor; field in Google.Protobuf.Reflection.EnumValueDescriptor
51 enumDescriptor = parent; in EnumValueDescriptor()
71 public EnumDescriptor EnumDescriptor { get { return enumDescriptor; } }
DDescriptorPool.cs216 … internal EnumValueDescriptor FindEnumValueByNumber(EnumDescriptor enumDescriptor, int number) in FindEnumValueByNumber() argument
219 … enumValuesByNumber.TryGetValue(new ObjectIntPair<IDescriptor>(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.cc101 void WriteEnumDocComment(io::Printer* printer, const EnumDescriptor* enumDescriptor) { in WriteEnumDocComment() argument
102 WriteDocCommentBody(printer, enumDescriptor); in WriteEnumDocComment()
Dcsharp_doc_comment.h44 void WriteEnumDocComment(io::Printer* printer, const EnumDescriptor* enumDescriptor);
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorDeclarationTest.cs145 … var enumDescriptor = unitTestProto3Descriptor.FindTypeByName<EnumDescriptor>("CommentEnum"); in EnumValueComments()
146 var value = enumDescriptor.FindValueByName("ZERO_VALUE"); in EnumValueComments()
/external/protobuf/objectivec/
DGPBDescriptor.h197 @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor;
312 @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor;
DGPBDescriptor.m468 // be a enumDescriptor, otherwise it will be a enumVerifier.
654 - (GPBEnumDescriptor *)enumDescriptor { method
1061 - (GPBEnumDescriptor *)enumDescriptor { method
1063 GPBEnumDescriptor *enumDescriptor = description_->enumDescriptorFunc();
1064 return enumDescriptor;
DGPBMessage.m234 initWithValidationFunction:field.enumDescriptor.enumVerifier];
299 initWithValidationFunction:field.enumDescriptor.enumVerifier];
343 initWithValidationFunction:field.enumDescriptor.enumVerifier];
388 initWithValidationFunction:field.enumDescriptor.enumVerifier];
432 initWithValidationFunction:field.enumDescriptor.enumVerifier];
477 initWithValidationFunction:field.enumDescriptor.enumVerifier];
520 initWithValidationFunction:field.enumDescriptor.enumVerifier];
DGPBUtilities.m1680 GPBEnumDescriptor *descriptor = field.enumDescriptor;
1801 GPBEnumDescriptor *descriptor = field.enumDescriptor;
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDynamicMessageTest.java312 EnumDescriptor enumDescriptor = TestAllTypes.NestedEnum.getDescriptor(); in testSettersForRepeatedEnumField() local
313 builder.setField(repeatedEnumField, enumDescriptor.getValues()); in testSettersForRepeatedEnumField()
315 assertEquals(enumDescriptor.getValues(), message.getField(repeatedEnumField)); in testSettersForRepeatedEnumField()
DFieldPresenceTest.java222 EnumDescriptor enumDescriptor = optionalNestedEnumField.getEnumType(); in testFieldPresenceDynamicMessage() local
223 EnumValueDescriptor defaultEnumValueDescriptor = enumDescriptor.getValues().get(0); in testFieldPresenceDynamicMessage()
224 EnumValueDescriptor nonDefaultEnumValueDescriptor = enumDescriptor.getValues().get(1); in testFieldPresenceDynamicMessage()
DMapTest.java968 EnumDescriptor enumDescriptor = TestMap.EnumValue.getDescriptor(); in testUnknownEnumValuesInReflectionApi() local
988 mapEntryBuilder, "value", enumDescriptor.findValueByNumberCreatingIfUnknown(value + 1)); in testUnknownEnumValuesInReflectionApi()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DExtensionSchemaFull.java198 EnumValueDescriptor enumDescriptor = in parseExtension() local
200 if (enumDescriptor != null) { in parseExtension()
201 enumList.add(enumDescriptor); in parseExtension()
DGeneratedMessage.java2683 enumDescriptor = descriptor.getEnumType();
2701 private EnumDescriptor enumDescriptor;
2715 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2724 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2748 enumDescriptor = descriptor.getEnumType();
2767 private EnumDescriptor enumDescriptor;
2805 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2815 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
DGeneratedMessageV3.java2490 enumDescriptor = descriptor.getEnumType();
2508 private EnumDescriptor enumDescriptor;
2522 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2531 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2555 enumDescriptor = descriptor.getEnumType();
2574 private EnumDescriptor enumDescriptor;
2612 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2622 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java1820 private EnumValueDescriptor parseEnum(EnumDescriptor enumDescriptor, JsonElement json) in parseEnum() argument
1823 EnumValueDescriptor result = enumDescriptor.findValueByName(value); in parseEnum()
1828 if (enumDescriptor.getFile().getSyntax() == FileDescriptor.Syntax.PROTO3) { in parseEnum()
1829 result = enumDescriptor.findValueByNumberCreatingIfUnknown(numericValue); in parseEnum()
1831 result = enumDescriptor.findValueByNumber(numericValue); in parseEnum()
1841 "Invalid enum value: " + value + " for enum type: " + enumDescriptor.getFullName()); in parseEnum()