Documentation ¶
Overview ¶
Package helloworld is a generated protocol buffer package.
It is generated from these files:
github.com/luci/luci-go/grpc/prpc/talk/helloworld/proto/helloworld.proto
It has these top-level messages:
HelloRequest HelloReply
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileDescriptorSet ¶
func FileDescriptorSet() *descriptor.FileDescriptorSet
FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.
Will not return nil.
Do NOT modify the returned descriptor.
func RegisterGreeterServer ¶
func RegisterGreeterServer(s prpc.Registrar, srv GreeterServer)
Types ¶
type GreeterClient ¶
type GreeterClient interface { // SayHello greets a user. SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) }
func NewGreeterClient ¶
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient
func NewGreeterPRPCClient ¶
func NewGreeterPRPCClient(client *prpc.Client) GreeterClient
type GreeterServer ¶
type GreeterServer interface { // SayHello greets a user. SayHello(context.Context, *HelloRequest) (*HelloReply, error) }
type HelloReply ¶
type HelloReply struct { // Message is the greeting text. Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` }
HelloReply contains a greeting.
func (*HelloReply) Descriptor ¶
func (*HelloReply) Descriptor() ([]byte, []int)
func (*HelloReply) GetMessage ¶
func (m *HelloReply) GetMessage() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) Reset ¶
func (m *HelloReply) Reset()
func (*HelloReply) String ¶
func (m *HelloReply) String() string
type HelloRequest ¶
type HelloRequest struct { // Name is the name of the person to greet. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` }
HelloRequest contains the user's name.
func (*HelloRequest) Descriptor ¶
func (*HelloRequest) Descriptor() ([]byte, []int)
func (*HelloRequest) GetName ¶
func (m *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) Reset ¶
func (m *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (m *HelloRequest) String() string
Click to show internal directories.
Click to hide internal directories.