1
|
|
|
// Copyright 2015 The gRPC Authors |
2
|
|
|
// |
3
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
4
|
|
|
// you may not use this file except in compliance with the License. |
5
|
|
|
// You may obtain a copy of the License at |
6
|
|
|
// |
7
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0 |
8
|
|
|
// |
9
|
|
|
// Unless required by applicable law or agreed to in writing, software |
10
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS, |
11
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12
|
|
|
// See the License for the specific language governing permissions and |
13
|
|
|
// limitations under the License. |
14
|
|
|
|
15
|
|
|
// The canonical version of this proto can be found at |
16
|
|
|
// https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto |
17
|
|
|
|
18
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT. |
19
|
|
|
// versions: |
20
|
|
|
// protoc-gen-go v1.34.2 |
21
|
|
|
// protoc (unknown) |
22
|
|
|
// source: base/v1/health.proto |
23
|
|
|
|
24
|
|
|
package basev1 |
25
|
|
|
|
26
|
|
|
import ( |
27
|
|
|
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
28
|
|
|
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" |
29
|
|
|
_ "google.golang.org/genproto/googleapis/api/annotations" |
30
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
31
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
32
|
|
|
reflect "reflect" |
33
|
|
|
sync "sync" |
34
|
|
|
) |
35
|
|
|
|
36
|
|
|
const ( |
37
|
|
|
// Verify that this generated code is sufficiently up-to-date. |
38
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
39
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date. |
40
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
41
|
|
|
) |
42
|
|
|
|
43
|
|
|
type HealthCheckResponse_ServingStatus int32 |
44
|
|
|
|
45
|
|
|
const ( |
46
|
|
|
HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0 |
47
|
|
|
HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1 |
48
|
|
|
HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 |
49
|
|
|
HealthCheckResponse_SERVICE_UNKNOWN HealthCheckResponse_ServingStatus = 3 // Used only by the Watch method. |
50
|
|
|
) |
51
|
|
|
|
52
|
|
|
// Enum value maps for HealthCheckResponse_ServingStatus. |
53
|
|
|
var ( |
54
|
|
|
HealthCheckResponse_ServingStatus_name = map[int32]string{ |
55
|
|
|
0: "UNKNOWN", |
56
|
|
|
1: "SERVING", |
57
|
|
|
2: "NOT_SERVING", |
58
|
|
|
3: "SERVICE_UNKNOWN", |
59
|
|
|
} |
60
|
|
|
HealthCheckResponse_ServingStatus_value = map[string]int32{ |
61
|
|
|
"UNKNOWN": 0, |
62
|
|
|
"SERVING": 1, |
63
|
|
|
"NOT_SERVING": 2, |
64
|
|
|
"SERVICE_UNKNOWN": 3, |
65
|
|
|
} |
66
|
|
|
) |
67
|
|
|
|
68
|
|
|
func (x HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus { |
69
|
|
|
p := new(HealthCheckResponse_ServingStatus) |
70
|
|
|
*p = x |
71
|
|
|
return p |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
func (x HealthCheckResponse_ServingStatus) String() string { |
75
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
func (HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor { |
79
|
|
|
return file_base_v1_health_proto_enumTypes[0].Descriptor() |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType { |
83
|
|
|
return &file_base_v1_health_proto_enumTypes[0] |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber { |
87
|
|
|
return protoreflect.EnumNumber(x) |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
// Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead. |
91
|
|
|
func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { |
92
|
|
|
return file_base_v1_health_proto_rawDescGZIP(), []int{1, 0} |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
type HealthCheckRequest struct { |
96
|
|
|
state protoimpl.MessageState |
97
|
|
|
sizeCache protoimpl.SizeCache |
98
|
|
|
unknownFields protoimpl.UnknownFields |
99
|
|
|
|
100
|
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
func (x *HealthCheckRequest) Reset() { |
104
|
|
|
*x = HealthCheckRequest{} |
105
|
|
|
if protoimpl.UnsafeEnabled { |
106
|
|
|
mi := &file_base_v1_health_proto_msgTypes[0] |
107
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
108
|
|
|
ms.StoreMessageInfo(mi) |
109
|
|
|
} |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
func (x *HealthCheckRequest) String() string { |
113
|
|
|
return protoimpl.X.MessageStringOf(x) |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
func (*HealthCheckRequest) ProtoMessage() {} |
117
|
|
|
|
118
|
|
|
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message { |
119
|
|
|
mi := &file_base_v1_health_proto_msgTypes[0] |
120
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
121
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
122
|
|
|
if ms.LoadMessageInfo() == nil { |
123
|
|
|
ms.StoreMessageInfo(mi) |
124
|
|
|
} |
125
|
|
|
return ms |
126
|
|
|
} |
127
|
|
|
return mi.MessageOf(x) |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
// Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead. |
131
|
|
|
func (*HealthCheckRequest) Descriptor() ([]byte, []int) { |
132
|
|
|
return file_base_v1_health_proto_rawDescGZIP(), []int{0} |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
func (x *HealthCheckRequest) GetService() string { |
136
|
|
|
if x != nil { |
137
|
|
|
return x.Service |
138
|
|
|
} |
139
|
|
|
return "" |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
type HealthCheckResponse struct { |
143
|
|
|
state protoimpl.MessageState |
144
|
|
|
sizeCache protoimpl.SizeCache |
145
|
|
|
unknownFields protoimpl.UnknownFields |
146
|
|
|
|
147
|
|
|
Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=base.v1.HealthCheckResponse_ServingStatus" json:"status,omitempty"` |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
func (x *HealthCheckResponse) Reset() { |
151
|
|
|
*x = HealthCheckResponse{} |
152
|
|
|
if protoimpl.UnsafeEnabled { |
153
|
|
|
mi := &file_base_v1_health_proto_msgTypes[1] |
154
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
155
|
|
|
ms.StoreMessageInfo(mi) |
156
|
|
|
} |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
func (x *HealthCheckResponse) String() string { |
160
|
|
|
return protoimpl.X.MessageStringOf(x) |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
func (*HealthCheckResponse) ProtoMessage() {} |
164
|
|
|
|
165
|
|
|
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message { |
166
|
|
|
mi := &file_base_v1_health_proto_msgTypes[1] |
167
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
168
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
169
|
|
|
if ms.LoadMessageInfo() == nil { |
170
|
|
|
ms.StoreMessageInfo(mi) |
171
|
|
|
} |
172
|
|
|
return ms |
173
|
|
|
} |
174
|
|
|
return mi.MessageOf(x) |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
// Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead. |
178
|
|
|
func (*HealthCheckResponse) Descriptor() ([]byte, []int) { |
179
|
|
|
return file_base_v1_health_proto_rawDescGZIP(), []int{1} |
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus { |
183
|
|
|
if x != nil { |
184
|
|
|
return x.Status |
185
|
|
|
} |
186
|
|
|
return HealthCheckResponse_UNKNOWN |
187
|
|
|
} |
188
|
|
|
|
189
|
|
|
type HealthRequest struct { |
190
|
|
|
state protoimpl.MessageState |
191
|
|
|
sizeCache protoimpl.SizeCache |
192
|
|
|
unknownFields protoimpl.UnknownFields |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
func (x *HealthRequest) Reset() { |
196
|
|
|
*x = HealthRequest{} |
197
|
|
|
if protoimpl.UnsafeEnabled { |
198
|
|
|
mi := &file_base_v1_health_proto_msgTypes[2] |
199
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
200
|
|
|
ms.StoreMessageInfo(mi) |
201
|
|
|
} |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
func (x *HealthRequest) String() string { |
205
|
|
|
return protoimpl.X.MessageStringOf(x) |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
func (*HealthRequest) ProtoMessage() {} |
209
|
|
|
|
210
|
|
|
func (x *HealthRequest) ProtoReflect() protoreflect.Message { |
211
|
|
|
mi := &file_base_v1_health_proto_msgTypes[2] |
212
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
213
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
214
|
|
|
if ms.LoadMessageInfo() == nil { |
215
|
|
|
ms.StoreMessageInfo(mi) |
216
|
|
|
} |
217
|
|
|
return ms |
218
|
|
|
} |
219
|
|
|
return mi.MessageOf(x) |
220
|
|
|
} |
221
|
|
|
|
222
|
|
|
// Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead. |
223
|
|
|
func (*HealthRequest) Descriptor() ([]byte, []int) { |
224
|
|
|
return file_base_v1_health_proto_rawDescGZIP(), []int{2} |
225
|
|
|
} |
226
|
|
|
|
227
|
|
|
type HealthResponse struct { |
228
|
|
|
state protoimpl.MessageState |
229
|
|
|
sizeCache protoimpl.SizeCache |
230
|
|
|
unknownFields protoimpl.UnknownFields |
231
|
|
|
|
232
|
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` |
233
|
|
|
} |
234
|
|
|
|
235
|
|
|
func (x *HealthResponse) Reset() { |
236
|
|
|
*x = HealthResponse{} |
237
|
|
|
if protoimpl.UnsafeEnabled { |
238
|
|
|
mi := &file_base_v1_health_proto_msgTypes[3] |
239
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
240
|
|
|
ms.StoreMessageInfo(mi) |
241
|
|
|
} |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
func (x *HealthResponse) String() string { |
245
|
|
|
return protoimpl.X.MessageStringOf(x) |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
func (*HealthResponse) ProtoMessage() {} |
249
|
|
|
|
250
|
|
|
func (x *HealthResponse) ProtoReflect() protoreflect.Message { |
251
|
|
|
mi := &file_base_v1_health_proto_msgTypes[3] |
252
|
|
|
if protoimpl.UnsafeEnabled && x != nil { |
253
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
254
|
|
|
if ms.LoadMessageInfo() == nil { |
255
|
|
|
ms.StoreMessageInfo(mi) |
256
|
|
|
} |
257
|
|
|
return ms |
258
|
|
|
} |
259
|
|
|
return mi.MessageOf(x) |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
// Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead. |
263
|
|
|
func (*HealthResponse) Descriptor() ([]byte, []int) { |
264
|
|
|
return file_base_v1_health_proto_rawDescGZIP(), []int{3} |
265
|
|
|
} |
266
|
|
|
|
267
|
|
|
func (x *HealthResponse) GetStatus() string { |
268
|
|
|
if x != nil { |
269
|
|
|
return x.Status |
270
|
|
|
} |
271
|
|
|
return "" |
272
|
|
|
} |
273
|
|
|
|
274
|
|
|
var File_base_v1_health_proto protoreflect.FileDescriptor |
275
|
|
|
|
276
|
|
|
var file_base_v1_health_proto_rawDesc = []byte{ |
277
|
|
|
0x0a, 0x14, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, |
278
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, |
279
|
|
|
0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, |
280
|
|
|
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, |
281
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, |
282
|
|
|
0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, |
283
|
|
|
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, |
284
|
|
|
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, |
285
|
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, 0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, |
286
|
|
|
0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, |
287
|
|
|
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, |
288
|
|
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, |
289
|
|
|
0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, |
290
|
|
|
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, |
291
|
|
|
0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, |
292
|
|
|
0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, 0x72, |
293
|
|
|
0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, |
294
|
|
|
0x75, 0x73, 0x22, 0x4f, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, |
295
|
|
|
0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, |
296
|
|
|
0x12, 0x0b, 0x0a, 0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, |
297
|
|
|
0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x13, |
298
|
|
|
0x0a, 0x0f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, |
299
|
|
|
0x4e, 0x10, 0x03, 0x22, 0x0f, 0x0a, 0x0d, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, |
300
|
|
|
0x75, 0x65, 0x73, 0x74, 0x22, 0x28, 0x0a, 0x0e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, |
301
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, |
302
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0xe5, |
303
|
|
|
0x02, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x94, 0x02, 0x0a, 0x05, 0x43, 0x68, |
304
|
|
|
0x65, 0x63, 0x6b, 0x12, 0x1b, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, |
305
|
|
|
0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
306
|
|
|
0x1a, 0x1c, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, |
307
|
|
|
0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcf, |
308
|
|
|
0x01, 0x92, 0x41, 0xbb, 0x01, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x0a, 0x68, |
309
|
|
|
0x65, 0x61, 0x6c, 0x74, 0x68, 0x20, 0x61, 0x70, 0x69, 0x2a, 0x0c, 0x68, 0x65, 0x61, 0x6c, 0x74, |
310
|
|
|
0x68, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x6a, 0x96, 0x01, 0x0a, 0x0d, 0x78, 0x2d, 0x63, 0x6f, |
311
|
|
|
0x64, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x12, 0x84, 0x01, 0x32, 0x81, 0x01, 0x0a, |
312
|
|
|
0x29, 0x2a, 0x27, 0x0a, 0x0b, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x02, 0x1a, 0x00, |
313
|
|
|
0x0a, 0x0a, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, 0x02, 0x1a, 0x00, 0x0a, 0x0c, 0x0a, 0x06, |
314
|
|
|
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x02, 0x1a, 0x00, 0x0a, 0x29, 0x2a, 0x27, 0x0a, 0x0b, |
315
|
|
|
0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x02, 0x1a, 0x00, 0x0a, 0x0a, 0x0a, 0x04, 0x6c, |
316
|
|
|
0x61, 0x6e, 0x67, 0x12, 0x02, 0x1a, 0x00, 0x0a, 0x0c, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, |
317
|
|
|
0x65, 0x12, 0x02, 0x1a, 0x00, 0x0a, 0x29, 0x2a, 0x27, 0x0a, 0x0b, 0x0a, 0x05, 0x6c, 0x61, 0x62, |
318
|
|
|
0x65, 0x6c, 0x12, 0x02, 0x1a, 0x00, 0x0a, 0x0a, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, 0x02, |
319
|
|
|
0x1a, 0x00, 0x0a, 0x0c, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x02, 0x1a, 0x00, |
320
|
|
|
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, |
321
|
|
|
0x12, 0x44, 0x0a, 0x05, 0x57, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1b, 0x2e, 0x62, 0x61, 0x73, 0x65, |
322
|
|
|
0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, |
323
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, |
324
|
|
|
0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, |
325
|
|
|
0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x89, 0x01, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x2e, 0x62, |
326
|
|
|
0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, 0x72, |
327
|
|
|
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, |
328
|
|
|
0x6d, 0x2f, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x66, 0x79, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x66, |
329
|
|
|
0x79, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, |
330
|
|
|
0x3b, 0x62, 0x61, 0x73, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x42, 0x58, 0x58, 0xaa, 0x02, 0x07, |
331
|
|
|
0x42, 0x61, 0x73, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x07, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, |
332
|
|
|
0x31, 0xe2, 0x02, 0x13, 0x42, 0x61, 0x73, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, |
333
|
|
|
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x08, 0x42, 0x61, 0x73, 0x65, 0x3a, 0x3a, |
334
|
|
|
0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
var ( |
338
|
|
|
file_base_v1_health_proto_rawDescOnce sync.Once |
339
|
|
|
file_base_v1_health_proto_rawDescData = file_base_v1_health_proto_rawDesc |
340
|
|
|
) |
341
|
|
|
|
342
|
|
|
func file_base_v1_health_proto_rawDescGZIP() []byte { |
343
|
|
|
file_base_v1_health_proto_rawDescOnce.Do(func() { |
344
|
|
|
file_base_v1_health_proto_rawDescData = protoimpl.X.CompressGZIP(file_base_v1_health_proto_rawDescData) |
345
|
|
|
}) |
346
|
|
|
return file_base_v1_health_proto_rawDescData |
347
|
|
|
} |
348
|
|
|
|
349
|
|
|
var file_base_v1_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
350
|
|
|
var file_base_v1_health_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
351
|
|
|
var file_base_v1_health_proto_goTypes = []any{ |
352
|
|
|
(HealthCheckResponse_ServingStatus)(0), // 0: base.v1.HealthCheckResponse.ServingStatus |
353
|
|
|
(*HealthCheckRequest)(nil), // 1: base.v1.HealthCheckRequest |
354
|
|
|
(*HealthCheckResponse)(nil), // 2: base.v1.HealthCheckResponse |
355
|
|
|
(*HealthRequest)(nil), // 3: base.v1.HealthRequest |
356
|
|
|
(*HealthResponse)(nil), // 4: base.v1.HealthResponse |
357
|
|
|
} |
358
|
|
|
var file_base_v1_health_proto_depIdxs = []int32{ |
359
|
|
|
0, // 0: base.v1.HealthCheckResponse.status:type_name -> base.v1.HealthCheckResponse.ServingStatus |
360
|
|
|
1, // 1: base.v1.Health.Check:input_type -> base.v1.HealthCheckRequest |
361
|
|
|
1, // 2: base.v1.Health.Watch:input_type -> base.v1.HealthCheckRequest |
362
|
|
|
2, // 3: base.v1.Health.Check:output_type -> base.v1.HealthCheckResponse |
363
|
|
|
2, // 4: base.v1.Health.Watch:output_type -> base.v1.HealthCheckResponse |
364
|
|
|
3, // [3:5] is the sub-list for method output_type |
365
|
|
|
1, // [1:3] is the sub-list for method input_type |
366
|
|
|
1, // [1:1] is the sub-list for extension type_name |
367
|
|
|
1, // [1:1] is the sub-list for extension extendee |
368
|
|
|
0, // [0:1] is the sub-list for field type_name |
369
|
|
|
} |
370
|
|
|
|
371
|
|
|
func init() { file_base_v1_health_proto_init() } |
372
|
|
|
func file_base_v1_health_proto_init() { |
373
|
|
|
if File_base_v1_health_proto != nil { |
374
|
|
|
return |
375
|
|
|
} |
376
|
|
|
if !protoimpl.UnsafeEnabled { |
377
|
|
|
file_base_v1_health_proto_msgTypes[0].Exporter = func(v any, i int) any { |
378
|
|
|
switch v := v.(*HealthCheckRequest); i { |
379
|
|
|
case 0: |
380
|
|
|
return &v.state |
381
|
|
|
case 1: |
382
|
|
|
return &v.sizeCache |
383
|
|
|
case 2: |
384
|
|
|
return &v.unknownFields |
385
|
|
|
default: |
386
|
|
|
return nil |
387
|
|
|
} |
388
|
|
|
} |
389
|
|
|
file_base_v1_health_proto_msgTypes[1].Exporter = func(v any, i int) any { |
390
|
|
|
switch v := v.(*HealthCheckResponse); i { |
391
|
|
|
case 0: |
392
|
|
|
return &v.state |
393
|
|
|
case 1: |
394
|
|
|
return &v.sizeCache |
395
|
|
|
case 2: |
396
|
|
|
return &v.unknownFields |
397
|
|
|
default: |
398
|
|
|
return nil |
399
|
|
|
} |
400
|
|
|
} |
401
|
|
|
file_base_v1_health_proto_msgTypes[2].Exporter = func(v any, i int) any { |
402
|
|
|
switch v := v.(*HealthRequest); i { |
403
|
|
|
case 0: |
404
|
|
|
return &v.state |
405
|
|
|
case 1: |
406
|
|
|
return &v.sizeCache |
407
|
|
|
case 2: |
408
|
|
|
return &v.unknownFields |
409
|
|
|
default: |
410
|
|
|
return nil |
411
|
|
|
} |
412
|
|
|
} |
413
|
|
|
file_base_v1_health_proto_msgTypes[3].Exporter = func(v any, i int) any { |
414
|
|
|
switch v := v.(*HealthResponse); i { |
415
|
|
|
case 0: |
416
|
|
|
return &v.state |
417
|
|
|
case 1: |
418
|
|
|
return &v.sizeCache |
419
|
|
|
case 2: |
420
|
|
|
return &v.unknownFields |
421
|
|
|
default: |
422
|
|
|
return nil |
423
|
|
|
} |
424
|
|
|
} |
425
|
|
|
} |
426
|
|
|
type x struct{} |
427
|
|
|
out := protoimpl.TypeBuilder{ |
428
|
|
|
File: protoimpl.DescBuilder{ |
429
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
430
|
|
|
RawDescriptor: file_base_v1_health_proto_rawDesc, |
431
|
|
|
NumEnums: 1, |
432
|
|
|
NumMessages: 4, |
433
|
|
|
NumExtensions: 0, |
434
|
|
|
NumServices: 1, |
435
|
|
|
}, |
436
|
|
|
GoTypes: file_base_v1_health_proto_goTypes, |
437
|
|
|
DependencyIndexes: file_base_v1_health_proto_depIdxs, |
438
|
|
|
EnumInfos: file_base_v1_health_proto_enumTypes, |
439
|
|
|
MessageInfos: file_base_v1_health_proto_msgTypes, |
440
|
|
|
}.Build() |
441
|
|
|
File_base_v1_health_proto = out.File |
442
|
|
|
file_base_v1_health_proto_rawDesc = nil |
443
|
|
|
file_base_v1_health_proto_goTypes = nil |
444
|
|
|
file_base_v1_health_proto_depIdxs = nil |
445
|
|
|
} |
446
|
|
|
|