health.pb.go 12 KB

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