You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

rpc.pb.go 12 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v4.22.3
  5. // source: pkgs/rpc/rpc.proto
  6. package rpc
  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 ChunkedDataType int32
  20. const (
  21. ChunkedDataType_Error ChunkedDataType = 0
  22. ChunkedDataType_EOF ChunkedDataType = 1
  23. ChunkedDataType_NewPart ChunkedDataType = 2
  24. ChunkedDataType_Data ChunkedDataType = 3
  25. )
  26. // Enum value maps for ChunkedDataType.
  27. var (
  28. ChunkedDataType_name = map[int32]string{
  29. 0: "Error",
  30. 1: "EOF",
  31. 2: "NewPart",
  32. 3: "Data",
  33. }
  34. ChunkedDataType_value = map[string]int32{
  35. "Error": 0,
  36. "EOF": 1,
  37. "NewPart": 2,
  38. "Data": 3,
  39. }
  40. )
  41. func (x ChunkedDataType) Enum() *ChunkedDataType {
  42. p := new(ChunkedDataType)
  43. *p = x
  44. return p
  45. }
  46. func (x ChunkedDataType) String() string {
  47. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  48. }
  49. func (ChunkedDataType) Descriptor() protoreflect.EnumDescriptor {
  50. return file_pkgs_rpc_rpc_proto_enumTypes[0].Descriptor()
  51. }
  52. func (ChunkedDataType) Type() protoreflect.EnumType {
  53. return &file_pkgs_rpc_rpc_proto_enumTypes[0]
  54. }
  55. func (x ChunkedDataType) Number() protoreflect.EnumNumber {
  56. return protoreflect.EnumNumber(x)
  57. }
  58. // Deprecated: Use ChunkedDataType.Descriptor instead.
  59. func (ChunkedDataType) EnumDescriptor() ([]byte, []int) {
  60. return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{0}
  61. }
  62. type Request struct {
  63. state protoimpl.MessageState
  64. sizeCache protoimpl.SizeCache
  65. unknownFields protoimpl.UnknownFields
  66. Payload []byte `protobuf:"bytes,1,opt,name=Payload,proto3" json:"Payload,omitempty"`
  67. }
  68. func (x *Request) Reset() {
  69. *x = Request{}
  70. if protoimpl.UnsafeEnabled {
  71. mi := &file_pkgs_rpc_rpc_proto_msgTypes[0]
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. ms.StoreMessageInfo(mi)
  74. }
  75. }
  76. func (x *Request) String() string {
  77. return protoimpl.X.MessageStringOf(x)
  78. }
  79. func (*Request) ProtoMessage() {}
  80. func (x *Request) ProtoReflect() protoreflect.Message {
  81. mi := &file_pkgs_rpc_rpc_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 Request.ProtoReflect.Descriptor instead.
  92. func (*Request) Descriptor() ([]byte, []int) {
  93. return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{0}
  94. }
  95. func (x *Request) GetPayload() []byte {
  96. if x != nil {
  97. return x.Payload
  98. }
  99. return nil
  100. }
  101. type Response struct {
  102. state protoimpl.MessageState
  103. sizeCache protoimpl.SizeCache
  104. unknownFields protoimpl.UnknownFields
  105. Payload []byte `protobuf:"bytes,1,opt,name=Payload,proto3" json:"Payload,omitempty"`
  106. }
  107. func (x *Response) Reset() {
  108. *x = Response{}
  109. if protoimpl.UnsafeEnabled {
  110. mi := &file_pkgs_rpc_rpc_proto_msgTypes[1]
  111. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  112. ms.StoreMessageInfo(mi)
  113. }
  114. }
  115. func (x *Response) String() string {
  116. return protoimpl.X.MessageStringOf(x)
  117. }
  118. func (*Response) ProtoMessage() {}
  119. func (x *Response) ProtoReflect() protoreflect.Message {
  120. mi := &file_pkgs_rpc_rpc_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 Response.ProtoReflect.Descriptor instead.
  131. func (*Response) Descriptor() ([]byte, []int) {
  132. return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{1}
  133. }
  134. func (x *Response) GetPayload() []byte {
  135. if x != nil {
  136. return x.Payload
  137. }
  138. return nil
  139. }
  140. type ChunkedData struct {
  141. state protoimpl.MessageState
  142. sizeCache protoimpl.SizeCache
  143. unknownFields protoimpl.UnknownFields
  144. Type ChunkedDataType `protobuf:"varint,1,opt,name=Type,proto3,enum=rpc.ChunkedDataType" json:"Type,omitempty"`
  145. Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
  146. }
  147. func (x *ChunkedData) Reset() {
  148. *x = ChunkedData{}
  149. if protoimpl.UnsafeEnabled {
  150. mi := &file_pkgs_rpc_rpc_proto_msgTypes[2]
  151. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  152. ms.StoreMessageInfo(mi)
  153. }
  154. }
  155. func (x *ChunkedData) String() string {
  156. return protoimpl.X.MessageStringOf(x)
  157. }
  158. func (*ChunkedData) ProtoMessage() {}
  159. func (x *ChunkedData) ProtoReflect() protoreflect.Message {
  160. mi := &file_pkgs_rpc_rpc_proto_msgTypes[2]
  161. if protoimpl.UnsafeEnabled && x != nil {
  162. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  163. if ms.LoadMessageInfo() == nil {
  164. ms.StoreMessageInfo(mi)
  165. }
  166. return ms
  167. }
  168. return mi.MessageOf(x)
  169. }
  170. // Deprecated: Use ChunkedData.ProtoReflect.Descriptor instead.
  171. func (*ChunkedData) Descriptor() ([]byte, []int) {
  172. return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{2}
  173. }
  174. func (x *ChunkedData) GetType() ChunkedDataType {
  175. if x != nil {
  176. return x.Type
  177. }
  178. return ChunkedDataType_Error
  179. }
  180. func (x *ChunkedData) GetData() []byte {
  181. if x != nil {
  182. return x.Data
  183. }
  184. return nil
  185. }
  186. type CodeError struct {
  187. state protoimpl.MessageState
  188. sizeCache protoimpl.SizeCache
  189. unknownFields protoimpl.UnknownFields
  190. Code string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"`
  191. Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
  192. }
  193. func (x *CodeError) Reset() {
  194. *x = CodeError{}
  195. if protoimpl.UnsafeEnabled {
  196. mi := &file_pkgs_rpc_rpc_proto_msgTypes[3]
  197. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  198. ms.StoreMessageInfo(mi)
  199. }
  200. }
  201. func (x *CodeError) String() string {
  202. return protoimpl.X.MessageStringOf(x)
  203. }
  204. func (*CodeError) ProtoMessage() {}
  205. func (x *CodeError) ProtoReflect() protoreflect.Message {
  206. mi := &file_pkgs_rpc_rpc_proto_msgTypes[3]
  207. if protoimpl.UnsafeEnabled && x != nil {
  208. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  209. if ms.LoadMessageInfo() == nil {
  210. ms.StoreMessageInfo(mi)
  211. }
  212. return ms
  213. }
  214. return mi.MessageOf(x)
  215. }
  216. // Deprecated: Use CodeError.ProtoReflect.Descriptor instead.
  217. func (*CodeError) Descriptor() ([]byte, []int) {
  218. return file_pkgs_rpc_rpc_proto_rawDescGZIP(), []int{3}
  219. }
  220. func (x *CodeError) GetCode() string {
  221. if x != nil {
  222. return x.Code
  223. }
  224. return ""
  225. }
  226. func (x *CodeError) GetMessage() string {
  227. if x != nil {
  228. return x.Message
  229. }
  230. return ""
  231. }
  232. var File_pkgs_rpc_rpc_proto protoreflect.FileDescriptor
  233. var file_pkgs_rpc_rpc_proto_rawDesc = []byte{
  234. 0x0a, 0x12, 0x70, 0x6b, 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70,
  235. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x72, 0x70, 0x63, 0x22, 0x23, 0x0a, 0x07, 0x52, 0x65, 0x71,
  236. 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,
  237. 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x24,
  238. 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x50, 0x61,
  239. 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x50, 0x61, 0x79,
  240. 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x4b, 0x0a, 0x0b, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x44,
  241. 0x61, 0x74, 0x61, 0x12, 0x28, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  242. 0x0e, 0x32, 0x14, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x44,
  243. 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a,
  244. 0x04, 0x44, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x44, 0x61, 0x74,
  245. 0x61, 0x22, 0x39, 0x0a, 0x09, 0x43, 0x6f, 0x64, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12,
  246. 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x43, 0x6f,
  247. 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20,
  248. 0x01, 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x3c, 0x0a, 0x0f,
  249. 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12,
  250. 0x09, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x4f,
  251. 0x46, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x65, 0x77, 0x50, 0x61, 0x72, 0x74, 0x10, 0x02,
  252. 0x12, 0x08, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x10, 0x03, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69,
  253. 0x74, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x63, 0x6e, 0x2f, 0x63, 0x6c, 0x6f,
  254. 0x75, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x2f, 0x6a, 0x63, 0x73, 0x2d, 0x70, 0x75, 0x62, 0x2f, 0x63,
  255. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x3b, 0x72,
  256. 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  257. }
  258. var (
  259. file_pkgs_rpc_rpc_proto_rawDescOnce sync.Once
  260. file_pkgs_rpc_rpc_proto_rawDescData = file_pkgs_rpc_rpc_proto_rawDesc
  261. )
  262. func file_pkgs_rpc_rpc_proto_rawDescGZIP() []byte {
  263. file_pkgs_rpc_rpc_proto_rawDescOnce.Do(func() {
  264. file_pkgs_rpc_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkgs_rpc_rpc_proto_rawDescData)
  265. })
  266. return file_pkgs_rpc_rpc_proto_rawDescData
  267. }
  268. var file_pkgs_rpc_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  269. var file_pkgs_rpc_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  270. var file_pkgs_rpc_rpc_proto_goTypes = []any{
  271. (ChunkedDataType)(0), // 0: rpc.ChunkedDataType
  272. (*Request)(nil), // 1: rpc.Request
  273. (*Response)(nil), // 2: rpc.Response
  274. (*ChunkedData)(nil), // 3: rpc.ChunkedData
  275. (*CodeError)(nil), // 4: rpc.CodeError
  276. }
  277. var file_pkgs_rpc_rpc_proto_depIdxs = []int32{
  278. 0, // 0: rpc.ChunkedData.Type:type_name -> rpc.ChunkedDataType
  279. 1, // [1:1] is the sub-list for method output_type
  280. 1, // [1:1] is the sub-list for method input_type
  281. 1, // [1:1] is the sub-list for extension type_name
  282. 1, // [1:1] is the sub-list for extension extendee
  283. 0, // [0:1] is the sub-list for field type_name
  284. }
  285. func init() { file_pkgs_rpc_rpc_proto_init() }
  286. func file_pkgs_rpc_rpc_proto_init() {
  287. if File_pkgs_rpc_rpc_proto != nil {
  288. return
  289. }
  290. if !protoimpl.UnsafeEnabled {
  291. file_pkgs_rpc_rpc_proto_msgTypes[0].Exporter = func(v any, i int) any {
  292. switch v := v.(*Request); i {
  293. case 0:
  294. return &v.state
  295. case 1:
  296. return &v.sizeCache
  297. case 2:
  298. return &v.unknownFields
  299. default:
  300. return nil
  301. }
  302. }
  303. file_pkgs_rpc_rpc_proto_msgTypes[1].Exporter = func(v any, i int) any {
  304. switch v := v.(*Response); i {
  305. case 0:
  306. return &v.state
  307. case 1:
  308. return &v.sizeCache
  309. case 2:
  310. return &v.unknownFields
  311. default:
  312. return nil
  313. }
  314. }
  315. file_pkgs_rpc_rpc_proto_msgTypes[2].Exporter = func(v any, i int) any {
  316. switch v := v.(*ChunkedData); i {
  317. case 0:
  318. return &v.state
  319. case 1:
  320. return &v.sizeCache
  321. case 2:
  322. return &v.unknownFields
  323. default:
  324. return nil
  325. }
  326. }
  327. file_pkgs_rpc_rpc_proto_msgTypes[3].Exporter = func(v any, i int) any {
  328. switch v := v.(*CodeError); i {
  329. case 0:
  330. return &v.state
  331. case 1:
  332. return &v.sizeCache
  333. case 2:
  334. return &v.unknownFields
  335. default:
  336. return nil
  337. }
  338. }
  339. }
  340. type x struct{}
  341. out := protoimpl.TypeBuilder{
  342. File: protoimpl.DescBuilder{
  343. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  344. RawDescriptor: file_pkgs_rpc_rpc_proto_rawDesc,
  345. NumEnums: 1,
  346. NumMessages: 4,
  347. NumExtensions: 0,
  348. NumServices: 0,
  349. },
  350. GoTypes: file_pkgs_rpc_rpc_proto_goTypes,
  351. DependencyIndexes: file_pkgs_rpc_rpc_proto_depIdxs,
  352. EnumInfos: file_pkgs_rpc_rpc_proto_enumTypes,
  353. MessageInfos: file_pkgs_rpc_rpc_proto_msgTypes,
  354. }.Build()
  355. File_pkgs_rpc_rpc_proto = out.File
  356. file_pkgs_rpc_rpc_proto_rawDesc = nil
  357. file_pkgs_rpc_rpc_proto_goTypes = nil
  358. file_pkgs_rpc_rpc_proto_depIdxs = nil
  359. }

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。