WDeviceAuthRsp.pb.go 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v3.19.4
  5. // source: wecom/WDeviceAuthRsp.proto
  6. package wecom
  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. unsafe "unsafe"
  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 DeviceAuthRspMessage struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` //授权成功后颁发给客户端的accesstoken
  23. Extra *DeviceAuthRspMessage_ExtraMessage `protobuf:"bytes,2,opt,name=Extra,proto3" json:"Extra,omitempty"`
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *DeviceAuthRspMessage) Reset() {
  28. *x = DeviceAuthRspMessage{}
  29. mi := &file_wecom_WDeviceAuthRsp_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *DeviceAuthRspMessage) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*DeviceAuthRspMessage) ProtoMessage() {}
  37. func (x *DeviceAuthRspMessage) ProtoReflect() protoreflect.Message {
  38. mi := &file_wecom_WDeviceAuthRsp_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use DeviceAuthRspMessage.ProtoReflect.Descriptor instead.
  49. func (*DeviceAuthRspMessage) Descriptor() ([]byte, []int) {
  50. return file_wecom_WDeviceAuthRsp_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *DeviceAuthRspMessage) GetAccessToken() string {
  53. if x != nil {
  54. return x.AccessToken
  55. }
  56. return ""
  57. }
  58. func (x *DeviceAuthRspMessage) GetExtra() *DeviceAuthRspMessage_ExtraMessage {
  59. if x != nil {
  60. return x.Extra
  61. }
  62. return nil
  63. }
  64. type DeviceAuthRspMessage_ExtraMessage struct {
  65. state protoimpl.MessageState `protogen:"open.v1"`
  66. SupplierId int64 `protobuf:"varint,1,opt,name=SupplierId,proto3" json:"SupplierId,omitempty"`
  67. UnionId int64 `protobuf:"varint,2,opt,name=UnionId,proto3" json:"UnionId,omitempty"`
  68. AccountType EnumAccountType `protobuf:"varint,3,opt,name=AccountType,proto3,enum=Im.Scrm.Ww.Proto.EnumAccountType" json:"AccountType,omitempty"`
  69. SupplierName string `protobuf:"bytes,4,opt,name=SupplierName,proto3" json:"SupplierName,omitempty"`
  70. NickName string `protobuf:"bytes,5,opt,name=NickName,proto3" json:"NickName,omitempty"`
  71. Token string `protobuf:"bytes,6,opt,name=Token,proto3" json:"Token,omitempty"` // 访问www使用
  72. unknownFields protoimpl.UnknownFields
  73. sizeCache protoimpl.SizeCache
  74. }
  75. func (x *DeviceAuthRspMessage_ExtraMessage) Reset() {
  76. *x = DeviceAuthRspMessage_ExtraMessage{}
  77. mi := &file_wecom_WDeviceAuthRsp_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. func (x *DeviceAuthRspMessage_ExtraMessage) String() string {
  82. return protoimpl.X.MessageStringOf(x)
  83. }
  84. func (*DeviceAuthRspMessage_ExtraMessage) ProtoMessage() {}
  85. func (x *DeviceAuthRspMessage_ExtraMessage) ProtoReflect() protoreflect.Message {
  86. mi := &file_wecom_WDeviceAuthRsp_proto_msgTypes[1]
  87. if x != nil {
  88. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  89. if ms.LoadMessageInfo() == nil {
  90. ms.StoreMessageInfo(mi)
  91. }
  92. return ms
  93. }
  94. return mi.MessageOf(x)
  95. }
  96. // Deprecated: Use DeviceAuthRspMessage_ExtraMessage.ProtoReflect.Descriptor instead.
  97. func (*DeviceAuthRspMessage_ExtraMessage) Descriptor() ([]byte, []int) {
  98. return file_wecom_WDeviceAuthRsp_proto_rawDescGZIP(), []int{0, 0}
  99. }
  100. func (x *DeviceAuthRspMessage_ExtraMessage) GetSupplierId() int64 {
  101. if x != nil {
  102. return x.SupplierId
  103. }
  104. return 0
  105. }
  106. func (x *DeviceAuthRspMessage_ExtraMessage) GetUnionId() int64 {
  107. if x != nil {
  108. return x.UnionId
  109. }
  110. return 0
  111. }
  112. func (x *DeviceAuthRspMessage_ExtraMessage) GetAccountType() EnumAccountType {
  113. if x != nil {
  114. return x.AccountType
  115. }
  116. return EnumAccountType_UnknownAccountType
  117. }
  118. func (x *DeviceAuthRspMessage_ExtraMessage) GetSupplierName() string {
  119. if x != nil {
  120. return x.SupplierName
  121. }
  122. return ""
  123. }
  124. func (x *DeviceAuthRspMessage_ExtraMessage) GetNickName() string {
  125. if x != nil {
  126. return x.NickName
  127. }
  128. return ""
  129. }
  130. func (x *DeviceAuthRspMessage_ExtraMessage) GetToken() string {
  131. if x != nil {
  132. return x.Token
  133. }
  134. return ""
  135. }
  136. var File_wecom_WDeviceAuthRsp_proto protoreflect.FileDescriptor
  137. const file_wecom_WDeviceAuthRsp_proto_rawDesc = "" +
  138. "\n" +
  139. "\x1awecom/WDeviceAuthRsp.proto\x12\x10Im.Scrm.Ww.Proto\x1a\x16wecom/WTransport.proto\"\xe9\x02\n" +
  140. "\x14DeviceAuthRspMessage\x12 \n" +
  141. "\vAccessToken\x18\x01 \x01(\tR\vAccessToken\x12I\n" +
  142. "\x05Extra\x18\x02 \x01(\v23.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessageR\x05Extra\x1a\xe3\x01\n" +
  143. "\fExtraMessage\x12\x1e\n" +
  144. "\n" +
  145. "SupplierId\x18\x01 \x01(\x03R\n" +
  146. "SupplierId\x12\x18\n" +
  147. "\aUnionId\x18\x02 \x01(\x03R\aUnionId\x12C\n" +
  148. "\vAccountType\x18\x03 \x01(\x0e2!.Im.Scrm.Ww.Proto.EnumAccountTypeR\vAccountType\x12\"\n" +
  149. "\fSupplierName\x18\x04 \x01(\tR\fSupplierName\x12\x1a\n" +
  150. "\bNickName\x18\x05 \x01(\tR\bNickName\x12\x14\n" +
  151. "\x05Token\x18\x06 \x01(\tR\x05TokenB\x13Z\x11./workphone/wecomb\x06proto3"
  152. var (
  153. file_wecom_WDeviceAuthRsp_proto_rawDescOnce sync.Once
  154. file_wecom_WDeviceAuthRsp_proto_rawDescData []byte
  155. )
  156. func file_wecom_WDeviceAuthRsp_proto_rawDescGZIP() []byte {
  157. file_wecom_WDeviceAuthRsp_proto_rawDescOnce.Do(func() {
  158. file_wecom_WDeviceAuthRsp_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_WDeviceAuthRsp_proto_rawDesc), len(file_wecom_WDeviceAuthRsp_proto_rawDesc)))
  159. })
  160. return file_wecom_WDeviceAuthRsp_proto_rawDescData
  161. }
  162. var file_wecom_WDeviceAuthRsp_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  163. var file_wecom_WDeviceAuthRsp_proto_goTypes = []any{
  164. (*DeviceAuthRspMessage)(nil), // 0: Im.Scrm.Ww.Proto.DeviceAuthRspMessage
  165. (*DeviceAuthRspMessage_ExtraMessage)(nil), // 1: Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage
  166. (EnumAccountType)(0), // 2: Im.Scrm.Ww.Proto.EnumAccountType
  167. }
  168. var file_wecom_WDeviceAuthRsp_proto_depIdxs = []int32{
  169. 1, // 0: Im.Scrm.Ww.Proto.DeviceAuthRspMessage.Extra:type_name -> Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage
  170. 2, // 1: Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage.AccountType:type_name -> Im.Scrm.Ww.Proto.EnumAccountType
  171. 2, // [2:2] is the sub-list for method output_type
  172. 2, // [2:2] is the sub-list for method input_type
  173. 2, // [2:2] is the sub-list for extension type_name
  174. 2, // [2:2] is the sub-list for extension extendee
  175. 0, // [0:2] is the sub-list for field type_name
  176. }
  177. func init() { file_wecom_WDeviceAuthRsp_proto_init() }
  178. func file_wecom_WDeviceAuthRsp_proto_init() {
  179. if File_wecom_WDeviceAuthRsp_proto != nil {
  180. return
  181. }
  182. file_wecom_WTransport_proto_init()
  183. type x struct{}
  184. out := protoimpl.TypeBuilder{
  185. File: protoimpl.DescBuilder{
  186. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  187. RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_WDeviceAuthRsp_proto_rawDesc), len(file_wecom_WDeviceAuthRsp_proto_rawDesc)),
  188. NumEnums: 0,
  189. NumMessages: 2,
  190. NumExtensions: 0,
  191. NumServices: 0,
  192. },
  193. GoTypes: file_wecom_WDeviceAuthRsp_proto_goTypes,
  194. DependencyIndexes: file_wecom_WDeviceAuthRsp_proto_depIdxs,
  195. MessageInfos: file_wecom_WDeviceAuthRsp_proto_msgTypes,
  196. }.Build()
  197. File_wecom_WDeviceAuthRsp_proto = out.File
  198. file_wecom_WDeviceAuthRsp_proto_goTypes = nil
  199. file_wecom_WDeviceAuthRsp_proto_depIdxs = nil
  200. }