123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.6
- // protoc v3.19.4
- // source: wecom/WDeviceAuthReq.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 DeviceAuthReqMessage_EnumAuthType int32
- const (
- DeviceAuthReqMessage_Default DeviceAuthReqMessage_EnumAuthType = 0 //默认方式,默认使用
- DeviceAuthReqMessage_DeviceCode DeviceAuthReqMessage_EnumAuthType = 1 //设备码(用于手机客户端,此方式Credential应传入手机IMEI)
- DeviceAuthReqMessage_Username DeviceAuthReqMessage_EnumAuthType = 2 //用户名密码方式(此方式Credential应传入base64(user:pwd))
- DeviceAuthReqMessage_InternalCode DeviceAuthReqMessage_EnumAuthType = 3 //内部服务间通讯方式(此方式Credential可为空,服务器根据ip白名单来认证)
- )
- // Enum value maps for DeviceAuthReqMessage_EnumAuthType.
- var (
- DeviceAuthReqMessage_EnumAuthType_name = map[int32]string{
- 0: "Default",
- 1: "DeviceCode",
- 2: "Username",
- 3: "InternalCode",
- }
- DeviceAuthReqMessage_EnumAuthType_value = map[string]int32{
- "Default": 0,
- "DeviceCode": 1,
- "Username": 2,
- "InternalCode": 3,
- }
- )
- func (x DeviceAuthReqMessage_EnumAuthType) Enum() *DeviceAuthReqMessage_EnumAuthType {
- p := new(DeviceAuthReqMessage_EnumAuthType)
- *p = x
- return p
- }
- func (x DeviceAuthReqMessage_EnumAuthType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (DeviceAuthReqMessage_EnumAuthType) Descriptor() protoreflect.EnumDescriptor {
- return file_wecom_WDeviceAuthReq_proto_enumTypes[0].Descriptor()
- }
- func (DeviceAuthReqMessage_EnumAuthType) Type() protoreflect.EnumType {
- return &file_wecom_WDeviceAuthReq_proto_enumTypes[0]
- }
- func (x DeviceAuthReqMessage_EnumAuthType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use DeviceAuthReqMessage_EnumAuthType.Descriptor instead.
- func (DeviceAuthReqMessage_EnumAuthType) EnumDescriptor() ([]byte, []int) {
- return file_wecom_WDeviceAuthReq_proto_rawDescGZIP(), []int{0, 0}
- }
- type DeviceAuthReqMessage struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- AuthType DeviceAuthReqMessage_EnumAuthType `protobuf:"varint,1,opt,name=AuthType,proto3,enum=Im.Scrm.Ww.Proto.DeviceAuthReqMessage_EnumAuthType" json:"AuthType,omitempty"` //认证方式
- Credential string `protobuf:"bytes,2,opt,name=Credential,proto3" json:"Credential,omitempty"` //凭证信息(不同认证方式传入不同的凭证信息)
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *DeviceAuthReqMessage) Reset() {
- *x = DeviceAuthReqMessage{}
- mi := &file_wecom_WDeviceAuthReq_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *DeviceAuthReqMessage) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeviceAuthReqMessage) ProtoMessage() {}
- func (x *DeviceAuthReqMessage) ProtoReflect() protoreflect.Message {
- mi := &file_wecom_WDeviceAuthReq_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 DeviceAuthReqMessage.ProtoReflect.Descriptor instead.
- func (*DeviceAuthReqMessage) Descriptor() ([]byte, []int) {
- return file_wecom_WDeviceAuthReq_proto_rawDescGZIP(), []int{0}
- }
- func (x *DeviceAuthReqMessage) GetAuthType() DeviceAuthReqMessage_EnumAuthType {
- if x != nil {
- return x.AuthType
- }
- return DeviceAuthReqMessage_Default
- }
- func (x *DeviceAuthReqMessage) GetCredential() string {
- if x != nil {
- return x.Credential
- }
- return ""
- }
- var File_wecom_WDeviceAuthReq_proto protoreflect.FileDescriptor
- const file_wecom_WDeviceAuthReq_proto_rawDesc = "" +
- "\n" +
- "\x1awecom/WDeviceAuthReq.proto\x12\x10Im.Scrm.Ww.Proto\"\xd4\x01\n" +
- "\x14DeviceAuthReqMessage\x12O\n" +
- "\bAuthType\x18\x01 \x01(\x0e23.Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthTypeR\bAuthType\x12\x1e\n" +
- "\n" +
- "Credential\x18\x02 \x01(\tR\n" +
- "Credential\"K\n" +
- "\fEnumAuthType\x12\v\n" +
- "\aDefault\x10\x00\x12\x0e\n" +
- "\n" +
- "DeviceCode\x10\x01\x12\f\n" +
- "\bUsername\x10\x02\x12\x10\n" +
- "\fInternalCode\x10\x03B\x13Z\x11./workphone/wecomb\x06proto3"
- var (
- file_wecom_WDeviceAuthReq_proto_rawDescOnce sync.Once
- file_wecom_WDeviceAuthReq_proto_rawDescData []byte
- )
- func file_wecom_WDeviceAuthReq_proto_rawDescGZIP() []byte {
- file_wecom_WDeviceAuthReq_proto_rawDescOnce.Do(func() {
- file_wecom_WDeviceAuthReq_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_WDeviceAuthReq_proto_rawDesc), len(file_wecom_WDeviceAuthReq_proto_rawDesc)))
- })
- return file_wecom_WDeviceAuthReq_proto_rawDescData
- }
- var file_wecom_WDeviceAuthReq_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_wecom_WDeviceAuthReq_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
- var file_wecom_WDeviceAuthReq_proto_goTypes = []any{
- (DeviceAuthReqMessage_EnumAuthType)(0), // 0: Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType
- (*DeviceAuthReqMessage)(nil), // 1: Im.Scrm.Ww.Proto.DeviceAuthReqMessage
- }
- var file_wecom_WDeviceAuthReq_proto_depIdxs = []int32{
- 0, // 0: Im.Scrm.Ww.Proto.DeviceAuthReqMessage.AuthType:type_name -> Im.Scrm.Ww.Proto.DeviceAuthReqMessage.EnumAuthType
- 1, // [1:1] is the sub-list for method output_type
- 1, // [1:1] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
- }
- func init() { file_wecom_WDeviceAuthReq_proto_init() }
- func file_wecom_WDeviceAuthReq_proto_init() {
- if File_wecom_WDeviceAuthReq_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_WDeviceAuthReq_proto_rawDesc), len(file_wecom_WDeviceAuthReq_proto_rawDesc)),
- NumEnums: 1,
- NumMessages: 1,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_wecom_WDeviceAuthReq_proto_goTypes,
- DependencyIndexes: file_wecom_WDeviceAuthReq_proto_depIdxs,
- EnumInfos: file_wecom_WDeviceAuthReq_proto_enumTypes,
- MessageInfos: file_wecom_WDeviceAuthReq_proto_msgTypes,
- }.Build()
- File_wecom_WDeviceAuthReq_proto = out.File
- file_wecom_WDeviceAuthReq_proto_goTypes = nil
- file_wecom_WDeviceAuthReq_proto_depIdxs = nil
- }
|