fix: correct path required proto testdata (#14991)

This commit is contained in:
Julien Robert
2023-02-11 16:59:16 +00:00
committed by GitHub
parent 467b4f25b8
commit a90569c7e4
38 changed files with 3351 additions and 3350 deletions
+47 -47
View File
@@ -1,5 +1,5 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: query.proto
// source: testpb/query.proto
package testdata
@@ -36,7 +36,7 @@ func (m *EchoRequest) Reset() { *m = EchoRequest{} }
func (m *EchoRequest) String() string { return proto.CompactTextString(m) }
func (*EchoRequest) ProtoMessage() {}
func (*EchoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5c6ac9b241082464, []int{0}
return fileDescriptor_b00998f1336963e3, []int{0}
}
func (m *EchoRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -80,7 +80,7 @@ func (m *EchoResponse) Reset() { *m = EchoResponse{} }
func (m *EchoResponse) String() string { return proto.CompactTextString(m) }
func (*EchoResponse) ProtoMessage() {}
func (*EchoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5c6ac9b241082464, []int{1}
return fileDescriptor_b00998f1336963e3, []int{1}
}
func (m *EchoResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -124,7 +124,7 @@ func (m *SayHelloRequest) Reset() { *m = SayHelloRequest{} }
func (m *SayHelloRequest) String() string { return proto.CompactTextString(m) }
func (*SayHelloRequest) ProtoMessage() {}
func (*SayHelloRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5c6ac9b241082464, []int{2}
return fileDescriptor_b00998f1336963e3, []int{2}
}
func (m *SayHelloRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -168,7 +168,7 @@ func (m *SayHelloResponse) Reset() { *m = SayHelloResponse{} }
func (m *SayHelloResponse) String() string { return proto.CompactTextString(m) }
func (*SayHelloResponse) ProtoMessage() {}
func (*SayHelloResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5c6ac9b241082464, []int{3}
return fileDescriptor_b00998f1336963e3, []int{3}
}
func (m *SayHelloResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -212,7 +212,7 @@ func (m *TestAnyRequest) Reset() { *m = TestAnyRequest{} }
func (m *TestAnyRequest) String() string { return proto.CompactTextString(m) }
func (*TestAnyRequest) ProtoMessage() {}
func (*TestAnyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5c6ac9b241082464, []int{4}
return fileDescriptor_b00998f1336963e3, []int{4}
}
func (m *TestAnyRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -256,7 +256,7 @@ func (m *TestAnyResponse) Reset() { *m = TestAnyResponse{} }
func (m *TestAnyResponse) String() string { return proto.CompactTextString(m) }
func (*TestAnyResponse) ProtoMessage() {}
func (*TestAnyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5c6ac9b241082464, []int{5}
return fileDescriptor_b00998f1336963e3, []int{5}
}
func (m *TestAnyResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -293,41 +293,41 @@ func (m *TestAnyResponse) GetHasAnimal() *HasAnimal {
}
func init() {
proto.RegisterType((*EchoRequest)(nil), "testdata.EchoRequest")
proto.RegisterType((*EchoResponse)(nil), "testdata.EchoResponse")
proto.RegisterType((*SayHelloRequest)(nil), "testdata.SayHelloRequest")
proto.RegisterType((*SayHelloResponse)(nil), "testdata.SayHelloResponse")
proto.RegisterType((*TestAnyRequest)(nil), "testdata.TestAnyRequest")
proto.RegisterType((*TestAnyResponse)(nil), "testdata.TestAnyResponse")
proto.RegisterType((*EchoRequest)(nil), "testpb.EchoRequest")
proto.RegisterType((*EchoResponse)(nil), "testpb.EchoResponse")
proto.RegisterType((*SayHelloRequest)(nil), "testpb.SayHelloRequest")
proto.RegisterType((*SayHelloResponse)(nil), "testpb.SayHelloResponse")
proto.RegisterType((*TestAnyRequest)(nil), "testpb.TestAnyRequest")
proto.RegisterType((*TestAnyResponse)(nil), "testpb.TestAnyResponse")
}
func init() { proto.RegisterFile("query.proto", fileDescriptor_5c6ac9b241082464) }
func init() { proto.RegisterFile("testpb/query.proto", fileDescriptor_b00998f1336963e3) }
var fileDescriptor_5c6ac9b241082464 = []byte{
// 359 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xcf, 0x4f, 0xc2, 0x30,
0x14, 0xc7, 0x59, 0x82, 0x02, 0x0f, 0x03, 0xa6, 0xfe, 0x08, 0xf4, 0xb0, 0x98, 0x25, 0x46, 0x2e,
0x76, 0x09, 0xc4, 0xab, 0x09, 0x26, 0x24, 0x5c, 0x45, 0x4f, 0x5e, 0x4c, 0x81, 0xba, 0x2d, 0x6e,
0x2d, 0xd0, 0xee, 0xb0, 0xff, 0xc2, 0x7f, 0xc9, 0x9b, 0x47, 0x8e, 0x1e, 0x0d, 0xfc, 0x23, 0x66,
0x5b, 0xbb, 0x09, 0x21, 0x9e, 0xda, 0xd7, 0x7e, 0xde, 0xe7, 0xe5, 0x7d, 0xa1, 0xb9, 0x8c, 0xd9,
0x2a, 0x21, 0x8b, 0x95, 0x50, 0x02, 0xd5, 0x15, 0x93, 0x6a, 0x4e, 0x15, 0xc5, 0x5d, 0x4f, 0x08,
0x2f, 0x64, 0x6e, 0xf6, 0x3e, 0x8d, 0xdf, 0x5c, 0xca, 0x35, 0x84, 0x5b, 0x06, 0xca, 0x6b, 0xe7,
0x06, 0x9a, 0xa3, 0x99, 0x2f, 0x26, 0x6c, 0x19, 0x33, 0xa9, 0x50, 0x07, 0x6a, 0x11, 0x93, 0x92,
0x7a, 0xac, 0x63, 0x5d, 0x59, 0xbd, 0xc6, 0xc4, 0x94, 0x4e, 0x0f, 0x4e, 0x72, 0x50, 0x2e, 0x04,
0x97, 0xec, 0x1f, 0xf2, 0x1a, 0xda, 0x4f, 0x34, 0x19, 0xb3, 0x30, 0x2c, 0xb4, 0x08, 0xaa, 0x9c,
0x46, 0x86, 0xcc, 0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ff, 0xff, 0xe8,
0xb4, 0x42, 0x4e, 0x90, 0x02, 0x00, 0x00,
var fileDescriptor_b00998f1336963e3 = []byte{
// 367 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x4f, 0x4f, 0xc2, 0x30,
0x18, 0xc6, 0x59, 0x82, 0xfc, 0x79, 0x31, 0xa2, 0x15, 0x05, 0x77, 0x58, 0xcc, 0x12, 0x23, 0x17,
0x3b, 0x85, 0x9b, 0x89, 0x07, 0x34, 0x24, 0x5c, 0x45, 0x4f, 0x5e, 0x4c, 0x07, 0x75, 0x5b, 0xdc,
0x5a, 0xa0, 0xdd, 0x61, 0xdf, 0xc2, 0x2f, 0xe3, 0x77, 0xf0, 0xc8, 0xd1, 0xa3, 0x81, 0x2f, 0x62,
0xb6, 0xb5, 0x53, 0x24, 0xf1, 0xd4, 0xf6, 0xe9, 0xef, 0x79, 0x9a, 0x3e, 0x79, 0x01, 0x49, 0x2a,
0xe4, 0xcc, 0x75, 0xe6, 0x31, 0x5d, 0x24, 0x78, 0xb6, 0xe0, 0x92, 0xa3, 0x4a, 0xae, 0x99, 0x27,
0x1e, 0xe7, 0x5e, 0x48, 0x9d, 0x4c, 0x75, 0xe3, 0x17, 0x87, 0x30, 0x85, 0x98, 0x47, 0xca, 0x96,
0x2e, 0x53, 0x22, 0x49, 0x2e, 0xdb, 0xe7, 0xd0, 0x18, 0x4e, 0x7c, 0x3e, 0xa6, 0xf3, 0x98, 0x0a,
0x89, 0x3a, 0x50, 0x8d, 0xa8, 0x10, 0xc4, 0xa3, 0x1d, 0xe3, 0xd4, 0xe8, 0xd6, 0xc7, 0xfa, 0x68,
0x77, 0x61, 0x37, 0x07, 0xc5, 0x8c, 0x33, 0x41, 0xff, 0x21, 0xcf, 0xa0, 0xf9, 0x40, 0x92, 0x11,
0x0d, 0xc3, 0x22, 0x16, 0x41, 0x99, 0x91, 0x48, 0x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d, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4c, 0x8d, 0x9a, 0xee, 0x8e, 0x02, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -357,7 +357,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient {
func (c *queryClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) {
out := new(EchoResponse)
err := c.cc.Invoke(ctx, "/testdata.Query/Echo", in, out, opts...)
err := c.cc.Invoke(ctx, "/testpb.Query/Echo", in, out, opts...)
if err != nil {
return nil, err
}
@@ -366,7 +366,7 @@ func (c *queryClient) Echo(ctx context.Context, in *EchoRequest, opts ...grpc.Ca
func (c *queryClient) SayHello(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error) {
out := new(SayHelloResponse)
err := c.cc.Invoke(ctx, "/testdata.Query/SayHello", in, out, opts...)
err := c.cc.Invoke(ctx, "/testpb.Query/SayHello", in, out, opts...)
if err != nil {
return nil, err
}
@@ -375,7 +375,7 @@ func (c *queryClient) SayHello(ctx context.Context, in *SayHelloRequest, opts ..
func (c *queryClient) TestAny(ctx context.Context, in *TestAnyRequest, opts ...grpc.CallOption) (*TestAnyResponse, error) {
out := new(TestAnyResponse)
err := c.cc.Invoke(ctx, "/testdata.Query/TestAny", in, out, opts...)
err := c.cc.Invoke(ctx, "/testpb.Query/TestAny", in, out, opts...)
if err != nil {
return nil, err
}
@@ -417,7 +417,7 @@ func _Query_Echo_Handler(srv interface{}, ctx context.Context, dec func(interfac
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/testdata.Query/Echo",
FullMethod: "/testpb.Query/Echo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).Echo(ctx, req.(*EchoRequest))
@@ -435,7 +435,7 @@ func _Query_SayHello_Handler(srv interface{}, ctx context.Context, dec func(inte
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/testdata.Query/SayHello",
FullMethod: "/testpb.Query/SayHello",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).SayHello(ctx, req.(*SayHelloRequest))
@@ -453,7 +453,7 @@ func _Query_TestAny_Handler(srv interface{}, ctx context.Context, dec func(inter
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/testdata.Query/TestAny",
FullMethod: "/testpb.Query/TestAny",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServer).TestAny(ctx, req.(*TestAnyRequest))
@@ -462,7 +462,7 @@ func _Query_TestAny_Handler(srv interface{}, ctx context.Context, dec func(inter
}
var _Query_serviceDesc = grpc.ServiceDesc{
ServiceName: "testdata.Query",
ServiceName: "testpb.Query",
HandlerType: (*QueryServer)(nil),
Methods: []grpc.MethodDesc{
{
@@ -479,7 +479,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{},
Metadata: "query.proto",
Metadata: "testpb/query.proto",
}
func (m *EchoRequest) Marshal() (dAtA []byte, err error) {