// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v3.21.12
// source: waUserPassword/WAWebProtobufsUserPassword.proto

package waUserPassword

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

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

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 UserPassword_Transformer int32

const (
	UserPassword_NONE               UserPassword_Transformer = 0
	UserPassword_PBKDF2_HMAC_SHA512 UserPassword_Transformer = 1
	UserPassword_PBKDF2_HMAC_SHA384 UserPassword_Transformer = 2
)

// Enum value maps for UserPassword_Transformer.
var (
	UserPassword_Transformer_name = map[int32]string{
		0: "NONE",
		1: "PBKDF2_HMAC_SHA512",
		2: "PBKDF2_HMAC_SHA384",
	}
	UserPassword_Transformer_value = map[string]int32{
		"NONE":               0,
		"PBKDF2_HMAC_SHA512": 1,
		"PBKDF2_HMAC_SHA384": 2,
	}
)

func (x UserPassword_Transformer) Enum() *UserPassword_Transformer {
	p := new(UserPassword_Transformer)
	*p = x
	return p
}

func (x UserPassword_Transformer) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (UserPassword_Transformer) Descriptor() protoreflect.EnumDescriptor {
	return file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes[0].Descriptor()
}

func (UserPassword_Transformer) Type() protoreflect.EnumType {
	return &file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes[0]
}

func (x UserPassword_Transformer) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Do not use.
func (x *UserPassword_Transformer) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = UserPassword_Transformer(num)
	return nil
}

// Deprecated: Use UserPassword_Transformer.Descriptor instead.
func (UserPassword_Transformer) EnumDescriptor() ([]byte, []int) {
	return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0, 0}
}

type UserPassword_Encoding int32

const (
	UserPassword_UTF8        UserPassword_Encoding = 0
	UserPassword_UTF8_BROKEN UserPassword_Encoding = 1
)

// Enum value maps for UserPassword_Encoding.
var (
	UserPassword_Encoding_name = map[int32]string{
		0: "UTF8",
		1: "UTF8_BROKEN",
	}
	UserPassword_Encoding_value = map[string]int32{
		"UTF8":        0,
		"UTF8_BROKEN": 1,
	}
)

func (x UserPassword_Encoding) Enum() *UserPassword_Encoding {
	p := new(UserPassword_Encoding)
	*p = x
	return p
}

func (x UserPassword_Encoding) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (UserPassword_Encoding) Descriptor() protoreflect.EnumDescriptor {
	return file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes[1].Descriptor()
}

func (UserPassword_Encoding) Type() protoreflect.EnumType {
	return &file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes[1]
}

func (x UserPassword_Encoding) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Do not use.
func (x *UserPassword_Encoding) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = UserPassword_Encoding(num)
	return nil
}

// Deprecated: Use UserPassword_Encoding.Descriptor instead.
func (UserPassword_Encoding) EnumDescriptor() ([]byte, []int) {
	return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0, 1}
}

