blob: 7bf9d97ea2b0702547065ffdc5f65104c24ff0ca [file]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/luci/luci-go/grpc/discovery/service.proto
/*
Package discovery is a generated protocol buffer package.
It is generated from these files:
github.com/luci/luci-go/grpc/discovery/service.proto
It has these top-level messages:
Void
DescribeResponse
*/
package discovery
import prpc "github.com/luci/luci-go/grpc/prpc"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
// Void is an empty message.
type Void struct {
}
func (m *Void) Reset() { *m = Void{} }
func (m *Void) String() string { return proto.CompactTextString(m) }
func (*Void) ProtoMessage() {}
func (*Void) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// DescribeResponse describes services.
type DescribeResponse struct {
// Description contains descriptions of all services, their types and all
// transitive dependencies.
Description *google_protobuf.FileDescriptorSet `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
// Services are service names provided by a server.
Services []string `protobuf:"bytes,2,rep,name=services" json:"services,omitempty"`
}
func (m *DescribeResponse) Reset() { *m = DescribeResponse{} }
func (m *DescribeResponse) String() string { return proto.CompactTextString(m) }
func (*DescribeResponse) ProtoMessage() {}
func (*DescribeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *DescribeResponse) GetDescription() *google_protobuf.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")
}
// 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
// Client API for Discovery service
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 := grpc.Invoke(ctx, "/discovery.Discovery/Describe", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// 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: "github.com/luci/luci-go/grpc/discovery/service.proto",
}
func init() {
proto.RegisterFile("github.com/luci/luci-go/grpc/discovery/service.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 214 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0xc1, 0x4a, 0xc4, 0x30,
0x10, 0x86, 0x5d, 0x95, 0x65, 0x9b, 0x3d, 0x28, 0x39, 0x2d, 0xf5, 0x52, 0x72, 0xda, 0x8b, 0x09,
0xac, 0x9e, 0x3c, 0x07, 0xbd, 0x57, 0xf0, 0x01, 0x92, 0x8e, 0x71, 0xa0, 0xee, 0x84, 0x24, 0x2d,
0xf8, 0xf6, 0x62, 0x6a, 0x42, 0xd9, 0x4b, 0x20, 0xf3, 0xff, 0xf3, 0xf1, 0x0d, 0x7b, 0x76, 0x98,
0xbe, 0x26, 0x23, 0x2d, 0x7d, 0xab, 0x71, 0xb2, 0x98, 0x9f, 0x47, 0x47, 0xca, 0x05, 0x6f, 0xd5,
0x80, 0xd1, 0xd2, 0x0c, 0xe1, 0x47, 0x45, 0x08, 0x33, 0x5a, 0x90, 0x3e, 0x50, 0x22, 0xde, 0xd4,
0xa0, 0xed, 0x1c, 0x91, 0x1b, 0x41, 0xe5, 0xc0, 0x4c, 0x9f, 0x6a, 0x80, 0x68, 0x03, 0xfa, 0x44,
0x61, 0x29, 0x8b, 0x2d, 0xbb, 0xfd, 0x20, 0x1c, 0x44, 0x62, 0xf7, 0x3a, 0x67, 0x06, 0x7a, 0x88,
0x9e, 0xce, 0x11, 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