// Code generated by protoc-gen-go. DO NOT EDIT. // source: user.proto package lark 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 LoginRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LoginRequest) Reset() { *m = LoginRequest{} } func (m *LoginRequest) String() string { return proto.CompactTextString(m) } func (*LoginRequest) ProtoMessage() {} func (*LoginRequest) Descriptor() ([]byte, []int) { return fileDescriptor_116e343673f7ffaf, []int{0} } func (m *LoginRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LoginRequest.Unmarshal(m, b) } func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LoginRequest.Marshal(b, m, deterministic) } func (m *LoginRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_LoginRequest.Merge(m, src) } func (m *LoginRequest) XXX_Size() int { return xxx_messageInfo_LoginRequest.Size(m) } func (m *LoginRequest) XXX_DiscardUnknown() { xxx_messageInfo_LoginRequest.DiscardUnknown(m) } var xxx_messageInfo_LoginRequest proto.InternalMessageInfo func (m *LoginRequest) GetCode() string { if m != nil { return m.Code } return "" } type LoginResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LoginResponse) Reset() { *m = LoginResponse{} } func (m *LoginResponse) String() string { return proto.CompactTextString(m) } func (*LoginResponse) ProtoMessage() {} func (*LoginResponse) Descriptor() ([]byte, []int) { return fileDescriptor_116e343673f7ffaf, []int{1} } func (m *LoginResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LoginResponse.Unmarshal(m, b) } func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LoginResponse.Marshal(b, m, deterministic) } func (m *LoginResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_LoginResponse.Merge(m, src) } func (m *LoginResponse) XXX_Size() int { return xxx_messageInfo_LoginResponse.Size(m) } func (m *LoginResponse) XXX_DiscardUnknown() { xxx_messageInfo_LoginResponse.DiscardUnknown(m) } var xxx_messageInfo_LoginResponse proto.InternalMessageInfo func (m *LoginResponse) GetToken() string { if m != nil { return m.Token } return "" } type InfoRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *InfoRequest) Reset() { *m = InfoRequest{} } func (m *InfoRequest) String() string { return proto.CompactTextString(m) } func (*InfoRequest) ProtoMessage() {} func (*InfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor_116e343673f7ffaf, []int{2} } func (m *InfoRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InfoRequest.Unmarshal(m, b) } func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InfoRequest.Marshal(b, m, deterministic) } func (m *InfoRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_InfoRequest.Merge(m, src) } func (m *InfoRequest) XXX_Size() int { return xxx_messageInfo_InfoRequest.Size(m) } func (m *InfoRequest) XXX_DiscardUnknown() { xxx_messageInfo_InfoRequest.DiscardUnknown(m) } var xxx_messageInfo_InfoRequest proto.InternalMessageInfo func (m *InfoRequest) GetToken() string { if m != nil { return m.Token } return "" } type InfoResponse struct { Id uint64 `protobuf:"varint,13,opt,name=id,proto3" json:"id,omitempty"` AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` EnName string `protobuf:"bytes,3,opt,name=en_name,json=enName,proto3" json:"en_name,omitempty"` AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` AvatarThumb string `protobuf:"bytes,5,opt,name=avatar_thumb,json=avatarThumb,proto3" json:"avatar_thumb,omitempty"` AvatarMiddle string `protobuf:"bytes,6,opt,name=avatar_middle,json=avatarMiddle,proto3" json:"avatar_middle,omitempty"` AvatarBig string `protobuf:"bytes,7,opt,name=avatar_big,json=avatarBig,proto3" json:"avatar_big,omitempty"` OpenId string `protobuf:"bytes,8,opt,name=open_id,json=openId,proto3" json:"open_id,omitempty"` UnionId string `protobuf:"bytes,9,opt,name=union_id,json=unionId,proto3" json:"union_id,omitempty"` Email string `protobuf:"bytes,10,opt,name=email,proto3" json:"email,omitempty"` UserId string `protobuf:"bytes,11,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Mobile string `protobuf:"bytes,12,opt,name=mobile,proto3" json:"mobile,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *InfoResponse) Reset() { *m = InfoResponse{} } func (m *InfoResponse) String() string { return proto.CompactTextString(m) } func (*InfoResponse) ProtoMessage() {} func (*InfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor_116e343673f7ffaf, []int{3} } func (m *InfoResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_InfoResponse.Unmarshal(m, b) } func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_InfoResponse.Marshal(b, m, deterministic) } func (m *InfoResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_InfoResponse.Merge(m, src) } func (m *InfoResponse) XXX_Size() int { return xxx_messageInfo_InfoResponse.Size(m) } func (m *InfoResponse) XXX_DiscardUnknown() { xxx_messageInfo_InfoResponse.DiscardUnknown(m) } var xxx_messageInfo_InfoResponse proto.InternalMessageInfo func (m *InfoResponse) GetId() uint64 { if m != nil { return m.Id } return 0 } func (m *InfoResponse) GetAccessToken() string { if m != nil { return m.AccessToken } return "" } func (m *InfoResponse) GetName() string { if m != nil { return m.Name } return "" } func (m *InfoResponse) GetEnName() string { if m != nil { return m.EnName } return "" } func (m *InfoResponse) GetAvatarUrl() string { if m != nil { return m.AvatarUrl } return "" } func (m *InfoResponse) GetAvatarThumb() string { if m != nil { return m.AvatarThumb } return "" } func (m *InfoResponse) GetAvatarMiddle() string { if m != nil { return m.AvatarMiddle } return "" } func (m *InfoResponse) GetAvatarBig() string { if m != nil { return m.AvatarBig } return "" } func (m *InfoResponse) GetOpenId() string { if m != nil { return m.OpenId } return "" } func (m *InfoResponse) GetUnionId() string { if m != nil { return m.UnionId } return "" } func (m *InfoResponse) GetEmail() string { if m != nil { return m.Email } return "" } func (m *InfoResponse) GetUserId() string { if m != nil { return m.UserId } return "" } func (m *InfoResponse) GetMobile() string { if m != nil { return m.Mobile } return "" } func init() { proto.RegisterType((*LoginRequest)(nil), "example_service.LoginRequest") proto.RegisterType((*LoginResponse)(nil), "example_service.LoginResponse") proto.RegisterType((*InfoRequest)(nil), "example_service.InfoRequest") proto.RegisterType((*InfoResponse)(nil), "example_service.InfoResponse") } func init() { proto.RegisterFile("user.proto", fileDescriptor_116e343673f7ffaf) } var fileDescriptor_116e343673f7ffaf = []byte{ // 380 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xcd, 0x8e, 0xd3, 0x30, 0x10, 0x26, 0x21, 0x4d, 0xdb, 0x69, 0x0a, 0x92, 0x85, 0xc0, 0x54, 0x14, 0x95, 0x54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 0xae, 0x9c, 0x97, 0xdb, 0xbf, 0x5d, 0x5d, 0xd0, 0x51, 0x5f, 0xce, 0x71, 0x07, 0x4b, 0x91, 0x35, 0xcc, 0x7b, 0x4b, 0x2d, 0x38, 0xaf, 0x90, 0xc6, 0xce, 0xd3, 0xff, 0xfb, 0xe9, 0xb8, 0x41, 0x99, 0x42, 0x9c, 0xe8, 0x78, 0x58, 0x66, 0x27, 0x4e, 0xb6, 0x3d, 0xd5, 0xa0, 0xcc, 0x05, 0xa7, 0x13, 0xdf, 0x9e, 0x85, 0x19, 0x27, 0xef, 0x61, 0xd2, 0x49, 0xa1, 0x9c, 0x32, 0x75, 0xca, 0xd8, 0xe1, 0x8c, 0xdb, 0x01, 0x62, 0xcd, 0x44, 0x45, 0xc1, 0x0f, 0xd0, 0x01, 0x9b, 0x64, 0xf7, 0x69, 0xfd, 0x33, 0x9f, 0x64, 0x61, 0xc6, 0xc9, 0x5b, 0x88, 0x6b, 0x55, 0x88, 0x0a, 0x69, 0xe2, 0x79, 0x8f, 0xbe, 0xdc, 0x05, 0x10, 0x1d, 0x0d, 0x6a, 0xf2, 0x1d, 0x46, 0x6e, 0x8d, 0x64, 0xb9, 0x7d, 0x74, 0x05, 0xdb, 0xe1, 0x09, 0x2c, 0x3e, 0xde, 0x92, 0xfd, 0xc6, 0xd2, 0x17, 0xe4, 0x1b, 0x44, 0x76, 0x87, 0xe4, 0xc3, 0x13, 0xe7, 0xe0, 0x00, 0x16, 0xcb, 0x1b, 0xea, 0x35, 0x66, 0x17, 0xff, 0x8e, 0x2a, 0xa6, 0xcf, 0x45, 0xec, 0x6e, 0xf3, 0xeb, 0x43, 0x00, 0x00, 0x00, 0xff, 0xff, 0x46, 0x1e, 0x8d, 0x0a, 0xa9, 0x02, 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 // UserClient is the client API for User service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type UserClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) } type userClient struct { cc *grpc.ClientConn } func NewUserClient(cc *grpc.ClientConn) UserClient { return &userClient{cc} } func (c *userClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) { out := new(LoginResponse) err := c.cc.Invoke(ctx, "/example_service.User/Login", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userClient) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) { out := new(InfoResponse) err := c.cc.Invoke(ctx, "/example_service.User/Info", in, out, opts...) if err != nil { return nil, err } return out, nil } // UserServer is the server API for User service. type UserServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) Info(context.Context, *InfoRequest) (*InfoResponse, error) } // UnimplementedUserServer can be embedded to have forward compatible implementations. type UnimplementedUserServer struct { } func (*UnimplementedUserServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") } func (*UnimplementedUserServer) Info(ctx context.Context, req *InfoRequest) (*InfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") } func RegisterUserServer(s *grpc.Server, srv UserServer) { s.RegisterService(&_User_serviceDesc, srv) } func _User_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LoginRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServer).Login(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/example_service.User/Login", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServer).Login(ctx, req.(*LoginRequest)) } return interceptor(ctx, in, info, handler) } func _User_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(InfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserServer).Info(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/example_service.User/Info", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServer).Info(ctx, req.(*InfoRequest)) } return interceptor(ctx, in, info, handler) } var _User_serviceDesc = grpc.ServiceDesc{ ServiceName: "example_service.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _User_Login_Handler, }, { MethodName: "Info", Handler: _User_Info_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.proto", }