Home
last modified time | relevance | path

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

/third_party/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.m1876 GPBEnumDescriptor *enumDescriptor = extDescriptor.enumDescriptor;
1878 XCTAssertEqualObjects(enumDescriptor, expectedDescriptor);
/third_party/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.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()
DUtils.java118 Descriptors.EnumDescriptor enumDescriptor = in checkType() local
120 val = enumDescriptor.findValueByName(value.asJavaString()); in checkType()
/third_party/node/deps/npm/node_modules/object.getownpropertydescriptors/test/
Dtests.js4 var enumDescriptor = { variable
59 Object.defineProperty(obj, 'enumerable', enumDescriptor);
65 enumerable: enumDescriptor,
87 Object.defineProperty(obj, 'enumerable', enumDescriptor);
94 enumerable: enumDescriptor,
/third_party/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()
/third_party/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);
/third_party/node/deps/npm/node_modules/object.getownpropertydescriptors/
DREADME.md24 var enumDescriptor = {
44 Object.defineProperty(obj, 'enumerable', enumDescriptor);
57 enumerable: enumDescriptor,
/third_party/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()
DCustomOptionsTest.cs143 var enumDescriptor = TestMessageWithCustomOptions.Descriptor.EnumTypes[0]; in OptionLocations()
144 …AssertOption(-789, enumDescriptor.CustomOptions.TryGetSFixed32, EnumOpt1, enumDescriptor.GetOption… in OptionLocations()
/third_party/protobuf/objectivec/
DGPBDescriptor.h197 @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor;
312 @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor;
DGPBDescriptor.m471 // be a enumDescriptor, otherwise it will be a enumVerifier.
678 - (GPBEnumDescriptor *)enumDescriptor { method
1092 - (GPBEnumDescriptor *)enumDescriptor { method
1094 GPBEnumDescriptor *enumDescriptor = description_->enumDescriptorFunc();
1095 return enumDescriptor;
DGPBMessage.m232 initWithValidationFunction:field.enumDescriptor.enumVerifier];
297 initWithValidationFunction:field.enumDescriptor.enumVerifier];
341 initWithValidationFunction:field.enumDescriptor.enumVerifier];
386 initWithValidationFunction:field.enumDescriptor.enumVerifier];
430 initWithValidationFunction:field.enumDescriptor.enumVerifier];
475 initWithValidationFunction:field.enumDescriptor.enumVerifier];
518 initWithValidationFunction:field.enumDescriptor.enumVerifier];
DGPBUtilities.m1727 GPBEnumDescriptor *descriptor = field.enumDescriptor;
1848 GPBEnumDescriptor *descriptor = field.enumDescriptor;
/third_party/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.java332 EnumDescriptor enumDescriptor = optionalNestedEnumField.getEnumType(); in testFieldPresenceDynamicMessage() local
333 EnumValueDescriptor defaultEnumValueDescriptor = enumDescriptor.getValues().get(0); in testFieldPresenceDynamicMessage()
334 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()
/third_party/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.java2745 enumDescriptor = descriptor.getEnumType();
2761 private EnumDescriptor enumDescriptor;
2775 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2784 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2808 enumDescriptor = descriptor.getEnumType();
2825 private EnumDescriptor enumDescriptor;
2862 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
2871 return enumDescriptor.findValueByNumberCreatingIfUnknown(value);
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java1906 private EnumValueDescriptor parseEnum(EnumDescriptor enumDescriptor, JsonElement json) in parseEnum() argument
1909 EnumValueDescriptor result = enumDescriptor.findValueByName(value); in parseEnum()
1914 if (enumDescriptor.getFile().getSyntax() == FileDescriptor.Syntax.PROTO3) { in parseEnum()
1915 result = enumDescriptor.findValueByNumberCreatingIfUnknown(numericValue); in parseEnum()
1917 result = enumDescriptor.findValueByNumber(numericValue); in parseEnum()
1927 "Invalid enum value: " + value + " for enum type: " + enumDescriptor.getFullName()); in parseEnum()