• Home
  • Raw
  • Download

Lines Matching refs:testpb

17 	testpb "google.golang.org/protobuf/internal/testprotos/test"  packageName
29 in: &testpb.TestAllTypes{
39 OptionalNestedEnum: testpb.TestAllTypes_NEG.Enum(),
40 OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{A: proto.Int32(5)},
43 messageTypeKey: messageMetaOf(&testpb.TestAllTypes{}),
53 "optional_nested_enum": enumOf(testpb.TestAllTypes_NEG),
54 …"optional_nested_message": Message{messageTypeKey: messageMetaOf(&testpb.TestAllTypes_NestedMessag…
57 in: &testpb.TestAllTypes{
67 RepeatedNestedEnum: []testpb.TestAllTypes_NestedEnum{
68 testpb.TestAllTypes_FOO,
69 testpb.TestAllTypes_BAR,
71 RepeatedNestedMessage: []*testpb.TestAllTypes_NestedMessage{
77 messageTypeKey: messageMetaOf(&testpb.TestAllTypes{}),
88 enumOf(testpb.TestAllTypes_FOO),
89 enumOf(testpb.TestAllTypes_BAR),
92 {messageTypeKey: messageMetaOf(&testpb.TestAllTypes_NestedMessage{}), "a": int32(5)},
93 {messageTypeKey: messageMetaOf(&testpb.TestAllTypes_NestedMessage{}), "a": int32(-5)},
97 in: &testpb.TestAllTypes{
107 MapStringNestedEnum: map[string]testpb.TestAllTypes_NestedEnum{
108 "k": testpb.TestAllTypes_FOO,
110 MapStringNestedMessage: map[string]*testpb.TestAllTypes_NestedMessage{
115 messageTypeKey: messageMetaOf(&testpb.TestAllTypes{}),
126 "k": enumOf(testpb.TestAllTypes_FOO),
129 "k": {messageTypeKey: messageMetaOf(&testpb.TestAllTypes_NestedMessage{}), "a": int32(5)},
134 m := &testpb.TestAllExtensions{}
135 proto.SetExtension(m, testpb.E_OptionalBool, bool(false))
136 proto.SetExtension(m, testpb.E_OptionalInt32, int32(-32))
137 proto.SetExtension(m, testpb.E_OptionalInt64, int64(-64))
138 proto.SetExtension(m, testpb.E_OptionalUint32, uint32(32))
139 proto.SetExtension(m, testpb.E_OptionalUint64, uint64(64))
140 proto.SetExtension(m, testpb.E_OptionalFloat, float32(32.32))
141 proto.SetExtension(m, testpb.E_OptionalDouble, float64(64.64))
142 proto.SetExtension(m, testpb.E_OptionalString, string("string"))
143 proto.SetExtension(m, testpb.E_OptionalBytes, []byte("bytes"))
144 proto.SetExtension(m, testpb.E_OptionalNestedEnum, testpb.TestAllTypes_NEG)
145 …proto.SetExtension(m, testpb.E_OptionalNestedMessage, &testpb.TestAllExtensions_NestedMessage{A: p…
149 messageTypeKey: messageMetaOf(&testpb.TestAllExtensions{}),
159 "[goproto.proto.test.optional_nested_enum]": enumOf(testpb.TestAllTypes_NEG),
160 …"[goproto.proto.test.optional_nested_message]": Message{messageTypeKey: messageMetaOf(&testpb.Test…
164 m := &testpb.TestAllExtensions{}
165 proto.SetExtension(m, testpb.E_RepeatedBool, []bool{false, true})
166 proto.SetExtension(m, testpb.E_RepeatedInt32, []int32{32, -32})
167 proto.SetExtension(m, testpb.E_RepeatedInt64, []int64{64, -64})
168 proto.SetExtension(m, testpb.E_RepeatedUint32, []uint32{0, 32})
169 proto.SetExtension(m, testpb.E_RepeatedUint64, []uint64{0, 64})
170 proto.SetExtension(m, testpb.E_RepeatedFloat, []float32{0, 32.32})
171 proto.SetExtension(m, testpb.E_RepeatedDouble, []float64{0, 64.64})
172 proto.SetExtension(m, testpb.E_RepeatedString, []string{"s1", "s2"})
173 proto.SetExtension(m, testpb.E_RepeatedBytes, [][]byte{{1}, {2}})
174 proto.SetExtension(m, testpb.E_RepeatedNestedEnum, []testpb.TestAllTypes_NestedEnum{
175 testpb.TestAllTypes_FOO,
176 testpb.TestAllTypes_BAR,
178 proto.SetExtension(m, testpb.E_RepeatedNestedMessage, []*testpb.TestAllExtensions_NestedMessage{
185 messageTypeKey: messageMetaOf(&testpb.TestAllExtensions{}),
196 enumOf(testpb.TestAllTypes_FOO),
197 enumOf(testpb.TestAllTypes_BAR),
200 {messageTypeKey: messageMetaOf(&testpb.TestAllExtensions_NestedMessage{}), "a": int32(5)},
201 {messageTypeKey: messageMetaOf(&testpb.TestAllExtensions_NestedMessage{}), "a": int32(-5)},
206 m := &testpb.TestAllTypes{}
232 messageTypeKey: messageMetaOf(&testpb.TestAllTypes{}),