health_shopping_service.pb.go 12 KB

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