rpcbff.pb.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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/rpcbff.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. structpb "google.golang.org/protobuf/types/known/structpb"
  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 CommandResp struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. CommandCode int64 `protobuf:"varint,1,opt,name=command_code,json=commandCode,proto3" json:"command_code,omitempty"`
  25. CommandMsg string `protobuf:"bytes,2,opt,name=command_msg,json=commandMsg,proto3" json:"command_msg,omitempty"`
  26. CommandData *structpb.Struct `protobuf:"bytes,3,opt,name=command_data,json=commandData,proto3" json:"command_data,omitempty"`
  27. }
  28. func (x *CommandResp) Reset() {
  29. *x = CommandResp{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_pb_rpcbff_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *CommandResp) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*CommandResp) ProtoMessage() {}
  40. func (x *CommandResp) ProtoReflect() protoreflect.Message {
  41. mi := &file_pb_rpcbff_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use CommandResp.ProtoReflect.Descriptor instead.
  52. func (*CommandResp) Descriptor() ([]byte, []int) {
  53. return file_pb_rpcbff_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *CommandResp) GetCommandCode() int64 {
  56. if x != nil {
  57. return x.CommandCode
  58. }
  59. return 0
  60. }
  61. func (x *CommandResp) GetCommandMsg() string {
  62. if x != nil {
  63. return x.CommandMsg
  64. }
  65. return ""
  66. }
  67. func (x *CommandResp) GetCommandData() *structpb.Struct {
  68. if x != nil {
  69. return x.CommandData
  70. }
  71. return nil
  72. }
  73. type CommandReq struct {
  74. state protoimpl.MessageState
  75. sizeCache protoimpl.SizeCache
  76. unknownFields protoimpl.UnknownFields
  77. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  78. }
  79. func (x *CommandReq) Reset() {
  80. *x = CommandReq{}
  81. if protoimpl.UnsafeEnabled {
  82. mi := &file_pb_rpcbff_proto_msgTypes[1]
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. ms.StoreMessageInfo(mi)
  85. }
  86. }
  87. func (x *CommandReq) String() string {
  88. return protoimpl.X.MessageStringOf(x)
  89. }
  90. func (*CommandReq) ProtoMessage() {}
  91. func (x *CommandReq) ProtoReflect() protoreflect.Message {
  92. mi := &file_pb_rpcbff_proto_msgTypes[1]
  93. if protoimpl.UnsafeEnabled && x != nil {
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. if ms.LoadMessageInfo() == nil {
  96. ms.StoreMessageInfo(mi)
  97. }
  98. return ms
  99. }
  100. return mi.MessageOf(x)
  101. }
  102. // Deprecated: Use CommandReq.ProtoReflect.Descriptor instead.
  103. func (*CommandReq) Descriptor() ([]byte, []int) {
  104. return file_pb_rpcbff_proto_rawDescGZIP(), []int{1}
  105. }
  106. func (x *CommandReq) GetToken() string {
  107. if x != nil {
  108. return x.Token
  109. }
  110. return ""
  111. }
  112. var File_pb_rpcbff_proto protoreflect.FileDescriptor
  113. var file_pb_rpcbff_proto_rawDesc = []byte{
  114. 0x0a, 0x0f, 0x70, 0x62, 0x2f, 0x72, 0x70, 0x63, 0x62, 0x66, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  115. 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
  116. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72,
  117. 0x6f, 0x74, 0x6f, 0x22, 0x8d, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
  118. 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x63,
  119. 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x61,
  120. 0x6e, 0x64, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  121. 0x64, 0x5f, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d,
  122. 0x6d, 0x61, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x3a, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x61,
  123. 0x6e, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
  124. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  125. 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x44,
  126. 0x61, 0x74, 0x61, 0x22, 0x22, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,
  127. 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  128. 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0x65, 0x0a, 0x06, 0x52, 0x70, 0x63, 0x62, 0x66,
  129. 0x66, 0x12, 0x2c, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70,
  130. 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70,
  131. 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12,
  132. 0x2d, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e,
  133. 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e,
  134. 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06,
  135. 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  136. }
  137. var (
  138. file_pb_rpcbff_proto_rawDescOnce sync.Once
  139. file_pb_rpcbff_proto_rawDescData = file_pb_rpcbff_proto_rawDesc
  140. )
  141. func file_pb_rpcbff_proto_rawDescGZIP() []byte {
  142. file_pb_rpcbff_proto_rawDescOnce.Do(func() {
  143. file_pb_rpcbff_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_rpcbff_proto_rawDescData)
  144. })
  145. return file_pb_rpcbff_proto_rawDescData
  146. }
  147. var file_pb_rpcbff_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  148. var file_pb_rpcbff_proto_goTypes = []interface{}{
  149. (*CommandResp)(nil), // 0: pb.CommandResp
  150. (*CommandReq)(nil), // 1: pb.CommandReq
  151. (*structpb.Struct)(nil), // 2: google.protobuf.Struct
  152. }
  153. var file_pb_rpcbff_proto_depIdxs = []int32{
  154. 2, // 0: pb.CommandResp.command_data:type_name -> google.protobuf.Struct
  155. 1, // 1: pb.Rpcbff.connect:input_type -> pb.CommandReq
  156. 1, // 2: pb.Rpcbff.disconnect:input_type -> pb.CommandReq
  157. 0, // 3: pb.Rpcbff.connect:output_type -> pb.CommandResp
  158. 0, // 4: pb.Rpcbff.disconnect:output_type -> pb.CommandResp
  159. 3, // [3:5] is the sub-list for method output_type
  160. 1, // [1:3] is the sub-list for method input_type
  161. 1, // [1:1] is the sub-list for extension type_name
  162. 1, // [1:1] is the sub-list for extension extendee
  163. 0, // [0:1] is the sub-list for field type_name
  164. }
  165. func init() { file_pb_rpcbff_proto_init() }
  166. func file_pb_rpcbff_proto_init() {
  167. if File_pb_rpcbff_proto != nil {
  168. return
  169. }
  170. if !protoimpl.UnsafeEnabled {
  171. file_pb_rpcbff_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  172. switch v := v.(*CommandResp); i {
  173. case 0:
  174. return &v.state
  175. case 1:
  176. return &v.sizeCache
  177. case 2:
  178. return &v.unknownFields
  179. default:
  180. return nil
  181. }
  182. }
  183. file_pb_rpcbff_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  184. switch v := v.(*CommandReq); i {
  185. case 0:
  186. return &v.state
  187. case 1:
  188. return &v.sizeCache
  189. case 2:
  190. return &v.unknownFields
  191. default:
  192. return nil
  193. }
  194. }
  195. }
  196. type x struct{}
  197. out := protoimpl.TypeBuilder{
  198. File: protoimpl.DescBuilder{
  199. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  200. RawDescriptor: file_pb_rpcbff_proto_rawDesc,
  201. NumEnums: 0,
  202. NumMessages: 2,
  203. NumExtensions: 0,
  204. NumServices: 1,
  205. },
  206. GoTypes: file_pb_rpcbff_proto_goTypes,
  207. DependencyIndexes: file_pb_rpcbff_proto_depIdxs,
  208. MessageInfos: file_pb_rpcbff_proto_msgTypes,
  209. }.Build()
  210. File_pb_rpcbff_proto = out.File
  211. file_pb_rpcbff_proto_rawDesc = nil
  212. file_pb_rpcbff_proto_goTypes = nil
  213. file_pb_rpcbff_proto_depIdxs = nil
  214. }