/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyEnumBuilderContext.java | 63 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
|
D | RubyDescriptorPool.java | 128 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()
|
D | Utils.java | 118 Descriptors.EnumDescriptor enumDescriptor = in checkType() local 120 val = enumDescriptor.findValueByName(value.asJavaString()); in checkType()
|
D | RubyMessage.java | 555 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 721 … enumDescriptor.findValueByNumberCreatingIfUnknown(RubyNumeric.num2int(value)); in setField()
|
/external/protobuf/objectivec/Tests/ |
D | GPBDescriptorTests.m | 83 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 …]
|
D | GPBMessageTests.m | 1852 GPBEnumDescriptor *enumDescriptor = extDescriptor.enumDescriptor; 1854 XCTAssertEqualObjects(enumDescriptor, expectedDescriptor);
|
/external/protobuf/csharp/src/Google.Protobuf/Reflection/ |
D | EnumValueDescriptor.cs | 43 private readonly EnumDescriptor enumDescriptor; field in Google.Protobuf.Reflection.EnumValueDescriptor 51 enumDescriptor = parent; in EnumValueDescriptor() 71 public EnumDescriptor EnumDescriptor { get { return enumDescriptor; } }
|
D | DescriptorPool.cs | 216 … 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/ |
D | SymbolRegistry.cs | 112 private void AddEnum(EnumDescriptor enumDescriptor) in AddEnum() argument 114 filesBySymbol[enumDescriptor.FullName] = enumDescriptor.File; in AddEnum()
|
/external/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_doc_comment.cc | 101 void WriteEnumDocComment(io::Printer* printer, const EnumDescriptor* enumDescriptor) { in WriteEnumDocComment() argument 102 WriteDocCommentBody(printer, enumDescriptor); in WriteEnumDocComment()
|
D | csharp_doc_comment.h | 44 void WriteEnumDocComment(io::Printer* printer, const EnumDescriptor* enumDescriptor);
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | DescriptorDeclarationTest.cs | 145 … var enumDescriptor = unitTestProto3Descriptor.FindTypeByName<EnumDescriptor>("CommentEnum"); in EnumValueComments() 146 var value = enumDescriptor.FindValueByName("ZERO_VALUE"); in EnumValueComments()
|
/external/protobuf/objectivec/ |
D | GPBDescriptor.h | 197 @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor; 312 @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor;
|
D | GPBDescriptor.m | 468 // 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;
|
D | GPBMessage.m | 234 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];
|
D | GPBUtilities.m | 1680 GPBEnumDescriptor *descriptor = field.enumDescriptor; 1801 GPBEnumDescriptor *descriptor = field.enumDescriptor;
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | DynamicMessageTest.java | 312 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()
|
D | FieldPresenceTest.java | 222 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()
|
D | MapTest.java | 968 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/ |
D | ExtensionSchemaFull.java | 198 EnumValueDescriptor enumDescriptor = in parseExtension() local 200 if (enumDescriptor != null) { in parseExtension() 201 enumList.add(enumDescriptor); in parseExtension()
|
D | GeneratedMessage.java | 2683 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);
|
D | GeneratedMessageV3.java | 2490 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/ |
D | JsonFormat.java | 1820 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()
|