...

Package helloworld_go_proto

import "github.com/google/s2a-go/internal/proto/examples/helloworld_go_proto"
Overview
Index

Overview ▾

Index ▾

Constants
Variables
func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer)
type GreeterClient
    func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient
type GreeterServer
type Greeter_SayHelloConversationClient
type Greeter_SayHelloConversationServer
type Greeter_SayHelloManyRepliesClient
type Greeter_SayHelloManyRepliesServer
type Greeter_SayHelloManyRequestsClient
type Greeter_SayHelloManyRequestsServer
type HelloReply
    func (*HelloReply) Descriptor() ([]byte, []int)
    func (x *HelloReply) GetMessage() string
    func (*HelloReply) ProtoMessage()
    func (x *HelloReply) ProtoReflect() protoreflect.Message
    func (x *HelloReply) Reset()
    func (x *HelloReply) String() string
type HelloRequest
    func (*HelloRequest) Descriptor() ([]byte, []int)
    func (x *HelloRequest) GetName() string
    func (*HelloRequest) ProtoMessage()
    func (x *HelloRequest) ProtoReflect() protoreflect.Message
    func (x *HelloRequest) Reset()
    func (x *HelloRequest) String() string
type UnimplementedGreeterServer
    func (UnimplementedGreeterServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)
    func (UnimplementedGreeterServer) SayHelloConversation(Greeter_SayHelloConversationServer) error
    func (UnimplementedGreeterServer) SayHelloManyReplies(*HelloRequest, Greeter_SayHelloManyRepliesServer) error
    func (UnimplementedGreeterServer) SayHelloManyRequests(Greeter_SayHelloManyRequestsServer) error
type UnsafeGreeterServer

Package files

helloworld.pb.go helloworld_grpc.pb.go

Constants

const (
    Greeter_SayHello_FullMethodName             = "/s2a.examples.Greeter/SayHello"
    Greeter_SayHelloManyRequests_FullMethodName = "/s2a.examples.Greeter/SayHelloManyRequests"
    Greeter_SayHelloManyReplies_FullMethodName  = "/s2a.examples.Greeter/SayHelloManyReplies"
    Greeter_SayHelloConversation_FullMethodName = "/s2a.examples.Greeter/SayHelloConversation"
)

Variables

var File_internal_proto_examples_helloworld_proto protoreflect.FileDescriptor

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

var Greeter_ServiceDesc = grpc.ServiceDesc{
    ServiceName: "s2a.examples.Greeter",
    HandlerType: (*GreeterServer)(nil),
    Methods: []grpc.MethodDesc{
        {
            MethodName: "SayHello",
            Handler:    _Greeter_SayHello_Handler,
        },
    },
    Streams: []grpc.StreamDesc{
        {
            StreamName:    "SayHelloManyRequests",
            Handler:       _Greeter_SayHelloManyRequests_Handler,
            ClientStreams: true,
        },
        {
            StreamName:    "SayHelloManyReplies",
            Handler:       _Greeter_SayHelloManyReplies_Handler,
            ServerStreams: true,
        },
        {
            StreamName:    "SayHelloConversation",
            Handler:       _Greeter_SayHelloConversation_Handler,
            ServerStreams: true,
            ClientStreams: true,
        },
    },
    Metadata: "internal/proto/examples/helloworld.proto",
}

func RegisterGreeterServer

func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer)

type GreeterClient

GreeterClient is the client API for Greeter 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 GreeterClient interface {
    // A unary RPC.
    SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
    // A client-side streaming RPC.
    SayHelloManyRequests(ctx context.Context, opts ...grpc.CallOption) (Greeter_SayHelloManyRequestsClient, error)
    // A server-side streaming RPC.
    SayHelloManyReplies(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (Greeter_SayHelloManyRepliesClient, error)
    // A bidirectional streaming RPC.
    SayHelloConversation(ctx context.Context, opts ...grpc.CallOption) (Greeter_SayHelloConversationClient, error)
}

func NewGreeterClient

func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient

type GreeterServer

GreeterServer is the server API for Greeter service. All implementations must embed UnimplementedGreeterServer for forward compatibility

type GreeterServer interface {
    // A unary RPC.
    SayHello(context.Context, *HelloRequest) (*HelloReply, error)
    // A client-side streaming RPC.
    SayHelloManyRequests(Greeter_SayHelloManyRequestsServer) error
    // A server-side streaming RPC.
    SayHelloManyReplies(*HelloRequest, Greeter_SayHelloManyRepliesServer) error
    // A bidirectional streaming RPC.
    SayHelloConversation(Greeter_SayHelloConversationServer) error
    // contains filtered or unexported methods
}

type Greeter_SayHelloConversationClient

type Greeter_SayHelloConversationClient interface {
    Send(*HelloRequest) error
    Recv() (*HelloReply, error)
    grpc.ClientStream
}

type Greeter_SayHelloConversationServer

type Greeter_SayHelloConversationServer interface {
    Send(*HelloReply) error
    Recv() (*HelloRequest, error)
    grpc.ServerStream
}

type Greeter_SayHelloManyRepliesClient

type Greeter_SayHelloManyRepliesClient interface {
    Recv() (*HelloReply, error)
    grpc.ClientStream
}

type Greeter_SayHelloManyRepliesServer

type Greeter_SayHelloManyRepliesServer interface {
    Send(*HelloReply) error
    grpc.ServerStream
}

type Greeter_SayHelloManyRequestsClient

type Greeter_SayHelloManyRequestsClient interface {
    Send(*HelloRequest) error
    CloseAndRecv() (*HelloReply, error)
    grpc.ClientStream
}

type Greeter_SayHelloManyRequestsServer

type Greeter_SayHelloManyRequestsServer interface {
    SendAndClose(*HelloReply) error
    Recv() (*HelloRequest, error)
    grpc.ServerStream
}

type HelloReply

The response message containing the greetings

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

func (*HelloReply) Descriptor

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

Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.

func (*HelloReply) GetMessage

func (x *HelloReply) GetMessage() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) ProtoReflect

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

func (*HelloReply) Reset

func (x *HelloReply) Reset()

func (*HelloReply) String

func (x *HelloReply) String() string

type HelloRequest

The request message containing the user's name.

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

func (*HelloRequest) Descriptor

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetName

func (x *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect

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

func (*HelloRequest) Reset

func (x *HelloRequest) Reset()

func (*HelloRequest) String

func (x *HelloRequest) String() string

type UnimplementedGreeterServer

UnimplementedGreeterServer must be embedded to have forward compatible implementations.

type UnimplementedGreeterServer struct {
}

func (UnimplementedGreeterServer) SayHello

func (UnimplementedGreeterServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)

func (UnimplementedGreeterServer) SayHelloConversation

func (UnimplementedGreeterServer) SayHelloConversation(Greeter_SayHelloConversationServer) error

func (UnimplementedGreeterServer) SayHelloManyReplies

func (UnimplementedGreeterServer) SayHelloManyReplies(*HelloRequest, Greeter_SayHelloManyRepliesServer) error

func (UnimplementedGreeterServer) SayHelloManyRequests

func (UnimplementedGreeterServer) SayHelloManyRequests(Greeter_SayHelloManyRequestsServer) error

type UnsafeGreeterServer

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

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