gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/grpc/health/grpc_health_v1/health.pb.go (about) 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.25.0 21 // protoc v3.14.0 22 // source: grpc/health/v1/health.proto 23 24 package grpc_health_v1 25 26 import ( 27 proto "github.com/golang/protobuf/proto" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30 reflect "reflect" 31 sync "sync" 32 ) 33 34 const ( 35 // Verify that this generated code is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 37 // Verify that runtime/protoimpl is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 39 ) 40 41 // This is a compile-time assertion that a sufficiently up-to-date version 42 // of the legacy proto package is being used. 43 const _ = proto.ProtoPackageIsVersion4 44 45 type HealthCheckResponse_ServingStatus int32 46 47 const ( 48 HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0 49 HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1 50 HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 51 HealthCheckResponse_SERVICE_UNKNOWN HealthCheckResponse_ServingStatus = 3 // Used only by the Watch method. 52 ) 53 54 // Enum value maps for HealthCheckResponse_ServingStatus. 55 var ( 56 HealthCheckResponse_ServingStatus_name = map[int32]string{ 57 0: "UNKNOWN", 58 1: "SERVING", 59 2: "NOT_SERVING", 60 3: "SERVICE_UNKNOWN", 61 } 62 HealthCheckResponse_ServingStatus_value = map[string]int32{ 63 "UNKNOWN": 0, 64 "SERVING": 1, 65 "NOT_SERVING": 2, 66 "SERVICE_UNKNOWN": 3, 67 } 68 ) 69 70 func (x HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus { 71 p := new(HealthCheckResponse_ServingStatus) 72 *p = x 73 return p 74 } 75 76 func (x HealthCheckResponse_ServingStatus) String() string { 77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 78 } 79 80 func (HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor { 81 return file_grpc_health_v1_health_proto_enumTypes[0].Descriptor() 82 } 83 84 func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType { 85 return &file_grpc_health_v1_health_proto_enumTypes[0] 86 } 87 88 func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber { 89 return protoreflect.EnumNumber(x) 90 } 91 92 // Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead. 93 func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { 94 return file_grpc_health_v1_health_proto_rawDescGZIP(), []int{1, 0} 95 } 96 97 type HealthCheckRequest struct { 98 state protoimpl.MessageState 99 sizeCache protoimpl.SizeCache 100 unknownFields protoimpl.UnknownFields 101 102 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 103 } 104 105 func (x *HealthCheckRequest) Reset() { 106 *x = HealthCheckRequest{} 107 if protoimpl.UnsafeEnabled { 108 mi := &file_grpc_health_v1_health_proto_msgTypes[0] 109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 110 ms.StoreMessageInfo(mi) 111 } 112 } 113 114 func (x *HealthCheckRequest) String() string { 115 return protoimpl.X.MessageStringOf(x) 116 } 117 118 func (*HealthCheckRequest) ProtoMessage() {} 119 120 func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message { 121 mi := &file_grpc_health_v1_health_proto_msgTypes[0] 122 if protoimpl.UnsafeEnabled && x != nil { 123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 124 if ms.LoadMessageInfo() == nil { 125 ms.StoreMessageInfo(mi) 126 } 127 return ms 128 } 129 return mi.MessageOf(x) 130 } 131 132 // Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead. 133 func (*HealthCheckRequest) Descriptor() ([]byte, []int) { 134 return file_grpc_health_v1_health_proto_rawDescGZIP(), []int{0} 135 } 136 137 func (x *HealthCheckRequest) GetService() string { 138 if x != nil { 139 return x.Service 140 } 141 return "" 142 } 143 144 type HealthCheckResponse struct { 145 state protoimpl.MessageState 146 sizeCache protoimpl.SizeCache 147 unknownFields protoimpl.UnknownFields 148 149 Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=grpc.health.v1.HealthCheckResponse_ServingStatus" json:"status,omitempty"` 150 } 151 152 func (x *HealthCheckResponse) Reset() { 153 *x = HealthCheckResponse{} 154 if protoimpl.UnsafeEnabled { 155 mi := &file_grpc_health_v1_health_proto_msgTypes[1] 156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 157 ms.StoreMessageInfo(mi) 158 } 159 } 160 161 func (x *HealthCheckResponse) String() string { 162 return protoimpl.X.MessageStringOf(x) 163 } 164 165 func (*HealthCheckResponse) ProtoMessage() {} 166 167 func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message { 168 mi := &file_grpc_health_v1_health_proto_msgTypes[1] 169 if protoimpl.UnsafeEnabled && x != nil { 170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 171 if ms.LoadMessageInfo() == nil { 172 ms.StoreMessageInfo(mi) 173 } 174 return ms 175 } 176 return mi.MessageOf(x) 177 } 178 179 // Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead. 180 func (*HealthCheckResponse) Descriptor() ([]byte, []int) { 181 return file_grpc_health_v1_health_proto_rawDescGZIP(), []int{1} 182 } 183 184 func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus { 185 if x != nil { 186 return x.Status 187 } 188 return HealthCheckResponse_UNKNOWN 189 } 190 191 var File_grpc_health_v1_health_proto protoreflect.FileDescriptor 192 193 var file_grpc_health_v1_health_proto_rawDesc = []byte{ 194 0x0a, 0x1b, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2f, 0x76, 0x31, 195 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x67, 196 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x22, 0x2e, 0x0a, 197 0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 198 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 199 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xb1, 0x01, 200 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 201 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 202 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 203 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 204 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 205 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 206 0x22, 0x4f, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 207 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 208 0x0a, 0x07, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 209 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 210 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 211 0x03, 0x32, 0xae, 0x01, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x50, 0x0a, 0x05, 212 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 213 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 214 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 0x70, 0x63, 215 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 216 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 217 0x0a, 0x05, 0x57, 0x61, 0x74, 0x63, 0x68, 0x12, 0x22, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 218 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 219 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x72, 220 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 221 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 222 0x30, 0x01, 0x42, 0x61, 0x0a, 0x11, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 223 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, 224 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 225 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x68, 226 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x68, 0x65, 0x61, 0x6c, 0x74, 227 0x68, 0x5f, 0x76, 0x31, 0xaa, 0x02, 0x0e, 0x47, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x61, 0x6c, 228 0x74, 0x68, 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 229 } 230 231 var ( 232 file_grpc_health_v1_health_proto_rawDescOnce sync.Once 233 file_grpc_health_v1_health_proto_rawDescData = file_grpc_health_v1_health_proto_rawDesc 234 ) 235 236 func file_grpc_health_v1_health_proto_rawDescGZIP() []byte { 237 file_grpc_health_v1_health_proto_rawDescOnce.Do(func() { 238 file_grpc_health_v1_health_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_health_v1_health_proto_rawDescData) 239 }) 240 return file_grpc_health_v1_health_proto_rawDescData 241 } 242 243 var file_grpc_health_v1_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 244 var file_grpc_health_v1_health_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 245 var file_grpc_health_v1_health_proto_goTypes = []interface{}{ 246 (HealthCheckResponse_ServingStatus)(0), // 0: grpc.health.v1.HealthCheckResponse.ServingStatus 247 (*HealthCheckRequest)(nil), // 1: grpc.health.v1.HealthCheckRequest 248 (*HealthCheckResponse)(nil), // 2: grpc.health.v1.HealthCheckResponse 249 } 250 var file_grpc_health_v1_health_proto_depIdxs = []int32{ 251 0, // 0: grpc.health.v1.HealthCheckResponse.status:type_name -> grpc.health.v1.HealthCheckResponse.ServingStatus 252 1, // 1: grpc.health.v1.Health.Check:input_type -> grpc.health.v1.HealthCheckRequest 253 1, // 2: grpc.health.v1.Health.Watch:input_type -> grpc.health.v1.HealthCheckRequest 254 2, // 3: grpc.health.v1.Health.Check:output_type -> grpc.health.v1.HealthCheckResponse 255 2, // 4: grpc.health.v1.Health.Watch:output_type -> grpc.health.v1.HealthCheckResponse 256 3, // [3:5] is the sub-list for method output_type 257 1, // [1:3] is the sub-list for method input_type 258 1, // [1:1] is the sub-list for extension type_name 259 1, // [1:1] is the sub-list for extension extendee 260 0, // [0:1] is the sub-list for field type_name 261 } 262 263 func init() { file_grpc_health_v1_health_proto_init() } 264 func file_grpc_health_v1_health_proto_init() { 265 if File_grpc_health_v1_health_proto != nil { 266 return 267 } 268 if !protoimpl.UnsafeEnabled { 269 file_grpc_health_v1_health_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 270 switch v := v.(*HealthCheckRequest); i { 271 case 0: 272 return &v.state 273 case 1: 274 return &v.sizeCache 275 case 2: 276 return &v.unknownFields 277 default: 278 return nil 279 } 280 } 281 file_grpc_health_v1_health_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 282 switch v := v.(*HealthCheckResponse); i { 283 case 0: 284 return &v.state 285 case 1: 286 return &v.sizeCache 287 case 2: 288 return &v.unknownFields 289 default: 290 return nil 291 } 292 } 293 } 294 type x struct{} 295 out := protoimpl.TypeBuilder{ 296 File: protoimpl.DescBuilder{ 297 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 298 RawDescriptor: file_grpc_health_v1_health_proto_rawDesc, 299 NumEnums: 1, 300 NumMessages: 2, 301 NumExtensions: 0, 302 NumServices: 1, 303 }, 304 GoTypes: file_grpc_health_v1_health_proto_goTypes, 305 DependencyIndexes: file_grpc_health_v1_health_proto_depIdxs, 306 EnumInfos: file_grpc_health_v1_health_proto_enumTypes, 307 MessageInfos: file_grpc_health_v1_health_proto_msgTypes, 308 }.Build() 309 File_grpc_health_v1_health_proto = out.File 310 file_grpc_health_v1_health_proto_rawDesc = nil 311 file_grpc_health_v1_health_proto_goTypes = nil 312 file_grpc_health_v1_health_proto_depIdxs = nil 313 }