// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.19.0
// source: external/iam/v2/request/users.proto

package request

import (
	_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
	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 CreateUserReq struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Unique ID. Cannot be changed. Used to sign in.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Display name for local user.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Password for user. Used to sign in.
	Password      string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateUserReq) ProtoMessage() {}

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

func (x *CreateUserReq) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *CreateUserReq) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *CreateUserReq) GetPassword() string {
	if x != nil {
		return x.Password
	}
	return ""
}

type ListUsersReq struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListUsersReq) ProtoMessage() {}

func (x *ListUsersReq) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_request_users_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 ListUsersReq.ProtoReflect.Descriptor instead.
func (*ListUsersReq) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_request_users_proto_rawDescGZIP(), []int{1}
}

type DeleteUserReq struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the user.
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteUserReq) ProtoMessage() {}

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

func (x *DeleteUserReq) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

type GetUserReq struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the user.
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetUserReq) Reset() {
	*x = GetUserReq{}
	mi := &file_external_iam_v2_request_users_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetUserReq) ProtoMessage() {}

func (x *GetUserReq) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_request_users_proto_msgTypes[3]
	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 GetUserReq.ProtoReflect.Descriptor instead.
func (*GetUserReq) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_request_users_proto_rawDescGZIP(), []int{3}
}

func (x *GetUserReq) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

type UpdateUserReq struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the user. Cannot be changed. Used to sign in.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Display name for local user.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Password used to log in. Will overwrite preexisting password.
	Password      string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpdateUserReq) Reset() {
	*x = UpdateUserReq{}
	mi := &file_external_iam_v2_request_users_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateUserReq) ProtoMessage() {}

func (x *UpdateUserReq) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_request_users_proto_msgTypes[4]
	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 UpdateUserReq.ProtoReflect.Descriptor instead.
func (*UpdateUserReq) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_request_users_proto_rawDescGZIP(), []int{4}
}

func (x *UpdateUserReq) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *UpdateUserReq) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *UpdateUserReq) GetPassword() string {
	if x != nil {
		return x.Password
	}
	return ""
}

type UpdateSelfReq struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the user. Cannot be changed. Used to sign in.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Display name for local user.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// New password for user. Used to sign in.
	// Optional, but if included, previous_password is also required.
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// Previous password for user.
	// Optional, but if included, password is also required.
	PreviousPassword string `protobuf:"bytes,4,opt,name=previous_password,json=previousPassword,proto3" json:"previous_password,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *UpdateSelfReq) Reset() {
	*x = UpdateSelfReq{}
	mi := &file_external_iam_v2_request_users_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateSelfReq) ProtoMessage() {}

func (x *UpdateSelfReq) ProtoReflect() protoreflect.Message {
	mi := &file_external_iam_v2_request_users_proto_msgTypes[5]
	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 UpdateSelfReq.ProtoReflect.Descriptor instead.
func (*UpdateSelfReq) Descriptor() ([]byte, []int) {
	return file_external_iam_v2_request_users_proto_rawDescGZIP(), []int{5}
}

func (x *UpdateSelfReq) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *UpdateSelfReq) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *UpdateSelfReq) GetPassword() string {
	if x != nil {
		return x.Password
	}
	return ""
}

func (x *UpdateSelfReq) GetPreviousPassword() string {
	if x != nil {
		return x.PreviousPassword
	}
	return ""
}

var File_external_iam_v2_request_users_proto protoreflect.FileDescriptor

const file_external_iam_v2_request_users_proto_rawDesc = "" +
	"\n" +
	"#external/iam/v2/request/users.proto\x12\x18chef.automate.api.iam.v2\x1a,protoc-gen-swagger/options/annotations.proto\"\xc0\x01\n" +
	"\rCreateUserReq\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
	"\bpassword\x18\x03 \x01(\tR\bpassword:o\x92Al\n" +
	"\x17\xd2\x01\x02id\xd2\x01\x04name\xd2\x01\bpassword2Q\x12O{\"name\": \"Display Name\", \"id\": \"username001rulez\", \"password\": \"aSafePassword\"}\"\x0e\n" +
	"\fListUsersReq\"\x1f\n" +
	"\rDeleteUserReq\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\"\x1c\n" +
	"\n" +
	"GetUserReq\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\"\x92\x01\n" +
	"\rUpdateUserReq\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
	"\bpassword\x18\x03 \x01(\tR\bpassword:A\x92A>\n" +
	"\a\xd2\x01\x04name23\x121{\"name\": \"New Name\", \"password\": \"aSafePassword\"}\"\xf3\x01\n" +
	"\rUpdateSelfReq\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
	"\bpassword\x18\x03 \x01(\tR\bpassword\x12+\n" +
	"\x11previous_password\x18\x04 \x01(\tR\x10previousPassword:u\x92Ar\n" +
	"\a\xd2\x01\x04name2g\x12e{\"name\": \"My New Name\", \"password\": \"aNewSafePassword\", \"previous_password\": \"aPreviousSafePassword\"}B6Z4github.com/chef/automate/api/external/iam/v2/requestb\x06proto3"

var (
	file_external_iam_v2_request_users_proto_rawDescOnce sync.Once
	file_external_iam_v2_request_users_proto_rawDescData []byte
)

func file_external_iam_v2_request_users_proto_rawDescGZIP() []byte {
	file_external_iam_v2_request_users_proto_rawDescOnce.Do(func() {
		file_external_iam_v2_request_users_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_external_iam_v2_request_users_proto_rawDesc), len(file_external_iam_v2_request_users_proto_rawDesc)))
	})
	return file_external_iam_v2_request_users_proto_rawDescData
}

var file_external_iam_v2_request_users_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_external_iam_v2_request_users_proto_goTypes = []any{
	(*CreateUserReq)(nil), // 0: chef.automate.api.iam.v2.CreateUserReq
	(*ListUsersReq)(nil),  // 1: chef.automate.api.iam.v2.ListUsersReq
	(*DeleteUserReq)(nil), // 2: chef.automate.api.iam.v2.DeleteUserReq
	(*GetUserReq)(nil),    // 3: chef.automate.api.iam.v2.GetUserReq
	(*UpdateUserReq)(nil), // 4: chef.automate.api.iam.v2.UpdateUserReq
	(*UpdateSelfReq)(nil), // 5: chef.automate.api.iam.v2.UpdateSelfReq
}
var file_external_iam_v2_request_users_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_external_iam_v2_request_users_proto_init() }
func file_external_iam_v2_request_users_proto_init() {
	if File_external_iam_v2_request_users_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_external_iam_v2_request_users_proto_rawDesc), len(file_external_iam_v2_request_users_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   6,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_external_iam_v2_request_users_proto_goTypes,
		DependencyIndexes: file_external_iam_v2_request_users_proto_depIdxs,
		MessageInfos:      file_external_iam_v2_request_users_proto_msgTypes,
	}.Build()
	File_external_iam_v2_request_users_proto = out.File
	file_external_iam_v2_request_users_proto_goTypes = nil
	file_external_iam_v2_request_users_proto_depIdxs = nil
}
