// 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_progress.proto

package store

import (
	timestamp "github.com/hashicorp/boundary/internal/db/timestamp"
	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 DataKeyVersionDestructionJobProgress struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The id of the data key version that is being revoked
	// @inject_tag: `gorm:"not_null"`
	KeyId string `protobuf:"bytes,10,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty" gorm:"not_null"`
	// Scope id this data key version belongs to.
	// @inject_tag: `gorm:"not_null"`
	ScopeId string `protobuf:"bytes,20,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty" gorm:"not_null"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"not_null"`
	CreateTime *timestamp.Timestamp `protobuf:"bytes,30,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"not_null"`
	// The status of this data key version destruction job
	// One of "pending", "running" or "completed"
	// @inject_tag: `gorm:"not_null"`
	Status string `protobuf:"bytes,40,opt,name=status,proto3" json:"status,omitempty" gorm:"not_null"`
	// The number of rows that have been rewrapped
	// @inject_tag: `gorm:"not_null"`
	CompletedCount int64 `protobuf:"varint,50,opt,name=completed_count,json=completedCount,proto3" json:"completed_count,omitempty" gorm:"not_null"`
	// The total number of rows that need rewrapping
	// @inject_tag: `gorm:"not_null"`
	TotalCount    int64 `protobuf:"varint,60,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty" gorm:"not_null"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DataKeyVersionDestructionJobProgress) ProtoMessage() {}

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

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

func (x *DataKeyVersionDestructionJobProgress) GetScopeId() string {
	if x != nil {
		return x.ScopeId
	}
	return ""
}

func (x *DataKeyVersionDestructionJobProgress) GetCreateTime() *timestamp.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *DataKeyVersionDestructionJobProgress) GetStatus() string {
	if x != nil {
		return x.Status
	}
	return ""
}

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

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

var File_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto protoreflect.FileDescriptor

const file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDesc = "" +
	"\n" +
	"Ocontroller/storage/kms/store/v1/data_key_version_destruction_job_progress.proto\x12\x1fcontroller.storage.kms.store.v1\x1a/controller/storage/timestamp/v1/timestamp.proto\"\x87\x02\n" +
	"$DataKeyVersionDestructionJobProgress\x12\x15\n" +
	"\x06key_id\x18\n" +
	" \x01(\tR\x05keyId\x12\x19\n" +
	"\bscope_id\x18\x14 \x01(\tR\ascopeId\x12K\n" +
	"\vcreate_time\x18\x1e \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
	"createTime\x12\x16\n" +
	"\x06status\x18( \x01(\tR\x06status\x12'\n" +
	"\x0fcompleted_count\x182 \x01(\x03R\x0ecompletedCount\x12\x1f\n" +
	"\vtotal_count\x18< \x01(\x03R\n" +
	"totalCountB8Z6github.com/hashicorp/boundary/internal/kms/store;storeb\x06proto3"

var (
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDescOnce sync.Once
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDescData []byte
)

func file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDescGZIP() []byte {
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDescOnce.Do(func() {
		file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDesc), len(file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDesc)))
	})
	return file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDescData
}

var file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_goTypes = []any{
	(*DataKeyVersionDestructionJobProgress)(nil), // 0: controller.storage.kms.store.v1.DataKeyVersionDestructionJobProgress
	(*timestamp.Timestamp)(nil),                  // 1: controller.storage.timestamp.v1.Timestamp
}
var file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_depIdxs = []int32{
	1, // 0: controller.storage.kms.store.v1.DataKeyVersionDestructionJobProgress.create_time:type_name -> controller.storage.timestamp.v1.Timestamp
	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_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_init()
}
func file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_init() {
	if File_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_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_progress_proto_rawDesc), len(file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_goTypes,
		DependencyIndexes: file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_depIdxs,
		MessageInfos:      file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_msgTypes,
	}.Build()
	File_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto = out.File
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_goTypes = nil
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_progress_proto_depIdxs = nil
}
