// 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
// UserServiceClient is the client API for UserService 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 UserServiceClient interface { Say(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) }
type userServiceClient struct { cc grpc.ClientConnInterface }
func(c *userServiceClient) Say(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { out := new(Response) err := c.cc.Invoke(ctx, "/hello.UserService/Say", in, out, opts...) if err != nil { returnnil, err } return out, nil }
// UserServiceServer is the server API for UserService service. // All implementations must embed UnimplementedUserServiceServer // for forward compatibility type UserServiceServer interface { Say(context.Context, *Request) (*Response, error) mustEmbedUnimplementedUserServiceServer() }
// UnimplementedUserServiceServer must be embedded to have forward compatible implementations. type UnimplementedUserServiceServer struct { }
// UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserServiceServer will // result in compilation errors. type UnsafeUserServiceServer interface { mustEmbedUnimplementedUserServiceServer() }