aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go')
-rw-r--r--vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go263
1 files changed, 207 insertions, 56 deletions
diff --git a/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go b/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go
index 89c4d45..c2f2c77 100644
--- a/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go
+++ b/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go
@@ -1,18 +1,7 @@
1// Code generated by protoc-gen-go. 1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: health.proto 2// source: grpc/health/v1/health.proto
3// DO NOT EDIT!
4 3
5/* 4package grpc_health_v1 // import "google.golang.org/grpc/health/grpc_health_v1"
6Package grpc_health_v1 is a generated protocol buffer package.
7
8It is generated from these files:
9 health.proto
10
11It has these top-level messages:
12 HealthCheckRequest
13 HealthCheckResponse
14*/
15package grpc_health_v1
16 5
17import proto "github.com/golang/protobuf/proto" 6import proto "github.com/golang/protobuf/proto"
18import fmt "fmt" 7import fmt "fmt"
@@ -37,46 +26,107 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
37type HealthCheckResponse_ServingStatus int32 26type HealthCheckResponse_ServingStatus int32
38 27
39const ( 28const (
40 HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0 29 HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0
41 HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1 30 HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1
42 HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 31 HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2
32 HealthCheckResponse_SERVICE_UNKNOWN HealthCheckResponse_ServingStatus = 3
43) 33)
44 34
45var HealthCheckResponse_ServingStatus_name = map[int32]string{ 35var HealthCheckResponse_ServingStatus_name = map[int32]string{
46 0: "UNKNOWN", 36 0: "UNKNOWN",
47 1: "SERVING", 37 1: "SERVING",
48 2: "NOT_SERVING", 38 2: "NOT_SERVING",
39 3: "SERVICE_UNKNOWN",
49} 40}
50var HealthCheckResponse_ServingStatus_value = map[string]int32{ 41var HealthCheckResponse_ServingStatus_value = map[string]int32{
51 "UNKNOWN": 0, 42 "UNKNOWN": 0,
52 "SERVING": 1, 43 "SERVING": 1,
53 "NOT_SERVING": 2, 44 "NOT_SERVING": 2,
45 "SERVICE_UNKNOWN": 3,
54} 46}
55 47
56func (x HealthCheckResponse_ServingStatus) String() string { 48func (x HealthCheckResponse_ServingStatus) String() string {
57 return proto.EnumName(HealthCheckResponse_ServingStatus_name, int32(x)) 49 return proto.EnumName(HealthCheckResponse_ServingStatus_name, int32(x))
58} 50}
59func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { 51func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) {
60 return fileDescriptor0, []int{1, 0} 52 return fileDescriptor_health_6b1a06aa67f91efd, []int{1, 0}
61} 53}
62 54
63type HealthCheckRequest struct { 55type HealthCheckRequest struct {
64 Service string `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"` 56 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
57 XXX_NoUnkeyedLiteral struct{} `json:"-"`
58 XXX_unrecognized []byte `json:"-"`
59 XXX_sizecache int32 `json:"-"`
60}
61
62func (m *HealthCheckRequest) Reset() { *m = HealthCheckRequest{} }
63func (m *HealthCheckRequest) String() string { return proto.CompactTextString(m) }
64func (*HealthCheckRequest) ProtoMessage() {}
65func (*HealthCheckRequest) Descriptor() ([]byte, []int) {
66 return fileDescriptor_health_6b1a06aa67f91efd, []int{0}
67}
68func (m *HealthCheckRequest) XXX_Unmarshal(b []byte) error {
69 return xxx_messageInfo_HealthCheckRequest.Unmarshal(m, b)
70}
71func (m *HealthCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
72 return xxx_messageInfo_HealthCheckRequest.Marshal(b, m, deterministic)
73}
74func (dst *HealthCheckRequest) XXX_Merge(src proto.Message) {
75 xxx_messageInfo_HealthCheckRequest.Merge(dst, src)
76}
77func (m *HealthCheckRequest) XXX_Size() int {
78 return xxx_messageInfo_HealthCheckRequest.Size(m)
79}
80func (m *HealthCheckRequest) XXX_DiscardUnknown() {
81 xxx_messageInfo_HealthCheckRequest.DiscardUnknown(m)
65} 82}
66 83
67func (m *HealthCheckRequest) Reset() { *m = HealthCheckRequest{} } 84var xxx_messageInfo_HealthCheckRequest proto.InternalMessageInfo
68func (m *HealthCheckRequest) String() string { return proto.CompactTextString(m) } 85
69func (*HealthCheckRequest) ProtoMessage() {} 86func (m *HealthCheckRequest) GetService() string {
70func (*HealthCheckRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 87 if m != nil {
88 return m.Service
89 }
90 return ""
91}
71 92
72type HealthCheckResponse struct { 93type HealthCheckResponse struct {
73 Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,enum=grpc.health.v1.HealthCheckResponse_ServingStatus" json:"status,omitempty"` 94 Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=grpc.health.v1.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
95 XXX_NoUnkeyedLiteral struct{} `json:"-"`
96 XXX_unrecognized []byte `json:"-"`
97 XXX_sizecache int32 `json:"-"`
74} 98}
75 99
76func (m *HealthCheckResponse) Reset() { *m = HealthCheckResponse{} } 100func (m *HealthCheckResponse) Reset() { *m = HealthCheckResponse{} }
77func (m *HealthCheckResponse) String() string { return proto.CompactTextString(m) } 101func (m *HealthCheckResponse) String() string { return proto.CompactTextString(m) }
78func (*HealthCheckResponse) ProtoMessage() {} 102func (*HealthCheckResponse) ProtoMessage() {}
79func (*HealthCheckResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } 103func (*HealthCheckResponse) Descriptor() ([]byte, []int) {
104 return fileDescriptor_health_6b1a06aa67f91efd, []int{1}
105}
106func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error {
107 return xxx_messageInfo_HealthCheckResponse.Unmarshal(m, b)
108}
109func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
110 return xxx_messageInfo_HealthCheckResponse.Marshal(b, m, deterministic)
111}
112func (dst *HealthCheckResponse) XXX_Merge(src proto.Message) {
113 xxx_messageInfo_HealthCheckResponse.Merge(dst, src)
114}
115func (m *HealthCheckResponse) XXX_Size() int {
116 return xxx_messageInfo_HealthCheckResponse.Size(m)
117}
118func (m *HealthCheckResponse) XXX_DiscardUnknown() {
119 xxx_messageInfo_HealthCheckResponse.DiscardUnknown(m)
120}
121
122var xxx_messageInfo_HealthCheckResponse proto.InternalMessageInfo
123
124func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus {
125 if m != nil {
126 return m.Status
127 }
128 return HealthCheckResponse_UNKNOWN
129}
80 130
81func init() { 131func init() {
82 proto.RegisterType((*HealthCheckRequest)(nil), "grpc.health.v1.HealthCheckRequest") 132 proto.RegisterType((*HealthCheckRequest)(nil), "grpc.health.v1.HealthCheckRequest")
@@ -92,10 +142,29 @@ var _ grpc.ClientConn
92// is compatible with the grpc package it is being compiled against. 142// is compatible with the grpc package it is being compiled against.
93const _ = grpc.SupportPackageIsVersion4 143const _ = grpc.SupportPackageIsVersion4
94 144
95// Client API for Health service 145// HealthClient is the client API for Health service.
96 146//
147// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
97type HealthClient interface { 148type HealthClient interface {
149 // If the requested service is unknown, the call will fail with status
150 // NOT_FOUND.
98 Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) 151 Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
152 // Performs a watch for the serving status of the requested service.
153 // The server will immediately send back a message indicating the current
154 // serving status. It will then subsequently send a new message whenever
155 // the service's serving status changes.
156 //
157 // If the requested service is unknown when the call is received, the
158 // server will send a message setting the serving status to
159 // SERVICE_UNKNOWN but will *not* terminate the call. If at some
160 // future point, the serving status of the service becomes known, the
161 // server will send a new message with the service's serving status.
162 //
163 // If the call terminates with status UNIMPLEMENTED, then clients
164 // should assume this method is not supported and should not retry the
165 // call. If the call terminates with any other status (including OK),
166 // clients should retry the call with appropriate exponential backoff.
167 Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (Health_WatchClient, error)
99} 168}
100 169
101type healthClient struct { 170type healthClient struct {
@@ -108,17 +177,66 @@ func NewHealthClient(cc *grpc.ClientConn) HealthClient {
108 177
109func (c *healthClient) Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) { 178func (c *healthClient) Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) {
110 out := new(HealthCheckResponse) 179 out := new(HealthCheckResponse)
111 err := grpc.Invoke(ctx, "/grpc.health.v1.Health/Check", in, out, c.cc, opts...) 180 err := c.cc.Invoke(ctx, "/grpc.health.v1.Health/Check", in, out, opts...)
112 if err != nil { 181 if err != nil {
113 return nil, err 182 return nil, err
114 } 183 }
115 return out, nil 184 return out, nil
116} 185}
117 186
118// Server API for Health service 187func (c *healthClient) Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (Health_WatchClient, error) {
188 stream, err := c.cc.NewStream(ctx, &_Health_serviceDesc.Streams[0], "/grpc.health.v1.Health/Watch", opts...)
189 if err != nil {
190 return nil, err
191 }
192 x := &healthWatchClient{stream}
193 if err := x.ClientStream.SendMsg(in); err != nil {
194 return nil, err
195 }
196 if err := x.ClientStream.CloseSend(); err != nil {
197 return nil, err
198 }
199 return x, nil
200}
201
202type Health_WatchClient interface {
203 Recv() (*HealthCheckResponse, error)
204 grpc.ClientStream
205}
206
207type healthWatchClient struct {
208 grpc.ClientStream
209}
119 210
211func (x *healthWatchClient) Recv() (*HealthCheckResponse, error) {
212 m := new(HealthCheckResponse)
213 if err := x.ClientStream.RecvMsg(m); err != nil {
214 return nil, err
215 }
216 return m, nil
217}
218
219// HealthServer is the server API for Health service.
120type HealthServer interface { 220type HealthServer interface {
221 // If the requested service is unknown, the call will fail with status
222 // NOT_FOUND.
121 Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) 223 Check(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
224 // Performs a watch for the serving status of the requested service.
225 // The server will immediately send back a message indicating the current
226 // serving status. It will then subsequently send a new message whenever
227 // the service's serving status changes.
228 //
229 // If the requested service is unknown when the call is received, the
230 // server will send a message setting the serving status to
231 // SERVICE_UNKNOWN but will *not* terminate the call. If at some
232 // future point, the serving status of the service becomes known, the
233 // server will send a new message with the service's serving status.
234 //
235 // If the call terminates with status UNIMPLEMENTED, then clients
236 // should assume this method is not supported and should not retry the
237 // call. If the call terminates with any other status (including OK),
238 // clients should retry the call with appropriate exponential backoff.
239 Watch(*HealthCheckRequest, Health_WatchServer) error
122} 240}
123 241
124func RegisterHealthServer(s *grpc.Server, srv HealthServer) { 242func RegisterHealthServer(s *grpc.Server, srv HealthServer) {
@@ -143,6 +261,27 @@ func _Health_Check_Handler(srv interface{}, ctx context.Context, dec func(interf
143 return interceptor(ctx, in, info, handler) 261 return interceptor(ctx, in, info, handler)
144} 262}
145 263
264func _Health_Watch_Handler(srv interface{}, stream grpc.ServerStream) error {
265 m := new(HealthCheckRequest)
266 if err := stream.RecvMsg(m); err != nil {
267 return err
268 }
269 return srv.(HealthServer).Watch(m, &healthWatchServer{stream})
270}
271
272type Health_WatchServer interface {
273 Send(*HealthCheckResponse) error
274 grpc.ServerStream
275}
276
277type healthWatchServer struct {
278 grpc.ServerStream
279}
280
281func (x *healthWatchServer) Send(m *HealthCheckResponse) error {
282 return x.ServerStream.SendMsg(m)
283}
284
146var _Health_serviceDesc = grpc.ServiceDesc{ 285var _Health_serviceDesc = grpc.ServiceDesc{
147 ServiceName: "grpc.health.v1.Health", 286 ServiceName: "grpc.health.v1.Health",
148 HandlerType: (*HealthServer)(nil), 287 HandlerType: (*HealthServer)(nil),
@@ -152,25 +291,37 @@ var _Health_serviceDesc = grpc.ServiceDesc{
152 Handler: _Health_Check_Handler, 291 Handler: _Health_Check_Handler,
153 }, 292 },
154 }, 293 },
155 Streams: []grpc.StreamDesc{}, 294 Streams: []grpc.StreamDesc{
156 Metadata: "health.proto", 295 {
157} 296 StreamName: "Watch",
158 297 Handler: _Health_Watch_Handler,
159func init() { proto.RegisterFile("health.proto", fileDescriptor0) } 298 ServerStreams: true,
160 299 },
161var fileDescriptor0 = []byte{ 300 },
162 // 204 bytes of a gzipped FileDescriptorProto 301 Metadata: "grpc/health/v1/health.proto",
163 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0xc9, 0x48, 0x4d, 0xcc, 302}
164 0x29, 0xc9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x4b, 0x2f, 0x2a, 0x48, 0xd6, 0x83, 303
165 0x0a, 0x95, 0x19, 0x2a, 0xe9, 0x71, 0x09, 0x79, 0x80, 0x39, 0xce, 0x19, 0xa9, 0xc9, 0xd9, 0x41, 304func init() { proto.RegisterFile("grpc/health/v1/health.proto", fileDescriptor_health_6b1a06aa67f91efd) }
166 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x12, 0x5c, 0xec, 0xc5, 0xa9, 0x45, 0x65, 0x99, 0xc9, 305
167 0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x30, 0xae, 0xd2, 0x1c, 0x46, 0x2e, 0x61, 0x14, 306var fileDescriptor_health_6b1a06aa67f91efd = []byte{
168 0x0d, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0x42, 0x9e, 0x5c, 0x6c, 0xc5, 0x25, 0x89, 0x25, 0xa5, 307 // 297 bytes of a gzipped FileDescriptorProto
169 0xc5, 0x60, 0x0d, 0x7c, 0x46, 0x86, 0x7a, 0xa8, 0x16, 0xe9, 0x61, 0xd1, 0xa4, 0x17, 0x0c, 0x32, 308 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0x2f, 0x2a, 0x48,
170 0x34, 0x2f, 0x3d, 0x18, 0xac, 0x31, 0x08, 0x6a, 0x80, 0x92, 0x15, 0x17, 0x2f, 0x8a, 0x84, 0x10, 309 0xd6, 0xcf, 0x48, 0x4d, 0xcc, 0x29, 0xc9, 0xd0, 0x2f, 0x33, 0x84, 0xb2, 0xf4, 0x0a, 0x8a, 0xf2,
171 0x37, 0x17, 0x7b, 0xa8, 0x9f, 0xb7, 0x9f, 0x7f, 0xb8, 0x9f, 0x00, 0x03, 0x88, 0x13, 0xec, 0x1a, 310 0x4b, 0xf2, 0x85, 0xf8, 0x40, 0x92, 0x7a, 0x50, 0xa1, 0x32, 0x43, 0x25, 0x3d, 0x2e, 0x21, 0x0f,
172 0x14, 0xe6, 0xe9, 0xe7, 0x2e, 0xc0, 0x28, 0xc4, 0xcf, 0xc5, 0xed, 0xe7, 0x1f, 0x12, 0x0f, 0x13, 311 0x30, 0xc7, 0x39, 0x23, 0x35, 0x39, 0x3b, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x82,
173 0x60, 0x32, 0x8a, 0xe2, 0x62, 0x83, 0x58, 0x24, 0x14, 0xc0, 0xc5, 0x0a, 0xb6, 0x4c, 0x48, 0x09, 312 0x8b, 0xbd, 0x38, 0xb5, 0xa8, 0x2c, 0x33, 0x39, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08,
174 0xaf, 0x4b, 0xc0, 0xfe, 0x95, 0x52, 0x26, 0xc2, 0xb5, 0x49, 0x6c, 0xe0, 0x10, 0x34, 0x06, 0x04, 313 0xc6, 0x55, 0xda, 0xc8, 0xc8, 0x25, 0x8c, 0xa2, 0xa1, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0x55, 0xc8,
175 0x00, 0x00, 0xff, 0xff, 0xac, 0x56, 0x2a, 0xcb, 0x51, 0x01, 0x00, 0x00, 314 0x93, 0x8b, 0xad, 0xb8, 0x24, 0xb1, 0xa4, 0xb4, 0x18, 0xac, 0x81, 0xcf, 0xc8, 0x50, 0x0f, 0xd5,
315 0x22, 0x3d, 0x2c, 0x9a, 0xf4, 0x82, 0x41, 0x86, 0xe6, 0xa5, 0x07, 0x83, 0x35, 0x06, 0x41, 0x0d,
316 0x50, 0xf2, 0xe7, 0xe2, 0x45, 0x91, 0x10, 0xe2, 0xe6, 0x62, 0x0f, 0xf5, 0xf3, 0xf6, 0xf3, 0x0f,
317 0xf7, 0x13, 0x60, 0x00, 0x71, 0x82, 0x5d, 0x83, 0xc2, 0x3c, 0xfd, 0xdc, 0x05, 0x18, 0x85, 0xf8,
318 0xb9, 0xb8, 0xfd, 0xfc, 0x43, 0xe2, 0x61, 0x02, 0x4c, 0x42, 0xc2, 0x5c, 0xfc, 0x60, 0x8e, 0xb3,
319 0x6b, 0x3c, 0x4c, 0x0b, 0xb3, 0xd1, 0x3a, 0x46, 0x2e, 0x36, 0x88, 0xf5, 0x42, 0x01, 0x5c, 0xac,
320 0x60, 0x27, 0x08, 0x29, 0xe1, 0x75, 0x1f, 0x38, 0x14, 0xa4, 0x94, 0x89, 0xf0, 0x83, 0x50, 0x10,
321 0x17, 0x6b, 0x78, 0x62, 0x49, 0x72, 0x06, 0xd5, 0x4c, 0x34, 0x60, 0x74, 0x4a, 0xe4, 0x12, 0xcc,
322 0xcc, 0x47, 0x53, 0xea, 0xc4, 0x0d, 0x51, 0x1b, 0x00, 0x8a, 0xc6, 0x00, 0xc6, 0x28, 0x9d, 0xf4,
323 0xfc, 0xfc, 0xf4, 0x9c, 0x54, 0xbd, 0xf4, 0xfc, 0x9c, 0xc4, 0xbc, 0x74, 0xbd, 0xfc, 0xa2, 0x74,
324 0x7d, 0xe4, 0x78, 0x07, 0xb1, 0xe3, 0x21, 0xec, 0xf8, 0x32, 0xc3, 0x55, 0x4c, 0x7c, 0xee, 0x20,
325 0xd3, 0x20, 0x46, 0xe8, 0x85, 0x19, 0x26, 0xb1, 0x81, 0x93, 0x83, 0x31, 0x20, 0x00, 0x00, 0xff,
326 0xff, 0x12, 0x7d, 0x96, 0xcb, 0x2d, 0x02, 0x00, 0x00,
176} 327}