Home
last modified time | relevance | path

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

1234

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DTestUtil.java1428 Assert.assertTrue(message.getExtension(optionalGroupExtension).hasA()); in assertAllExtensionsSet()
1429 Assert.assertTrue(message.getExtension(optionalNestedMessageExtension).hasBb()); in assertAllExtensionsSet()
1430 Assert.assertTrue(message.getExtension(optionalForeignMessageExtension).hasC()); in assertAllExtensionsSet()
1431 Assert.assertTrue(message.getExtension(optionalImportMessageExtension).hasD()); in assertAllExtensionsSet()
1440 assertEqualsExactType(101, message.getExtension(optionalInt32Extension)); in assertAllExtensionsSet()
1441 assertEqualsExactType(102L, message.getExtension(optionalInt64Extension)); in assertAllExtensionsSet()
1442 assertEqualsExactType(103, message.getExtension(optionalUint32Extension)); in assertAllExtensionsSet()
1443 assertEqualsExactType(104L, message.getExtension(optionalUint64Extension)); in assertAllExtensionsSet()
1444 assertEqualsExactType(105, message.getExtension(optionalSint32Extension)); in assertAllExtensionsSet()
1445 assertEqualsExactType(106L, message.getExtension(optionalSint64Extension)); in assertAllExtensionsSet()
[all …]
DProto2ExtensionLookupSchemaTest.java161 parsed.getExtension(Proto2Testing.fieldEnumList30).size()); in testUnknownEnum()
162 assertEquals(TestEnum.ONE, parsed.getExtension(Proto2Testing.fieldEnumList30, 0)); in testUnknownEnum()
163 assertEquals(TestEnum.TWO, parsed.getExtension(Proto2Testing.fieldEnumList30, 1)); in testUnknownEnum()
167 parsed.getExtension(Proto2Testing.fieldEnumListPacked44).size()); in testUnknownEnum()
168 assertEquals(TestEnum.ONE, parsed.getExtension(Proto2Testing.fieldEnumListPacked44, 0)); in testUnknownEnum()
169 assertEquals(TestEnum.TWO, parsed.getExtension(Proto2Testing.fieldEnumListPacked44, 1)); in testUnknownEnum()
DProto2UnknownEnumValueTest.java93 message.getExtension(UnittestProto.optionalNestedEnumExtension)); in testExtensionUnknownEnumValues()
94 assertEquals(2, message.getExtension(UnittestProto.repeatedNestedEnumExtension).size()); in testExtensionUnknownEnumValues()
97 message.getExtension(UnittestProto.repeatedNestedEnumExtension, 0)); in testExtensionUnknownEnumValues()
100 message.getExtension(UnittestProto.repeatedNestedEnumExtension, 1)); in testExtensionUnknownEnumValues()
DTestBadIdentifiersLite.java81 .getExtension(TestBadIdentifiersProto.TestConflictingFieldNames.int64FieldCount) in testConflictingFieldNames()
86 .getExtension(TestBadIdentifiersProto.TestConflictingFieldNames.int64FieldList) in testConflictingFieldNames()
DTestBadIdentifiers.java87 .getExtension(TestBadIdentifiersProto.TestConflictingFieldNames.int64FieldCount) in testConflictingFieldNames()
92 .getExtension(TestBadIdentifiersProto.TestConflictingFieldNames.int64FieldList) in testConflictingFieldNames()
DWireFormatTest.java374 assertEquals(123, messageSet.getExtension(TestMessageSetExtension1.messageSetExtension).getI()); in testParseMessageSetWithFlag()
376 "foo", messageSet.getExtension(TestMessageSetExtension2.messageSetExtension).getStr()); in testParseMessageSetWithFlag()
417 assertEquals(123, messageSet.getExtension(TestMessageSetExtension1.messageSetExtension).getI()); in testParseMessageSetExtensionWithFlag()
450 assertEquals(123, messageSet.getExtension(TestMessageSetExtension1.messageSetExtension).getI()); in testMergeLazyMessageSetExtensionWithFlag()
493 assertEquals(123, messageSet.getExtension(TestMessageSetExtension1.messageSetExtension).getI()); in testMergeMessageSetExtensionWithFlag()
DGeneratedMessageTest.java98 builder.build().getExtension(UnittestProto.optionalNestedMessageExtension).getBb()); in testGetFieldBuilderForExtensionField()
105 builder.build().getExtension(UnittestProto.optionalNestedMessageExtension).getBb()); in testGetFieldBuilderForExtensionField()
121 builder.build().getExtension(UnittestProto.optionalNestedMessageExtension).getBb()); in testGetFieldBuilderWithExistingMessage()
128 builder.build().getExtension(UnittestProto.optionalNestedMessageExtension).getBb()); in testGetFieldBuilderWithExistingMessage()
144 builder.build().getExtension(UnittestProto.optionalNestedMessageExtension).getBb()); in testGetFieldBuilderWithExistingBuilder()
151 builder.build().getExtension(UnittestProto.optionalNestedMessageExtension).getBb()); in testGetFieldBuilderWithExistingBuilder()
158 builder.build().getExtension(UnittestProto.optionalNestedMessageExtension).getBb()); in testGetFieldBuilderWithExistingBuilder()
175 builder.build().getExtension(UnittestProto.repeatedNestedMessageExtension, 0).getBb()); in testGetRepeatedFieldBuilderForExtensionField()
182 builder.build().getExtension(UnittestProto.repeatedNestedMessageExtension, 0).getBb()); in testGetRepeatedFieldBuilderForExtensionField()
199 builder.build().getExtension(UnittestProto.repeatedNestedMessageExtension, 0).getBb()); in testGetRepeatedFieldBuilderForExistingBuilder()
[all …]
DDescriptorsTest.java348 descriptor.getOptions().getExtension(UnittestCustomOptions.messageOpt1)); in testCustomOptions()
356 field.getOptions().getExtension(UnittestCustomOptions.fieldOpt1)); in testCustomOptions()
363 Integer.valueOf(-99), oneof.getOptions().getExtension(UnittestCustomOptions.oneofOpt1)); in testCustomOptions()
370 Integer.valueOf(-789), enumType.getOptions().getExtension(UnittestCustomOptions.enumOpt1)); in testCustomOptions()
377 service.getOptions().getExtension(UnittestCustomOptions.serviceOpt1)); in testCustomOptions()
385 method.getOptions().getExtension(UnittestCustomOptions.methodOpt1)); in testCustomOptions()
799 assertEquals("!fi", msg.getExtension(NonNestedExtension.if_)); in testExtensionRenamesKeywords()
805 assertEquals(8, msg.getExtension(NestedExtension.MyNestedExtension.default_).intValue()); in testExtensionRenamesKeywords()
DLazyMessageLiteTest.java295 assertEquals("name", innerBuilder.getExtension(LazyExtension.extension).getName()); in testExtensions()
299 assertEquals("name", innerMessage.getExtension(LazyExtension.extension).getName()); in testExtensions()
303 assertEquals("name", lite.getInner().getExtension(LazyExtension.extension).getName()); in testExtensions()
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
Dproto_test.js282 msg.getExtension(proto.jspb.test.extendOptionalInt32));
284 msg.getExtension(proto.jspb.test.extendOptionalInt64));
286 msg.getExtension(proto.jspb.test.extendOptionalUint32));
288 msg.getExtension(proto.jspb.test.extendOptionalUint64));
290 msg.getExtension(proto.jspb.test.extendOptionalSint32));
292 msg.getExtension(proto.jspb.test.extendOptionalSint64));
294 msg.getExtension(proto.jspb.test.extendOptionalFixed32));
296 msg.getExtension(proto.jspb.test.extendOptionalFixed64));
298 msg.getExtension(proto.jspb.test.extendOptionalSfixed32));
300 msg.getExtension(proto.jspb.test.extendOptionalSfixed64));
[all …]
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
Dproto_test.js282 msg.getExtension(proto.jspb.test.extendOptionalInt32));
284 msg.getExtension(proto.jspb.test.extendOptionalInt64));
286 msg.getExtension(proto.jspb.test.extendOptionalUint32));
288 msg.getExtension(proto.jspb.test.extendOptionalUint64));
290 msg.getExtension(proto.jspb.test.extendOptionalSint32));
292 msg.getExtension(proto.jspb.test.extendOptionalSint64));
294 msg.getExtension(proto.jspb.test.extendOptionalFixed32));
296 msg.getExtension(proto.jspb.test.extendOptionalFixed64));
298 msg.getExtension(proto.jspb.test.extendOptionalSfixed32));
300 msg.getExtension(proto.jspb.test.extendOptionalSfixed64));
[all …]
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java1299 Assert.assertTrue(message.getExtension(optionalGroupExtension ).hasA()); in assertAllExtensionsSet()
1300 Assert.assertTrue(message.getExtension(optionalNestedMessageExtension ).hasBb()); in assertAllExtensionsSet()
1301 Assert.assertTrue(message.getExtension(optionalForeignMessageExtension).hasC()); in assertAllExtensionsSet()
1302 Assert.assertTrue(message.getExtension(optionalImportMessageExtension ).hasD()); in assertAllExtensionsSet()
1311 assertEqualsExactType(101 , message.getExtension(optionalInt32Extension )); in assertAllExtensionsSet()
1312 assertEqualsExactType(102L , message.getExtension(optionalInt64Extension )); in assertAllExtensionsSet()
1313 assertEqualsExactType(103 , message.getExtension(optionalUint32Extension )); in assertAllExtensionsSet()
1314 assertEqualsExactType(104L , message.getExtension(optionalUint64Extension )); in assertAllExtensionsSet()
1315 assertEqualsExactType(105 , message.getExtension(optionalSint32Extension )); in assertAllExtensionsSet()
1316 assertEqualsExactType(106L , message.getExtension(optionalSint64Extension )); in assertAllExtensionsSet()
[all …]
DWireFormatTest.java369 assertEquals(123, messageSet.getExtension( in testParseMessageSetWithFlag()
371 assertEquals("foo", messageSet.getExtension( in testParseMessageSetWithFlag()
420 assertEquals(123, messageSet.getExtension( in testParseMessageSetExtensionWithFlag()
462 assertEquals(123, messageSet.getExtension( in testMergeLazyMessageSetExtensionWithFlag()
/third_party/protobuf/objectivec/Tests/
DGPBTestUtilities.m205 XCTAssertTrue([[message getExtension:[UnittestRoot optionalGroupExtension]] hasA]);
206 XCTAssertTrue([[message getExtension:[UnittestRoot optionalNestedMessageExtension]] hasBb]);
207 XCTAssertTrue([[message getExtension:[UnittestRoot optionalForeignMessageExtension]] hasC]);
208 XCTAssertTrue([[message getExtension:[UnittestRoot optionalImportMessageExtension]] hasD]);
240 XCTAssertEqual(101, [[message getExtension:[UnittestRoot optionalInt32Extension]] intValue]);
241 …XCTAssertEqual(102LL, [[message getExtension:[UnittestRoot optionalInt64Extension]] longLongValue]…
242 …XCTAssertEqual(103U, [[message getExtension:[UnittestRoot optionalUint32Extension]] unsignedIntVal…
243 …XCTAssertEqual(104ULL, [[message getExtension:[UnittestRoot optionalUint64Extension]] unsignedLong…
244 XCTAssertEqual(105, [[message getExtension:[UnittestRoot optionalSint32Extension]] intValue]);
245 …XCTAssertEqual(106LL, [[message getExtension:[UnittestRoot optionalSint64Extension]] longLongValue…
[all …]
DGPBMessageTests.m616 [[message2 getExtension:[UnittestRoot repeatedInt32Extension]] count],
620 [[message2 getExtension:[UnittestRoot repeatedInt32Extension]] count],
627 [message3 getExtension:[UnittestObjcRoot recursiveExtension]];
1481 [message getExtension:[UnittestRoot optionalGroupExtension]];
1483 [message getExtension:[UnittestRoot optionalNestedMessageExtension]];
1485 [message getExtension:[UnittestRoot optionalForeignMessageExtension]];
1487 [message getExtension:[UnittestRoot optionalImportMessageExtension]];
1489 getExtension:[UnittestRoot optionalPublicImportMessageExtension]];
1491 [message getExtension:[UnittestRoot optionalLazyMessageExtension]];
1514 XCTAssertEqual([message getExtension:[UnittestRoot optionalGroupExtension]],
[all …]
DGPBUtilitiesTests.m287 [message getExtension:[UnittestRoot optionalGroupExtension]];
296 [message getExtension:[UnittestRoot optionalNestedMessageExtension]];
304 NSArray *repeatedGroups = [message getExtension:[UnittestRoot repeatedGroupExtension]];
314 …NSArray *repeatedNestedMessages = [message getExtension:[UnittestRoot repeatedNestedMessageExtensi…
334 [message getExtension:[UnittestRoot optionalGroupExtension]];
343 [message getExtension:[UnittestRoot optionalNestedMessageExtension]];
351 NSArray *repeatedGroups = [message getExtension:[UnittestRoot repeatedGroupExtension]];
361 …NSArray *repeatedNestedMessages = [message getExtension:[UnittestRoot repeatedNestedMessageExtensi…
DGPBWireFormatTests.m149 [[message_set getExtension:[TestMessageSetExtension1 messageSetExtension]]
151 [[message_set getExtension:[TestMessageSetExtension2 messageSetExtension]]
228 getExtension:[TestMessageSetExtension1 messageSetExtension]] i],
232 getExtension:[TestMessageSetExtension2 messageSetExtension]] str],
/third_party/protobuf/js/binary/
Dproto_test.js286 assertEquals(0, msg.getExtension(proto.jspb.test.extendOptionalInt32));
288 msg.getExtension(proto.jspb.test.extendOptionalInt64));
290 msg.getExtension(proto.jspb.test.extendOptionalUint32));
292 msg.getExtension(proto.jspb.test.extendOptionalUint64));
294 msg.getExtension(proto.jspb.test.extendOptionalSint32));
296 msg.getExtension(proto.jspb.test.extendOptionalSint64));
298 msg.getExtension(proto.jspb.test.extendOptionalFixed32));
300 msg.getExtension(proto.jspb.test.extendOptionalFixed64));
302 msg.getExtension(proto.jspb.test.extendOptionalSfixed32));
304 msg.getExtension(proto.jspb.test.extendOptionalSfixed64));
[all …]
/third_party/protobuf/js/
Dmessage_test.js539 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt());
552 dest.getExtension(proto.jspb.test.CloneExtension.extField)
555 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt(),
556 original.getExtension(proto.jspb.test.CloneExtension.extField)
586 extendable.getExtension(proto.jspb.test.IsExtension.extField));
589 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
592 extendable.getExtension(proto.jspb.test.IndirectExtension.str));
595 extendable.getExtension(
599 extendable.getExtension(
604 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
[all …]
/third_party/typescript_eslint/packages/typescript-estree/src/create-program/
DcreateProjectProgram.ts12 function getExtension(fileName: string | undefined): string | null { function
38 const expectedExt = getExtension(extra.filePath);
39 const returnedExt = getExtension(ast?.fileName);
/third_party/protobuf/js/compatibility_tests/v3.1.0/
Dmessage_test.js492 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt());
505 dest.getExtension(proto.jspb.test.CloneExtension.extField).
508 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt(),
509 original.getExtension(
539 extendable.getExtension(proto.jspb.test.IsExtension.extField));
541 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
543 extendable.getExtension(proto.jspb.test.IndirectExtension.str));
544 assertObjectEquals(['a', 'b'], extendable.getExtension(
546 assertObjectEquals([s1, s2], extendable.getExtension(
551 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
[all …]
/third_party/protobuf/js/compatibility_tests/v3.0.0/
Dmessage_test.js536 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt());
549 dest.getExtension(proto.jspb.test.CloneExtension.extField).
552 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt(),
553 original.getExtension(
583 extendable.getExtension(proto.jspb.test.IsExtension.extField));
585 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
587 extendable.getExtension(proto.jspb.test.IndirectExtension.str));
588 assertObjectEquals(['a', 'b'], extendable.getExtension(
590 assertObjectEquals([s1, s2], extendable.getExtension(
595 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
[all …]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DGeneratedMessage.java752 <Type> Type getExtension(
756 <Type> Type getExtension(
773 <Type> Type getExtension(
776 <Type> Type getExtension(
779 <Type> Type getExtension(
783 <Type> Type getExtension(
880 public final <Type> Type getExtension(final ExtensionLite<MessageType, Type> extensionLite) {
904 public final <Type> Type getExtension(
939 public final <Type> Type getExtension(final Extension<MessageType, Type> extension) {
940 return getExtension((ExtensionLite<MessageType, Type>) extension);
[all …]
DGeneratedMessageV3.java907 <Type> Type getExtension(
911 <Type> Type getExtension(
928 <Type> Type getExtension(
931 <Type> Type getExtension(
934 <Type> Type getExtension(
938 <Type> Type getExtension(
1035 public final <Type> Type getExtension(final ExtensionLite<MessageType, Type> extensionLite) {
1059 public final <Type> Type getExtension(
1094 public final <Type> Type getExtension(final Extension<MessageType, Type> extension) {
1095 return getExtension((ExtensionLite<MessageType, Type>) extension);
[all …]
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhonenumber.java79 public String getExtension() { return extension_; } in getExtension() method in Phonenumber.PhoneNumber
203 setExtension(other.getExtension()); in mergeFrom()
252 hash = (53 * hash) + getExtension().hashCode(); in hashCode()

1234