// Copyright IBM Corp. 2020, 2026
// SPDX-License-Identifier: BUSL-1.1

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: controller/storage/kms/store/v1/data_key_version_destruction_job_run.proto

package store

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)
)

// DataKeyVersionDestructionJobRun is used to read and write
// data from the kms_data_key_version_destruction_job_run table.
type DataKeyVersionDestructionJobRun struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// key_id is the private id of the data key version being destroyed.
	// @inject_tag: `gorm:"primary_key"`
	KeyId string `protobuf:"bytes,10,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty" gorm:"primary_key"`
	// table_name is the table name that is being rewrapped by this run.
	// @inject_tag: `gorm:"primary_key"`
	TableName string `protobuf:"bytes,20,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty" gorm:"primary_key"`
	// total_count is the total number of rows that need to be rewrapped
	// in this table.
	// @inject_tag: `gorm:"not_null"`
	TotalCount int64 `protobuf:"varint,30,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty" gorm:"not_null"`
	// completed_count is the number of rows that have completed rewrapping.
	// @inject_tag: `gorm:"not_null"`
	CompletedCount int64 `protobuf:"varint,40,opt,name=completed_count,json=completedCount,proto3" json:"completed_count,omitempty" gorm:"not_null"`
	// is_running defines whether this run is currently running. Only
	// one run is allowed to be running at a time.
	// @inject_tag: `gorm:"not_null"`
	IsRunning     bool `protobuf:"varint,50,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty" gorm:"not_null"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DataKeyVersionDestructionJobRun) ProtoMessage() {}

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

func (x *DataKeyVersionDestructionJobRun) GetKeyId() string {
	if x != nil {
		return x.KeyId
	}
	return ""
}

func (x *DataKeyVersionDestructionJobRun) GetTableName() string {
	if x != nil {
		return x.TableName
	}
	return ""
}

func (x *DataKeyVersionDestructionJobRun) GetTotalCount() int64 {
	if x != nil {
		return x.TotalCount
	}
	return 0
}

func (x *DataKeyVersionDestructionJobRun) GetCompletedCount() int64 {
	if x != nil {
		return x.CompletedCount
	}
	return 0
}

func (x *DataKeyVersionDestructionJobRun) GetIsRunning() bool {
	if x != nil {
		return x.IsRunning
	}
	return false
}

var File_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto protoreflect.FileDescriptor

const file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDesc = "" +
	"\n" +
	"Jcontroller/storage/kms/store/v1/data_key_version_destruction_job_run.proto\x12\x1fcontroller.storage.kms.store.v1\"\xc0\x01\n" +
	"\x1fDataKeyVersionDestructionJobRun\x12\x15\n" +
	"\x06key_id\x18\n" +
	" \x01(\tR\x05keyId\x12\x1d\n" +
	"\n" +
	"table_name\x18\x14 \x01(\tR\ttableName\x12\x1f\n" +
	"\vtotal_count\x18\x1e \x01(\x03R\n" +
	"totalCount\x12'\n" +
	"\x0fcompleted_count\x18( \x01(\x03R\x0ecompletedCount\x12\x1d\n" +
	"\n" +
	"is_running\x182 \x01(\bR\tisRunningB8Z6github.com/hashicorp/boundary/internal/kms/store;storeb\x06proto3"

var (
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDescOnce sync.Once
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDescData []byte
)

func file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDescGZIP() []byte {
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDescOnce.Do(func() {
		file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDesc), len(file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDesc)))
	})
	return file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDescData
}

var file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_goTypes = []any{
	(*DataKeyVersionDestructionJobRun)(nil), // 0: controller.storage.kms.store.v1.DataKeyVersionDestructionJobRun
}
var file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_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_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_init() }
func file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_init() {
	if File_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDesc), len(file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_goTypes,
		DependencyIndexes: file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_depIdxs,
		MessageInfos:      file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_msgTypes,
	}.Build()
	File_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto = out.File
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_goTypes = nil
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_run_proto_depIdxs = nil
}
