const (
PubsubBenchWrapper_Recv_FullMethodName = "/pubsub_bench.PubsubBenchWrapper/Recv"
)
var File_pubsub_proto protoreflect.FileDescriptor
PubsubBenchWrapper_ServiceDesc is the grpc.ServiceDesc for PubsubBenchWrapper service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PubsubBenchWrapper_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pubsub_bench.PubsubBenchWrapper", HandlerType: (*PubsubBenchWrapperServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Recv", Handler: _PubsubBenchWrapper_Recv_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pubsub.proto", }
func RegisterPubsubBenchWrapperServer(s grpc.ServiceRegistrar, srv PubsubBenchWrapperServer)
TODO(deklerk): Replace with Google's canonical Empty.
type EmptyResponse struct {
// contains filtered or unexported fields
}
func (*EmptyResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
func (*EmptyResponse) ProtoMessage()
func (x *EmptyResponse) ProtoReflect() protoreflect.Message
func (x *EmptyResponse) Reset()
func (x *EmptyResponse) String() string
PubsubBenchWrapperClient is the client API for PubsubBenchWrapper 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 PubsubBenchWrapperClient interface { // Recv represents opening a streaming pull stream to receive messages on. Recv(ctx context.Context, in *PubsubRecv, opts ...grpc.CallOption) (*EmptyResponse, error) }
func NewPubsubBenchWrapperClient(cc grpc.ClientConnInterface) PubsubBenchWrapperClient
PubsubBenchWrapperServer is the server API for PubsubBenchWrapper service. All implementations must embed UnimplementedPubsubBenchWrapperServer for forward compatibility
type PubsubBenchWrapperServer interface { // Recv represents opening a streaming pull stream to receive messages on. Recv(context.Context, *PubsubRecv) (*EmptyResponse, error) // contains filtered or unexported methods }
type PubsubRecv struct { // The subscription identifier corresponding to number of messages sent. SubName string `protobuf:"bytes,1,opt,name=sub_name,json=subName,proto3" json:"sub_name,omitempty"` // contains filtered or unexported fields }
func (*PubsubRecv) Descriptor() ([]byte, []int)
Deprecated: Use PubsubRecv.ProtoReflect.Descriptor instead.
func (x *PubsubRecv) GetSubName() string
func (*PubsubRecv) ProtoMessage()
func (x *PubsubRecv) ProtoReflect() protoreflect.Message
func (x *PubsubRecv) Reset()
func (x *PubsubRecv) String() string
UnimplementedPubsubBenchWrapperServer must be embedded to have forward compatible implementations.
type UnimplementedPubsubBenchWrapperServer struct { }
func (UnimplementedPubsubBenchWrapperServer) Recv(context.Context, *PubsubRecv) (*EmptyResponse, error)
UnsafePubsubBenchWrapperServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PubsubBenchWrapperServer will result in compilation errors.
type UnsafePubsubBenchWrapperServer interface {
// contains filtered or unexported methods
}