| OLD | NEW |
| (Empty) | |
| 1 // Code generated by protoc-gen-go. |
| 2 // source: service.proto |
| 3 // DO NOT EDIT! |
| 4 |
| 5 /* |
| 6 Package discovery is a generated protocol buffer package. |
| 7 |
| 8 It is generated from these files: |
| 9 service.proto |
| 10 |
| 11 It has these top-level messages: |
| 12 Void |
| 13 DescribeResponse |
| 14 */ |
| 15 package discovery |
| 16 |
| 17 import prpc "github.com/luci/luci-go/server/prpc" |
| 18 |
| 19 import proto "github.com/golang/protobuf/proto" |
| 20 import fmt "fmt" |
| 21 import math "math" |
| 22 |
| 23 import ( |
| 24 context "golang.org/x/net/context" |
| 25 grpc "google.golang.org/grpc" |
| 26 ) |
| 27 |
| 28 // Reference imports to suppress errors if they are not otherwise used. |
| 29 var _ = proto.Marshal |
| 30 var _ = fmt.Errorf |
| 31 var _ = math.Inf |
| 32 |
| 33 // Void is an empty message. |
| 34 type Void struct { |
| 35 } |
| 36 |
| 37 func (m *Void) Reset() { *m = Void{} } |
| 38 func (m *Void) String() string { return proto.CompactTextString
(m) } |
| 39 func (*Void) ProtoMessage() {} |
| 40 func (*Void) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{
0} } |
| 41 |
| 42 // DescribeResponse describes services. |
| 43 type DescribeResponse struct { |
| 44 // FileDescriptionSet is a binary-encoded FileDescriptorSet message. |
| 45 // Contains descriptions of all services, their types and all transitive |
| 46 // dependencies. |
| 47 FileDescriptionSet []byte `protobuf:"bytes,1,opt,name=fileDescript
ionSet,proto3" json:"fileDescriptionSet,omitempty"` |
| 48 // Services are service names provided by a server. |
| 49 Services []string `protobuf:"bytes,2,rep,name=services" js
on:"services,omitempty"` |
| 50 } |
| 51 |
| 52 func (m *DescribeResponse) Reset() { *m = DescribeResponse{
} } |
| 53 func (m *DescribeResponse) String() string { return proto.CompactTe
xtString(m) } |
| 54 func (*DescribeResponse) ProtoMessage() {} |
| 55 func (*DescribeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0
, []int{1} } |
| 56 |
| 57 func init() { |
| 58 proto.RegisterType((*Void)(nil), "discovery.Void") |
| 59 proto.RegisterType((*DescribeResponse)(nil), "discovery.DescribeResponse
") |
| 60 } |
| 61 |
| 62 // Reference imports to suppress errors if they are not otherwise used. |
| 63 var _ context.Context |
| 64 var _ grpc.ClientConn |
| 65 |
| 66 // Client API for Discovery service |
| 67 |
| 68 type DiscoveryClient interface { |
| 69 // Returns a list of services and a |
| 70 // descriptor.FileDescriptorSet that covers them all. |
| 71 Describe(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Descr
ibeResponse, error) |
| 72 } |
| 73 |
| 74 type discoveryClient struct { |
| 75 cc *grpc.ClientConn |
| 76 } |
| 77 |
| 78 func NewDiscoveryClient(cc *grpc.ClientConn) DiscoveryClient { |
| 79 return &discoveryClient{cc} |
| 80 } |
| 81 |
| 82 func (c *discoveryClient) Describe(ctx context.Context, in *Void, opts ...grpc.C
allOption) (*DescribeResponse, error) { |
| 83 out := new(DescribeResponse) |
| 84 err := grpc.Invoke(ctx, "/discovery.Discovery/Describe", in, out, c.cc,
opts...) |
| 85 if err != nil { |
| 86 return nil, err |
| 87 } |
| 88 return out, nil |
| 89 } |
| 90 |
| 91 // Server API for Discovery service |
| 92 |
| 93 type DiscoveryServer interface { |
| 94 // Returns a list of services and a |
| 95 // descriptor.FileDescriptorSet that covers them all. |
| 96 Describe(context.Context, *Void) (*DescribeResponse, error) |
| 97 } |
| 98 |
| 99 func RegisterDiscoveryServer(s prpc.Registrar, srv DiscoveryServer) { |
| 100 s.RegisterService(&_Discovery_serviceDesc, srv) |
| 101 } |
| 102 |
| 103 func _Discovery_Describe_Handler(srv interface{}, ctx context.Context, dec func(
interface{}) error) (interface{}, error) { |
| 104 in := new(Void) |
| 105 if err := dec(in); err != nil { |
| 106 return nil, err |
| 107 } |
| 108 out, err := srv.(DiscoveryServer).Describe(ctx, in) |
| 109 if err != nil { |
| 110 return nil, err |
| 111 } |
| 112 return out, nil |
| 113 } |
| 114 |
| 115 var _Discovery_serviceDesc = grpc.ServiceDesc{ |
| 116 ServiceName: "discovery.Discovery", |
| 117 HandlerType: (*DiscoveryServer)(nil), |
| 118 Methods: []grpc.MethodDesc{ |
| 119 { |
| 120 MethodName: "Describe", |
| 121 Handler: _Discovery_Describe_Handler, |
| 122 }, |
| 123 }, |
| 124 Streams: []grpc.StreamDesc{}, |
| 125 } |
| 126 |
| 127 var fileDescriptor0 = []byte{ |
| 128 // 150 bytes of a gzipped FileDescriptorProto |
| 129 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2,
0x2d, 0x4e, 0x2d, 0x2a, |
| 130 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x4c,
0xc9, 0x2c, 0x4e, 0xce, |
| 131 0x2f, 0x4b, 0x2d, 0xaa, 0x54, 0x62, 0xe3, 0x62, 0x09, 0xcb, 0xcf, 0x4c,
0x51, 0x72, 0xe0, 0x12, |
| 132 0x70, 0x49, 0x2d, 0x4e, 0x2e, 0xca, 0x4c, 0x4a, 0x0d, 0x4a, 0x2d, 0x2e,
0xc8, 0xcf, 0x2b, 0x4e, |
| 133 0x15, 0x92, 0xe2, 0x12, 0x4a, 0xcb, 0xcc, 0x49, 0x85, 0x88, 0x17, 0x94,
0x64, 0xe6, 0xe7, 0x05, |
| 134 0xa7, 0x96, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x08, 0x09, 0x70, 0x71,
0x40, 0xcd, 0x2c, 0x96, |
| 135 0x60, 0x52, 0x60, 0xd6, 0xe0, 0x34, 0x72, 0xe7, 0xe2, 0x74, 0x81, 0x19,
0x2b, 0x64, 0xc5, 0xc5, |
| 136 0x01, 0x33, 0x4e, 0x88, 0x5f, 0x0f, 0x6e, 0x9d, 0x1e, 0xc8, 0x2e, 0x29,
0x69, 0x24, 0x01, 0x74, |
| 137 0x4b, 0x95, 0x18, 0x92, 0xd8, 0xc0, 0x8e, 0x34, 0x06, 0x04, 0x00, 0x00,
0xff, 0xff, 0xae, 0x0f, |
| 138 0xd5, 0x2d, 0xb5, 0x00, 0x00, 0x00, |
| 139 } |
| OLD | NEW |