blob: 2f1fbb707f33a028bb2300f4dec60c3936917e15 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/grpc/discovery/service.proto
package discovery
import prpc "go.chromium.org/luci/grpc/prpc"
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Void is an empty message.
type Void struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Void) Reset() { *m = Void{} }
func (m *Void) String() string { return proto.CompactTextString(m) }
func (*Void) ProtoMessage() {}
func (*Void) Descriptor() ([]byte, []int) {
return fileDescriptor_4a913a37d47b1277, []int{0}
}
func (m *Void) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Void.Unmarshal(m, b)
}
func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Void.Marshal(b, m, deterministic)
}
func (m *Void) XXX_Merge(src proto.Message) {
xxx_messageInfo_Void.Merge(m, src)
}
func (m *Void) XXX_Size() int {
return xxx_messageInfo_Void.Size(m)
}
func (m *Void) XXX_DiscardUnknown() {
xxx_messageInfo_Void.DiscardUnknown(m)
}
var xxx_messageInfo_Void proto.InternalMessageInfo
// DescribeResponse describes services.
type DescribeResponse struct {
// Description contains descriptions of all services, their types and all
// transitive dependencies.
Description *descriptor.FileDescriptorSet `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// Services are service names provided by a server.
Services []string `protobuf:"bytes,2,rep,name=services,proto3" json:"services,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DescribeResponse) Reset() { *m = DescribeResponse{} }
func (m *DescribeResponse) String() string { return proto.CompactTextString(m) }
func (*DescribeResponse) ProtoMessage() {}
func (*DescribeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4a913a37d47b1277, []int{1}
}
func (m *DescribeResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DescribeResponse.Unmarshal(m, b)
}
func (m *DescribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DescribeResponse.Marshal(b, m, deterministic)
}
func (m *DescribeResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DescribeResponse.Merge(m, src)
}
func (m *DescribeResponse) XXX_Size() int {
return xxx_messageInfo_DescribeResponse.Size(m)
}
func (m *DescribeResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DescribeResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DescribeResponse proto.InternalMessageInfo
func (m *DescribeResponse) GetDescription() *descriptor.FileDescriptorSet {
if m != nil {
return m.Description
}
return nil
}
func (m *DescribeResponse) GetServices() []string {
if m != nil {
return m.Services
}
return nil
}
func init() {
proto.RegisterType((*Void)(nil), "discovery.Void")
proto.RegisterType((*DescribeResponse)(nil), "discovery.DescribeResponse")
}
func init() {
proto.RegisterFile("go.chromium.org/luci/grpc/discovery/service.proto", fileDescriptor_4a913a37d47b1277)
}
var fileDescriptor_4a913a37d47b1277 = []byte{
// 212 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0xb1, 0x4e, 0xc3, 0x30,
0x10, 0x86, 0x29, 0xa0, 0xaa, 0x71, 0x07, 0x90, 0xa7, 0x2a, 0x2c, 0x51, 0xa6, 0x4e, 0x67, 0x51,
0x36, 0x66, 0x0b, 0xf6, 0x20, 0xf1, 0x00, 0x71, 0x0e, 0x73, 0x52, 0xda, 0xb3, 0xce, 0x4e, 0x25,
0xde, 0x1e, 0x91, 0x62, 0x2b, 0xea, 0x78, 0xf7, 0xff, 0xf7, 0xe9, 0x3b, 0xf5, 0xec, 0x19, 0xdc,
0xb7, 0xf0, 0x91, 0xa6, 0x23, 0xb0, 0x78, 0x33, 0x4e, 0x8e, 0x8c, 0x97, 0xe0, 0xcc, 0x40, 0xd1,
0xf1, 0x19, 0xe5, 0xc7, 0x44, 0x94, 0x33, 0x39, 0x84, 0x20, 0x9c, 0x58, 0x57, 0x25, 0xa8, 0x1b,
0xcf, 0xec, 0x47, 0x34, 0x73, 0xd0, 0x4f, 0x5f, 0x66, 0xc0, 0xe8, 0x84, 0x42, 0x62, 0xb9, 0x94,
0xdb, 0xb5, 0xba, 0xff, 0x64, 0x1a, 0xda, 0xa4, 0x1e, 0xed, 0x9c, 0xf5, 0xd8, 0x61, 0x0c, 0x7c,
0x8a, 0xa8, 0xad, 0xda, 0xe6, 0x3e, 0xf1, 0x69, 0xb7, 0x6a, 0x56, 0xfb, 0xed, 0xa1, 0x85, 0x0b,
0x13, 0x32, 0x13, 0xde, 0x68, 0x44, 0x5b, 0xb8, 0x1f, 0x98, 0xba, 0xe5, 0x99, 0xae, 0xd5, 0xe6,
0xdf, 0x2f, 0xee, 0x6e, 0x9b, 0xbb, 0x7d, 0xd5, 0x95, 0xf9, 0xf0, 0xae, 0x2a, 0x9b, 0x65, 0xf5,
0xab, 0xda, 0x64, 0x05, 0xfd, 0x00, 0xe5, 0x09, 0xf8, 0xf3, 0xab, 0x9f, 0x16, 0x8b, 0x6b, 0xd1,
0xf6, 0xa6, 0x5f, 0xcf, 0x36, 0x2f, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa3, 0xf8, 0xa4, 0x51,
0x2f, 0x01, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// DiscoveryClient is the client API for Discovery service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DiscoveryClient interface {
// Describe returns a list of services and a descriptor.FileDescriptorSet
// that covers them all.
Describe(ctx context.Context, in *Void, opts ...grpc.CallOption) (*DescribeResponse, error)
}
type discoveryPRPCClient struct {
client *prpc.Client
}
func NewDiscoveryPRPCClient(client *prpc.Client) DiscoveryClient {
return &discoveryPRPCClient{client}
}
func (c *discoveryPRPCClient) Describe(ctx context.Context, in *Void, opts ...grpc.CallOption) (*DescribeResponse, error) {
out := new(DescribeResponse)
err := c.client.Call(ctx, "discovery.Discovery", "Describe", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type discoveryClient struct {
cc *grpc.ClientConn
}
func NewDiscoveryClient(cc *grpc.ClientConn) DiscoveryClient {
return &discoveryClient{cc}
}
func (c *discoveryClient) Describe(ctx context.Context, in *Void, opts ...grpc.CallOption) (*DescribeResponse, error) {
out := new(DescribeResponse)
err := c.cc.Invoke(ctx, "/discovery.Discovery/Describe", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DiscoveryServer is the server API for Discovery service.
type DiscoveryServer interface {
// Describe returns a list of services and a descriptor.FileDescriptorSet
// that covers them all.
Describe(context.Context, *Void) (*DescribeResponse, error)
}
func RegisterDiscoveryServer(s prpc.Registrar, srv DiscoveryServer) {
s.RegisterService(&_Discovery_serviceDesc, srv)
}
func _Discovery_Describe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Void)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DiscoveryServer).Describe(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/discovery.Discovery/Describe",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiscoveryServer).Describe(ctx, req.(*Void))
}
return interceptor(ctx, in, info, handler)
}
var _Discovery_serviceDesc = grpc.ServiceDesc{
ServiceName: "discovery.Discovery",
HandlerType: (*DiscoveryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Describe",
Handler: _Discovery_Describe_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "go.chromium.org/luci/grpc/discovery/service.proto",
}