data.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. }
  67. func (x *DataRequest) Reset() {
  68. *x = DataRequest{}
  69. if protoimpl.UnsafeEnabled {
  70. mi := &file_data_proto_msgTypes[0]
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. ms.StoreMessageInfo(mi)
  73. }
  74. }
  75. func (x *DataRequest) String() string {
  76. return protoimpl.X.MessageStringOf(x)
  77. }
  78. func (*DataRequest) ProtoMessage() {}
  79. func (x *DataRequest) ProtoReflect() protoreflect.Message {
  80. mi := &file_data_proto_msgTypes[0]
  81. if protoimpl.UnsafeEnabled && x != nil {
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. if ms.LoadMessageInfo() == nil {
  84. ms.StoreMessageInfo(mi)
  85. }
  86. return ms
  87. }
  88. return mi.MessageOf(x)
  89. }
  90. // Deprecated: Use DataRequest.ProtoReflect.Descriptor instead.
  91. func (*DataRequest) Descriptor() ([]byte, []int) {
  92. return file_data_proto_rawDescGZIP(), []int{0}
  93. }
  94. func (x *DataRequest) GetObject() string {
  95. if x != nil {
  96. return x.Object
  97. }
  98. return ""
  99. }
  100. func (x *DataRequest) GetUpdatedAfter() *timestamppb.Timestamp {
  101. if x != nil {
  102. return x.UpdatedAfter
  103. }
  104. return nil
  105. }
  106. type DataReply struct {
  107. state protoimpl.MessageState
  108. sizeCache protoimpl.SizeCache
  109. unknownFields protoimpl.UnknownFields
  110. Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  111. ReplyStatus DataReply_ReplyStatus `protobuf:"varint,2,opt,name=reply_status,json=replyStatus,proto3,enum=fho.DataReply_ReplyStatus" json:"reply_status,omitempty"`
  112. ErrorMsg string `protobuf:"bytes,3,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
  113. LatestUpdatedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=latest_updated_time,json=latestUpdatedTime,proto3" json:"latest_updated_time,omitempty"`
  114. }
  115. func (x *DataReply) Reset() {
  116. *x = DataReply{}
  117. if protoimpl.UnsafeEnabled {
  118. mi := &file_data_proto_msgTypes[1]
  119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  120. ms.StoreMessageInfo(mi)
  121. }
  122. }
  123. func (x *DataReply) String() string {
  124. return protoimpl.X.MessageStringOf(x)
  125. }
  126. func (*DataReply) ProtoMessage() {}
  127. func (x *DataReply) ProtoReflect() protoreflect.Message {
  128. mi := &file_data_proto_msgTypes[1]
  129. if protoimpl.UnsafeEnabled && x != nil {
  130. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  131. if ms.LoadMessageInfo() == nil {
  132. ms.StoreMessageInfo(mi)
  133. }
  134. return ms
  135. }
  136. return mi.MessageOf(x)
  137. }
  138. // Deprecated: Use DataReply.ProtoReflect.Descriptor instead.
  139. func (*DataReply) Descriptor() ([]byte, []int) {
  140. return file_data_proto_rawDescGZIP(), []int{1}
  141. }
  142. func (x *DataReply) GetData() string {
  143. if x != nil {
  144. return x.Data
  145. }
  146. return ""
  147. }
  148. func (x *DataReply) GetReplyStatus() DataReply_ReplyStatus {
  149. if x != nil {
  150. return x.ReplyStatus
  151. }
  152. return DataReply_SCHEDULE_TYPE_UNSPECIFIED
  153. }
  154. func (x *DataReply) GetErrorMsg() string {
  155. if x != nil {
  156. return x.ErrorMsg
  157. }
  158. return ""
  159. }
  160. func (x *DataReply) GetLatestUpdatedTime() *timestamppb.Timestamp {
  161. if x != nil {
  162. return x.LatestUpdatedTime
  163. }
  164. return nil
  165. }
  166. var File_data_proto protoreflect.FileDescriptor
  167. var file_data_proto_rawDesc = []byte{
  168. 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x66, 0x68,
  169. 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  170. 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
  171. 0x74, 0x6f, 0x22, 0x66, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  172. 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  173. 0x09, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x75, 0x70, 0x64,
  174. 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  175. 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  176. 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x75, 0x70,
  177. 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x66, 0x74, 0x65, 0x72, 0x22, 0x88, 0x02, 0x0a, 0x09, 0x44,
  178. 0x61, 0x74, 0x61, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
  179. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x0c,
  180. 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01,
  181. 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x70,
  182. 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0b,
  183. 0x72, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x65,
  184. 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  185. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x4a, 0x0a, 0x13, 0x6c, 0x61, 0x74, 0x65,
  186. 0x73, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
  187. 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  188. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
  189. 0x70, 0x52, 0x11, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
  190. 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61,
  191. 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x5f,
  192. 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
  193. 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52,
  194. 0x52, 0x4f, 0x52, 0x10, 0x02, 0x32, 0x70, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72,
  195. 0x76, 0x69, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12,
  196. 0x10, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  197. 0x74, 0x1a, 0x0e, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x70, 0x6c,
  198. 0x79, 0x22, 0x00, 0x12, 0x32, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44, 0x61, 0x74,
  199. 0x61, 0x12, 0x10, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75,
  200. 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x66, 0x68, 0x6f, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65,
  201. 0x70, 0x6c, 0x79, 0x22, 0x00, 0x30, 0x01, 0x42, 0x2a, 0x50, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74,
  202. 0x2e, 0x6d, 0x6f, 0x6b, 0x6b, 0x6f, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x61, 0x69, 0x6e,
  203. 0x77, 0x2f, 0x66, 0x68, 0x6f, 0x5f, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x70, 0x72,
  204. 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  205. }
  206. var (
  207. file_data_proto_rawDescOnce sync.Once
  208. file_data_proto_rawDescData = file_data_proto_rawDesc
  209. )
  210. func file_data_proto_rawDescGZIP() []byte {
  211. file_data_proto_rawDescOnce.Do(func() {
  212. file_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_data_proto_rawDescData)
  213. })
  214. return file_data_proto_rawDescData
  215. }
  216. var file_data_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  217. var file_data_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  218. var file_data_proto_goTypes = []interface{}{
  219. (DataReply_ReplyStatus)(0), // 0: fho.DataReply.ReplyStatus
  220. (*DataRequest)(nil), // 1: fho.DataRequest
  221. (*DataReply)(nil), // 2: fho.DataReply
  222. (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
  223. }
  224. var file_data_proto_depIdxs = []int32{
  225. 3, // 0: fho.DataRequest.updated_after:type_name -> google.protobuf.Timestamp
  226. 0, // 1: fho.DataReply.reply_status:type_name -> fho.DataReply.ReplyStatus
  227. 3, // 2: fho.DataReply.latest_updated_time:type_name -> google.protobuf.Timestamp
  228. 1, // 3: fho.DataService.GetData:input_type -> fho.DataRequest
  229. 1, // 4: fho.DataService.StreamData:input_type -> fho.DataRequest
  230. 2, // 5: fho.DataService.GetData:output_type -> fho.DataReply
  231. 2, // 6: fho.DataService.StreamData:output_type -> fho.DataReply
  232. 5, // [5:7] is the sub-list for method output_type
  233. 3, // [3:5] is the sub-list for method input_type
  234. 3, // [3:3] is the sub-list for extension type_name
  235. 3, // [3:3] is the sub-list for extension extendee
  236. 0, // [0:3] is the sub-list for field type_name
  237. }
  238. func init() { file_data_proto_init() }
  239. func file_data_proto_init() {
  240. if File_data_proto != nil {
  241. return
  242. }
  243. if !protoimpl.UnsafeEnabled {
  244. file_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  245. switch v := v.(*DataRequest); i {
  246. case 0:
  247. return &v.state
  248. case 1:
  249. return &v.sizeCache
  250. case 2:
  251. return &v.unknownFields
  252. default:
  253. return nil
  254. }
  255. }
  256. file_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  257. switch v := v.(*DataReply); i {
  258. case 0:
  259. return &v.state
  260. case 1:
  261. return &v.sizeCache
  262. case 2:
  263. return &v.unknownFields
  264. default:
  265. return nil
  266. }
  267. }
  268. }
  269. type x struct{}
  270. out := protoimpl.TypeBuilder{
  271. File: protoimpl.DescBuilder{
  272. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  273. RawDescriptor: file_data_proto_rawDesc,
  274. NumEnums: 1,
  275. NumMessages: 2,
  276. NumExtensions: 0,
  277. NumServices: 1,
  278. },
  279. GoTypes: file_data_proto_goTypes,
  280. DependencyIndexes: file_data_proto_depIdxs,
  281. EnumInfos: file_data_proto_enumTypes,
  282. MessageInfos: file_data_proto_msgTypes,
  283. }.Build()
  284. File_data_proto = out.File
  285. file_data_proto_rawDesc = nil
  286. file_data_proto_goTypes = nil
  287. file_data_proto_depIdxs = nil
  288. }