Home
last modified time | relevance | path

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

1234

/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DGeneratedMessageTest.java50 import protobuf_unittest.UnittestProto.ForeignMessage;
103 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes()
104 builder.addRepeatedForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes()
122 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes()
123 builder.setRepeatedForeignMessage(0, ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes()
152 builder.addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()); in testRepeatedArraysAreImmutable()
335 ForeignMessage foreignMessage = in testRepeatedAppend()
336 ForeignMessage.newBuilder().setC(12).build(); in testRepeatedAppend()
350 ForeignMessage foreignMessage = in testRepeatedAppendRejectsNull()
351 ForeignMessage.newBuilder().setC(12).build(); in testRepeatedAppendRejectsNull()
[all …]
DMessageTest.java38 import protobuf_unittest.UnittestProto.ForeignMessage;
58 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance())
66 .setOptionalForeignMessage(ForeignMessage.newBuilder().setC(3).build())
338 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
340 .addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
341 .addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
/external/protobuf/src/google/protobuf/
Drepeated_field_reflection_unittest.cc47 using unittest::ForeignMessage;
98 const RepeatedPtrField<ForeignMessage>& rpf_foreign_message = in TEST()
99 refl->GetRepeatedPtrField<ForeignMessage>(message, in TEST()
107 RepeatedPtrField<ForeignMessage>* mrpf_foreign_message = in TEST()
108 refl->MutableRepeatedPtrField<ForeignMessage>( in TEST()
121 EXPECT_EQ(down_cast<const ForeignMessage*>(&rpf_message.Get(i))->c(), in TEST()
129 EXPECT_EQ(down_cast<const ForeignMessage*>(&mrpf_message->Get(i))->c(), in TEST()
141 down_cast<ForeignMessage*>(mrpf_message->Mutable(i))->set_c(Func(i, 7)); in TEST()
247 const RepeatedFieldRef<ForeignMessage> rf_foreign_message = in TEST()
248 refl->GetRepeatedFieldRef<ForeignMessage>(message, in TEST()
[all …]
Dextension_set_unittest.cc82 &unittest::ForeignMessage::default_instance(), in TEST()
118 &unittest::ForeignMessage::default_instance(), in TEST()
157 unittest::ForeignMessage* foreign_message = new unittest::ForeignMessage(); in TEST()
170 new unittest::ForeignMessage()); in TEST()
213 unittest::ForeignMessage extension; in TEST()
217 unittest::ForeignMessage* mutable_extension = in TEST()
221 unittest::ForeignMessage* released_extension = in TEST()
235 unittest::ForeignMessage* extension = new unittest::ForeignMessage(); in TEST()
239 unittest::ForeignMessage* mutable_extension = in TEST()
243 unittest::ForeignMessage* released_extension = in TEST()
[all …]
Dmap_unittest.proto61 map<int32 , ForeignMessage> map_int32_foreign_message = 17;
62 map<string , ForeignMessage> map_string_foreign_message = 18;
109 map<int32 , ForeignMessage> map_int32_foreign_message = 17;
110 map<int32, .protobuf_unittest_no_arena.ForeignMessage>
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DMessageTest.java33 import protobuf_unittest.UnittestProto.ForeignMessage;
54 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance())
62 .setOptionalForeignMessage(ForeignMessage.newBuilder().setC(3).build())
338 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
340 .addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
341 .addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
DGeneratedMessageTest.java52 import protobuf_unittest.UnittestProto.ForeignMessage;
107 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes()
108 builder.addRepeatedForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes()
124 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes()
125 builder.setRepeatedForeignMessage(0, ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes()
149 builder.addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()); in testProtosShareRepeatedArraysIfDidntChange()
162 builder.addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()); in testRepeatedArraysAreImmutable()
338 ForeignMessage foreignMessage = ForeignMessage.newBuilder().setC(12).build(); in testRepeatedAppend()
351 ForeignMessage foreignMessage = ForeignMessage.newBuilder().setC(12).build(); in testRepeatedAppendRejectsNull()
353 builder.addAllRepeatedForeignMessage(Arrays.asList(foreignMessage, (ForeignMessage) null)); in testRepeatedAppendRejectsNull()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DSampleMessages.cs58 SingleForeignMessage = new ForeignMessage { C = 10 }, in CreateFullTestAllTypes()
80 RepeatedForeignMessage = { new ForeignMessage(), new ForeignMessage { C = 10 } }, in CreateFullTestAllTypes()
DGeneratedMessageTest.cs53 var message1 = new TestAllTypes { SingleForeignMessage = new ForeignMessage() }; in EmptyMessageFieldDistinctFromMissingMessageField()
149 SingleForeignMessage = new ForeignMessage { C = 10 }, in RoundTrip_SingleValues()
183 RepeatedForeignMessage = { new ForeignMessage(), new ForeignMessage { C = 10 } }, in RoundTrip_RepeatedValues()
223 { 0, new ForeignMessage { C = 10 } }, in RoundTrip_Maps()
224 { 5, new ForeignMessage() }, in RoundTrip_Maps()
260 var nestedMessage = new ForeignMessage { C = 20 }; in MapWithOnlyValue()
302 Assert.AreEqual(new ForeignMessage(), parsed.MapInt32ForeignMessage[key]); in MapWithOnlyKey_MessageValue()
703 var message = new ForeignMessage { C = 31 }; in CustomDiagnosticMessage_DirectToStringCall()
711 var message = new TestAllTypes { SingleForeignMessage = new ForeignMessage { C = 16 } }; in CustomDiagnosticMessage_Nested()
719 var message = new ForeignMessage { C = 31 }; in CustomDiagnosticMessage_DirectToTextWriterCall()
DFieldCodecTest.cs63 new FieldCodecTestData<ForeignMessage>(
64 … FieldCodec.ForMessage(100, ForeignMessage.Parser), new ForeignMessage { C = 10 }, "Message"),
/external/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs58 SingleForeignMessage = new ForeignMessage { C = 10 }, in CreateFullTestAllTypes()
80 RepeatedForeignMessage = { new ForeignMessage(), new ForeignMessage { C = 10 } }, in CreateFullTestAllTypes()
DGeneratedMessageTest.cs53 var message1 = new TestAllTypes { SingleForeignMessage = new ForeignMessage() }; in EmptyMessageFieldDistinctFromMissingMessageField()
149 SingleForeignMessage = new ForeignMessage { C = 10 }, in RoundTrip_SingleValues()
183 RepeatedForeignMessage = { new ForeignMessage(), new ForeignMessage { C = 10 } }, in RoundTrip_RepeatedValues()
223 { 0, new ForeignMessage { C = 10 } }, in RoundTrip_Maps()
224 { 5, new ForeignMessage() }, in RoundTrip_Maps()
260 var nestedMessage = new ForeignMessage { C = 20 }; in MapWithOnlyValue()
302 Assert.AreEqual(new ForeignMessage(), parsed.MapInt32ForeignMessage[key]); in MapWithOnlyKey_MessageValue()
703 var message = new ForeignMessage { C = 31 }; in CustomDiagnosticMessage_DirectToStringCall()
711 var message = new TestAllTypes { SingleForeignMessage = new ForeignMessage { C = 16 } }; in CustomDiagnosticMessage_Nested()
719 var message = new ForeignMessage { C = 31 }; in CustomDiagnosticMessage_DirectToTextWriterCall()
DFieldCodecTest.cs63 new FieldCodecTestData<ForeignMessage>(
64 … FieldCodec.ForMessage(100, ForeignMessage.Parser), new ForeignMessage { C = 10 }, "Message"),
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs386 var message1 = new ForeignMessage { C = 2000 }; in AddEntriesFrom_Message()
387 var message2 = new ForeignMessage { C = -250 }; in AddEntriesFrom_Message()
399 var field = new RepeatedField<ForeignMessage>(); in AddEntriesFrom_Message()
402 field.AddEntriesFrom(input, FieldCodec.ForMessage(tag, ForeignMessage.Parser)); in AddEntriesFrom_Message()
473 var message1 = new ForeignMessage { C = 20 }; in WriteTo_Message()
474 var message2 = new ForeignMessage { C = 25 }; in WriteTo_Message()
476 var field = new RepeatedField<ForeignMessage> { message1, message2 }; in WriteTo_Message()
479 field.WriteTo(output, FieldCodec.ForMessage(tag, ForeignMessage.Parser)); in WriteTo_Message()
485 Assert.AreEqual(message1, input.ReadMessage(ForeignMessage.Parser)); in WriteTo_Message()
487 Assert.AreEqual(message2, input.ReadMessage(ForeignMessage.Parser)); in WriteTo_Message()
DMapFieldTest.cs51 var message = new ForeignMessage { C = 20 }; in Clone_ClonesMessages()
52 var map = new MapField<string, ForeignMessage> { { "x", message } }; in Clone_ClonesMessages()
79 var map = new MapField<string, ForeignMessage>(); in Add_ForbidsNullKeys()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
86 var map = new MapField<string, ForeignMessage>(); in Indexer_ForbidsNullKeys()
87 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs386 var message1 = new ForeignMessage { C = 2000 }; in AddEntriesFrom_Message()
387 var message2 = new ForeignMessage { C = -250 }; in AddEntriesFrom_Message()
399 var field = new RepeatedField<ForeignMessage>(); in AddEntriesFrom_Message()
402 field.AddEntriesFrom(input, FieldCodec.ForMessage(tag, ForeignMessage.Parser)); in AddEntriesFrom_Message()
473 var message1 = new ForeignMessage { C = 20 }; in WriteTo_Message()
474 var message2 = new ForeignMessage { C = 25 }; in WriteTo_Message()
476 var field = new RepeatedField<ForeignMessage> { message1, message2 }; in WriteTo_Message()
479 field.WriteTo(output, FieldCodec.ForMessage(tag, ForeignMessage.Parser)); in WriteTo_Message()
485 Assert.AreEqual(message1, input.ReadMessage(ForeignMessage.Parser)); in WriteTo_Message()
487 Assert.AreEqual(message2, input.ReadMessage(ForeignMessage.Parser)); in WriteTo_Message()
DMapFieldTest.cs51 var message = new ForeignMessage { C = 20 }; in Clone_ClonesMessages()
52 var map = new MapField<string, ForeignMessage> { { "x", message } }; in Clone_ClonesMessages()
79 var map = new MapField<string, ForeignMessage>(); in Add_ForbidsNullKeys()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
86 var map = new MapField<string, ForeignMessage>(); in Indexer_ForbidsNullKeys()
87 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
/external/protobuf/python/google/protobuf/internal/
Dmore_extensions.proto50 message ForeignMessage { message
57 optional ForeignMessage optional_message_extension = 2;
60 repeated ForeignMessage repeated_message_extension = 4;
/external/protobuf/python/compatibility_tests/v2.5.0/protos/python/google/protobuf/internal/
Dmore_extensions.proto47 message ForeignMessage { message
54 optional ForeignMessage optional_message_extension = 2;
57 repeated ForeignMessage repeated_message_extension = 4;
/external/protobuf/js/compatibility_tests/v3.0.0/
Dproto3_test.proto54 ForeignMessage optional_foreign_message = 19;
73 repeated ForeignMessage repeated_foreign_message = 49;
79 ForeignMessage oneof_foreign_message = 112;
/external/protobuf/js/compatibility_tests/v3.1.0/
Dproto3_test.proto54 ForeignMessage optional_foreign_message = 19;
73 repeated ForeignMessage repeated_foreign_message = 49;
79 ForeignMessage oneof_foreign_message = 112;
/external/protobuf/js/
Dproto3_test.proto54 ForeignMessage optional_foreign_message = 19;
73 repeated ForeignMessage repeated_foreign_message = 49;
79 ForeignMessage oneof_foreign_message = 112;
/external/tensorflow/tensorflow/tools/proto_text/
Dtest.proto43 ForeignMessage optional_foreign_message = 19;
99 message ForeignMessage { message
/external/protobuf/objectivec/Tests/
DGPBUtilitiesTests.m375 ForeignMessage *foreignMessage = [ForeignMessage message];
379 foreignMessage = [ForeignMessage message];
389 ForeignMessage *foreignMessage = [message.mapInt32ForeignMessage objectForKey:100];
395 ForeignMessage *foreignMessage = [message.mapStringForeignMessage objectForKey:@"101"];
407 ForeignMessage *foreignMessage = [message.mapInt32ForeignMessage objectForKey:100];
413 ForeignMessage *foreignMessage = [message.mapStringForeignMessage objectForKey:@"101"];
/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DTestMessagesProto3.cs216 …typeof(global::ProtobufTestMessages.Proto3.ForeignMessage), global::ProtobufTestMessages.Proto3.Fo… in TestMessagesProto3Reflection()
597 private global::ProtobufTestMessages.Proto3.ForeignMessage optionalForeignMessage_;
599 public global::ProtobufTestMessages.Proto3.ForeignMessage OptionalForeignMessage {
837 …private static readonly pb::FieldCodec<global::ProtobufTestMessages.Proto3.ForeignMessage> _repeat…
838 = pb::FieldCodec.ForMessage(394, global::ProtobufTestMessages.Proto3.ForeignMessage.Parser);
839 …estMessages.Proto3.ForeignMessage> repeatedForeignMessage_ = new pbc::RepeatedField<global::Protob…
841 …public pbc::RepeatedField<global::ProtobufTestMessages.Proto3.ForeignMessage> RepeatedForeignMessa…
1050 …c readonly pbc::MapField<string, global::ProtobufTestMessages.Proto3.ForeignMessage>.Codec _map_ma…
1051 ….Proto3.ForeignMessage>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, glob…
1052 …tMessages.Proto3.ForeignMessage> mapStringForeignMessage_ = new pbc::MapField<string, global::Prot…
[all …]

1234