| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- // 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"`
- UserName string `protobuf:"bytes,6,opt,name=userName,proto3" json:"userName,omitempty"`
- CityName string `protobuf:"bytes,7,opt,name=cityName,proto3" json:"cityName,omitempty"`
- Gender int64 `protobuf:"varint,8,opt,name=gender,proto3" json:"gender,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 (m *UserResponse) GetUserName() string {
- if m != nil {
- return m.UserName
- }
- return ""
- }
- func (m *UserResponse) GetCityName() string {
- if m != nil {
- return m.CityName
- }
- return ""
- }
- func (m *UserResponse) GetGender() int64 {
- if m != nil {
- return m.Gender
- }
- 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{
- // 232 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xb1, 0x4e, 0xc3, 0x30,
- 0x10, 0x86, 0xe5, 0x94, 0xa6, 0xcd, 0x15, 0x81, 0x74, 0x42, 0xc5, 0xea, 0x14, 0x75, 0xea, 0xd4,
- 0x81, 0x6e, 0xbc, 0x40, 0x37, 0x06, 0xab, 0x3c, 0x40, 0x20, 0x07, 0x44, 0x6a, 0x6d, 0x73, 0xe7,
- 0x0c, 0x7d, 0x4f, 0x1e, 0x08, 0xd9, 0xa6, 0x21, 0x12, 0x0b, 0xe3, 0xf7, 0xfd, 0x3a, 0xff, 0xf2,
- 0x0f, 0xb7, 0x81, 0x1b, 0x2b, 0x6f, 0x8e, 0x4f, 0x5b, 0xcf, 0x2e, 0x38, 0xac, 0x06, 0xb1, 0xde,
- 0xc1, 0xe2, 0x59, 0x88, 0x0d, 0x7d, 0xf6, 0x24, 0x01, 0x6f, 0xa0, 0xe8, 0x5a, 0xad, 0x6a, 0xb5,
- 0xa9, 0x4c, 0xd1, 0xb5, 0x78, 0x07, 0x53, 0xff, 0xe1, 0x2c, 0xe9, 0x22, 0xa9, 0x0c, 0xeb, 0x2f,
- 0x05, 0xd7, 0xf9, 0x4a, 0xbc, 0xb3, 0x42, 0xff, 0x3b, 0x8b, 0x96, 0xdd, 0x91, 0x44, 0x4f, 0xb2,
- 0x4d, 0x80, 0x4b, 0x28, 0x25, 0x34, 0xa1, 0x17, 0x7d, 0x55, 0xab, 0xcd, 0xc4, 0xfc, 0x10, 0xd6,
- 0xb0, 0x20, 0xf6, 0xc6, 0x1d, 0xe9, 0x70, 0xf6, 0xa4, 0xa7, 0x29, 0x1c, 0x2b, 0x5c, 0xc1, 0xbc,
- 0x17, 0xe2, 0xa7, 0xe6, 0x44, 0xba, 0x4c, 0x4f, 0x0e, 0x1c, 0xb3, 0xd7, 0x2e, 0x9c, 0x53, 0x36,
- 0xcb, 0xd9, 0x85, 0x63, 0xe3, 0x3b, 0xd9, 0x96, 0x58, 0xcf, 0x73, 0x63, 0xa6, 0x87, 0x3d, 0x54,
- 0x87, 0xcb, 0x30, 0xf8, 0x08, 0xb3, 0x3d, 0x85, 0xf8, 0x4b, 0x5c, 0x6e, 0x7f, 0x07, 0x1c, 0x8d,
- 0xb5, 0xba, 0xff, 0xe3, 0xf3, 0x1c, 0x2f, 0x65, 0x9a, 0x79, 0xf7, 0x1d, 0x00, 0x00, 0xff, 0xff,
- 0x03, 0x6c, 0x0e, 0x00, 0x79, 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",
- }
|