| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 | 
							- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
 
- package chat
 
- import (
 
- 	context "context"
 
- 	common "git.ikuban.com/server/pw-protobuf/api/common"
 
- 	grpc "google.golang.org/grpc"
 
- 	codes "google.golang.org/grpc/codes"
 
- 	status "google.golang.org/grpc/status"
 
- )
 
- // This is a compile-time assertion to ensure that this generated file
 
- // is compatible with the grpc package it is being compiled against.
 
- // Requires gRPC-Go v1.32.0 or later.
 
- const _ = grpc.SupportPackageIsVersion7
 
- // ChatClient is the client API for Chat service.
 
- //
 
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
 
- type ChatClient interface {
 
- 	CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error)
 
- 	CreateUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdParam, opts ...grpc.CallOption) (*CreateUserPartnerIsRelationshipReply, error)
 
- }
 
- type chatClient struct {
 
- 	cc grpc.ClientConnInterface
 
- }
 
- func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
 
- 	return &chatClient{cc}
 
- }
 
- func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) {
 
- 	out := new(CheckUserPartnerIsRelationshipReply)
 
- 	err := c.cc.Invoke(ctx, "/api.chat.Chat/CheckUserPartnerIsRelationship", in, out, opts...)
 
- 	if err != nil {
 
- 		return nil, err
 
- 	}
 
- 	return out, nil
 
- }
 
- func (c *chatClient) CreateUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdParam, opts ...grpc.CallOption) (*CreateUserPartnerIsRelationshipReply, error) {
 
- 	out := new(CreateUserPartnerIsRelationshipReply)
 
- 	err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateUserPartnerIsRelationship", in, out, opts...)
 
- 	if err != nil {
 
- 		return nil, err
 
- 	}
 
- 	return out, nil
 
- }
 
- // ChatServer is the server API for Chat service.
 
- // All implementations must embed UnimplementedChatServer
 
- // for forward compatibility
 
- type ChatServer interface {
 
- 	CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdParam) (*CheckUserPartnerIsRelationshipReply, error)
 
- 	CreateUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdParam) (*CreateUserPartnerIsRelationshipReply, error)
 
- 	mustEmbedUnimplementedChatServer()
 
- }
 
- // UnimplementedChatServer must be embedded to have forward compatible implementations.
 
- type UnimplementedChatServer struct {
 
- }
 
- func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdParam) (*CheckUserPartnerIsRelationshipReply, error) {
 
- 	return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")
 
- }
 
- func (UnimplementedChatServer) CreateUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdParam) (*CreateUserPartnerIsRelationshipReply, error) {
 
- 	return nil, status.Errorf(codes.Unimplemented, "method CreateUserPartnerIsRelationship not implemented")
 
- }
 
- func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
 
- // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
 
- // Use of this interface is not recommended, as added methods to ChatServer will
 
- // result in compilation errors.
 
- type UnsafeChatServer interface {
 
- 	mustEmbedUnimplementedChatServer()
 
- }
 
- func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) {
 
- 	s.RegisterService(&Chat_ServiceDesc, srv)
 
- }
 
- func _Chat_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 
- 	in := new(common.UserAndPartnerIdParam)
 
- 	if err := dec(in); err != nil {
 
- 		return nil, err
 
- 	}
 
- 	if interceptor == nil {
 
- 		return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, in)
 
- 	}
 
- 	info := &grpc.UnaryServerInfo{
 
- 		Server:     srv,
 
- 		FullMethod: "/api.chat.Chat/CheckUserPartnerIsRelationship",
 
- 	}
 
- 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 
- 		return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, req.(*common.UserAndPartnerIdParam))
 
- 	}
 
- 	return interceptor(ctx, in, info, handler)
 
- }
 
- func _Chat_CreateUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 
- 	in := new(common.UserAndPartnerIdParam)
 
- 	if err := dec(in); err != nil {
 
- 		return nil, err
 
- 	}
 
- 	if interceptor == nil {
 
- 		return srv.(ChatServer).CreateUserPartnerIsRelationship(ctx, in)
 
- 	}
 
- 	info := &grpc.UnaryServerInfo{
 
- 		Server:     srv,
 
- 		FullMethod: "/api.chat.Chat/CreateUserPartnerIsRelationship",
 
- 	}
 
- 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 
- 		return srv.(ChatServer).CreateUserPartnerIsRelationship(ctx, req.(*common.UserAndPartnerIdParam))
 
- 	}
 
- 	return interceptor(ctx, in, info, handler)
 
- }
 
- // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service.
 
- // It's only intended for direct use with grpc.RegisterService,
 
- // and not to be introspected or modified (even as a copy)
 
- var Chat_ServiceDesc = grpc.ServiceDesc{
 
- 	ServiceName: "api.chat.Chat",
 
- 	HandlerType: (*ChatServer)(nil),
 
- 	Methods: []grpc.MethodDesc{
 
- 		{
 
- 			MethodName: "CheckUserPartnerIsRelationship",
 
- 			Handler:    _Chat_CheckUserPartnerIsRelationship_Handler,
 
- 		},
 
- 		{
 
- 			MethodName: "CreateUserPartnerIsRelationship",
 
- 			Handler:    _Chat_CreateUserPartnerIsRelationship_Handler,
 
- 		},
 
- 	},
 
- 	Streams:  []grpc.StreamDesc{},
 
- 	Metadata: "chat.proto",
 
- }
 
 
  |