// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.35.2
// 	protoc        v5.28.3
// source: DeviceAuthReq.proto

package workphone

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

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_DeviceAuthReq_proto_enumTypes[0].Descriptor()
}

func (DeviceAuthReqMessage_EnumAuthType) Type() protoreflect.EnumType {
	return &file_DeviceAuthReq_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_DeviceAuthReq_proto_rawDescGZIP(), []int{0, 0}
}

type DeviceAuthReqMessage struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	AuthType   DeviceAuthReqMessage_EnumAuthType `protobuf:"varint,1,opt,name=AuthType,proto3,enum=Jubo.JuLiao.IM.Wx.Proto.DeviceAuthReqMessage_EnumAuthType" json:"AuthType,omitempty"` //认证方式
	Credential string                            `protobuf:"bytes,2,opt,name=Credential,proto3" json:"Credential,omitempty"`                                                             //凭证信息（不同认证方式传入不同的凭证信息）
}

func (x *DeviceAuthReqMessage) Reset() {
	*x = DeviceAuthReqMessage{}
	mi := &file_DeviceAuthReq_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_DeviceAuthReq_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_DeviceAuthReq_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_DeviceAuthReq_proto protoreflect.FileDescriptor

var file_DeviceAuthReq_proto_rawDesc = []byte{
	0x0a, 0x13, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x2e,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x4a, 0x75, 0x62, 0x6f, 0x2e, 0x4a, 0x75, 0x4c, 0x69,
	0x61, 0x6f, 0x2e, 0x49, 0x4d, 0x2e, 0x57, 0x78, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdb,
	0x01, 0x0a, 0x14, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71,
	0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x56, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54,
	0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x4a, 0x75, 0x62, 0x6f,
	0x2e, 0x4a, 0x75, 0x4c, 0x69, 0x61, 0x6f, 0x2e, 0x49, 0x4d, 0x2e, 0x57, 0x78, 0x2e, 0x50, 0x72,
	0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
	0x71, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x41, 0x75, 0x74,
	0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12,
	0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x02, 0x20,
	0x01, 0x28, 0x09, 0x52, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22,
	0x4b, 0x0a, 0x0c, 0x45, 0x6e, 0x75, 0x6d, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12,
	0x0b, 0x0a, 0x07, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a,
	0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
	0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x6e,
	0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x10, 0x03, 0x42, 0x0d, 0x5a, 0x0b,
	0x2e, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x33,
}

var (
	file_DeviceAuthReq_proto_rawDescOnce sync.Once
	file_DeviceAuthReq_proto_rawDescData = file_DeviceAuthReq_proto_rawDesc
)

func file_DeviceAuthReq_proto_rawDescGZIP() []byte {
	file_DeviceAuthReq_proto_rawDescOnce.Do(func() {
		file_DeviceAuthReq_proto_rawDescData = protoimpl.X.CompressGZIP(file_DeviceAuthReq_proto_rawDescData)
	})
	return file_DeviceAuthReq_proto_rawDescData
}

var file_DeviceAuthReq_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_DeviceAuthReq_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_DeviceAuthReq_proto_goTypes = []any{
	(DeviceAuthReqMessage_EnumAuthType)(0), // 0: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthReqMessage.EnumAuthType
	(*DeviceAuthReqMessage)(nil),           // 1: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthReqMessage
}
var file_DeviceAuthReq_proto_depIdxs = []int32{
	0, // 0: Jubo.JuLiao.IM.Wx.Proto.DeviceAuthReqMessage.AuthType:type_name -> Jubo.JuLiao.IM.Wx.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_DeviceAuthReq_proto_init() }
func file_DeviceAuthReq_proto_init() {
	if File_DeviceAuthReq_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_DeviceAuthReq_proto_rawDesc,
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_DeviceAuthReq_proto_goTypes,
		DependencyIndexes: file_DeviceAuthReq_proto_depIdxs,
		EnumInfos:         file_DeviceAuthReq_proto_enumTypes,
		MessageInfos:      file_DeviceAuthReq_proto_msgTypes,
	}.Build()
	File_DeviceAuthReq_proto = out.File
	file_DeviceAuthReq_proto_rawDesc = nil
	file_DeviceAuthReq_proto_goTypes = nil
	file_DeviceAuthReq_proto_depIdxs = nil
}
