DeviceAuthRsp.pb.go 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.2
  4. // protoc v5.28.3
  5. // source: DeviceAuthRsp.proto
  6. package workphone
  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 DeviceAuthRspMessage struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` //授权成功后颁发给客户端的accesstoken
  24. Extra *DeviceAuthRspMessage_ExtraMessage `protobuf:"bytes,2,opt,name=Extra,proto3" json:"Extra,omitempty"`
  25. }
  26. func (x *DeviceAuthRspMessage) Reset() {
  27. *x = DeviceAuthRspMessage{}
  28. mi := &file_DeviceAuthRsp_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. func (x *DeviceAuthRspMessage) String() string {
  33. return protoimpl.X.MessageStringOf(x)
  34. }
  35. func (*DeviceAuthRspMessage) ProtoMessage() {}
  36. func (x *DeviceAuthRspMessage) ProtoReflect() protoreflect.Message {
  37. mi := &file_DeviceAuthRsp_proto_msgTypes[0]
  38. if x != nil {
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. if ms.LoadMessageInfo() == nil {
  41. ms.StoreMessageInfo(mi)
  42. }
  43. return ms
  44. }
  45. return mi.MessageOf(x)
  46. }
  47. // Deprecated: Use DeviceAuthRspMessage.ProtoReflect.Descriptor instead.
  48. func (*DeviceAuthRspMessage) Descriptor() ([]byte, []int) {
  49. return file_DeviceAuthRsp_proto_rawDescGZIP(), []int{0}
  50. }
  51. func (x *DeviceAuthRspMessage) GetAccessToken() string {
  52. if x != nil {
  53. return x.AccessToken
  54. }
  55. return ""
  56. }
  57. func (x *DeviceAuthRspMessage) GetExtra() *DeviceAuthRspMessage_ExtraMessage {
  58. if x != nil {
  59. return x.Extra
  60. }
  61. return nil
  62. }
  63. type DeviceAuthRspMessage_ExtraMessage struct {
  64. state protoimpl.MessageState
  65. sizeCache protoimpl.SizeCache
  66. unknownFields protoimpl.UnknownFields
  67. SupplierId int64 `protobuf:"varint,1,opt,name=SupplierId,proto3" json:"SupplierId,omitempty"`
  68. UnionId int64 `protobuf:"varint,2,opt,name=UnionId,proto3" json:"UnionId,omitempty"`
  69. AccountType EnumAccountType `protobuf:"varint,3,opt,name=AccountType,proto3,enum=Jubo.JuLiao.IM.Wx.Proto.EnumAccountType" json:"AccountType,omitempty"`
  70. SupplierName string `protobuf:"bytes,4,opt,name=SupplierName,proto3" json:"SupplierName,omitempty"`
  71. NickName string `protobuf:"bytes,5,opt,name=NickName,proto3" json:"NickName,omitempty"`
  72. Token string `protobuf:"bytes,6,opt,name=Token,proto3" json:"Token,omitempty"` // 访问www使用
  73. }
  74. func (x *DeviceAuthRspMessage_ExtraMessage) Reset() {
  75. *x = DeviceAuthRspMessage_ExtraMessage{}
  76. mi := &file_DeviceAuthRsp_proto_msgTypes[1]
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. ms.StoreMessageInfo(mi)
  79. }
  80. func (x *DeviceAuthRspMessage_ExtraMessage) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*DeviceAuthRspMessage_ExtraMessage) ProtoMessage() {}
  84. func (x *DeviceAuthRspMessage_ExtraMessage) ProtoReflect() protoreflect.Message {
  85. mi := &file_DeviceAuthRsp_proto_msgTypes[1]
  86. if x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use DeviceAuthRspMessage_ExtraMessage.ProtoReflect.Descriptor instead.
  96. func (*DeviceAuthRspMessage_ExtraMessage) Descriptor() ([]byte, []int) {
  97. return file_DeviceAuthRsp_proto_rawDescGZIP(), []int{0, 0}
  98. }
  99. func (x *DeviceAuthRspMessage_ExtraMessage) GetSupplierId() int64 {
  100. if x != nil {
  101. return x.SupplierId
  102. }
  103. return 0
  104. }
  105. func (x *DeviceAuthRspMessage_ExtraMessage) GetUnionId() int64 {
  106. if x != nil {
  107. return x.UnionId
  108. }
  109. return 0
  110. }
  111. func (x *DeviceAuthRspMessage_ExtraMessage) GetAccountType() EnumAccountType {
  112. if x != nil {
  113. return x.AccountType
  114. }
  115. return EnumAccountType_UnknownAccountType
  116. }
  117. func (x *DeviceAuthRspMessage_ExtraMessage) GetSupplierName() string {
  118. if x != nil {
  119. return x.SupplierName
  120. }
  121. return ""
  122. }
  123. func (x *DeviceAuthRspMessage_ExtraMessage) GetNickName() string {
  124. if x != nil {
  125. return x.NickName
  126. }
  127. return ""
  128. }
  129. func (x *DeviceAuthRspMessage_ExtraMessage) GetToken() string {
  130. if x != nil {
  131. return x.Token
  132. }
  133. return ""
  134. }
  135. var File_DeviceAuthRsp_proto protoreflect.FileDescriptor
  136. var file_DeviceAuthRsp_proto_rawDesc = []byte{
  137. 0x0a, 0x13, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x73, 0x70, 0x2e,
  138. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x4a, 0x75, 0x62, 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69,
  139. 0x61, 0x6f, 0x2e, 0x49, 0x4d, 0x2e, 0x57, 0x78, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16,
  140. 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  141. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf7, 0x02, 0x0a, 0x14, 0x44, 0x65, 0x76, 0x69, 0x63,
  142. 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x73, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  143. 0x20, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01,
  144. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65,
  145. 0x6e, 0x12, 0x50, 0x0a, 0x05, 0x45, 0x78, 0x74, 0x72, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  146. 0x32, 0x3a, 0x2e, 0x4a, 0x75, 0x62, 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69, 0x61, 0x6f, 0x2e, 0x49,
  147. 0x4d, 0x2e, 0x57, 0x78, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63,
  148. 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x73, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  149. 0x45, 0x78, 0x74, 0x72, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x45, 0x78,
  150. 0x74, 0x72, 0x61, 0x1a, 0xea, 0x01, 0x0a, 0x0c, 0x45, 0x78, 0x74, 0x72, 0x61, 0x4d, 0x65, 0x73,
  151. 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72,
  152. 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69,
  153. 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18,
  154. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x4a,
  155. 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20,
  156. 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x4a, 0x75, 0x62, 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69, 0x61,
  157. 0x6f, 0x2e, 0x49, 0x4d, 0x2e, 0x57, 0x78, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6e,
  158. 0x75, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x41,
  159. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x53, 0x75,
  160. 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
  161. 0x52, 0x0c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a,
  162. 0x0a, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  163. 0x52, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f,
  164. 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
  165. 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62,
  166. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  167. }
  168. var (
  169. file_DeviceAuthRsp_proto_rawDescOnce sync.Once
  170. file_DeviceAuthRsp_proto_rawDescData = file_DeviceAuthRsp_proto_rawDesc
  171. )
  172. func file_DeviceAuthRsp_proto_rawDescGZIP() []byte {
  173. file_DeviceAuthRsp_proto_rawDescOnce.Do(func() {
  174. file_DeviceAuthRsp_proto_rawDescData = protoimpl.X.CompressGZIP(file_DeviceAuthRsp_proto_rawDescData)
  175. })
  176. return file_DeviceAuthRsp_proto_rawDescData
  177. }
  178. var file_DeviceAuthRsp_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  179. var file_DeviceAuthRsp_proto_goTypes = []any{
  180. (*DeviceAuthRspMessage)(nil), // 0: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthRspMessage
  181. (*DeviceAuthRspMessage_ExtraMessage)(nil), // 1: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthRspMessage.ExtraMessage
  182. (EnumAccountType)(0), // 2: Jubo.JuLiao.IM.Wx.Proto.EnumAccountType
  183. }
  184. var file_DeviceAuthRsp_proto_depIdxs = []int32{
  185. 1, // 0: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthRspMessage.Extra:type_name -> Jubo.JuLiao.IM.Wx.Proto.DeviceAuthRspMessage.ExtraMessage
  186. 2, // 1: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthRspMessage.ExtraMessage.AccountType:type_name -> Jubo.JuLiao.IM.Wx.Proto.EnumAccountType
  187. 2, // [2:2] is the sub-list for method output_type
  188. 2, // [2:2] is the sub-list for method input_type
  189. 2, // [2:2] is the sub-list for extension type_name
  190. 2, // [2:2] is the sub-list for extension extendee
  191. 0, // [0:2] is the sub-list for field type_name
  192. }
  193. func init() { file_DeviceAuthRsp_proto_init() }
  194. func file_DeviceAuthRsp_proto_init() {
  195. if File_DeviceAuthRsp_proto != nil {
  196. return
  197. }
  198. file_TransportMessage_proto_init()
  199. type x struct{}
  200. out := protoimpl.TypeBuilder{
  201. File: protoimpl.DescBuilder{
  202. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  203. RawDescriptor: file_DeviceAuthRsp_proto_rawDesc,
  204. NumEnums: 0,
  205. NumMessages: 2,
  206. NumExtensions: 0,
  207. NumServices: 0,
  208. },
  209. GoTypes: file_DeviceAuthRsp_proto_goTypes,
  210. DependencyIndexes: file_DeviceAuthRsp_proto_depIdxs,
  211. MessageInfos: file_DeviceAuthRsp_proto_msgTypes,
  212. }.Build()
  213. File_DeviceAuthRsp_proto = out.File
  214. file_DeviceAuthRsp_proto_rawDesc = nil
  215. file_DeviceAuthRsp_proto_goTypes = nil
  216. file_DeviceAuthRsp_proto_depIdxs = nil
  217. }