// Code generated by protoc-gen-go. DO NOT EDIT. // source: test.proto package test import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ReqData struct { In string `protobuf:"bytes,1,opt,name=In,proto3" json:"In,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ReqData) Reset() { *m = ReqData{} } func (m *ReqData) String() string { return proto.CompactTextString(m) } func (*ReqData) ProtoMessage() {} func (*ReqData) Descriptor() ([]byte, []int) { return fileDescriptor_c161fcfdc0c3ff1e, []int{0} } func (m *ReqData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ReqData.Unmarshal(m, b) } func (m *ReqData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ReqData.Marshal(b, m, deterministic) } func (m *ReqData) XXX_Merge(src proto.Message) { xxx_messageInfo_ReqData.Merge(m, src) } func (m *ReqData) XXX_Size() int { return xxx_messageInfo_ReqData.Size(m) } func (m *ReqData) XXX_DiscardUnknown() { xxx_messageInfo_ReqData.DiscardUnknown(m) } var xxx_messageInfo_ReqData proto.InternalMessageInfo func (m *ReqData) GetIn() string { if m != nil { return m.In } return "" } type ReplyData struct { Out string `protobuf:"bytes,1,opt,name=Out,proto3" json:"Out,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ReplyData) Reset() { *m = ReplyData{} } func (m *ReplyData) String() string { return proto.CompactTextString(m) } func (*ReplyData) ProtoMessage() {} func (*ReplyData) Descriptor() ([]byte, []int) { return fileDescriptor_c161fcfdc0c3ff1e, []int{1} } func (m *ReplyData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ReplyData.Unmarshal(m, b) } func (m *ReplyData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ReplyData.Marshal(b, m, deterministic) } func (m *ReplyData) XXX_Merge(src proto.Message) { xxx_messageInfo_ReplyData.Merge(m, src) } func (m *ReplyData) XXX_Size() int { return xxx_messageInfo_ReplyData.Size(m) } func (m *ReplyData) XXX_DiscardUnknown() { xxx_messageInfo_ReplyData.DiscardUnknown(m) } var xxx_messageInfo_ReplyData proto.InternalMessageInfo func (m *ReplyData) GetOut() string { if m != nil { return m.Out } return "" } func init() { proto.RegisterType((*ReqData)(nil), "ReqData") proto.RegisterType((*ReplyData)(nil), "ReplyData") } func init() { proto.RegisterFile("test.proto", fileDescriptor_c161fcfdc0c3ff1e) } var fileDescriptor_c161fcfdc0c3ff1e = []byte{ // 121 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2a, 0x49, 0x2d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0x92, 0xe4, 0x62, 0x0f, 0x4a, 0x2d, 0x74, 0x49, 0x2c, 0x49, 0x14, 0xe2, 0xe3, 0x62, 0xf2, 0xcc, 0x93, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x62, 0xf2, 0xcc, 0x53, 0x92, 0xe5, 0xe2, 0x0c, 0x4a, 0x2d, 0xc8, 0xa9, 0x04, 0x4b, 0x0a, 0x70, 0x31, 0xfb, 0x97, 0x96, 0x40, 0x65, 0x41, 0x4c, 0x23, 0x5d, 0x2e, 0x96, 0x90, 0xd4, 0xe2, 0x12, 0x21, 0x55, 0x2e, 0x6e, 0x10, 0xed, 0x5a, 0x91, 0x9a, 0x5c, 0x5a, 0x92, 0x2a, 0xc4, 0xa1, 0x07, 0x35, 0x4f, 0x8a, 0x4b, 0x0f, 0xae, 0x5d, 0x89, 0x21, 0x89, 0x0d, 0x6c, 0x9f, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x07, 0xf3, 0xcb, 0x37, 0x7d, 0x00, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // TestClient is the client API for Test service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type TestClient interface { TestExecute(ctx context.Context, in *ReqData, opts ...grpc.CallOption) (*ReplyData, error) } type testClient struct { cc *grpc.ClientConn } func NewTestClient(cc *grpc.ClientConn) TestClient { return &testClient{cc} } func (c *testClient) TestExecute(ctx context.Context, in *ReqData, opts ...grpc.CallOption) (*ReplyData, error) { out := new(ReplyData) err := c.cc.Invoke(ctx, "/Test/TestExecute", in, out, opts...) if err != nil { return nil, err } return out, nil } // TestServer is the server API for Test service. type TestServer interface { TestExecute(context.Context, *ReqData) (*ReplyData, error) } func RegisterTestServer(s *grpc.Server, srv TestServer) { s.RegisterService(&_Test_serviceDesc, srv) } func _Test_TestExecute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ReqData) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TestServer).TestExecute(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/Test/TestExecute", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestServer).TestExecute(ctx, req.(*ReqData)) } return interceptor(ctx, in, info, handler) } var _Test_serviceDesc = grpc.ServiceDesc{ ServiceName: "Test", HandlerType: (*TestServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TestExecute", Handler: _Test_TestExecute_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "test.proto", }