Home
last modified time | relevance | path

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

1234

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DDynamicMessageTest.java53 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
57 TestAllExtensions.getDescriptor(), TestUtil.getFullExtensionRegistry());
59 new TestUtil.ReflectionTester(TestPackedTypes.getDescriptor(), null);
62 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors()
69 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testSettersAfterBuild()
88 Message.Builder builder = DynamicMessage.newBuilder(TestEmptyMessage.getDescriptor()); in testUnknownFields()
108 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageSettersRejectNull()
116 Message.Builder builder = DynamicMessage.newBuilder(TestAllExtensions.getDescriptor()); in testDynamicMessageExtensionAccessors()
123 Message.Builder builder = DynamicMessage.newBuilder(TestAllExtensions.getDescriptor()); in testDynamicMessageExtensionSettersRejectNull()
128 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSetters()
[all …]
DDescriptorsTest.java96 FileDescriptor file = UnittestProto.getDescriptor(); in testFileDescriptor()
104 assertEquals(Arrays.asList(UnittestImport.getDescriptor()), file.getDependencies()); in testFileDescriptor()
106 Descriptor messageType = TestAllTypes.getDescriptor(); in testFileDescriptor()
115 EnumDescriptor enumType = ForeignEnum.getDescriptor(); in testFileDescriptor()
121 Arrays.asList(ImportEnum.getDescriptor(), ImportEnumForMap.getDescriptor()), in testFileDescriptor()
122 UnittestImport.getDescriptor().getEnumTypes()); in testFileDescriptor()
127 ServiceDescriptor service = TestService.getDescriptor(); in testFileDescriptor()
132 assertEquals(Collections.emptyList(), UnittestImport.getDescriptor().getServices()); in testFileDescriptor()
137 FieldDescriptor extension = UnittestProto.optionalInt32Extension.getDescriptor(); in testFileDescriptor()
142 assertEquals(Collections.emptyList(), UnittestImport.getDescriptor().getExtensions()); in testFileDescriptor()
[all …]
DMessageTest.java170 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testRequiredDynamic()
183 Descriptors.Descriptor descriptor = TestRequiredForeign.getDescriptor(); in testRequiredDynamicForeign()
292 DynamicMessage.newBuilder(TestRequired.getDescriptor()).build(); in testDynamicUninitializedException()
301 DynamicMessage message = DynamicMessage.newBuilder(TestRequired.getDescriptor()).buildPartial(); in testDynamicBuildPartial()
307 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicParseUnititialized()
317 TestRequired.getDescriptor(); in testDynamicRepeatedMessageNull()
319 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()) in testDynamicRepeatedMessageNull()
343 TestRequired.getDescriptor(); in testDynamicRepeatedMessageNotNull()
345 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()) in testDynamicRepeatedMessageNotNull()
DGeneratedMessageTest.java81 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
91 builder.getFieldBuilder(UnittestProto.optionalNestedMessageExtension.getDescriptor()); in testGetFieldBuilderForExtensionField()
94 NestedMessage.getDescriptor().findFieldByNumber(NestedMessage.BB_FIELD_NUMBER); in testGetFieldBuilderForExtensionField()
114 builder.getFieldBuilder(UnittestProto.optionalNestedMessageExtension.getDescriptor()); in testGetFieldBuilderWithExistingMessage()
117 NestedMessage.getDescriptor().findFieldByNumber(NestedMessage.BB_FIELD_NUMBER); in testGetFieldBuilderWithExistingMessage()
135 UnittestProto.optionalNestedMessageExtension.getDescriptor(), nestedMessageBuilder); in testGetFieldBuilderWithExistingBuilder()
137 builder.getFieldBuilder(UnittestProto.optionalNestedMessageExtension.getDescriptor()); in testGetFieldBuilderWithExistingBuilder()
140 NestedMessage.getDescriptor().findFieldByNumber(NestedMessage.BB_FIELD_NUMBER); in testGetFieldBuilderWithExistingBuilder()
168 UnittestProto.repeatedNestedMessageExtension.getDescriptor(), 0); in testGetRepeatedFieldBuilderForExtensionField()
171 NestedMessage.getDescriptor().findFieldByNumber(NestedMessage.BB_FIELD_NUMBER); in testGetRepeatedFieldBuilderForExtensionField()
[all …]
DWireFormatTest.java59 TestMessageSetExtension1.getDescriptor().getExtensions().get(0).getNumber();
61 TestMessageSetExtension2.getDescriptor().getExtensions().get(0).getNumber();
208 Descriptors.Descriptor descriptor = TestFieldOrderings.getDescriptor(); in testInterleavedFieldsAndExtensions()
210 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testInterleavedFieldsAndExtensions()
214 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testInterleavedFieldsAndExtensions()
215 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testInterleavedFieldsAndExtensions()
266 Descriptors.Descriptor descriptor = TestFieldOrderings.getDescriptor(); in testParseMultipleExtensionRangesDynamic()
268 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testParseMultipleExtensionRangesDynamic()
272 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testParseMultipleExtensionRangesDynamic()
273 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testParseMultipleExtensionRangesDynamic()
DTestBadIdentifiers.java51 TestBadIdentifiersProto.getDescriptor(); in testGetDescriptor()
52 TestBadIdentifiersProto.Descriptor.getDefaultInstance().getDescriptor(); in testGetDescriptor()
54 TestBadIdentifiersProto.Descriptor.NestedDescriptor.getDefaultInstance().getDescriptor(); in testGetDescriptor()
DUnknownEnumValueTest.java132 Descriptor descriptor = TestAllTypes.getDescriptor(); in testUnknownEnumValueInReflectionApi()
136 EnumDescriptor enumType = TestAllTypes.NestedEnum.getDescriptor(); in testUnknownEnumValueInReflectionApi()
178 Descriptor descriptor = TestAllTypes.getDescriptor(); in testUnknownEnumValueWithDynamicMessage()
182 EnumDescriptor enumType = TestAllTypes.NestedEnum.getDescriptor(); in testUnknownEnumValueWithDynamicMessage()
281 Descriptor descriptor = Proto2EnumMessageWithEnumSubset.getDescriptor(); in testUnknownEnumValuesInProto2WithDynamicMessage()
292 Proto2EnumMessageWithEnumSubset.getDescriptor(), sourceMessage.build().toByteArray()); in testUnknownEnumValuesInProto2WithDynamicMessage()
DTextFormatTest.java252 final FieldDescriptor dataField = OneString.getDescriptor().findFieldByName("data"); in testPrintField()
257 TestAllTypes.getDescriptor().findFieldByName("optional_nested_message"); in testPrintField()
540 .setTypeUrl("type.googleapis.com/" + TestAllTypes.getDescriptor().getFullName()) in testPrintAny_customBuiltTypeRegistry()
547 .usingTypeRegistry(TypeRegistry.newBuilder().add(TestAllTypes.getDescriptor()).build()) in testPrintAny_customBuiltTypeRegistry()
594 "type.googleapis.com/" + TestAllTypes.getDescriptor().getFullName()) in testPrintAny_anyWithDynamicMessage()
601 .usingTypeRegistry(TypeRegistry.newBuilder().add(TestAllTypes.getDescriptor()).build()) in testPrintAny_anyWithDynamicMessage()
623 "type.googleapis.com/" + TestAllTypes.getDescriptor().getFullName()) in testPrintAny_anyFromWithNoValueField()
627 .usingTypeRegistry(TypeRegistry.newBuilder().add(TestAllTypes.getDescriptor()).build()) in testPrintAny_anyFromWithNoValueField()
650 .usingTypeRegistry(TypeRegistry.newBuilder().add(TestAllTypes.getDescriptor()).build()) in testPrintAny_anyFromWithNoTypeUrlField()
675 "type.googleapis.com/" + TestAllTypes.getDescriptor().getFullName()) in testPrintAny_anyWithInvalidFieldType()
[all …]
DDiscardUnknownFieldsTest.java49 DynamicMessage.getDefaultInstance(UnittestProto.TestEmptyMessage.getDescriptor())); in testProto2()
52 UnittestProto.TestEmptyMessageWithExtensions.getDescriptor())); in testProto2()
59 DynamicMessage.getDefaultInstance(UnittestProto3.TestEmptyMessage.getDescriptor())); in testProto3()
DAnyTest.java82 "xxx.com/" + TestAllTypes.getDescriptor().getFullName(), container.getValue().getTypeUrl()); in testCustomTypeUrls()
93 "yyy.com/" + TestAllTypes.getDescriptor().getFullName(), container.getValue().getTypeUrl()); in testCustomTypeUrls()
104 "/" + TestAllTypes.getDescriptor().getFullName(), container.getValue().getTypeUrl()); in testCustomTypeUrls()
DTypeRegistryTest.java47 Descriptor descriptor = UnittestProto.TestAllTypes.getDescriptor(); in findDescriptorByFullName()
57 Descriptor descriptor = UnittestProto.TestAllTypes.getDescriptor(); in findDescriptorByTypeUrl()
DServiceTest.java61 TestService.getDescriptor().getMethods().get(0);
63 TestService.getDescriptor().getMethods().get(1);
175 MethodDescriptor fooMethod = ServiceWithNoOuter.getDescriptor().findMethodByName("Foo"); in testNewReflectiveService()
203 MethodDescriptor fooMethod = ServiceWithNoOuter.getDescriptor().findMethodByName("Foo"); in testNewReflectiveBlockingService()
260 FileDescriptor file = UnittestNoGenericServices.getDescriptor(); in testNoGenericServices()
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DDynamicMessageTest.java50 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
53 new TestUtil.ReflectionTester(TestAllExtensions.getDescriptor(),
56 new TestUtil.ReflectionTester(TestPackedTypes.getDescriptor(), null);
60 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors()
68 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testSettersAfterBuild()
88 DynamicMessage.newBuilder(TestEmptyMessage.getDescriptor()); in testUnknownFields()
108 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageSettersRejectNull()
117 DynamicMessage.newBuilder(TestAllExtensions.getDescriptor()); in testDynamicMessageExtensionAccessors()
125 DynamicMessage.newBuilder(TestAllExtensions.getDescriptor()); in testDynamicMessageExtensionSettersRejectNull()
131 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSetters()
[all …]
DDescriptorsTest.java92 FileDescriptor file = UnittestProto.getDescriptor(); in testFileDescriptor()
101 assertEquals(Arrays.asList(UnittestImport.getDescriptor()), in testFileDescriptor()
104 Descriptor messageType = TestAllTypes.getDescriptor(); in testFileDescriptor()
113 EnumDescriptor enumType = ForeignEnum.getDescriptor(); in testFileDescriptor()
118 assertEquals(Arrays.asList(ImportEnum.getDescriptor()), in testFileDescriptor()
119 UnittestImport.getDescriptor().getEnumTypes()); in testFileDescriptor()
124 ServiceDescriptor service = TestService.getDescriptor(); in testFileDescriptor()
130 UnittestImport.getDescriptor().getServices()); in testFileDescriptor()
136 UnittestProto.optionalInt32Extension.getDescriptor(); in testFileDescriptor()
144 UnittestImport.getDescriptor().getExtensions()); in testFileDescriptor()
[all …]
DWireFormatTest.java209 Descriptors.Descriptor descriptor = TestFieldOrderings.getDescriptor(); in testInterleavedFieldsAndExtensions()
211 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testInterleavedFieldsAndExtensions()
215 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testInterleavedFieldsAndExtensions()
216 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testInterleavedFieldsAndExtensions()
247 Descriptors.Descriptor descriptor = TestFieldOrderings.getDescriptor(); in testParseMultipleExtensionRangesDynamic()
249 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testParseMultipleExtensionRangesDynamic()
253 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testParseMultipleExtensionRangesDynamic()
254 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testParseMultipleExtensionRangesDynamic()
264 TestMessageSetExtension1.getDescriptor().getExtensions().get(0).getNumber();
266 TestMessageSetExtension2.getDescriptor().getExtensions().get(0).getNumber();
[all …]
DMessageTest.java169 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testRequiredDynamic()
182 Descriptors.Descriptor descriptor = TestRequiredForeign.getDescriptor(); in testRequiredDynamicForeign()
292 DynamicMessage.newBuilder(TestRequired.getDescriptor()).build(); in testDynamicUninitializedException()
302 DynamicMessage.newBuilder(TestRequired.getDescriptor()) in testDynamicBuildPartial()
309 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicParseUnititialized()
319 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicRepeatedMessageNull()
321 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()) in testDynamicRepeatedMessageNull()
343 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicRepeatedMessageNotNull()
345 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()) in testDynamicRepeatedMessageNotNull()
DTestBadIdentifiers.java53 TestBadIdentifiersProto.getDescriptor(); in testGetDescriptor()
55 .getDefaultInstance().getDescriptor(); in testGetDescriptor()
59 .NestedDescriptor.getDefaultInstance().getDescriptor(); in testGetDescriptor()
DServiceTest.java65 TestService.getDescriptor().getMethods().get(0);
67 TestService.getDescriptor().getMethods().get(1);
177 ServiceWithNoOuter.getDescriptor().findMethodByName("Foo"); in testNewReflectiveService()
207 ServiceWithNoOuter.getDescriptor().findMethodByName("Foo"); in testNewReflectiveBlockingService()
265 FileDescriptor file = UnittestNoGenericServices.getDescriptor(); in testNoGenericServices()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyEnum.java52 …RubyEnumDescriptor rubyEnumDescriptorescriptor = (RubyEnumDescriptor) getDescriptor(context, recv); in lookup()
53 Descriptors.EnumDescriptor descriptor = rubyEnumDescriptorescriptor.getDescriptor(); in lookup()
68 …RubyEnumDescriptor rubyEnumDescriptorescriptor = (RubyEnumDescriptor) getDescriptor(context, recv); in resolve()
69 Descriptors.EnumDescriptor descriptor = rubyEnumDescriptorescriptor.getDescriptor(); in resolve()
83 public static IRubyObject getDescriptor(ThreadContext context, IRubyObject recv) { in getDescriptor() method in RubyEnum
/third_party/node/deps/npm/node_modules/define-properties/test/
Dindex.js22 var getDescriptor = function (value) { function
47 …t.deepEqual(Object.getOwnPropertyDescriptor(obj, 'd'), getDescriptor(5), 'new property "d" was add…
62 …t.deepEqual(Object.getOwnPropertyDescriptor(obj, 'd'), getDescriptor(5), 'existing property "d" re…
63 …t.deepEqual(Object.getOwnPropertyDescriptor(obj, 'a'), getDescriptor(2), 'existing property "a" wa…
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java783 Any.getDescriptor().getFullName(), in buildWellKnownTypePrinters()
798 printers.put(BoolValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
799 printers.put(Int32Value.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
800 printers.put(UInt32Value.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
801 printers.put(Int64Value.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
802 printers.put(UInt64Value.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
803 printers.put(StringValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
804 printers.put(BytesValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
805 printers.put(FloatValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
806 printers.put(DoubleValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
[all …]
/third_party/node/deps/npm/node_modules/object.getownpropertydescriptors/
Dimplementation.js6 var getDescriptor = Object.getOwnPropertyDescriptor;
15 var isES5 = ES.IsCallable(getDescriptor) && ES.IsCallable(getOwnNames);
38 var descriptor = getDescriptor(O, key);
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DGeneratedMessage.java844 if (extension.getDescriptor().getContainingType() !=
849 extension.getDescriptor().getContainingType().getFullName() +
862 return extensions.hasField(extension.getDescriptor());
873 final FieldDescriptor descriptor = extension.getDescriptor();
884 FieldDescriptor descriptor = extension.getDescriptor();
909 FieldDescriptor descriptor = extension.getDescriptor();
1226 if (extension.getDescriptor().getContainingType() !=
1231 extension.getDescriptor().getContainingType().getFullName() +
1243 return extensions.hasField(extension.getDescriptor());
1253 final FieldDescriptor descriptor = extension.getDescriptor();
[all …]
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskUtilTest.java60 assertTrue(FieldMaskUtil.isValid(NestedTestAllTypes.getDescriptor(), "payload")); in testIsValid()
61 assertFalse(FieldMaskUtil.isValid(NestedTestAllTypes.getDescriptor(), "nonexist")); in testIsValid()
65 NestedTestAllTypes.getDescriptor(), FieldMaskUtil.fromString("payload"))); in testIsValid()
68 NestedTestAllTypes.getDescriptor(), FieldMaskUtil.fromString("nonexist"))); in testIsValid()
190 NestedTestAllTypes.getDescriptor(), in testFromStringList()
/third_party/node/deps/npm/node_modules/bluebird/js/release/
Des5.js10 getDescriptor: Object.getOwnPropertyDescriptor, property
72 getDescriptor: ObjectGetDescriptor, property

1234