transfer.pb.go 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.0
  4. // protoc v3.19.4
  5. // source: pb/transfer.proto
  6. package pb
  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 TransferReq struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Action int32 `protobuf:"varint,1,opt,name=action,proto3" json:"action,omitempty"`
  24. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  25. }
  26. func (x *TransferReq) Reset() {
  27. *x = TransferReq{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_pb_transfer_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *TransferReq) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*TransferReq) ProtoMessage() {}
  38. func (x *TransferReq) ProtoReflect() protoreflect.Message {
  39. mi := &file_pb_transfer_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use TransferReq.ProtoReflect.Descriptor instead.
  50. func (*TransferReq) Descriptor() ([]byte, []int) {
  51. return file_pb_transfer_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *TransferReq) GetAction() int32 {
  54. if x != nil {
  55. return x.Action
  56. }
  57. return 0
  58. }
  59. func (x *TransferReq) GetData() []byte {
  60. if x != nil {
  61. return x.Data
  62. }
  63. return nil
  64. }
  65. type TransferResp struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. }
  70. func (x *TransferResp) Reset() {
  71. *x = TransferResp{}
  72. if protoimpl.UnsafeEnabled {
  73. mi := &file_pb_transfer_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. }
  78. func (x *TransferResp) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*TransferResp) ProtoMessage() {}
  82. func (x *TransferResp) ProtoReflect() protoreflect.Message {
  83. mi := &file_pb_transfer_proto_msgTypes[1]
  84. if protoimpl.UnsafeEnabled && x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use TransferResp.ProtoReflect.Descriptor instead.
  94. func (*TransferResp) Descriptor() ([]byte, []int) {
  95. return file_pb_transfer_proto_rawDescGZIP(), []int{1}
  96. }
  97. var File_pb_transfer_proto protoreflect.FileDescriptor
  98. var file_pb_transfer_proto_rawDesc = []byte{
  99. 0x0a, 0x11, 0x70, 0x62, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x2e, 0x70, 0x72,
  100. 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x39, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73,
  101. 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
  102. 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12,
  103. 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61,
  104. 0x74, 0x61, 0x22, 0x0e, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65,
  105. 0x73, 0x70, 0x32, 0x37, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x2b,
  106. 0x0a, 0x06, 0x69, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x72,
  107. 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x54,
  108. 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e,
  109. 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  110. }
  111. var (
  112. file_pb_transfer_proto_rawDescOnce sync.Once
  113. file_pb_transfer_proto_rawDescData = file_pb_transfer_proto_rawDesc
  114. )
  115. func file_pb_transfer_proto_rawDescGZIP() []byte {
  116. file_pb_transfer_proto_rawDescOnce.Do(func() {
  117. file_pb_transfer_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_transfer_proto_rawDescData)
  118. })
  119. return file_pb_transfer_proto_rawDescData
  120. }
  121. var file_pb_transfer_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  122. var file_pb_transfer_proto_goTypes = []interface{}{
  123. (*TransferReq)(nil), // 0: pb.TransferReq
  124. (*TransferResp)(nil), // 1: pb.TransferResp
  125. }
  126. var file_pb_transfer_proto_depIdxs = []int32{
  127. 0, // 0: pb.Transfer.invoke:input_type -> pb.TransferReq
  128. 1, // 1: pb.Transfer.invoke:output_type -> pb.TransferResp
  129. 1, // [1:2] is the sub-list for method output_type
  130. 0, // [0:1] is the sub-list for method input_type
  131. 0, // [0:0] is the sub-list for extension type_name
  132. 0, // [0:0] is the sub-list for extension extendee
  133. 0, // [0:0] is the sub-list for field type_name
  134. }
  135. func init() { file_pb_transfer_proto_init() }
  136. func file_pb_transfer_proto_init() {
  137. if File_pb_transfer_proto != nil {
  138. return
  139. }
  140. if !protoimpl.UnsafeEnabled {
  141. file_pb_transfer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  142. switch v := v.(*TransferReq); i {
  143. case 0:
  144. return &v.state
  145. case 1:
  146. return &v.sizeCache
  147. case 2:
  148. return &v.unknownFields
  149. default:
  150. return nil
  151. }
  152. }
  153. file_pb_transfer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  154. switch v := v.(*TransferResp); i {
  155. case 0:
  156. return &v.state
  157. case 1:
  158. return &v.sizeCache
  159. case 2:
  160. return &v.unknownFields
  161. default:
  162. return nil
  163. }
  164. }
  165. }
  166. type x struct{}
  167. out := protoimpl.TypeBuilder{
  168. File: protoimpl.DescBuilder{
  169. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  170. RawDescriptor: file_pb_transfer_proto_rawDesc,
  171. NumEnums: 0,
  172. NumMessages: 2,
  173. NumExtensions: 0,
  174. NumServices: 1,
  175. },
  176. GoTypes: file_pb_transfer_proto_goTypes,
  177. DependencyIndexes: file_pb_transfer_proto_depIdxs,
  178. MessageInfos: file_pb_transfer_proto_msgTypes,
  179. }.Build()
  180. File_pb_transfer_proto = out.File
  181. file_pb_transfer_proto_rawDesc = nil
  182. file_pb_transfer_proto_goTypes = nil
  183. file_pb_transfer_proto_depIdxs = nil
  184. }