Documentation ¶
Overview ¶
Package testservices is a generated protocol buffer package.
It is generated from these files:
github.com/luci/luci-go/grpc/discovery/internal/testservices/helloworld.proto
It has these top-level messages:
HelloRequest HelloReply MultiplyRequest MultiplyResponse
Index ¶
- func FileDescriptorSet() *descriptor.FileDescriptorSet
- func RegisterCalcServer(s prpc.Registrar, srv CalcServer)
- func RegisterGreeterServer(s prpc.Registrar, srv GreeterServer)
- type CalcClient
- type CalcServer
- type GreeterClient
- type GreeterServer
- type HelloReply
- type HelloRequest
- type MultiplyRequest
- type MultiplyResponse
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 RegisterCalcServer ¶
func RegisterCalcServer(s prpc.Registrar, srv CalcServer)
func RegisterGreeterServer ¶
func RegisterGreeterServer(s prpc.Registrar, srv GreeterServer)
Types ¶
type CalcClient ¶
type CalcClient interface {
Multiply(ctx context.Context, in *MultiplyRequest, opts ...grpc.CallOption) (*MultiplyResponse, error)
}
func NewCalcClient ¶
func NewCalcClient(cc *grpc.ClientConn) CalcClient
func NewCalcPRPCClient ¶
func NewCalcPRPCClient(client *prpc.Client) CalcClient
type CalcServer ¶
type CalcServer interface {
Multiply(context.Context, *MultiplyRequest) (*MultiplyResponse, error)
}
type GreeterClient ¶
type GreeterClient interface { // Sends a greeting 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 { // Sends a greeting SayHello(context.Context, *HelloRequest) (*HelloReply, error) }
type HelloReply ¶
type HelloReply struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
The response message containing the greetings
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 string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
The request message containing 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
type MultiplyRequest ¶
type MultiplyRequest struct { X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"` }
func (*MultiplyRequest) Descriptor ¶
func (*MultiplyRequest) Descriptor() ([]byte, []int)
func (*MultiplyRequest) GetX ¶
func (m *MultiplyRequest) GetX() int32
func (*MultiplyRequest) GetY ¶
func (m *MultiplyRequest) GetY() int32
func (*MultiplyRequest) ProtoMessage ¶
func (*MultiplyRequest) ProtoMessage()
func (*MultiplyRequest) Reset ¶
func (m *MultiplyRequest) Reset()
func (*MultiplyRequest) String ¶
func (m *MultiplyRequest) String() string
type MultiplyResponse ¶
type MultiplyResponse struct {
Z int32 `protobuf:"varint,1,opt,name=z" json:"z,omitempty"`
}
func (*MultiplyResponse) Descriptor ¶
func (*MultiplyResponse) Descriptor() ([]byte, []int)
func (*MultiplyResponse) GetZ ¶
func (m *MultiplyResponse) GetZ() int32
func (*MultiplyResponse) ProtoMessage ¶
func (*MultiplyResponse) ProtoMessage()
func (*MultiplyResponse) Reset ¶
func (m *MultiplyResponse) Reset()
func (*MultiplyResponse) String ¶
func (m *MultiplyResponse) String() string
Click to show internal directories.
Click to hide internal directories.