/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | DynamicMessageTest.java | 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() 136 Message.Builder builder = DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSettersRejectNull() 142 DynamicMessage.getDefaultInstance(TestAllTypes.getDescriptor())); in testDynamicMessageDefaults() 144 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()).build()); in testDynamicMessageDefaults() [all …]
|
D | MessageTest.java | 98 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testMergeFromDynamic() 106 DynamicMessage result = in testDynamicMergeFrom() 107 DynamicMessage.newBuilder(MERGE_DEST) in testDynamicMergeFrom() 108 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testDynamicMergeFrom() 171 DynamicMessage.Builder builder = DynamicMessage.newBuilder(descriptor); in testRequiredDynamic() 184 DynamicMessage.Builder builder = DynamicMessage.newBuilder(descriptor); in testRequiredDynamicForeign() 292 DynamicMessage.newBuilder(TestRequired.getDescriptor()).build(); in testDynamicUninitializedException() 301 DynamicMessage message = DynamicMessage.newBuilder(TestRequired.getDescriptor()).buildPartial(); in testDynamicBuildPartial() 308 DynamicMessage.parseFrom(descriptor, ByteString.EMPTY); in testDynamicParseUnititialized() 318 DynamicMessage result = in testDynamicRepeatedMessageNull() [all …]
|
D | PackedFieldTest.java | 200 DynamicMessage message = in testPackedDynamicMessageSerialize() 201 DynamicMessage.parseFrom(TestAllTypes.getDescriptor(), expectedPackedRawBytes); in testPackedDynamicMessageSerialize() 211 DynamicMessage message = in testUnPackedDynamicMessageSerialize() 212 DynamicMessage.parseFrom(TestUnpackedTypes.getDescriptor(), expectedUnpackedRawBytes); in testUnPackedDynamicMessageSerialize()
|
D | DiscardUnknownFieldsTest.java | 49 DynamicMessage.getDefaultInstance(UnittestProto.TestEmptyMessage.getDescriptor())); in testProto2() 51 DynamicMessage.getDefaultInstance( in testProto2() 59 DynamicMessage.getDefaultInstance(UnittestProto3.TestEmptyMessage.getDescriptor())); in testProto3()
|
D | FieldPresenceTest.java | 172 DynamicMessage.Builder dynamicBuilder = in assertProto3OptionalReflection() 173 DynamicMessage.newBuilder(TestProto3Optional.getDescriptor()); in assertProto3OptionalReflection() 185 DynamicMessage.Builder otherDynamicBuilder = in assertProto3OptionalReflection() 186 DynamicMessage.newBuilder(TestProto3Optional.getDescriptor()); in assertProto3OptionalReflection() 191 DynamicMessage dynamicProto = in assertProto3OptionalReflection() 192 DynamicMessage.parseFrom(TestProto3Optional.getDescriptor(), builder.build().toByteArray()); in assertProto3OptionalReflection() 336 DynamicMessage defaultInstance = DynamicMessage.getDefaultInstance(descriptor); in testFieldPresenceDynamicMessage() 338 DynamicMessage message = defaultInstance.newBuilderForType().build(); in testFieldPresenceDynamicMessage()
|
D | WireFormatTest.java | 210 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testInterleavedFieldsAndExtensions() 267 DynamicMessage source = in testParseMultipleExtensionRangesDynamic() 268 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testParseMultipleExtensionRangesDynamic() 275 DynamicMessage dest = in testParseMultipleExtensionRangesDynamic() 276 DynamicMessage.parseFrom( in testParseMultipleExtensionRangesDynamic()
|
D | UnknownEnumValueTest.java | 184 Message dynamicMessageDefaultInstance = DynamicMessage.getDefaultInstance(descriptor); in testUnknownEnumValueWithDynamicMessage() 290 DynamicMessage message = in testUnknownEnumValuesInProto2WithDynamicMessage() 291 DynamicMessage.parseFrom( in testUnknownEnumValuesInProto2WithDynamicMessage()
|
D | TextFormatTest.java | 590 DynamicMessage testAny = in testPrintAny_anyWithDynamicMessage() 591 DynamicMessage.newBuilder(descriptor) in testPrintAny_anyWithDynamicMessage() 619 DynamicMessage testAny = in testPrintAny_anyFromWithNoValueField() 620 DynamicMessage.newBuilder(descriptor) in testPrintAny_anyFromWithNoValueField() 642 DynamicMessage testAny = in testPrintAny_anyFromWithNoTypeUrlField() 643 DynamicMessage.newBuilder(descriptor) in testPrintAny_anyFromWithNoTypeUrlField() 671 DynamicMessage testAny = in testPrintAny_anyWithInvalidFieldType() 672 DynamicMessage.newBuilder(descriptor) in testPrintAny_anyWithInvalidFieldType()
|
D | MapTest.java | 874 Message dynamicDefaultInstance = DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testDynamicMessage() 887 Message dynamicDefaultInstance = DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testDynamicMessageUnsetKeyAndValue() 904 Message dynamicDefaultInstance = DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testReflectionEqualsAndHashCode() 1380 DynamicMessage dynamicMessage = in testInitFromPartialDynamicMessage() 1381 DynamicMessage.newBuilder(TestMap.getDescriptor()) in testInitFromPartialDynamicMessage() 1384 DynamicMessage.newBuilder(mapEntryType) in testInitFromPartialDynamicMessage() 1401 DynamicMessage dynamicMessage = in testInitFromFullyDynamicMessage() 1402 DynamicMessage.newBuilder(TestMap.getDescriptor()) in testInitFromFullyDynamicMessage() 1405 DynamicMessage.newBuilder(mapEntryType) in testInitFromFullyDynamicMessage() 1409 DynamicMessage.newBuilder(TestMap.MessageValue.getDescriptor()) in testInitFromFullyDynamicMessage()
|
D | AbstractMessageTest.java | 296 DynamicMessage.newBuilder(TestRequiredForeign.getDescriptor()); in testParsingUninitialized() 511 DynamicMessage dynamic = DynamicMessage.newBuilder(message).build(); in checkEqualsIsConsistent()
|
D | MapForProto2Test.java | 783 Message dynamicDefaultInstance = DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testDynamicMessage() 796 Message dynamicDefaultInstance = DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testDynamicMessageUnsetKeyAndValue() 813 Message dynamicDefaultInstance = DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testReflectionEqualsAndHashCode()
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | DynamicMessageTest.java | 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() 140 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSettersRejectNull() 146 DynamicMessage.getDefaultInstance(TestAllTypes.getDescriptor())); in testDynamicMessageDefaults() 148 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()).build()); in testDynamicMessageDefaults() [all …]
|
D | MessageTest.java | 96 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testMergeFromDynamic() 104 DynamicMessage result = in testDynamicMergeFrom() 105 DynamicMessage.newBuilder(MERGE_DEST) in testDynamicMergeFrom() 106 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testDynamicMergeFrom() 170 DynamicMessage.Builder builder = DynamicMessage.newBuilder(descriptor); in testRequiredDynamic() 183 DynamicMessage.Builder builder = DynamicMessage.newBuilder(descriptor); in testRequiredDynamicForeign() 292 DynamicMessage.newBuilder(TestRequired.getDescriptor()).build(); in testDynamicUninitializedException() 301 DynamicMessage message = in testDynamicBuildPartial() 302 DynamicMessage.newBuilder(TestRequired.getDescriptor()) in testDynamicBuildPartial() 310 DynamicMessage.parseFrom(descriptor, ByteString.EMPTY); in testDynamicParseUnititialized() [all …]
|
D | WireFormatTest.java | 211 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testInterleavedFieldsAndExtensions() 248 DynamicMessage source = in testParseMultipleExtensionRangesDynamic() 249 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testParseMultipleExtensionRangesDynamic() 256 DynamicMessage dest = in testParseMultipleExtensionRangesDynamic() 257 DynamicMessage.parseFrom(descriptor, source.toByteString(), in testParseMultipleExtensionRangesDynamic()
|
D | AbstractMessageTest.java | 248 Message.Builder dynamicMessageBuilder = DynamicMessage.newBuilder( in testParsingUninitialized() 481 DynamicMessage dynamic = DynamicMessage.newBuilder(message).build(); in checkEqualsIsConsistent()
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | DynamicMessage.java | 51 public final class DynamicMessage extends AbstractMessage { class 66 DynamicMessage( in DynamicMessage() method in DynamicMessage 78 public static DynamicMessage getDefaultInstance(Descriptor type) { in getDefaultInstance() 81 return new DynamicMessage( in getDefaultInstance() 90 public static DynamicMessage parseFrom(Descriptor type, CodedInputStream input) in parseFrom() 96 public static DynamicMessage parseFrom( in parseFrom() 103 public static DynamicMessage parseFrom(Descriptor type, ByteString data) in parseFrom() 109 public static DynamicMessage parseFrom( in parseFrom() 116 public static DynamicMessage parseFrom(Descriptor type, byte[] data) in parseFrom() 122 public static DynamicMessage parseFrom( in parseFrom() [all …]
|
D | TextFormat.java | 385 contentBuilder = DynamicMessage.getDefaultInstance(contentType).newBuilderForType(); in printAny() 2023 Message anyBuilder = DynamicMessage.getDefaultInstance(field.getMessageType()); in consumeFieldValue() 2196 DynamicMessage.getDefaultInstance(contentType).newBuilderForType(); in mergeAnyFieldValue()
|
/third_party/protobuf/src/google/protobuf/ |
D | dynamic_message.cc | 257 class DynamicMessage : public Message { class 279 const DynamicMessage* prototype; 287 DynamicMessage(const TypeInfo* type_info); 290 DynamicMessage(TypeInfo* type_info, bool lock_factory); 292 ~DynamicMessage(); 317 DynamicMessage(const TypeInfo* type_info, Arena* arena); 340 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(DynamicMessage); 343 DynamicMessage::DynamicMessage(const TypeInfo* type_info) in DynamicMessage() function in google::protobuf::DynamicMessage 348 DynamicMessage::DynamicMessage(const TypeInfo* type_info, Arena* arena) in DynamicMessage() function in google::protobuf::DynamicMessage 355 DynamicMessage::DynamicMessage(TypeInfo* type_info, bool lock_factory) in DynamicMessage() function in google::protobuf::DynamicMessage [all …]
|
D | drop_unknown_fields_test.cc | 64 TEST(DropUnknownFieldsTest, DynamicMessage) { in TEST() argument
|
D | dynamic_message.h | 140 friend class DynamicMessage; variable
|
D | map_field.h | 59 class DynamicMessage; variable 368 friend class ::PROTOBUF_NAMESPACE_ID::DynamicMessage;
|
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyMap.java | 36 import com.google.protobuf.DynamicMessage; 364 protected List<DynamicMessage> build(ThreadContext context, RubyDescriptor descriptor) { in build() 365 List<DynamicMessage> list = new ArrayList<DynamicMessage>(); in build()
|
D | RubyMessage.java | 72 this.builder = DynamicMessage.newBuilder(this.descriptor); in initialize() 401 protected DynamicMessage build(ThreadContext context) { in build() 405 protected DynamicMessage build(ThreadContext context, int depth) { in build() 412 for (DynamicMessage kv : maps.get(fieldDescriptor).build(context, mapDescriptor)) { in build() 467 private IRubyObject buildFrom(ThreadContext context, DynamicMessage dynamicMessage) { in buildFrom() 593 return msg.buildFrom(context, (DynamicMessage) value); in wrapField() 651 … DynamicMessage message = (DynamicMessage) this.builder.getRepeatedField(fieldDescriptor, i); in getField() 800 private DynamicMessage.Builder builder;
|
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | FieldMaskTreeTest.java | 35 import com.google.protobuf.DynamicMessage; 147 DynamicMessage.newBuilder(source.getDescriptorForType()) in merge() 150 DynamicMessage.newBuilder(source.getDescriptorForType()) in merge()
|
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | JsonFormat.java | 59 import com.google.protobuf.DynamicMessage; 891 DynamicMessage.getDefaultInstance(type).getParserForType().parseFrom(content); in printAny() 1541 DynamicMessage.getDefaultInstance(contentType).newBuilderForType(); in mergeAny()
|