// Code generated by protoc-gen-go. DO NOT EDIT. // source: transform.proto package transform import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" 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 UserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *UserRequest) Reset() { *m = UserRequest{} } func (m *UserRequest) String() string { return proto.CompactTextString(m) } func (*UserRequest) ProtoMessage() {} func (*UserRequest) Descriptor() ([]byte, []int) { return fileDescriptor_cb4a498eeb2ba07d, []int{0} } func (m *UserRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UserRequest.Unmarshal(m, b) } func (m *UserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UserRequest.Marshal(b, m, deterministic) } func (m *UserRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_UserRequest.Merge(m, src) } func (m *UserRequest) XXX_Size() int { return xxx_messageInfo_UserRequest.Size(m) } func (m *UserRequest) XXX_DiscardUnknown() { xxx_messageInfo_UserRequest.DiscardUnknown(m) } var xxx_messageInfo_UserRequest proto.InternalMessageInfo func (m *UserRequest) GetId() string { if m != nil { return m.Id } return "" } func (m *UserRequest) GetPhone() string { if m != nil { return m.Phone } return "" } type UserResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` Roles string `protobuf:"bytes,3,opt,name=roles,proto3" json:"roles,omitempty"` Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` ErpRoleType int64 `protobuf:"varint,5,opt,name=erpRoleType,proto3" json:"erpRoleType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *UserResponse) Reset() { *m = UserResponse{} } func (m *UserResponse) String() string { return proto.CompactTextString(m) } func (*UserResponse) ProtoMessage() {} func (*UserResponse) Descriptor() ([]byte, []int) { return fileDescriptor_cb4a498eeb2ba07d, []int{1} } func (m *UserResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UserResponse.Unmarshal(m, b) } func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_UserResponse.Marshal(b, m, deterministic) } func (m *UserResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_UserResponse.Merge(m, src) } func (m *UserResponse) XXX_Size() int { return xxx_messageInfo_UserResponse.Size(m) } func (m *UserResponse) XXX_DiscardUnknown() { xxx_messageInfo_UserResponse.DiscardUnknown(m) } var xxx_messageInfo_UserResponse proto.InternalMessageInfo func (m *UserResponse) GetId() string { if m != nil { return m.Id } return "" } func (m *UserResponse) GetPhone() string { if m != nil { return m.Phone } return "" } func (m *UserResponse) GetRoles() string { if m != nil { return m.Roles } return "" } func (m *UserResponse) GetStatus() int64 { if m != nil { return m.Status } return 0 } func (m *UserResponse) GetErpRoleType() int64 { if m != nil { return m.ErpRoleType } return 0 } func init() { proto.RegisterType((*UserRequest)(nil), "transform.UserRequest") proto.RegisterType((*UserResponse)(nil), "transform.UserResponse") } func init() { proto.RegisterFile("transform.proto", fileDescriptor_cb4a498eeb2ba07d) } var fileDescriptor_cb4a498eeb2ba07d = []byte{ // 194 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0x29, 0x4a, 0xcc, 0x2b, 0x4e, 0xcb, 0x2f, 0xca, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x84, 0x0b, 0x28, 0x19, 0x73, 0x71, 0x87, 0x16, 0xa7, 0x16, 0x05, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0xf1, 0x71, 0x31, 0x65, 0xa6, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x31, 0x65, 0xa6, 0x08, 0x89, 0x70, 0xb1, 0x16, 0x64, 0xe4, 0xe7, 0xa5, 0x4a, 0x30, 0x81, 0x85, 0x20, 0x1c, 0xa5, 0x16, 0x46, 0x2e, 0x1e, 0x88, 0xae, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0xe2, 0xb4, 0x81, 0x44, 0x8b, 0xf2, 0x73, 0x52, 0x8b, 0x25, 0x98, 0x21, 0xa2, 0x60, 0x8e, 0x90, 0x18, 0x17, 0x5b, 0x71, 0x49, 0x62, 0x49, 0x69, 0xb1, 0x04, 0x8b, 0x02, 0xa3, 0x06, 0x73, 0x10, 0x94, 0x27, 0xa4, 0xc0, 0xc5, 0x9d, 0x5a, 0x54, 0x10, 0x94, 0x9f, 0x93, 0x1a, 0x52, 0x59, 0x90, 0x2a, 0xc1, 0x0a, 0x96, 0x44, 0x16, 0x32, 0x72, 0xe7, 0xe2, 0x0c, 0x81, 0x79, 0x44, 0xc8, 0x8a, 0x8b, 0xdd, 0x3d, 0xb5, 0x04, 0xe4, 0x2a, 0x21, 0x31, 0x3d, 0x84, 0x87, 0x91, 0x3c, 0x27, 0x25, 0x8e, 0x21, 0x0e, 0x71, 0x7e, 0x12, 0x1b, 0x38, 0x58, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x6f, 0x23, 0x27, 0xdb, 0x29, 0x01, 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 // TransformClient is the client API for Transform service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type TransformClient interface { GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) } type transformClient struct { cc *grpc.ClientConn } func NewTransformClient(cc *grpc.ClientConn) TransformClient { return &transformClient{cc} } func (c *transformClient) GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error) { out := new(UserResponse) err := c.cc.Invoke(ctx, "/transform.Transform/GetUser", in, out, opts...) if err != nil { return nil, err } return out, nil } // TransformServer is the server API for Transform service. type TransformServer interface { GetUser(context.Context, *UserRequest) (*UserResponse, error) } // UnimplementedTransformServer can be embedded to have forward compatible implementations. type UnimplementedTransformServer struct { } func (*UnimplementedTransformServer) GetUser(ctx context.Context, req *UserRequest) (*UserResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") } func RegisterTransformServer(s *grpc.Server, srv TransformServer) { s.RegisterService(&_Transform_serviceDesc, srv) } func _Transform_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TransformServer).GetUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/transform.Transform/GetUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TransformServer).GetUser(ctx, req.(*UserRequest)) } return interceptor(ctx, in, info, handler) } var _Transform_serviceDesc = grpc.ServiceDesc{ ServiceName: "transform.Transform", HandlerType: (*TransformServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUser", Handler: _Transform_GetUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transform.proto", }