data.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.17.3
  5. // source: data.proto
  6. package fho_forward_proto
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type DataReply_ReplyStatus int32
  21. const (
  22. DataReply_SCHEDULE_TYPE_UNSPECIFIED DataReply_ReplyStatus = 0
  23. DataReply_OK DataReply_ReplyStatus = 1
  24. DataReply_ERROR DataReply_ReplyStatus = 2
  25. )
  26. // Enum value maps for DataReply_ReplyStatus.
  27. var (
  28. DataReply_ReplyStatus_name = map[int32]string{
  29. 0: "SCHEDULE_TYPE_UNSPECIFIED",
  30. 1: "OK",
  31. 2: "ERROR",
  32. }
  33. DataReply_ReplyStatus_value = map[string]int32{
  34. "SCHEDULE_TYPE_UNSPECIFIED": 0,
  35. "OK": 1,
  36. "ERROR": 2,
  37. }
  38. )
  39. func (x DataReply_ReplyStatus) Enum() *DataReply_ReplyStatus {
  40. p := new(DataReply_ReplyStatus)
  41. *p = x
  42. return p
  43. }
  44. func (x DataReply_ReplyStatus) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (DataReply_ReplyStatus) Descriptor() protoreflect.EnumDescriptor {
  48. return file_data_proto_enumTypes[0].Descriptor()
  49. }
  50. func (DataReply_ReplyStatus) Type() protoreflect.EnumType {
  51. return &file_data_proto_enumTypes[0]
  52. }
  53. func (x DataReply_ReplyStatus) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Use DataReply_ReplyStatus.Descriptor instead.
  57. func (DataReply_ReplyStatus) EnumDescriptor() ([]byte, []int) {
  58. return file_data_proto_rawDescGZIP(), []int{1, 0}
  59. }
  60. type DataRequest struct {
  61. state protoimpl.MessageState
  62. sizeCache protoimpl.SizeCache
  63. unknownFields protoimpl.UnknownFields
  64. Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
  65. UpdatedAfter *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_after,json=updatedAfter,proto3" json:"updated_after,omitempty"`
  66. Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  67. }
  68. func (x *DataRequest) Reset() {
  69. *x = DataRequest{}
  70. if protoimpl.UnsafeEnabled {
  71. mi := &file_data_proto_msgTypes[0]
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. ms.StoreMessageInfo(mi)
  74. }
  75. }
  76. func (x *DataRequest) String() string {
  77. return protoimpl.X.MessageStringOf(x)
  78. }
  79. func (*DataRequest) ProtoMessage() {}
  80. func (x *DataRequest) ProtoReflect() protoreflect.Message {
  81. mi := &file_data_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 DataRequest.ProtoReflect.Descriptor instead.
  92. func (*DataRequest) Descriptor() ([]byte, []int) {
  93. return file_data_proto_rawDescGZIP(), []int{0}
  94. }
  95. func (x *DataRequest) GetObject() string {
  96. if x != nil {
  97. return x.Object
  98. }
  99. return ""
  100. }
  101. func (x *DataRequest) GetUpdatedAfter() *timestamppb.Timestamp {
  102. if x != nil {
  103. return x.UpdatedAfter
  104. }
  105. return nil
  106. }
  107. func (x *DataRequest) GetData() string {
  108. if x != nil {
  109. return x.Data
  110. }
  111. return ""
  112. }
  113. type DataReply struct {
  114. state protoimpl.MessageState
  115. sizeCache protoimpl.SizeCache
  116. unknownFields protoimpl.UnknownFields
  117. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  118. ReplyStatus DataReply_ReplyStatus `protobuf:"varint,2,opt,name=reply_status,json=replyStatus,proto3,enum=fho.DataReply_ReplyStatus" json:"reply_status,omitempty"`
  119. ErrorMsg string `protobuf:"bytes,3,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
  120. LatestUpdatedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=latest_updated_time,json=latestUpdatedTime,proto3" json:"latest_updated_time,omitempty"`
  121. }
  122. func (x *DataReply) Reset() {
  123. *x = DataReply{}
  124. if protoimpl.UnsafeEnabled {
  125. mi := &file_data_proto_msgTypes[1]
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. ms.StoreMessageInfo(mi)
  128. }
  129. }
  130. func (x *DataReply) String() string {
  131. return protoimpl.X.MessageStringOf(x)
  132. }
  133. func (*DataReply) ProtoMessage() {}
  134. func (x *DataReply) ProtoReflect() protoreflect.Message {
  135. mi := &file_data_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 DataReply.ProtoReflect.Descriptor instead.
  146. func (*DataReply) Descriptor() ([]byte, []int) {
  147. return file_data_proto_rawDescGZIP(), []int{1}
  148. }
  149. func (x *DataReply) GetData() string {
  150. if x != nil {
  151. return x.Data
  152. }
  153. return ""
  154. }
  155. func (x *DataReply) GetReplyStatus() DataReply_ReplyStatus {
  156. if x != nil {
  157. return x.ReplyStatus
  158. }
  159. return DataReply_SCHEDULE_TYPE_UNSPECIFIED
  160. }
  161. func (x *DataReply) GetErrorMsg() string {
  162. if x != nil {
  163. return x.ErrorMsg
  164. }
  165. return ""
  166. }
  167. func (x *DataReply) GetLatestUpdatedTime() *timestamppb.Timestamp {
  168. if x != nil {
  169. return x.LatestUpdatedTime
  170. }
  171. return nil
  172. }
  173. var File_data_proto protoreflect.FileDescriptor
  174. var file_data_proto_rawDesc = []byte{
  175. 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x66, 0x68,
  176. 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  177. 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
  178. 0x74, 0x6f, 0x22, 0x7a, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  179. 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  180. 0x09, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x75, 0x70, 0x64,
  181. 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  182. 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  183. 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x75, 0x70,
  184. 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61,
  185. 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x88,
  186. 0x02, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x12, 0x0a, 0x04,
  187. 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
  188. 0x12, 0x3d, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
  189. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74,
  190. 0x61, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74,
  191. 0x75, 0x73, 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
  192. 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01,
  193. 0x28, 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x4a, 0x0a, 0x13,
  194. 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74,
  195. 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  196. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
  197. 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x11, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x55, 0x70, 0x64,
  198. 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6c,
  199. 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x43, 0x48, 0x45, 0x44,
  200. 0x55, 0x4c, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
  201. 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x09,
  202. 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x32, 0xa2, 0x01, 0x0a, 0x0b, 0x44, 0x61,
  203. 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x47, 0x65, 0x74,
  204. 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52,
  205. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74,
  206. 0x61, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x32, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x65,
  207. 0x61, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74,
  208. 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44,
  209. 0x61, 0x74, 0x61, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30, 0x01, 0x12, 0x30, 0x0a, 0x0a,
  210. 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x2e, 0x66, 0x68, 0x6f,
  211. 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x66,
  212. 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x2a,
  213. 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x2e, 0x6d, 0x6f, 0x6b, 0x6b, 0x6f, 0x6e, 0x2e, 0x63,
  214. 0x6f, 0x6d, 0x2f, 0x73, 0x61, 0x69, 0x6e, 0x77, 0x2f, 0x66, 0x68, 0x6f, 0x5f, 0x66, 0x6f, 0x72,
  215. 0x77, 0x61, 0x72, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  216. 0x6f, 0x33,
  217. }
  218. var (
  219. file_data_proto_rawDescOnce sync.Once
  220. file_data_proto_rawDescData = file_data_proto_rawDesc
  221. )
  222. func file_data_proto_rawDescGZIP() []byte {
  223. file_data_proto_rawDescOnce.Do(func() {
  224. file_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_data_proto_rawDescData)
  225. })
  226. return file_data_proto_rawDescData
  227. }
  228. var file_data_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  229. var file_data_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  230. var file_data_proto_goTypes = []interface{}{
  231. (DataReply_ReplyStatus)(0), // 0: fho.DataReply.ReplyStatus
  232. (*DataRequest)(nil), // 1: fho.DataRequest
  233. (*DataReply)(nil), // 2: fho.DataReply
  234. (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
  235. }
  236. var file_data_proto_depIdxs = []int32{
  237. 3, // 0: fho.DataRequest.updated_after:type_name -> google.protobuf.Timestamp
  238. 0, // 1: fho.DataReply.reply_status:type_name -> fho.DataReply.ReplyStatus
  239. 3, // 2: fho.DataReply.latest_updated_time:type_name -> google.protobuf.Timestamp
  240. 1, // 3: fho.DataService.GetData:input_type -> fho.DataRequest
  241. 1, // 4: fho.DataService.StreamData:input_type -> fho.DataRequest
  242. 1, // 5: fho.DataService.UpdateData:input_type -> fho.DataRequest
  243. 2, // 6: fho.DataService.GetData:output_type -> fho.DataReply
  244. 2, // 7: fho.DataService.StreamData:output_type -> fho.DataReply
  245. 2, // 8: fho.DataService.UpdateData:output_type -> fho.DataReply
  246. 6, // [6:9] is the sub-list for method output_type
  247. 3, // [3:6] is the sub-list for method input_type
  248. 3, // [3:3] is the sub-list for extension type_name
  249. 3, // [3:3] is the sub-list for extension extendee
  250. 0, // [0:3] is the sub-list for field type_name
  251. }
  252. func init() { file_data_proto_init() }
  253. func file_data_proto_init() {
  254. if File_data_proto != nil {
  255. return
  256. }
  257. if !protoimpl.UnsafeEnabled {
  258. file_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  259. switch v := v.(*DataRequest); i {
  260. case 0:
  261. return &v.state
  262. case 1:
  263. return &v.sizeCache
  264. case 2:
  265. return &v.unknownFields
  266. default:
  267. return nil
  268. }
  269. }
  270. file_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  271. switch v := v.(*DataReply); i {
  272. case 0:
  273. return &v.state
  274. case 1:
  275. return &v.sizeCache
  276. case 2:
  277. return &v.unknownFields
  278. default:
  279. return nil
  280. }
  281. }
  282. }
  283. type x struct{}
  284. out := protoimpl.TypeBuilder{
  285. File: protoimpl.DescBuilder{
  286. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  287. RawDescriptor: file_data_proto_rawDesc,
  288. NumEnums: 1,
  289. NumMessages: 2,
  290. NumExtensions: 0,
  291. NumServices: 1,
  292. },
  293. GoTypes: file_data_proto_goTypes,
  294. DependencyIndexes: file_data_proto_depIdxs,
  295. EnumInfos: file_data_proto_enumTypes,
  296. MessageInfos: file_data_proto_msgTypes,
  297. }.Build()
  298. File_data_proto = out.File
  299. file_data_proto_rawDesc = nil
  300. file_data_proto_goTypes = nil
  301. file_data_proto_depIdxs = nil
  302. }