Debian Codegraph @

visionai/apiv1/visionaipb/health_service.pb.go

raw
1 // Copyright 2025 Google LLC
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 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/visionai/v1/health_service.proto
20
21 package visionaipb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 reflect "reflect"
32 sync "sync"
33 )
34
35 const (
36 // Verify that this generated code is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
38 // Verify that runtime/protoimpl is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
40 )
41
42 // HealthCheckRequest is the request message for Check.
43 type HealthCheckRequest struct {
44 state protoimpl.MessageState
45 sizeCache protoimpl.SizeCache
46 unknownFields protoimpl.UnknownFields
47
48 // The parent of the resource.
49 Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
50 }
51
52 func (x *HealthCheckRequest) Reset() {
53 *x = HealthCheckRequest{}
54 mi := &file_google_cloud_visionai_v1_health_service_proto_msgTypes[0]
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 ms.StoreMessageInfo(mi)
57 }
58
59 func (x *HealthCheckRequest) String() string {
60 return protoimpl.X.MessageStringOf(x)
61 }
62
63 func (*HealthCheckRequest) ProtoMessage() {}
64
65 func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message {
66 mi := &file_google_cloud_visionai_v1_health_service_proto_msgTypes[0]
67 if x != nil {
68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
69 if ms.LoadMessageInfo() == nil {
70 ms.StoreMessageInfo(mi)
71 }
72 return ms
73 }
74 return mi.MessageOf(x)
75 }
76
77 // Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
78 func (*HealthCheckRequest) Descriptor() ([]byte, []int) {
79 return file_google_cloud_visionai_v1_health_service_proto_rawDescGZIP(), []int{0}
80 }
81
82 func (x *HealthCheckRequest) GetCluster() string {
83 if x != nil {
84 return x.Cluster
85 }
86 return ""
87 }
88
89 // HealthCheckResponse is the response message for Check.
90 type HealthCheckResponse struct {
91 state protoimpl.MessageState
92 sizeCache protoimpl.SizeCache
93 unknownFields protoimpl.UnknownFields
94
95 // Indicates whether the cluster is in healthy state or not.
96 Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`
97 // Reason of why the cluster is in unhealthy state.
98 Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
99 // Other information of the cluster client may be interested.
100 ClusterInfo *ClusterInfo `protobuf:"bytes,3,opt,name=cluster_info,json=clusterInfo,proto3" json:"cluster_info,omitempty"`
101 }
102
103 func (x *HealthCheckResponse) Reset() {
104 *x = HealthCheckResponse{}
105 mi := &file_google_cloud_visionai_v1_health_service_proto_msgTypes[1]
106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107 ms.StoreMessageInfo(mi)
108 }
109
110 func (x *HealthCheckResponse) String() string {
111 return protoimpl.X.MessageStringOf(x)
112 }
113
114 func (*HealthCheckResponse) ProtoMessage() {}
115
116 func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message {
117 mi := &file_google_cloud_visionai_v1_health_service_proto_msgTypes[1]
118 if x != nil {
119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120 if ms.LoadMessageInfo() == nil {
121 ms.StoreMessageInfo(mi)
122 }
123 return ms
124 }
125 return mi.MessageOf(x)
126 }
127
128 // Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
129 func (*HealthCheckResponse) Descriptor() ([]byte, []int) {
130 return file_google_cloud_visionai_v1_health_service_proto_rawDescGZIP(), []int{1}
131 }
132
133 func (x *HealthCheckResponse) GetHealthy() bool {
134 if x != nil {
135 return x.Healthy
136 }
137 return false
138 }
139
140 func (x *HealthCheckResponse) GetReason() string {
141 if x != nil {
142 return x.Reason
143 }
144 return ""
145 }
146
147 func (x *HealthCheckResponse) GetClusterInfo() *ClusterInfo {
148 if x != nil {
149 return x.ClusterInfo
150 }
151 return nil
152 }
153
154 type ClusterInfo struct {
155 state protoimpl.MessageState
156 sizeCache protoimpl.SizeCache
157 unknownFields protoimpl.UnknownFields
158
159 // The number of active streams in the cluster.
160 StreamsCount int32 `protobuf:"varint,1,opt,name=streams_count,json=streamsCount,proto3" json:"streams_count,omitempty"`
161 // The number of active processes in the cluster.
162 ProcessesCount int32 `protobuf:"varint,2,opt,name=processes_count,json=processesCount,proto3" json:"processes_count,omitempty"`
163 }
164
165 func (x *ClusterInfo) Reset() {
166 *x = ClusterInfo{}
167 mi := &file_google_cloud_visionai_v1_health_service_proto_msgTypes[2]
168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
169 ms.StoreMessageInfo(mi)
170 }
171
172 func (x *ClusterInfo) String() string {
173 return protoimpl.X.MessageStringOf(x)
174 }
175
176 func (*ClusterInfo) ProtoMessage() {}
177
178 func (x *ClusterInfo) ProtoReflect() protoreflect.Message {
179 mi := &file_google_cloud_visionai_v1_health_service_proto_msgTypes[2]
180 if x != nil {
181 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
182 if ms.LoadMessageInfo() == nil {
183 ms.StoreMessageInfo(mi)
184 }
185 return ms
186 }
187 return mi.MessageOf(x)
188 }
189
190 // Deprecated: Use ClusterInfo.ProtoReflect.Descriptor instead.
191 func (*ClusterInfo) Descriptor() ([]byte, []int) {
192 return file_google_cloud_visionai_v1_health_service_proto_rawDescGZIP(), []int{2}
193 }
194
195 func (x *ClusterInfo) GetStreamsCount() int32 {
196 if x != nil {
197 return x.StreamsCount
198 }
199 return 0
200 }
201
202 func (x *ClusterInfo) GetProcessesCount() int32 {
203 if x != nil {
204 return x.ProcessesCount
205 }
206 return 0
207 }
208
209 var File_google_cloud_visionai_v1_health_service_proto protoreflect.FileDescriptor
210
211 var file_google_cloud_visionai_v1_health_service_proto_rawDesc = []byte{
212 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
213 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74,
214 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
215 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69,
216 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
217 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
218 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
219 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
220 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73,
221 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x12, 0x48,
222 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
223 0x74, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
224 0x28, 0x09, 0x42, 0x24, 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61,
225 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
226 0x2f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65,
227 0x72, 0x22, 0x91, 0x01, 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63,
228 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x61,
229 0x6c, 0x74, 0x68, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c,
230 0x74, 0x68, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20,
231 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x0c, 0x63,
232 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28,
233 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
234 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x75,
235 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65,
236 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x5b, 0x0a, 0x0b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
237 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x5f,
238 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x73, 0x74, 0x72,
239 0x65, 0x61, 0x6d, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x6f,
240 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
241 0x28, 0x05, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x43, 0x6f, 0x75,
242 0x6e, 0x74, 0x32, 0x93, 0x02, 0x0a, 0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65,
243 0x63, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xaf, 0x01, 0x0a, 0x0b, 0x48, 0x65,
244 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
245 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61,
246 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b,
247 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
248 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e,
249 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
250 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b,
251 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x3d, 0x70, 0x72, 0x6f,
252 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
253 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,
254 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x1a, 0x4b, 0xca, 0x41, 0x17,
255 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
256 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a,
257 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
258 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d,
259 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xc7, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d,
260 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69,
261 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x17, 0x48, 0x65, 0x61, 0x6c, 0x74,
262 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f,
263 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
264 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,
265 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61,
266 0x69, 0x70, 0x62, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x70, 0x62, 0xaa, 0x02,
267 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x56, 0x69,
268 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x49, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67,
269 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x56, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41,
270 0x49, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43,
271 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x56, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x41, 0x49, 0x3a, 0x3a,
272 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
273 }
274
275 var (
276 file_google_cloud_visionai_v1_health_service_proto_rawDescOnce sync.Once
277 file_google_cloud_visionai_v1_health_service_proto_rawDescData = file_google_cloud_visionai_v1_health_service_proto_rawDesc
278 )
279
280 func file_google_cloud_visionai_v1_health_service_proto_rawDescGZIP() []byte {
281 file_google_cloud_visionai_v1_health_service_proto_rawDescOnce.Do(func() {
282 file_google_cloud_visionai_v1_health_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_visionai_v1_health_service_proto_rawDescData)
283 })
284 return file_google_cloud_visionai_v1_health_service_proto_rawDescData
285 }
286
287 var file_google_cloud_visionai_v1_health_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
288 var file_google_cloud_visionai_v1_health_service_proto_goTypes = []any{
289 (*HealthCheckRequest)(nil), // 0: google.cloud.visionai.v1.HealthCheckRequest
290 (*HealthCheckResponse)(nil), // 1: google.cloud.visionai.v1.HealthCheckResponse
291 (*ClusterInfo)(nil), // 2: google.cloud.visionai.v1.ClusterInfo
292 }
293 var file_google_cloud_visionai_v1_health_service_proto_depIdxs = []int32{
294 2, // 0: google.cloud.visionai.v1.HealthCheckResponse.cluster_info:type_name -> google.cloud.visionai.v1.ClusterInfo
295 0, // 1: google.cloud.visionai.v1.HealthCheckService.HealthCheck:input_type -> google.cloud.visionai.v1.HealthCheckRequest
296 1, // 2: google.cloud.visionai.v1.HealthCheckService.HealthCheck:output_type -> google.cloud.visionai.v1.HealthCheckResponse
297 2, // [2:3] is the sub-list for method output_type
298 1, // [1:2] is the sub-list for method input_type
299 1, // [1:1] is the sub-list for extension type_name
300 1, // [1:1] is the sub-list for extension extendee
301 0, // [0:1] is the sub-list for field type_name
302 }
303
304 func init() { file_google_cloud_visionai_v1_health_service_proto_init() }
305 func file_google_cloud_visionai_v1_health_service_proto_init() {
306 if File_google_cloud_visionai_v1_health_service_proto != nil {
307 return
308 }
309 type x struct{}
310 out := protoimpl.TypeBuilder{
311 File: protoimpl.DescBuilder{
312 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
313 RawDescriptor: file_google_cloud_visionai_v1_health_service_proto_rawDesc,
314 NumEnums: 0,
315 NumMessages: 3,
316 NumExtensions: 0,
317 NumServices: 1,
318 },
319 GoTypes: file_google_cloud_visionai_v1_health_service_proto_goTypes,
320 DependencyIndexes: file_google_cloud_visionai_v1_health_service_proto_depIdxs,
321 MessageInfos: file_google_cloud_visionai_v1_health_service_proto_msgTypes,
322 }.Build()
323 File_google_cloud_visionai_v1_health_service_proto = out.File
324 file_google_cloud_visionai_v1_health_service_proto_rawDesc = nil
325 file_google_cloud_visionai_v1_health_service_proto_goTypes = nil
326 file_google_cloud_visionai_v1_health_service_proto_depIdxs = nil
327 }
328
329 // Reference imports to suppress errors if they are not otherwise used.
330 var _ context.Context
331 var _ grpc.ClientConnInterface
332
333 // This is a compile-time assertion to ensure that this generated file
334 // is compatible with the grpc package it is being compiled against.
335 const _ = grpc.SupportPackageIsVersion6
336
337 // HealthCheckServiceClient is the client API for HealthCheckService service.
338 //
339 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
340 type HealthCheckServiceClient interface {
341 // HealthCheck method checks the health status of the cluster.
342 HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
343 }
344
345 type healthCheckServiceClient struct {
346 cc grpc.ClientConnInterface
347 }
348
349 func NewHealthCheckServiceClient(cc grpc.ClientConnInterface) HealthCheckServiceClient {
350 return &healthCheckServiceClient{cc}
351 }
352
353 func (c *healthCheckServiceClient) HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) {
354 out := new(HealthCheckResponse)
355 err := c.cc.Invoke(ctx, "/google.cloud.visionai.v1.HealthCheckService/HealthCheck", in, out, opts...)
356 if err != nil {
357 return nil, err
358 }
359 return out, nil
360 }
361
362 // HealthCheckServiceServer is the server API for HealthCheckService service.
363 type HealthCheckServiceServer interface {
364 // HealthCheck method checks the health status of the cluster.
365 HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
366 }
367
368 // UnimplementedHealthCheckServiceServer can be embedded to have forward compatible implementations.
369 type UnimplementedHealthCheckServiceServer struct {
370 }
371
372 func (*UnimplementedHealthCheckServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) {
373 return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented")
374 }
375
376 func RegisterHealthCheckServiceServer(s *grpc.Server, srv HealthCheckServiceServer) {
377 s.RegisterService(&_HealthCheckService_serviceDesc, srv)
378 }
379
380 func _HealthCheckService_HealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
381 in := new(HealthCheckRequest)
382 if err := dec(in); err != nil {
383 return nil, err
384 }
385 if interceptor == nil {
386 return srv.(HealthCheckServiceServer).HealthCheck(ctx, in)
387 }
388 info := &grpc.UnaryServerInfo{
389 Server: srv,
390 FullMethod: "/google.cloud.visionai.v1.HealthCheckService/HealthCheck",
391 }
392 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
393 return srv.(HealthCheckServiceServer).HealthCheck(ctx, req.(*HealthCheckRequest))
394 }
395 return interceptor(ctx, in, info, handler)
396 }
397
398 var _HealthCheckService_serviceDesc = grpc.ServiceDesc{
399 ServiceName: "google.cloud.visionai.v1.HealthCheckService",
400 HandlerType: (*HealthCheckServiceServer)(nil),
401 Methods: []grpc.MethodDesc{
402 {
403 MethodName: "HealthCheck",
404 Handler: _HealthCheckService_HealthCheck_Handler,
405 },
406 },
407 Streams: []grpc.StreamDesc{},
408 Metadata: "google/cloud/visionai/v1/health_service.proto",
409 }