github.com/bufbuild/connect-grpchealth-go@v1.1.1/internal/gen/go/connectext/grpc/health/v1/health.pb.go (about) 1 // Copyright 2022-2023 Buf Technologies, Inc. 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.30.0 18 // protoc (unknown) 19 // source: connectext/grpc/health/v1/health.proto 20 21 // This package is intended for internal use by connect-grpc-go, and provides 22 // no backward compatibility guarantees whatsoever. Apart from the package 23 // name, the schema here must remain wire compatible with the original. 24 // 25 // Copied from gRPC's health check schema, with small modifications to prevent 26 // init-time panics: 27 // https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto 28 29 package healthv1 30 31 import ( 32 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 33 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 34 reflect "reflect" 35 sync "sync" 36 ) 37 38 const ( 39 // Verify that this generated code is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 41 // Verify that runtime/protoimpl is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 43 ) 44 45 type HealthCheckResponse_ServingStatus int32 46 47 const ( 48 HealthCheckResponse_SERVING_STATUS_UNSPECIFIED HealthCheckResponse_ServingStatus = 0 49 HealthCheckResponse_SERVING_STATUS_SERVING HealthCheckResponse_ServingStatus = 1 50 HealthCheckResponse_SERVING_STATUS_NOT_SERVING HealthCheckResponse_ServingStatus = 2 51 HealthCheckResponse_SERVING_STATUS_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: "SERVING_STATUS_UNSPECIFIED", 58 1: "SERVING_STATUS_SERVING", 59 2: "SERVING_STATUS_NOT_SERVING", 60 3: "SERVING_STATUS_SERVICE_UNKNOWN", 61 } 62 HealthCheckResponse_ServingStatus_value = map[string]int32{ 63 "SERVING_STATUS_UNSPECIFIED": 0, 64 "SERVING_STATUS_SERVING": 1, 65 "SERVING_STATUS_NOT_SERVING": 2, 66 "SERVING_STATUS_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_connectext_grpc_health_v1_health_proto_enumTypes[0].Descriptor() 82 } 83 84 func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType { 85 return &file_connectext_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_connectext_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_connectext_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_connectext_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_connectext_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=connectext.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_connectext_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_connectext_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_connectext_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_SERVING_STATUS_UNSPECIFIED 189 } 190 191 var File_connectext_grpc_health_v1_health_proto protoreflect.FileDescriptor 192 193 var file_connectext_grpc_health_v1_health_proto_rawDesc = []byte{ 194 0x0a, 0x26, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x67, 0x72, 0x70, 195 0x63, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x65, 0x61, 0x6c, 196 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 197 0x74, 0x65, 0x78, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 198 0x2e, 0x76, 0x31, 0x22, 0x2e, 0x0a, 0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 199 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 200 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 201 0x69, 0x63, 0x65, 0x22, 0xfd, 0x01, 0x0a, 0x13, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 202 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x06, 0x73, 203 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x63, 0x6f, 204 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 205 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 206 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 207 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 208 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 209 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x5f, 0x53, 210 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 211 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x5f, 0x53, 212 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 213 0x1e, 0x0a, 0x1a, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 214 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 215 0x22, 0x0a, 0x1e, 0x53, 0x45, 0x52, 0x56, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 216 0x53, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 217 0x4e, 0x10, 0x03, 0x32, 0xda, 0x01, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x66, 218 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x2d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 219 0x74, 0x65, 0x78, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 220 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 221 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 222 0x65, 0x78, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 223 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 224 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x05, 0x57, 0x61, 0x74, 0x63, 0x68, 0x12, 225 0x2d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x67, 0x72, 0x70, 226 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 227 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 228 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 229 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 230 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 231 0x42, 0x91, 0x02, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 232 0x65, 0x78, 0x74, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 233 0x76, 0x31, 0x42, 0x0b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 234 0x01, 0x5a, 0x5c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x75, 235 0x66, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2d, 0x67, 236 0x72, 0x70, 0x63, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2d, 0x67, 0x6f, 0x2f, 0x69, 0x6e, 0x74, 237 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 238 0x6e, 0x65, 0x63, 0x74, 0x65, 0x78, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x68, 0x65, 0x61, 239 0x6c, 0x74, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x76, 0x31, 0xa2, 240 0x02, 0x03, 0x43, 0x47, 0x48, 0xaa, 0x02, 0x19, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 241 0x78, 0x74, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x56, 242 0x31, 0xca, 0x02, 0x19, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x78, 0x74, 0x5c, 0x47, 243 0x72, 0x70, 0x63, 0x5c, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x25, 244 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x78, 0x74, 0x5c, 0x47, 0x72, 0x70, 0x63, 0x5c, 245 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 246 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 247 0x78, 0x74, 0x3a, 0x3a, 0x47, 0x72, 0x70, 0x63, 0x3a, 0x3a, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 248 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 249 } 250 251 var ( 252 file_connectext_grpc_health_v1_health_proto_rawDescOnce sync.Once 253 file_connectext_grpc_health_v1_health_proto_rawDescData = file_connectext_grpc_health_v1_health_proto_rawDesc 254 ) 255 256 func file_connectext_grpc_health_v1_health_proto_rawDescGZIP() []byte { 257 file_connectext_grpc_health_v1_health_proto_rawDescOnce.Do(func() { 258 file_connectext_grpc_health_v1_health_proto_rawDescData = protoimpl.X.CompressGZIP(file_connectext_grpc_health_v1_health_proto_rawDescData) 259 }) 260 return file_connectext_grpc_health_v1_health_proto_rawDescData 261 } 262 263 var file_connectext_grpc_health_v1_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 264 var file_connectext_grpc_health_v1_health_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 265 var file_connectext_grpc_health_v1_health_proto_goTypes = []interface{}{ 266 (HealthCheckResponse_ServingStatus)(0), // 0: connectext.grpc.health.v1.HealthCheckResponse.ServingStatus 267 (*HealthCheckRequest)(nil), // 1: connectext.grpc.health.v1.HealthCheckRequest 268 (*HealthCheckResponse)(nil), // 2: connectext.grpc.health.v1.HealthCheckResponse 269 } 270 var file_connectext_grpc_health_v1_health_proto_depIdxs = []int32{ 271 0, // 0: connectext.grpc.health.v1.HealthCheckResponse.status:type_name -> connectext.grpc.health.v1.HealthCheckResponse.ServingStatus 272 1, // 1: connectext.grpc.health.v1.Health.Check:input_type -> connectext.grpc.health.v1.HealthCheckRequest 273 1, // 2: connectext.grpc.health.v1.Health.Watch:input_type -> connectext.grpc.health.v1.HealthCheckRequest 274 2, // 3: connectext.grpc.health.v1.Health.Check:output_type -> connectext.grpc.health.v1.HealthCheckResponse 275 2, // 4: connectext.grpc.health.v1.Health.Watch:output_type -> connectext.grpc.health.v1.HealthCheckResponse 276 3, // [3:5] is the sub-list for method output_type 277 1, // [1:3] is the sub-list for method input_type 278 1, // [1:1] is the sub-list for extension type_name 279 1, // [1:1] is the sub-list for extension extendee 280 0, // [0:1] is the sub-list for field type_name 281 } 282 283 func init() { file_connectext_grpc_health_v1_health_proto_init() } 284 func file_connectext_grpc_health_v1_health_proto_init() { 285 if File_connectext_grpc_health_v1_health_proto != nil { 286 return 287 } 288 if !protoimpl.UnsafeEnabled { 289 file_connectext_grpc_health_v1_health_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 290 switch v := v.(*HealthCheckRequest); i { 291 case 0: 292 return &v.state 293 case 1: 294 return &v.sizeCache 295 case 2: 296 return &v.unknownFields 297 default: 298 return nil 299 } 300 } 301 file_connectext_grpc_health_v1_health_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 302 switch v := v.(*HealthCheckResponse); i { 303 case 0: 304 return &v.state 305 case 1: 306 return &v.sizeCache 307 case 2: 308 return &v.unknownFields 309 default: 310 return nil 311 } 312 } 313 } 314 type x struct{} 315 out := protoimpl.TypeBuilder{ 316 File: protoimpl.DescBuilder{ 317 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 318 RawDescriptor: file_connectext_grpc_health_v1_health_proto_rawDesc, 319 NumEnums: 1, 320 NumMessages: 2, 321 NumExtensions: 0, 322 NumServices: 1, 323 }, 324 GoTypes: file_connectext_grpc_health_v1_health_proto_goTypes, 325 DependencyIndexes: file_connectext_grpc_health_v1_health_proto_depIdxs, 326 EnumInfos: file_connectext_grpc_health_v1_health_proto_enumTypes, 327 MessageInfos: file_connectext_grpc_health_v1_health_proto_msgTypes, 328 }.Build() 329 File_connectext_grpc_health_v1_health_proto = out.File 330 file_connectext_grpc_health_v1_health_proto_rawDesc = nil 331 file_connectext_grpc_health_v1_health_proto_goTypes = nil 332 file_connectext_grpc_health_v1_health_proto_depIdxs = nil 333 }