device.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v4.25.3
  5. // source: user/v2/device.proto
  6. package v2
  7. import (
  8. _ "github.com/envoyproxy/protoc-gen-validate/validate"
  9. _ "google.golang.org/genproto/googleapis/api/annotations"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // 获取设备绑定状态 Request
  22. type DeviceBindingRequest struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
  27. }
  28. func (x *DeviceBindingRequest) Reset() {
  29. *x = DeviceBindingRequest{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_user_v2_device_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *DeviceBindingRequest) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*DeviceBindingRequest) ProtoMessage() {}
  40. func (x *DeviceBindingRequest) ProtoReflect() protoreflect.Message {
  41. mi := &file_user_v2_device_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 DeviceBindingRequest.ProtoReflect.Descriptor instead.
  52. func (*DeviceBindingRequest) Descriptor() ([]byte, []int) {
  53. return file_user_v2_device_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *DeviceBindingRequest) GetTicket() string {
  56. if x != nil {
  57. return x.Ticket
  58. }
  59. return ""
  60. }
  61. // 获取设备绑定状态 Response
  62. type DeviceBindingResponse struct {
  63. state protoimpl.MessageState
  64. sizeCache protoimpl.SizeCache
  65. unknownFields protoimpl.UnknownFields
  66. // 是否被绑定
  67. IsBind bool `protobuf:"varint,3,opt,name=isBind,proto3" json:"isBind,omitempty"`
  68. // 被绑定的小孩ID
  69. Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
  70. // 设备的 accessToken
  71. // 后续接口需要通过这个来进行交互
  72. Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
  73. // 体重
  74. Weight int32 `protobuf:"varint,4,opt,name=weight,proto3" json:"weight,omitempty"`
  75. // 身高
  76. Height int32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
  77. }
  78. func (x *DeviceBindingResponse) Reset() {
  79. *x = DeviceBindingResponse{}
  80. if protoimpl.UnsafeEnabled {
  81. mi := &file_user_v2_device_proto_msgTypes[1]
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. ms.StoreMessageInfo(mi)
  84. }
  85. }
  86. func (x *DeviceBindingResponse) String() string {
  87. return protoimpl.X.MessageStringOf(x)
  88. }
  89. func (*DeviceBindingResponse) ProtoMessage() {}
  90. func (x *DeviceBindingResponse) ProtoReflect() protoreflect.Message {
  91. mi := &file_user_v2_device_proto_msgTypes[1]
  92. if protoimpl.UnsafeEnabled && x != nil {
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. if ms.LoadMessageInfo() == nil {
  95. ms.StoreMessageInfo(mi)
  96. }
  97. return ms
  98. }
  99. return mi.MessageOf(x)
  100. }
  101. // Deprecated: Use DeviceBindingResponse.ProtoReflect.Descriptor instead.
  102. func (*DeviceBindingResponse) Descriptor() ([]byte, []int) {
  103. return file_user_v2_device_proto_rawDescGZIP(), []int{1}
  104. }
  105. func (x *DeviceBindingResponse) GetIsBind() bool {
  106. if x != nil {
  107. return x.IsBind
  108. }
  109. return false
  110. }
  111. func (x *DeviceBindingResponse) GetCid() string {
  112. if x != nil {
  113. return x.Cid
  114. }
  115. return ""
  116. }
  117. func (x *DeviceBindingResponse) GetToken() string {
  118. if x != nil {
  119. return x.Token
  120. }
  121. return ""
  122. }
  123. func (x *DeviceBindingResponse) GetWeight() int32 {
  124. if x != nil {
  125. return x.Weight
  126. }
  127. return 0
  128. }
  129. func (x *DeviceBindingResponse) GetHeight() int32 {
  130. if x != nil {
  131. return x.Height
  132. }
  133. return 0
  134. }
  135. // 绑定设备 Request
  136. type DeviceBindRequest struct {
  137. state protoimpl.MessageState
  138. sizeCache protoimpl.SizeCache
  139. unknownFields protoimpl.UnknownFields
  140. Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
  141. Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"`
  142. }
  143. func (x *DeviceBindRequest) Reset() {
  144. *x = DeviceBindRequest{}
  145. if protoimpl.UnsafeEnabled {
  146. mi := &file_user_v2_device_proto_msgTypes[2]
  147. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  148. ms.StoreMessageInfo(mi)
  149. }
  150. }
  151. func (x *DeviceBindRequest) String() string {
  152. return protoimpl.X.MessageStringOf(x)
  153. }
  154. func (*DeviceBindRequest) ProtoMessage() {}
  155. func (x *DeviceBindRequest) ProtoReflect() protoreflect.Message {
  156. mi := &file_user_v2_device_proto_msgTypes[2]
  157. if protoimpl.UnsafeEnabled && x != nil {
  158. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  159. if ms.LoadMessageInfo() == nil {
  160. ms.StoreMessageInfo(mi)
  161. }
  162. return ms
  163. }
  164. return mi.MessageOf(x)
  165. }
  166. // Deprecated: Use DeviceBindRequest.ProtoReflect.Descriptor instead.
  167. func (*DeviceBindRequest) Descriptor() ([]byte, []int) {
  168. return file_user_v2_device_proto_rawDescGZIP(), []int{2}
  169. }
  170. func (x *DeviceBindRequest) GetCid() string {
  171. if x != nil {
  172. return x.Cid
  173. }
  174. return ""
  175. }
  176. func (x *DeviceBindRequest) GetTicket() string {
  177. if x != nil {
  178. return x.Ticket
  179. }
  180. return ""
  181. }
  182. // 绑定设备 Response
  183. type DeviceBindResponse struct {
  184. state protoimpl.MessageState
  185. sizeCache protoimpl.SizeCache
  186. unknownFields protoimpl.UnknownFields
  187. }
  188. func (x *DeviceBindResponse) Reset() {
  189. *x = DeviceBindResponse{}
  190. if protoimpl.UnsafeEnabled {
  191. mi := &file_user_v2_device_proto_msgTypes[3]
  192. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  193. ms.StoreMessageInfo(mi)
  194. }
  195. }
  196. func (x *DeviceBindResponse) String() string {
  197. return protoimpl.X.MessageStringOf(x)
  198. }
  199. func (*DeviceBindResponse) ProtoMessage() {}
  200. func (x *DeviceBindResponse) ProtoReflect() protoreflect.Message {
  201. mi := &file_user_v2_device_proto_msgTypes[3]
  202. if protoimpl.UnsafeEnabled && x != nil {
  203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  204. if ms.LoadMessageInfo() == nil {
  205. ms.StoreMessageInfo(mi)
  206. }
  207. return ms
  208. }
  209. return mi.MessageOf(x)
  210. }
  211. // Deprecated: Use DeviceBindResponse.ProtoReflect.Descriptor instead.
  212. func (*DeviceBindResponse) Descriptor() ([]byte, []int) {
  213. return file_user_v2_device_proto_rawDescGZIP(), []int{3}
  214. }
  215. // 解绑设备
  216. type DeviceUnbindRequest struct {
  217. state protoimpl.MessageState
  218. sizeCache protoimpl.SizeCache
  219. unknownFields protoimpl.UnknownFields
  220. Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
  221. Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"`
  222. }
  223. func (x *DeviceUnbindRequest) Reset() {
  224. *x = DeviceUnbindRequest{}
  225. if protoimpl.UnsafeEnabled {
  226. mi := &file_user_v2_device_proto_msgTypes[4]
  227. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  228. ms.StoreMessageInfo(mi)
  229. }
  230. }
  231. func (x *DeviceUnbindRequest) String() string {
  232. return protoimpl.X.MessageStringOf(x)
  233. }
  234. func (*DeviceUnbindRequest) ProtoMessage() {}
  235. func (x *DeviceUnbindRequest) ProtoReflect() protoreflect.Message {
  236. mi := &file_user_v2_device_proto_msgTypes[4]
  237. if protoimpl.UnsafeEnabled && x != nil {
  238. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  239. if ms.LoadMessageInfo() == nil {
  240. ms.StoreMessageInfo(mi)
  241. }
  242. return ms
  243. }
  244. return mi.MessageOf(x)
  245. }
  246. // Deprecated: Use DeviceUnbindRequest.ProtoReflect.Descriptor instead.
  247. func (*DeviceUnbindRequest) Descriptor() ([]byte, []int) {
  248. return file_user_v2_device_proto_rawDescGZIP(), []int{4}
  249. }
  250. func (x *DeviceUnbindRequest) GetCid() string {
  251. if x != nil {
  252. return x.Cid
  253. }
  254. return ""
  255. }
  256. func (x *DeviceUnbindRequest) GetTicket() string {
  257. if x != nil {
  258. return x.Ticket
  259. }
  260. return ""
  261. }
  262. // 解绑设备
  263. type DeviceUnbindResponse struct {
  264. state protoimpl.MessageState
  265. sizeCache protoimpl.SizeCache
  266. unknownFields protoimpl.UnknownFields
  267. }
  268. func (x *DeviceUnbindResponse) Reset() {
  269. *x = DeviceUnbindResponse{}
  270. if protoimpl.UnsafeEnabled {
  271. mi := &file_user_v2_device_proto_msgTypes[5]
  272. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  273. ms.StoreMessageInfo(mi)
  274. }
  275. }
  276. func (x *DeviceUnbindResponse) String() string {
  277. return protoimpl.X.MessageStringOf(x)
  278. }
  279. func (*DeviceUnbindResponse) ProtoMessage() {}
  280. func (x *DeviceUnbindResponse) ProtoReflect() protoreflect.Message {
  281. mi := &file_user_v2_device_proto_msgTypes[5]
  282. if protoimpl.UnsafeEnabled && x != nil {
  283. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  284. if ms.LoadMessageInfo() == nil {
  285. ms.StoreMessageInfo(mi)
  286. }
  287. return ms
  288. }
  289. return mi.MessageOf(x)
  290. }
  291. // Deprecated: Use DeviceUnbindResponse.ProtoReflect.Descriptor instead.
  292. func (*DeviceUnbindResponse) Descriptor() ([]byte, []int) {
  293. return file_user_v2_device_proto_rawDescGZIP(), []int{5}
  294. }
  295. type DeviceExchangeRequest struct {
  296. state protoimpl.MessageState
  297. sizeCache protoimpl.SizeCache
  298. unknownFields protoimpl.UnknownFields
  299. Hc string `protobuf:"bytes,1,opt,name=hc,proto3" json:"hc,omitempty"`
  300. }
  301. func (x *DeviceExchangeRequest) Reset() {
  302. *x = DeviceExchangeRequest{}
  303. if protoimpl.UnsafeEnabled {
  304. mi := &file_user_v2_device_proto_msgTypes[6]
  305. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  306. ms.StoreMessageInfo(mi)
  307. }
  308. }
  309. func (x *DeviceExchangeRequest) String() string {
  310. return protoimpl.X.MessageStringOf(x)
  311. }
  312. func (*DeviceExchangeRequest) ProtoMessage() {}
  313. func (x *DeviceExchangeRequest) ProtoReflect() protoreflect.Message {
  314. mi := &file_user_v2_device_proto_msgTypes[6]
  315. if protoimpl.UnsafeEnabled && x != nil {
  316. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  317. if ms.LoadMessageInfo() == nil {
  318. ms.StoreMessageInfo(mi)
  319. }
  320. return ms
  321. }
  322. return mi.MessageOf(x)
  323. }
  324. // Deprecated: Use DeviceExchangeRequest.ProtoReflect.Descriptor instead.
  325. func (*DeviceExchangeRequest) Descriptor() ([]byte, []int) {
  326. return file_user_v2_device_proto_rawDescGZIP(), []int{6}
  327. }
  328. func (x *DeviceExchangeRequest) GetHc() string {
  329. if x != nil {
  330. return x.Hc
  331. }
  332. return ""
  333. }
  334. type DeviceExchangeResponse struct {
  335. state protoimpl.MessageState
  336. sizeCache protoimpl.SizeCache
  337. unknownFields protoimpl.UnknownFields
  338. // ticket 用于生成设备绑定二维码使用
  339. // 在连接 temp websocket 时也会用到
  340. Ticket string `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
  341. AseKey string `protobuf:"bytes,2,opt,name=aseKey,proto3" json:"aseKey,omitempty"`
  342. Hc string `protobuf:"bytes,3,opt,name=hc,proto3" json:"hc,omitempty"`
  343. // 设备激活时间
  344. ActivationTime int64 `protobuf:"varint,4,opt,name=activationTime,proto3" json:"activationTime,omitempty"`
  345. }
  346. func (x *DeviceExchangeResponse) Reset() {
  347. *x = DeviceExchangeResponse{}
  348. if protoimpl.UnsafeEnabled {
  349. mi := &file_user_v2_device_proto_msgTypes[7]
  350. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  351. ms.StoreMessageInfo(mi)
  352. }
  353. }
  354. func (x *DeviceExchangeResponse) String() string {
  355. return protoimpl.X.MessageStringOf(x)
  356. }
  357. func (*DeviceExchangeResponse) ProtoMessage() {}
  358. func (x *DeviceExchangeResponse) ProtoReflect() protoreflect.Message {
  359. mi := &file_user_v2_device_proto_msgTypes[7]
  360. if protoimpl.UnsafeEnabled && x != nil {
  361. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  362. if ms.LoadMessageInfo() == nil {
  363. ms.StoreMessageInfo(mi)
  364. }
  365. return ms
  366. }
  367. return mi.MessageOf(x)
  368. }
  369. // Deprecated: Use DeviceExchangeResponse.ProtoReflect.Descriptor instead.
  370. func (*DeviceExchangeResponse) Descriptor() ([]byte, []int) {
  371. return file_user_v2_device_proto_rawDescGZIP(), []int{7}
  372. }
  373. func (x *DeviceExchangeResponse) GetTicket() string {
  374. if x != nil {
  375. return x.Ticket
  376. }
  377. return ""
  378. }
  379. func (x *DeviceExchangeResponse) GetAseKey() string {
  380. if x != nil {
  381. return x.AseKey
  382. }
  383. return ""
  384. }
  385. func (x *DeviceExchangeResponse) GetHc() string {
  386. if x != nil {
  387. return x.Hc
  388. }
  389. return ""
  390. }
  391. func (x *DeviceExchangeResponse) GetActivationTime() int64 {
  392. if x != nil {
  393. return x.ActivationTime
  394. }
  395. return 0
  396. }
  397. var File_user_v2_device_proto protoreflect.FileDescriptor
  398. var file_user_v2_device_proto_rawDesc = []byte{
  399. 0x0a, 0x14, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
  400. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72,
  401. 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
  402. 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  403. 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69,
  404. 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x37, 0x0a, 0x14, 0x44, 0x65,
  405. 0x76, 0x69, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
  406. 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01,
  407. 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x06, 0x74, 0x69, 0x63,
  408. 0x6b, 0x65, 0x74, 0x22, 0x87, 0x01, 0x0a, 0x15, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42, 0x69,
  409. 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a,
  410. 0x06, 0x69, 0x73, 0x42, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69,
  411. 0x73, 0x42, 0x69, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  412. 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
  413. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a,
  414. 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x77,
  415. 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18,
  416. 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x52, 0x0a,
  417. 0x11, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
  418. 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
  419. 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0xb0, 0x01, 0x01, 0x52, 0x03, 0x63, 0x69, 0x64,
  420. 0x12, 0x1f, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  421. 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65,
  422. 0x74, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x52,
  423. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, 0x13, 0x44, 0x65, 0x76, 0x69, 0x63,
  424. 0x65, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c,
  425. 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07,
  426. 0x72, 0x05, 0x10, 0x01, 0xb0, 0x01, 0x01, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x06,
  427. 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42,
  428. 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x16, 0x0a,
  429. 0x14, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73,
  430. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x0a, 0x15, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45,
  431. 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17,
  432. 0x0a, 0x02, 0x68, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72,
  433. 0x02, 0x10, 0x01, 0x52, 0x02, 0x68, 0x63, 0x22, 0x80, 0x01, 0x0a, 0x16, 0x44, 0x65, 0x76, 0x69,
  434. 0x63, 0x65, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  435. 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01,
  436. 0x28, 0x09, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x73,
  437. 0x65, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x73, 0x65, 0x4b,
  438. 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  439. 0x68, 0x63, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  440. 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x61, 0x63, 0x74, 0x69,
  441. 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x32, 0xb6, 0x04, 0x0a, 0x06, 0x44,
  442. 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
  443. 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
  444. 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x64,
  445. 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x61, 0x70, 0x69,
  446. 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42,
  447. 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32,
  448. 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x32,
  449. 0x2f, 0x75, 0x73, 0x65, 0x72, 0x63, 0x74, 0x78, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x68,
  450. 0x69, 0x6c, 0x64, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x62, 0x69, 0x6e, 0x64, 0x69,
  451. 0x6e, 0x67, 0x12, 0x81, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42, 0x69, 0x6e,
  452. 0x64, 0x12, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e,
  453. 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  454. 0x74, 0x1a, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e,
  455. 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x42, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  456. 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f,
  457. 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x63, 0x74, 0x78, 0x2f,
  458. 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63,
  459. 0x65, 0x2f, 0x62, 0x69, 0x6e, 0x64, 0x12, 0x89, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x76, 0x69, 0x63,
  460. 0x65, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73,
  461. 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x55, 0x6e, 0x62, 0x69,
  462. 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  463. 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x55, 0x6e,
  464. 0x62, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3,
  465. 0xe4, 0x93, 0x02, 0x2e, 0x3a, 0x01, 0x2a, 0x22, 0x29, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76,
  466. 0x32, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x63, 0x74, 0x78, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63,
  467. 0x68, 0x69, 0x6c, 0x64, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x75, 0x6e, 0x62, 0x69,
  468. 0x6e, 0x64, 0x12, 0x8e, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x78, 0x63,
  469. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72,
  470. 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e,
  471. 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  472. 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x78,
  473. 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33,
  474. 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x32,
  475. 0x2f, 0x75, 0x73, 0x65, 0x72, 0x63, 0x74, 0x78, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x63, 0x68,
  476. 0x69, 0x6c, 0x64, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x65, 0x78, 0x63, 0x68, 0x61,
  477. 0x6e, 0x67, 0x65, 0x42, 0x30, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e,
  478. 0x76, 0x32, 0x50, 0x01, 0x5a, 0x1f, 0x73, 0x69, 0x6b, 0x65, 0x79, 0x2f, 0x77, 0x33, 0x30, 0x33,
  479. 0x61, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f,
  480. 0x76, 0x32, 0x3b, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  481. }
  482. var (
  483. file_user_v2_device_proto_rawDescOnce sync.Once
  484. file_user_v2_device_proto_rawDescData = file_user_v2_device_proto_rawDesc
  485. )
  486. func file_user_v2_device_proto_rawDescGZIP() []byte {
  487. file_user_v2_device_proto_rawDescOnce.Do(func() {
  488. file_user_v2_device_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_v2_device_proto_rawDescData)
  489. })
  490. return file_user_v2_device_proto_rawDescData
  491. }
  492. var file_user_v2_device_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  493. var file_user_v2_device_proto_goTypes = []any{
  494. (*DeviceBindingRequest)(nil), // 0: api.user.v2.DeviceBindingRequest
  495. (*DeviceBindingResponse)(nil), // 1: api.user.v2.DeviceBindingResponse
  496. (*DeviceBindRequest)(nil), // 2: api.user.v2.DeviceBindRequest
  497. (*DeviceBindResponse)(nil), // 3: api.user.v2.DeviceBindResponse
  498. (*DeviceUnbindRequest)(nil), // 4: api.user.v2.DeviceUnbindRequest
  499. (*DeviceUnbindResponse)(nil), // 5: api.user.v2.DeviceUnbindResponse
  500. (*DeviceExchangeRequest)(nil), // 6: api.user.v2.DeviceExchangeRequest
  501. (*DeviceExchangeResponse)(nil), // 7: api.user.v2.DeviceExchangeResponse
  502. }
  503. var file_user_v2_device_proto_depIdxs = []int32{
  504. 0, // 0: api.user.v2.Device.DeviceBinding:input_type -> api.user.v2.DeviceBindingRequest
  505. 2, // 1: api.user.v2.Device.DeviceBind:input_type -> api.user.v2.DeviceBindRequest
  506. 4, // 2: api.user.v2.Device.DeviceUnbind:input_type -> api.user.v2.DeviceUnbindRequest
  507. 6, // 3: api.user.v2.Device.DeviceExchange:input_type -> api.user.v2.DeviceExchangeRequest
  508. 1, // 4: api.user.v2.Device.DeviceBinding:output_type -> api.user.v2.DeviceBindingResponse
  509. 3, // 5: api.user.v2.Device.DeviceBind:output_type -> api.user.v2.DeviceBindResponse
  510. 5, // 6: api.user.v2.Device.DeviceUnbind:output_type -> api.user.v2.DeviceUnbindResponse
  511. 7, // 7: api.user.v2.Device.DeviceExchange:output_type -> api.user.v2.DeviceExchangeResponse
  512. 4, // [4:8] is the sub-list for method output_type
  513. 0, // [0:4] is the sub-list for method input_type
  514. 0, // [0:0] is the sub-list for extension type_name
  515. 0, // [0:0] is the sub-list for extension extendee
  516. 0, // [0:0] is the sub-list for field type_name
  517. }
  518. func init() { file_user_v2_device_proto_init() }
  519. func file_user_v2_device_proto_init() {
  520. if File_user_v2_device_proto != nil {
  521. return
  522. }
  523. if !protoimpl.UnsafeEnabled {
  524. file_user_v2_device_proto_msgTypes[0].Exporter = func(v any, i int) any {
  525. switch v := v.(*DeviceBindingRequest); i {
  526. case 0:
  527. return &v.state
  528. case 1:
  529. return &v.sizeCache
  530. case 2:
  531. return &v.unknownFields
  532. default:
  533. return nil
  534. }
  535. }
  536. file_user_v2_device_proto_msgTypes[1].Exporter = func(v any, i int) any {
  537. switch v := v.(*DeviceBindingResponse); i {
  538. case 0:
  539. return &v.state
  540. case 1:
  541. return &v.sizeCache
  542. case 2:
  543. return &v.unknownFields
  544. default:
  545. return nil
  546. }
  547. }
  548. file_user_v2_device_proto_msgTypes[2].Exporter = func(v any, i int) any {
  549. switch v := v.(*DeviceBindRequest); i {
  550. case 0:
  551. return &v.state
  552. case 1:
  553. return &v.sizeCache
  554. case 2:
  555. return &v.unknownFields
  556. default:
  557. return nil
  558. }
  559. }
  560. file_user_v2_device_proto_msgTypes[3].Exporter = func(v any, i int) any {
  561. switch v := v.(*DeviceBindResponse); i {
  562. case 0:
  563. return &v.state
  564. case 1:
  565. return &v.sizeCache
  566. case 2:
  567. return &v.unknownFields
  568. default:
  569. return nil
  570. }
  571. }
  572. file_user_v2_device_proto_msgTypes[4].Exporter = func(v any, i int) any {
  573. switch v := v.(*DeviceUnbindRequest); i {
  574. case 0:
  575. return &v.state
  576. case 1:
  577. return &v.sizeCache
  578. case 2:
  579. return &v.unknownFields
  580. default:
  581. return nil
  582. }
  583. }
  584. file_user_v2_device_proto_msgTypes[5].Exporter = func(v any, i int) any {
  585. switch v := v.(*DeviceUnbindResponse); i {
  586. case 0:
  587. return &v.state
  588. case 1:
  589. return &v.sizeCache
  590. case 2:
  591. return &v.unknownFields
  592. default:
  593. return nil
  594. }
  595. }
  596. file_user_v2_device_proto_msgTypes[6].Exporter = func(v any, i int) any {
  597. switch v := v.(*DeviceExchangeRequest); i {
  598. case 0:
  599. return &v.state
  600. case 1:
  601. return &v.sizeCache
  602. case 2:
  603. return &v.unknownFields
  604. default:
  605. return nil
  606. }
  607. }
  608. file_user_v2_device_proto_msgTypes[7].Exporter = func(v any, i int) any {
  609. switch v := v.(*DeviceExchangeResponse); i {
  610. case 0:
  611. return &v.state
  612. case 1:
  613. return &v.sizeCache
  614. case 2:
  615. return &v.unknownFields
  616. default:
  617. return nil
  618. }
  619. }
  620. }
  621. type x struct{}
  622. out := protoimpl.TypeBuilder{
  623. File: protoimpl.DescBuilder{
  624. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  625. RawDescriptor: file_user_v2_device_proto_rawDesc,
  626. NumEnums: 0,
  627. NumMessages: 8,
  628. NumExtensions: 0,
  629. NumServices: 1,
  630. },
  631. GoTypes: file_user_v2_device_proto_goTypes,
  632. DependencyIndexes: file_user_v2_device_proto_depIdxs,
  633. MessageInfos: file_user_v2_device_proto_msgTypes,
  634. }.Build()
  635. File_user_v2_device_proto = out.File
  636. file_user_v2_device_proto_rawDesc = nil
  637. file_user_v2_device_proto_goTypes = nil
  638. file_user_v2_device_proto_depIdxs = nil
  639. }