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

// DataKeyVersionDestructionJob is used to read and write
// data from the kms_data_key_version_destruction_job table.
type DataKeyVersionDestructionJob 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"`
	// create_time from the RDBMS
	// @inject_tag: `gorm:"default:current_timestamp"`
	CreateTime    *timestamp.Timestamp `protobuf:"bytes,20,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty" gorm:"default:current_timestamp"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DataKeyVersionDestructionJob) ProtoMessage() {}

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

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

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

var File_controller_storage_kms_store_v1_data_key_version_destruction_job_proto protoreflect.FileDescriptor

const file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDesc = "" +
	"\n" +
	"Fcontroller/storage/kms/store/v1/data_key_version_destruction_job.proto\x12\x1fcontroller.storage.kms.store.v1\x1a/controller/storage/timestamp/v1/timestamp.proto\"\x82\x01\n" +
	"\x1cDataKeyVersionDestructionJob\x12\x15\n" +
	"\x06key_id\x18\n" +
	" \x01(\tR\x05keyId\x12K\n" +
	"\vcreate_time\x18\x14 \x01(\v2*.controller.storage.timestamp.v1.TimestampR\n" +
	"createTimeB8Z6github.com/hashicorp/boundary/internal/kms/store;storeb\x06proto3"

var (
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDescOnce sync.Once
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDescData []byte
)

func file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDescGZIP() []byte {
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDescOnce.Do(func() {
		file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDesc), len(file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDesc)))
	})
	return file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDescData
}

var file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_goTypes = []any{
	(*DataKeyVersionDestructionJob)(nil), // 0: controller.storage.kms.store.v1.DataKeyVersionDestructionJob
	(*timestamp.Timestamp)(nil),          // 1: controller.storage.timestamp.v1.Timestamp
}
var file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_depIdxs = []int32{
	1, // 0: controller.storage.kms.store.v1.DataKeyVersionDestructionJob.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_proto_init() }
func file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_init() {
	if File_controller_storage_kms_store_v1_data_key_version_destruction_job_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_proto_rawDesc), len(file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_goTypes,
		DependencyIndexes: file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_depIdxs,
		MessageInfos:      file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_msgTypes,
	}.Build()
	File_controller_storage_kms_store_v1_data_key_version_destruction_job_proto = out.File
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_goTypes = nil
	file_controller_storage_kms_store_v1_data_key_version_destruction_job_proto_depIdxs = nil
}
