123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.6
- // protoc v3.19.4
- // source: wecom/WDeviceAuthRsp.proto
- package wecom
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type DeviceAuthRspMessage struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` //授权成功后颁发给客户端的accesstoken
- Extra *DeviceAuthRspMessage_ExtraMessage `protobuf:"bytes,2,opt,name=Extra,proto3" json:"Extra,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *DeviceAuthRspMessage) Reset() {
- *x = DeviceAuthRspMessage{}
- mi := &file_wecom_WDeviceAuthRsp_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *DeviceAuthRspMessage) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeviceAuthRspMessage) ProtoMessage() {}
- func (x *DeviceAuthRspMessage) ProtoReflect() protoreflect.Message {
- mi := &file_wecom_WDeviceAuthRsp_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DeviceAuthRspMessage.ProtoReflect.Descriptor instead.
- func (*DeviceAuthRspMessage) Descriptor() ([]byte, []int) {
- return file_wecom_WDeviceAuthRsp_proto_rawDescGZIP(), []int{0}
- }
- func (x *DeviceAuthRspMessage) GetAccessToken() string {
- if x != nil {
- return x.AccessToken
- }
- return ""
- }
- func (x *DeviceAuthRspMessage) GetExtra() *DeviceAuthRspMessage_ExtraMessage {
- if x != nil {
- return x.Extra
- }
- return nil
- }
- type DeviceAuthRspMessage_ExtraMessage struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SupplierId int64 `protobuf:"varint,1,opt,name=SupplierId,proto3" json:"SupplierId,omitempty"`
- UnionId int64 `protobuf:"varint,2,opt,name=UnionId,proto3" json:"UnionId,omitempty"`
- AccountType EnumAccountType `protobuf:"varint,3,opt,name=AccountType,proto3,enum=Im.Scrm.Ww.Proto.EnumAccountType" json:"AccountType,omitempty"`
- SupplierName string `protobuf:"bytes,4,opt,name=SupplierName,proto3" json:"SupplierName,omitempty"`
- NickName string `protobuf:"bytes,5,opt,name=NickName,proto3" json:"NickName,omitempty"`
- Token string `protobuf:"bytes,6,opt,name=Token,proto3" json:"Token,omitempty"` // 访问www使用
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *DeviceAuthRspMessage_ExtraMessage) Reset() {
- *x = DeviceAuthRspMessage_ExtraMessage{}
- mi := &file_wecom_WDeviceAuthRsp_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *DeviceAuthRspMessage_ExtraMessage) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeviceAuthRspMessage_ExtraMessage) ProtoMessage() {}
- func (x *DeviceAuthRspMessage_ExtraMessage) ProtoReflect() protoreflect.Message {
- mi := &file_wecom_WDeviceAuthRsp_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DeviceAuthRspMessage_ExtraMessage.ProtoReflect.Descriptor instead.
- func (*DeviceAuthRspMessage_ExtraMessage) Descriptor() ([]byte, []int) {
- return file_wecom_WDeviceAuthRsp_proto_rawDescGZIP(), []int{0, 0}
- }
- func (x *DeviceAuthRspMessage_ExtraMessage) GetSupplierId() int64 {
- if x != nil {
- return x.SupplierId
- }
- return 0
- }
- func (x *DeviceAuthRspMessage_ExtraMessage) GetUnionId() int64 {
- if x != nil {
- return x.UnionId
- }
- return 0
- }
- func (x *DeviceAuthRspMessage_ExtraMessage) GetAccountType() EnumAccountType {
- if x != nil {
- return x.AccountType
- }
- return EnumAccountType_UnknownAccountType
- }
- func (x *DeviceAuthRspMessage_ExtraMessage) GetSupplierName() string {
- if x != nil {
- return x.SupplierName
- }
- return ""
- }
- func (x *DeviceAuthRspMessage_ExtraMessage) GetNickName() string {
- if x != nil {
- return x.NickName
- }
- return ""
- }
- func (x *DeviceAuthRspMessage_ExtraMessage) GetToken() string {
- if x != nil {
- return x.Token
- }
- return ""
- }
- var File_wecom_WDeviceAuthRsp_proto protoreflect.FileDescriptor
- const file_wecom_WDeviceAuthRsp_proto_rawDesc = "" +
- "\n" +
- "\x1awecom/WDeviceAuthRsp.proto\x12\x10Im.Scrm.Ww.Proto\x1a\x16wecom/WTransport.proto\"\xe9\x02\n" +
- "\x14DeviceAuthRspMessage\x12 \n" +
- "\vAccessToken\x18\x01 \x01(\tR\vAccessToken\x12I\n" +
- "\x05Extra\x18\x02 \x01(\v23.Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessageR\x05Extra\x1a\xe3\x01\n" +
- "\fExtraMessage\x12\x1e\n" +
- "\n" +
- "SupplierId\x18\x01 \x01(\x03R\n" +
- "SupplierId\x12\x18\n" +
- "\aUnionId\x18\x02 \x01(\x03R\aUnionId\x12C\n" +
- "\vAccountType\x18\x03 \x01(\x0e2!.Im.Scrm.Ww.Proto.EnumAccountTypeR\vAccountType\x12\"\n" +
- "\fSupplierName\x18\x04 \x01(\tR\fSupplierName\x12\x1a\n" +
- "\bNickName\x18\x05 \x01(\tR\bNickName\x12\x14\n" +
- "\x05Token\x18\x06 \x01(\tR\x05TokenB\x13Z\x11./workphone/wecomb\x06proto3"
- var (
- file_wecom_WDeviceAuthRsp_proto_rawDescOnce sync.Once
- file_wecom_WDeviceAuthRsp_proto_rawDescData []byte
- )
- func file_wecom_WDeviceAuthRsp_proto_rawDescGZIP() []byte {
- file_wecom_WDeviceAuthRsp_proto_rawDescOnce.Do(func() {
- file_wecom_WDeviceAuthRsp_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_WDeviceAuthRsp_proto_rawDesc), len(file_wecom_WDeviceAuthRsp_proto_rawDesc)))
- })
- return file_wecom_WDeviceAuthRsp_proto_rawDescData
- }
- var file_wecom_WDeviceAuthRsp_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_wecom_WDeviceAuthRsp_proto_goTypes = []any{
- (*DeviceAuthRspMessage)(nil), // 0: Im.Scrm.Ww.Proto.DeviceAuthRspMessage
- (*DeviceAuthRspMessage_ExtraMessage)(nil), // 1: Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage
- (EnumAccountType)(0), // 2: Im.Scrm.Ww.Proto.EnumAccountType
- }
- var file_wecom_WDeviceAuthRsp_proto_depIdxs = []int32{
- 1, // 0: Im.Scrm.Ww.Proto.DeviceAuthRspMessage.Extra:type_name -> Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage
- 2, // 1: Im.Scrm.Ww.Proto.DeviceAuthRspMessage.ExtraMessage.AccountType:type_name -> Im.Scrm.Ww.Proto.EnumAccountType
- 2, // [2:2] is the sub-list for method output_type
- 2, // [2:2] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_wecom_WDeviceAuthRsp_proto_init() }
- func file_wecom_WDeviceAuthRsp_proto_init() {
- if File_wecom_WDeviceAuthRsp_proto != nil {
- return
- }
- file_wecom_WTransport_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_WDeviceAuthRsp_proto_rawDesc), len(file_wecom_WDeviceAuthRsp_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_wecom_WDeviceAuthRsp_proto_goTypes,
- DependencyIndexes: file_wecom_WDeviceAuthRsp_proto_depIdxs,
- MessageInfos: file_wecom_WDeviceAuthRsp_proto_msgTypes,
- }.Build()
- File_wecom_WDeviceAuthRsp_proto = out.File
- file_wecom_WDeviceAuthRsp_proto_goTypes = nil
- file_wecom_WDeviceAuthRsp_proto_depIdxs = nil
- }
|