type UserPassword struct {
	state           protoimpl.MessageState         `protogen:"open.v1"`
	Encoding        *UserPassword_Encoding         `protobuf:"varint,1,opt,name=encoding,enum=WAWebProtobufsUserPassword.UserPassword_Encoding" json:"encoding,omitempty"`
	Transformer     *UserPassword_Transformer      `protobuf:"varint,2,opt,name=transformer,enum=WAWebProtobufsUserPassword.UserPassword_Transformer" json:"transformer,omitempty"`
	TransformerArg  []*UserPassword_TransformerArg `protobuf:"bytes,3,rep,name=transformerArg" json:"transformerArg,omitempty"`
	TransformedData []byte                         `protobuf:"bytes,4,opt,name=transformedData" json:"transformedData,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

func (x *UserPassword) Reset() {
	*x = UserPassword{}
	mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UserPassword) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UserPassword) ProtoMessage() {}

func (x *UserPassword) ProtoReflect() protoreflect.Message {
	mi := &file_waUserPassword_WAWebProtobufsUserPassword_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 UserPassword.ProtoReflect.Descriptor instead.
func (*UserPassword) Descriptor() ([]byte, []int) {
	return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0}
}

func (x *UserPassword) GetEncoding() UserPassword_Encoding {
	if x != nil && x.Encoding != nil {
		return *x.Encoding
	}
	return UserPassword_UTF8
}

func (x *UserPassword) GetTransformer() UserPassword_Transformer {
	if x != nil && x.Transformer != nil {
		return *x.Transformer
	}
	return UserPassword_NONE
}

func (x *UserPassword) GetTransformerArg() []*UserPassword_TransformerArg {
	if x != nil {
		return x.TransformerArg
	}
	return nil
}

func (x *UserPassword) GetTransformedData() []byte {
	if x != nil {
		return x.TransformedData
	}
	return nil
}

type UserPassword_TransformerArg struct {
	state         protoimpl.MessageState             `protogen:"open.v1"`
	Key           *string                            `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
	Value         *UserPassword_TransformerArg_Value `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserPassword_TransformerArg) Reset() {
	*x = UserPassword_TransformerArg{}
	mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UserPassword_TransformerArg) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UserPassword_TransformerArg) ProtoMessage() {}

func (x *UserPassword_TransformerArg) ProtoReflect() protoreflect.Message {
	mi := &file_waUserPassword_WAWebProtobufsUserPassword_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 UserPassword_TransformerArg.ProtoReflect.Descriptor instead.
func (*UserPassword_TransformerArg) Descriptor() ([]byte, []int) {
	return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0, 0}
}

func (x *UserPassword_TransformerArg) GetKey() string {
	if x != nil && x.Key != nil {
		return *x.Key
	}
	return ""
}

func (x *UserPassword_TransformerArg) GetValue() *UserPassword_TransformerArg_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

type UserPassword_TransformerArg_Value struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Value:
	//
	//	*UserPassword_TransformerArg_Value_AsBlob
	//	*UserPassword_TransformerArg_Value_AsUnsignedInteger
	Value         isUserPassword_TransformerArg_Value_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UserPassword_TransformerArg_Value) Reset() {
	*x = UserPassword_TransformerArg_Value{}
	mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UserPassword_TransformerArg_Value) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UserPassword_TransformerArg_Value) ProtoMessage() {}

func (x *UserPassword_TransformerArg_Value) ProtoReflect() protoreflect.Message {
	mi := &file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[2]
	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 UserPassword_TransformerArg_Value.ProtoReflect.Descriptor instead.
func (*UserPassword_TransformerArg_Value) Descriptor() ([]byte, []int) {
	return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP(), []int{0, 0, 0}
}

func (x *UserPassword_TransformerArg_Value) GetValue() isUserPassword_TransformerArg_Value_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *UserPassword_TransformerArg_Value) GetAsBlob() []byte {
	if x != nil {
		if x, ok := x.Value.(*UserPassword_TransformerArg_Value_AsBlob); ok {
			return x.AsBlob
		}
	}
	return nil
}

func (x *UserPassword_TransformerArg_Value) GetAsUnsignedInteger() uint32 {
	if x != nil {
		if x, ok := x.Value.(*UserPassword_TransformerArg_Value_AsUnsignedInteger); ok {
			return x.AsUnsignedInteger
		}
	}
	return 0
}

type isUserPassword_TransformerArg_Value_Value interface {
	isUserPassword_TransformerArg_Value_Value()
}

type UserPassword_TransformerArg_Value_AsBlob struct {
	AsBlob []byte `protobuf:"bytes,1,opt,name=asBlob,oneof"`
}

type UserPassword_TransformerArg_Value_AsUnsignedInteger struct {
	AsUnsignedInteger uint32 `protobuf:"varint,2,opt,name=asUnsignedInteger,oneof"`
}

func (*UserPassword_TransformerArg_Value_AsBlob) isUserPassword_TransformerArg_Value_Value() {}

func (*UserPassword_TransformerArg_Value_AsUnsignedInteger) isUserPassword_TransformerArg_Value_Value() {
}

var File_waUserPassword_WAWebProtobufsUserPassword_proto protoreflect.FileDescriptor

const file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc = "" +
	"\n" +
	"/waUserPassword/WAWebProtobufsUserPassword.proto\x12\x1aWAWebProtobufsUserPassword\"\x86\x05\n" +
	"\fUserPassword\x12M\n" +
	"\bencoding\x18\x01 \x01(\x0e21.WAWebProtobufsUserPassword.UserPassword.EncodingR\bencoding\x12V\n" +
	"\vtransformer\x18\x02 \x01(\x0e24.WAWebProtobufsUserPassword.UserPassword.TransformerR\vtransformer\x12_\n" +
	"\x0etransformerArg\x18\x03 \x03(\v27.WAWebProtobufsUserPassword.UserPassword.TransformerArgR\x0etransformerArg\x12(\n" +
	"\x0ftransformedData\x18\x04 \x01(\fR\x0ftransformedData\x1a\xd3\x01\n" +
	"\x0eTransformerArg\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12S\n" +
	"\x05value\x18\x02 \x01(\v2=.WAWebProtobufsUserPassword.UserPassword.TransformerArg.ValueR\x05value\x1aZ\n" +
	"\x05Value\x12\x18\n" +
	"\x06asBlob\x18\x01 \x01(\fH\x00R\x06asBlob\x12.\n" +
	"\x11asUnsignedInteger\x18\x02 \x01(\rH\x00R\x11asUnsignedIntegerB\a\n" +
	"\x05value\"G\n" +
	"\vTransformer\x12\b\n" +
	"\x04NONE\x10\x00\x12\x16\n" +
	"\x12PBKDF2_HMAC_SHA512\x10\x01\x12\x16\n" +
	"\x12PBKDF2_HMAC_SHA384\x10\x02\"%\n" +
	"\bEncoding\x12\b\n" +
	"\x04UTF8\x10\x00\x12\x0f\n" +
	"\vUTF8_BROKEN\x10\x01B*Z(git.bobomao.top/joey/testwh/proto/waUserPassword"

var (
	file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescOnce sync.Once
	file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescData []byte
)

func file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescGZIP() []byte {
	file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescOnce.Do(func() {
		file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc), len(file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc)))
	})
	return file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDescData
}

var file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_waUserPassword_WAWebProtobufsUserPassword_proto_goTypes = []any{
	(UserPassword_Transformer)(0),             // 0: WAWebProtobufsUserPassword.UserPassword.Transformer
	(UserPassword_Encoding)(0),                // 1: WAWebProtobufsUserPassword.UserPassword.Encoding
	(*UserPassword)(nil),                      // 2: WAWebProtobufsUserPassword.UserPassword
	(*UserPassword_TransformerArg)(nil),       // 3: WAWebProtobufsUserPassword.UserPassword.TransformerArg
	(*UserPassword_TransformerArg_Value)(nil), // 4: WAWebProtobufsUserPassword.UserPassword.TransformerArg.Value
}
var file_waUserPassword_WAWebProtobufsUserPassword_proto_depIdxs = []int32{
	1, // 0: WAWebProtobufsUserPassword.UserPassword.encoding:type_name -> WAWebProtobufsUserPassword.UserPassword.Encoding
	0, // 1: WAWebProtobufsUserPassword.UserPassword.transformer:type_name -> WAWebProtobufsUserPassword.UserPassword.Transformer
	3, // 2: WAWebProtobufsUserPassword.UserPassword.transformerArg:type_name -> WAWebProtobufsUserPassword.UserPassword.TransformerArg
	4, // 3: WAWebProtobufsUserPassword.UserPassword.TransformerArg.value:type_name -> WAWebProtobufsUserPassword.UserPassword.TransformerArg.Value
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_waUserPassword_WAWebProtobufsUserPassword_proto_init() }
func file_waUserPassword_WAWebProtobufsUserPassword_proto_init() {
	if File_waUserPassword_WAWebProtobufsUserPassword_proto != nil {
		return
	}
	file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes[2].OneofWrappers = []any{
		(*UserPassword_TransformerArg_Value_AsBlob)(nil),
		(*UserPassword_TransformerArg_Value_AsUnsignedInteger)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc), len(file_waUserPassword_WAWebProtobufsUserPassword_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_waUserPassword_WAWebProtobufsUserPassword_proto_goTypes,
		DependencyIndexes: file_waUserPassword_WAWebProtobufsUserPassword_proto_depIdxs,
		EnumInfos:         file_waUserPassword_WAWebProtobufsUserPassword_proto_enumTypes,
		MessageInfos:      file_waUserPassword_WAWebProtobufsUserPassword_proto_msgTypes,
	}.Build()
	File_waUserPassword_WAWebProtobufsUserPassword_proto = out.File
	file_waUserPassword_WAWebProtobufsUserPassword_proto_goTypes = nil
	file_waUserPassword_WAWebProtobufsUserPassword_proto_depIdxs = nil
}
