Home
last modified time | relevance | path

Searched refs:MyMessage (Results 1 – 25 of 40) sorted by relevance

12

/external/python/apitools/apitools/base/protorpclite/
Dprotojson_test.py41 class MyMessage(messages.Message): class
163 message = protojson.decode_message(MyMessage, '{"a_float": 10}')
170 message = protojson.decode_message(MyMessage,
177 self.assertEquals(MyMessage(an_integer=10,
187 MyMessage, '{"a_string": 10}')
190 MyMessage, '{"an_integer": 10.2}')
193 MyMessage, '{"an_integer": "10.2"}')
197 message = protojson.decode_message(MyMessage, '{"an_enum": 2}')
199 expected_message = MyMessage()
200 expected_message.an_enum = MyMessage.Color.GREEN
[all …]
Dmessages_test.py286 class MyMessage(messages.Message): class
300 MyMessage.NestedEnum.definition_name())
302 MyMessage.NestedEnum.outer_definition_name())
304 MyMessage.NestedEnum.definition_package())
308 MyMessage.NestedMessage.NestedEnum.definition_name())
311 MyMessage.NestedMessage.NestedEnum.outer_definition_name())
314 MyMessage.NestedMessage.NestedEnum.definition_package())
893 class MyMessage(messages.Message): class
896 field = messages.MessageField(MyMessage, 10)
897 self.assertEquals(MyMessage, field.type)
[all …]
Dtest_util.py596 class MyMessage(messages.Message): class
600 message = MyMessage(value=value)
602 MyMessage, self.PROTOLIB.encode_message(message))
608 class MyMessage(messages.Message): class
613 message = MyMessage(value=value)
615 MyMessage, self.PROTOLIB.encode_message(message))
/external/golang-protobuf/proto/
Dtext_parser_test.go47 out *MyMessage
51 msg := &MyMessage{
61 msg := &MyMessage{
70 msg := &MyMessage{
83 out: &MyMessage{
92 out: &MyMessage{
101 out: &MyMessage{
110 out: &MyMessage{
119 out: &MyMessage{
126 out: &MyMessage{
[all …]
Dequal_test.go44 var messageWithoutExtension = &pb.MyMessage{Count: Int32(7)}
45 var messageWithExtension1a = &pb.MyMessage{Count: Int32(7)}
46 var messageWithExtension1b = &pb.MyMessage{Count: Int32(7)}
47 var messageWithExtension2 = &pb.MyMessage{Count: Int32(7)}
48 var messageWithExtension3a = &pb.MyMessage{Count: Int32(7)}
49 var messageWithExtension3b = &pb.MyMessage{Count: Int32(7)}
50 var messageWithExtension3c = &pb.MyMessage{Count: Int32(7)}
53 var messageWithInt32Extension1 = &pb.MyMessage{Count: Int32(8)}
54 var messageWithInt32Extension2 = &pb.MyMessage{Count: Int32(8)}
148 &pb.MyMessage{RepBytes: [][]byte{[]byte("sham"), []byte("wow")}},
[all …]
Dclone_test.go43 var cloneTestMessage = &pb.MyMessage{
80 vanilla := new(pb.MyMessage)
90 m := proto.Clone(cloneTestMessage).(*pb.MyMessage)
118 var m *pb.MyMessage
128 src: &pb.MyMessage{
131 dst: &pb.MyMessage{
134 want: &pb.MyMessage{
140 src: &pb.MyMessage{
152 dst: &pb.MyMessage{
168 want: &pb.MyMessage{
[all …]
Ddiscard_test.go107 m := &pb.MyMessage{
122 m := &pb.MyMessage{
143 m.MyMessage, _ = in.(*pb.MyMessage)
165 MyMessage *pb.MyMessage member
Dextensions_test.go49 msg := &pb.MyMessage{}
72 msg := &pb.MyMessage{}
81 msg := &pb.MyMessage{Count: proto.Int32(0)}
83 ExtendedType: (*pb.MyMessage)(nil),
94 ExtendedType: (*pb.MyMessage)(nil),
105 ExtendedType: (*pb.MyMessage)(nil),
170 msg := &pb.MyMessage{Count: proto.Int32(0)}
181 ExtendedType: (*pb.MyMessage)(nil),
222 check := func(m *pb.MyMessage) bool {
233 msg := &pb.MyMessage{Count: proto.Int32(4)}
[all …]
Dtext_test.go70 func newTestMessage() *pb.MyMessage {
71 msg := &pb.MyMessage{
191 tests := []proto.Message{nil, (*pb.MyMessage)(nil)}
205 m := &pb.MyMessage{Bikeshed: pb.MyMessage_Color(3).Enum()}
481 any := &pb.MyMessage{Count: proto.Int32(47), Name: proto.String("David")}
Dany_test.go169 [type.googleapis.com/test_proto.MyMessage]: <
179 [type.googleapis.com/test_proto.MyMessage]: <
189 [type.googleapis.com/test_proto.MyMessage]: <
Dall_test.go372 msg := &MyMessage{Count: Int32(1), Others: []*OtherMessage{value}}
1183 m := new(MyMessage)
1195 …want := &MyMessage{Count: Int32(11), Name: String("aaa"), Pet: []string{"bbb", "ccc"}, Bigfloat: F…
1435 m := &MyMessage{
1438 expected := &MyMessage{
1450 m := &MyMessage{
1478 m := &MyMessage{
1497 received := new(MyMessage)
1529 Unmarshal(b, new(MyMessage))
1535 Unmarshal(b, new(MyMessage))
[all …]
Dsize_test.go44 var messageWithExtension1 = &pb.MyMessage{Count: Int32(7)}
47 var messageWithExtension3 = &pb.MyMessage{Count: Int32(8)}
/external/python/cpython3/Lib/test/test_email/
Dtest_parser.py11 class MyMessage(Message): class in TestCustomMessage
20 self.MyMessage,
22 self.assertIsInstance(msg, self.MyMessage)
28 self.MyMessage,
30 self.assertIsInstance(msg, self.MyMessage)
70 class MyMessage(EmailMessage): class in TestParserBase
76 MyPolicy = default.clone(message_factory=self.MyMessage)
78 self.assertIsInstance(msg, self.MyMessage)
83 MyPolicy = default.clone(message_factory=self.MyMessage)
85 self.assertNotIsInstance(msg, self.MyMessage)
/external/protobuf/src/google/protobuf/
Dpreserve_unknown_enum_test.cc70 const proto3_preserve_unknown_enum_unittest::MyMessage& message) { in CheckMessage()
96 proto3_preserve_unknown_enum_unittest::MyMessage message; in TEST()
117 proto3_preserve_unknown_enum_unittest::MyMessage::descriptor()) in TEST()
135 proto2_preserve_unknown_enum_unittest::MyMessage message; in TEST()
138 proto2_preserve_unknown_enum_unittest::MyMessage message2 = message; in TEST()
161 proto2_preserve_unknown_enum_unittest::MyMessage::descriptor()) in TEST()
165 proto2_preserve_unknown_enum_unittest::MyMessage message2; in TEST()
184 proto3_preserve_unknown_enum_unittest::MyMessage message; in TEST()
219 proto3_preserve_unknown_enum_unittest::MyMessage message; in TEST()
281 proto3_preserve_unknown_enum_unittest::MyMessage new_message; in TEST()
/external/nanopb-c/tests/map/
Dmap.options1 MyMessage.numbers max_count:10
2 MyMessage.NumbersEntry.key max_size:16
Ddecode_map.c13 MyMessage_NumbersEntry *find_entry(MyMessage *msg, const char *key) in find_entry()
42 MyMessage msg = MyMessage_init_zero; in main()
Dmap.proto3 message MyMessage { message
Dencode_map.c12 MyMessage msg = MyMessage_init_zero; in main()
/external/golang-protobuf/proto/test_proto/
Dtest.pb.go1891 type MyMessage struct { struct
1911 func (m *MyMessage) Reset() { *m = MyMessage{} } argument
1912 func (m *MyMessage) String() string { return proto.CompactTextString(m) } argument
1913 func (*MyMessage) ProtoMessage() {} argument
1914 func (*MyMessage) Descriptor() ([]byte, []int) { argument
1922 func (*MyMessage) ExtensionRangeArray() []proto.ExtensionRange { argument
1926 func (m *MyMessage) XXX_Unmarshal(b []byte) error { argument
1929 func (m *MyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { argument
1932 func (m *MyMessage) XXX_Merge(src proto.Message) { argument
1935 func (m *MyMessage) XXX_Size() int { argument
[all …]
Dtest.proto263 message MyMessage { message
293 extend MyMessage {
303 extend MyMessage {
537 MyMessage.Color F_Enum = 14;
559 MyMessage.Color col = 9;
/external/protobuf/js/
DREADME.md94 goog.require('proto.my.package.MyMessage');
96 var message = proto.my.package.MyMessage();
126 var message = new messages.MyMessage();
155 var message = new MyMessage();
164 var message2 = MyMessage.deserializeBinary(bytes);
/external/nanopb-c/tests/regression/issue_118/
Denumuse.proto5 message MyMessage { message
/external/grpc-grpc/third_party/nanopb/tests/regression/issue_118/
Denumuse.proto5 message MyMessage { message
/external/nanopb-c/docs/
Dconcepts.rst283 message MyMessage {
307 /* @@protoc_insertion_point(struct:MyMessage) */
308 } MyMessage;
313 MyMessage msg = MyMessage_init_zero;
331 message MyMessage {
345 extend MyMessage {
370 message MyMessage {
379 MyMessage msg = MyMessage_init_default;
/external/grpc-grpc/third_party/nanopb/docs/
Dconcepts.rst277 message MyMessage {
301 /* @@protoc_insertion_point(struct:MyMessage) */
302 } MyMessage;
307 MyMessage msg = MyMessage_init_zero;
325 message MyMessage {
339 extend MyMessage {

12