// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.12
// 	protoc        (unknown)
// source: machine/md.proto

package machine

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

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

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

// MDDestroyRequest identifies the array device to tear down.
type MDDestroyRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Device is the full array device path to destroy (e.g. "/dev/disk/by-id/md-name-data").
	Device        string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MDDestroyRequest) ProtoMessage() {}

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

func (x *MDDestroyRequest) GetDevice() string {
	if x != nil {
		return x.Device
	}
	return ""
}

var File_machine_md_proto protoreflect.FileDescriptor

const file_machine_md_proto_rawDesc = "" +
	"\n" +
	"\x10machine/md.proto\x12\amachine\x1a\x1bgoogle/protobuf/empty.proto\"*\n" +
	"\x10MDDestroyRequest\x12\x16\n" +
	"\x06device\x18\x01 \x01(\tR\x06device2I\n" +
	"\tMDService\x12<\n" +
	"\aDestroy\x12\x19.machine.MDDestroyRequest\x1a\x16.google.protobuf.EmptyBN\n" +
	"\x15dev.talos.api.machineZ5github.com/siderolabs/talos/pkg/machinery/api/machineb\x06proto3"

var (
	file_machine_md_proto_rawDescOnce sync.Once
	file_machine_md_proto_rawDescData []byte
)

func file_machine_md_proto_rawDescGZIP() []byte {
	file_machine_md_proto_rawDescOnce.Do(func() {
		file_machine_md_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_machine_md_proto_rawDesc), len(file_machine_md_proto_rawDesc)))
	})
	return file_machine_md_proto_rawDescData
}

var file_machine_md_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_machine_md_proto_goTypes = []any{
	(*MDDestroyRequest)(nil), // 0: machine.MDDestroyRequest
	(*emptypb.Empty)(nil),    // 1: google.protobuf.Empty
}
var file_machine_md_proto_depIdxs = []int32{
	0, // 0: machine.MDService.Destroy:input_type -> machine.MDDestroyRequest
	1, // 1: machine.MDService.Destroy:output_type -> google.protobuf.Empty
	1, // [1:2] is the sub-list for method output_type
	0, // [0:1] 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_machine_md_proto_init() }
func file_machine_md_proto_init() {
	if File_machine_md_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_machine_md_proto_rawDesc), len(file_machine_md_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_machine_md_proto_goTypes,
		DependencyIndexes: file_machine_md_proto_depIdxs,
		MessageInfos:      file_machine_md_proto_msgTypes,
	}.Build()
	File_machine_md_proto = out.File
	file_machine_md_proto_goTypes = nil
	file_machine_md_proto_depIdxs = nil
}
