...

Package echo

import "cloud.google.com/go/auth/grpctransport/testdata"
Overview
Index

Overview ▾

Constants

const (
    Echoer_Echo_FullMethodName = "/echo.Echoer/Echo"
)

Variables

Echoer_ServiceDesc is the grpc.ServiceDesc for Echoer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

var Echoer_ServiceDesc = grpc.ServiceDesc{
    ServiceName: "echo.Echoer",
    HandlerType: (*EchoerServer)(nil),
    Methods: []grpc.MethodDesc{
        {
            MethodName: "Echo",
            Handler:    _Echoer_Echo_Handler,
        },
    },
    Streams:  []grpc.StreamDesc{},
    Metadata: "echo.proto",
}
var File_echo_proto protoreflect.FileDescriptor

func RegisterEchoerServer

func RegisterEchoerServer(s grpc.ServiceRegistrar, srv EchoerServer)

type EchoReply

type EchoReply struct {
    Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    // contains filtered or unexported fields
}

func (*EchoReply) Descriptor

func (*EchoReply) Descriptor() ([]byte, []int)

Deprecated: Use EchoReply.ProtoReflect.Descriptor instead.

func (*EchoReply) GetMessage

func (x *EchoReply) GetMessage() string

func (*EchoReply) ProtoMessage

func (*EchoReply) ProtoMessage()

func (*EchoReply) ProtoReflect

func (x *EchoReply) ProtoReflect() protoreflect.Message

func (*EchoReply) Reset

func (x *EchoReply) Reset()

func (*EchoReply) String

func (x *EchoReply) String() string

type EchoRequest

type EchoRequest struct {
    Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    // contains filtered or unexported fields
}

func (*EchoRequest) Descriptor

func (*EchoRequest) Descriptor() ([]byte, []int)

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetMessage

func (x *EchoRequest) GetMessage() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

func (x *EchoRequest) ProtoReflect() protoreflect.Message

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type EchoerClient

EchoerClient is the client API for Echoer 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 EchoerClient interface {
    Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoReply, error)
}

func NewEchoerClient

func NewEchoerClient(cc grpc.ClientConnInterface) EchoerClient

type EchoerServer

EchoerServer is the server API for Echoer service. All implementations must embed UnimplementedEchoerServer for forward compatibility

type EchoerServer interface {
    Echo(context.Context, *EchoRequest) (*EchoReply, error)
    // contains filtered or unexported methods
}

type UnimplementedEchoerServer

UnimplementedEchoerServer must be embedded to have forward compatible implementations.

type UnimplementedEchoerServer struct {
}

func (UnimplementedEchoerServer) Echo

func (UnimplementedEchoerServer) Echo(context.Context, *EchoRequest) (*EchoReply, error)

type UnsafeEchoerServer

UnsafeEchoerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoerServer will result in compilation errors.

type UnsafeEchoerServer interface {
    // contains filtered or unexported methods
}