const (
Echo_Echo_FullMethodName = "/s2av2.example.proto.Echo/Echo"
)
Echo_ServiceDesc is the grpc.ServiceDesc for Echo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Echo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "s2av2.example.proto.Echo", HandlerType: (*EchoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _Echo_Echo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example/proto/echo.proto", }
var File_example_proto_echo_proto protoreflect.FileDescriptor
func RegisterEchoServer(s grpc.ServiceRegistrar, srv EchoServer)
EchoClient is the client API for Echo 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 EchoClient interface { // The echo service replies back the same message in the request. Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) }
func NewEchoClient(cc grpc.ClientConnInterface) EchoClient
type EchoRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (x *EchoRequest) GetMsg() string
func (*EchoRequest) ProtoMessage()
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (x *EchoRequest) Reset()
func (x *EchoRequest) String() string
type EchoResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*EchoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
func (x *EchoResponse) GetMsg() string
func (*EchoResponse) ProtoMessage()
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (x *EchoResponse) Reset()
func (x *EchoResponse) String() string
EchoServer is the server API for Echo service. All implementations must embed UnimplementedEchoServer for forward compatibility
type EchoServer interface { // The echo service replies back the same message in the request. Echo(context.Context, *EchoRequest) (*EchoResponse, error) // contains filtered or unexported methods }
UnimplementedEchoServer must be embedded to have forward compatible implementations.
type UnimplementedEchoServer struct { }
func (UnimplementedEchoServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error)
UnsafeEchoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoServer will result in compilation errors.
type UnsafeEchoServer interface {
// contains filtered or unexported methods
}