Searched refs:getDefaultInstance (Results 1 – 25 of 48) sorted by relevance
12
292 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()298 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()302 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()312 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()318 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()322 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()332 OptionalGroup.getDefaultInstance(), message.getOptionalGroup()); in testSanityCopyOnWrite()337 OptionalGroup.getDefaultInstance(), message.getOptionalGroup()); in testSanityCopyOnWrite()340 OptionalGroup.getDefaultInstance(), builder.getOptionalGroup()); in testSanityCopyOnWrite()348 OptionalGroup.getDefaultInstance(), message.getOptionalGroup()); in testSanityCopyOnWrite()[all …]
53 assertEquals(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testGetValue()55 assertNotEqual(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testGetValue()61 assertEquals(message, lazyField.getValue(TestAllExtensions.getDefaultInstance())); in testGetValueEx()63 assertNotEqual(message, lazyField.getValue(TestAllExtensions.getDefaultInstance())); in testGetValueEx()70 assertNotEqual(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testSetValue()71 message = lazyField.getValue(TestAllTypes.getDefaultInstance()); in testSetValue()73 assertEquals(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testSetValue()80 assertNotEqual(message, lazyField.getValue(TestAllExtensions.getDefaultInstance())); in testSetValueEx()81 MessageLite value = lazyField.getValue(TestAllExtensions.getDefaultInstance()); in testSetValueEx()83 assertEquals(value, lazyField.getValue(TestAllExtensions.getDefaultInstance())); in testSetValueEx()[all …]
53 TestAllTypes.getDefaultInstance(), in testBasicUseAndInvalidations()56 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testBasicUseAndInvalidations()57 assertEquals(TestAllTypes.getDefaultInstance(), in testBasicUseAndInvalidations()83 TestAllTypes.getDefaultInstance(), in testSetMessage()109 TestAllTypes.getDefaultInstance(), in testClear()113 assertNotSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear()115 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear()118 assertNotSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear()120 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear()129 TestAllTypes.getDefaultInstance(), in testMerge()[all …]
54 .getDefaultInstance().getDescriptor(); in testGetDescriptor()56 .getDefaultInstance().getDescriptorForType(); in testGetDescriptor()58 .NestedDescriptor.getDefaultInstance().getDescriptor(); in testGetDescriptor()60 .Descriptor.NestedDescriptor.getDefaultInstance() in testGetDescriptor()66 TestBadIdentifiersProto.TestConflictingFieldNames.getDefaultInstance(); in testConflictingFieldNames()
103 FooRequest.getDefaultInstance()); in testGetPrototype()105 FooResponse.getDefaultInstance()); in testGetPrototype()107 BarRequest.getDefaultInstance()); in testGetPrototype()109 BarResponse.getDefaultInstance()); in testGetPrototype()125 EasyMock.same(FooResponse.getDefaultInstance()), in testStub()131 EasyMock.same(BarResponse.getDefaultInstance()), in testStub()156 EasyMock.same(FooResponse.getDefaultInstance()))).andReturn(fooResponse); in testBlockingStub()161 EasyMock.same(BarResponse.getDefaultInstance()))).andReturn(barResponse); in testBlockingStub()177 MessageWithNoOuter request = MessageWithNoOuter.getDefaultInstance(); in testNewReflectiveService()209 MessageWithNoOuter request = MessageWithNoOuter.getDefaultInstance(); in testNewReflectiveBlockingService()[all …]
52 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.getDefaultInstance(); in testDefaultInstance()121 assertFalse(unknownFields1.equals(UnknownFieldSetLite.getDefaultInstance())); in testEqualsAndHashCode()122 assertFalse(unknownFields1.hashCode() == UnknownFieldSetLite.getDefaultInstance().hashCode()); in testEqualsAndHashCode()148 UnknownFieldSetLite.getDefaultInstance(), UnknownFieldSetLite.getDefaultInstance()); in testMutableCopyOf_empty()280 TestAllTypesLite testAllTypes = TestAllTypesLite.getDefaultInstance(); in testEndToEnd()
57 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance())115 TestRequired.getDefaultInstance();337 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()339 .addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()340 .addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
91 assertSame(TestAllTypes.getDefaultInstance(), in testDefaultInstance()92 TestAllTypes.getDefaultInstance().getDefaultInstanceForType()); in testDefaultInstance()93 assertSame(TestAllTypes.getDefaultInstance(), in testDefaultInstance()161 builder.addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()); in testProtosShareRepeatedArraysIfDidntChange()175 builder.addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()); in testRepeatedArraysAreImmutable()471 TestUtil.assertClear(TestAllTypes.getDefaultInstance()); in testDefaults()475 TestExtremeDefaultValues.getDefaultInstance(); in testDefaults()534 TestAllTypes.getDefaultInstance()); in testReflectionDefaults()568 assertTrue(TestAllTypes.getDefaultInstance().getDefaultNestedEnum() in testEnumInterface()619 TestUtil.assertExtensionsClear(TestAllExtensions.getDefaultInstance()); in testExtensionDefaults()[all …]
255 builder.setOptionalNestedMessage(TestAllTypes.NestedMessage.getDefaultInstance()); in testMessageField()264 builder.setOptionalNestedMessage(TestAllTypes.NestedMessage.getDefaultInstance()); in testSerializeAndParse()290 builder.setOptionalNestedMessage(TestAllTypes.NestedMessage.getDefaultInstance()); in testRepeatedFields()293 builder.addRepeatedNestedMessage(TestAllTypes.NestedMessage.getDefaultInstance()); in testRepeatedFields()365 DynamicMessage.getDefaultInstance( in testUnknownFields()
258 messageMap.put(1, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()259 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()262 messageMap.put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()267 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()269 builder.getMutableInt32ToMessageField().put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()271 newMap(1, TestMap.MessageValue.getDefaultInstance(), in testMutableMapLifecycle()272 2, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
237 messageMap.put(1, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()238 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()241 messageMap.put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()246 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()248 builder.getMutableInt32ToMessageField().put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()250 newMap(1, TestMap.MessageValue.getDefaultInstance(), in testMutableMapLifecycle()251 2, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()557 DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testDynamicMessage()571 DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testReflectionEqualsAndHashCode()659 .getDefaultInstance().getDescriptorForType().getName()); in testMapInitializationOrder()
238 messageMap.put(1, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()239 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()242 messageMap.put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()247 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()249 builder.getMutableInt32ToMessageField().put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()251 newMap(1, TestMap.MessageValue.getDefaultInstance(), in testMutableMapLifecycle()252 2, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()650 DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testDynamicMessage()664 DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testReflectionEqualsAndHashCode()
106 builder.addBuilder(0, TestAllTypes.getDefaultInstance()) in testVariousMethods()108 builder.addBuilder(TestAllTypes.getDefaultInstance()).setOptionalInt32(3); in testVariousMethods()
123 TestRecursiveOneof.getDefaultInstance().hashCode(); in testRecursiveHashcode()
159 assertEquals(DescriptorProtos.MessageOptions.getDefaultInstance(), in testDescriptor()217 assertEquals(DescriptorProtos.FieldOptions.getDefaultInstance(), in testFieldDescriptor()248 assertEquals(DescriptorProtos.FieldOptions.getDefaultInstance(), in testFieldDescriptor()310 assertEquals(DescriptorProtos.EnumOptions.getDefaultInstance(), in testEnumDescriptor()
351 TestRequired.getDefaultInstance();409 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance())
79 public static DynamicMessage getDefaultInstance(Descriptor type) { in getDefaultInstance() method in DynamicMessage84 UnknownFieldSet.getDefaultInstance()); in getDefaultInstance()166 return getDefaultInstance(type); in getDefaultInstanceForType()204 result = getDefaultInstance(field.getMessageType()); in getField()339 this.unknownFields = UnknownFieldSet.getDefaultInstance();353 unknownFields = UnknownFieldSet.getDefaultInstance();441 return getDefaultInstance(type);501 result = getDefaultInstance(field.getMessageType());
76 public static UnknownFieldSet getDefaultInstance() { in getDefaultInstance() method in UnknownFieldSet126 return (result == null) ? Field.getDefaultInstance() : result; in getField()347 result = getDefaultInstance(); in build()370 return UnknownFieldSet.getDefaultInstance(); in getDefaultInstanceForType()408 if (other != getDefaultInstance()) { in mergeFrom()728 public static Field getDefaultInstance() { in getDefaultInstance() method in UnknownFieldSet.Field
211 return UnknownFieldSet.getDefaultInstance(); in getUnknownFields()421 return UnknownFieldSet.getDefaultInstance(); in getUnknownFields()
135 Descriptor descriptor = Internal.getDefaultInstance(type).getDescriptorForType(); in fromFieldNumbers()153 Internal.getDefaultInstance(type).getDescriptorForType(); in isValid()175 Internal.getDefaultInstance(type).getDescriptorForType(); in isValid()
79 Session session = Session.getDefaultInstance(props, null); in sendMessage()132 Session session = Session.getDefaultInstance(props, null); in sendTextMessage()179 Session session = Session.getDefaultInstance(props, null); in sendMultiPartMessage()
123 return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); in getUnknownFields()397 return com.google.protobuf.jruby.SentinelOuterClass.Sentinel.getDefaultInstance(); in getDefaultInstanceForType()580 defaultString_ = getDefaultInstance().getDefaultString(); in clearDefaultString()700 defaultBytes_ = getDefaultInstance().getDefaultBytes(); in clearDefaultBytes()723 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel getDefaultInstance() { in getDefaultInstance() method in SentinelOuterClass.Sentinel
114 private Object getDefaultInstance() { in getDefaultInstance() method in ClassImpl190 result = new Object[] { getDefaultInstance() }; in getInstances()
META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
81 assertEquals("", FieldMaskUtil.toString(FieldMask.getDefaultInstance())); in testToString()