/
discoverer.pb.go
181 lines (160 loc) · 7.22 KB
/
discoverer.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
//
// Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt )
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package discoverer
import (
context "context"
fmt "fmt"
math "math"
_ "github.com/danielvladco/go-proto-gql/pb"
proto "github.com/gogo/protobuf/proto"
payload "github.com/vdaas/vald/apis/grpc/payload"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() { proto.RegisterFile("discoverer.proto", fileDescriptor_9fa655cb815aa581) }
var fileDescriptor_9fa655cb815aa581 = []byte{
// 266 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0xc9, 0x2c, 0x4e,
0xce, 0x2f, 0x4b, 0x2d, 0x4a, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x42, 0x88,
0x48, 0xf1, 0x16, 0x24, 0x56, 0xe6, 0xe4, 0x27, 0xa6, 0x40, 0xa4, 0xa4, 0x64, 0xd2, 0xf3, 0xf3,
0xd3, 0x73, 0x52, 0xf5, 0x13, 0x0b, 0x32, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32,
0xf3, 0xf3, 0x8a, 0xa1, 0xb2, 0x3c, 0x05, 0x49, 0xfa, 0xe9, 0x85, 0x39, 0x10, 0x9e, 0xd1, 0x5e,
0x46, 0x2e, 0x2e, 0x17, 0xb8, 0x49, 0x42, 0x41, 0x5c, 0x2c, 0x01, 0xf9, 0x29, 0xc5, 0x42, 0xd2,
0x7a, 0x30, 0x23, 0x11, 0x92, 0x7a, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x52, 0x42, 0x70,
0x49, 0xcf, 0xbc, 0xb4, 0x7c, 0x3d, 0x90, 0x06, 0x25, 0xc9, 0xa6, 0xcb, 0x4f, 0x26, 0x33, 0x09,
0x2b, 0xf1, 0xe9, 0xc3, 0xdc, 0xa5, 0x5f, 0x90, 0x9f, 0x52, 0x6c, 0xc5, 0xa8, 0x25, 0x14, 0xca,
0xc5, 0xea, 0x97, 0x9f, 0x92, 0x4a, 0xc0, 0x50, 0x61, 0x54, 0x43, 0xc1, 0x3a, 0x94, 0xa4, 0xc0,
0xa6, 0x8a, 0x28, 0xf1, 0x23, 0x4c, 0xcd, 0x03, 0x49, 0x58, 0x31, 0x6a, 0x49, 0xb1, 0x6c, 0x78,
0x20, 0xcf, 0xe4, 0x94, 0x78, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9,
0x31, 0x72, 0x49, 0xe6, 0x17, 0xa5, 0xeb, 0x95, 0xa5, 0x24, 0x26, 0x16, 0xeb, 0x95, 0x25, 0xe6,
0xa4, 0xe8, 0x21, 0xc2, 0xc8, 0x09, 0xc9, 0x97, 0x01, 0x8c, 0x51, 0x5a, 0xe9, 0x99, 0x25, 0x19,
0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x60, 0xf5, 0xfa, 0x20, 0xf5, 0xa0, 0x10, 0x2b, 0xd6,
0x4f, 0x2f, 0x2a, 0x48, 0xd6, 0x47, 0xe8, 0x4c, 0x62, 0x03, 0x87, 0x94, 0x31, 0x20, 0x00, 0x00,
0xff, 0xff, 0x76, 0x50, 0xc3, 0x83, 0x84, 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
// DiscovererClient is the client API for Discoverer service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DiscovererClient interface {
Pods(ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption) (*payload.Info_Pods, error)
Nodes(ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption) (*payload.Info_Nodes, error)
}
type discovererClient struct {
cc *grpc.ClientConn
}
func NewDiscovererClient(cc *grpc.ClientConn) DiscovererClient {
return &discovererClient{cc}
}
func (c *discovererClient) Pods(ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption) (*payload.Info_Pods, error) {
out := new(payload.Info_Pods)
err := c.cc.Invoke(ctx, "/discoverer.Discoverer/Pods", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *discovererClient) Nodes(ctx context.Context, in *payload.Discoverer_Request, opts ...grpc.CallOption) (*payload.Info_Nodes, error) {
out := new(payload.Info_Nodes)
err := c.cc.Invoke(ctx, "/discoverer.Discoverer/Nodes", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DiscovererServer is the server API for Discoverer service.
type DiscovererServer interface {
Pods(context.Context, *payload.Discoverer_Request) (*payload.Info_Pods, error)
Nodes(context.Context, *payload.Discoverer_Request) (*payload.Info_Nodes, error)
}
// UnimplementedDiscovererServer can be embedded to have forward compatible implementations.
type UnimplementedDiscovererServer struct {
}
func (*UnimplementedDiscovererServer) Pods(ctx context.Context, req *payload.Discoverer_Request) (*payload.Info_Pods, error) {
return nil, status.Errorf(codes.Unimplemented, "method Pods not implemented")
}
func (*UnimplementedDiscovererServer) Nodes(ctx context.Context, req *payload.Discoverer_Request) (*payload.Info_Nodes, error) {
return nil, status.Errorf(codes.Unimplemented, "method Nodes not implemented")
}
func RegisterDiscovererServer(s *grpc.Server, srv DiscovererServer) {
s.RegisterService(&_Discoverer_serviceDesc, srv)
}
func _Discoverer_Pods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(payload.Discoverer_Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DiscovererServer).Pods(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/discoverer.Discoverer/Pods",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiscovererServer).Pods(ctx, req.(*payload.Discoverer_Request))
}
return interceptor(ctx, in, info, handler)
}
func _Discoverer_Nodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(payload.Discoverer_Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DiscovererServer).Nodes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/discoverer.Discoverer/Nodes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DiscovererServer).Nodes(ctx, req.(*payload.Discoverer_Request))
}
return interceptor(ctx, in, info, handler)
}
var _Discoverer_serviceDesc = grpc.ServiceDesc{
ServiceName: "discoverer.Discoverer",
HandlerType: (*DiscovererServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Pods",
Handler: _Discoverer_Pods_Handler,
},
{
MethodName: "Nodes",
Handler: _Discoverer_Nodes_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "discoverer.proto",
}