// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11-devel
// 	protoc        (unknown)
// source: resource/definitions/proto/proto.proto

package proto

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

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

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

// LinuxIDMapping specifies UID/GID mappings.
type LinuxIDMapping struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ContainerId   uint32                 `protobuf:"varint,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	HostId        uint32                 `protobuf:"varint,2,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"`
	Size          uint32                 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LinuxIDMapping) ProtoMessage() {}

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

func (x *LinuxIDMapping) GetContainerId() uint32 {
	if x != nil {
		return x.ContainerId
	}
	return 0
}

func (x *LinuxIDMapping) GetHostId() uint32 {
	if x != nil {
		return x.HostId
	}
	return 0
}

func (x *LinuxIDMapping) GetSize() uint32 {
	if x != nil {
		return x.Size
	}
	return 0
}

// Mount specifies a mount for a container.
type Mount struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Destination   string                 `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	Type          string                 `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Source        string                 `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	Options       []string               `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"`
	UidMappings   []*LinuxIDMapping      `protobuf:"bytes,5,rep,name=uid_mappings,json=uidMappings,proto3" json:"uid_mappings,omitempty"`
	GidMappings   []*LinuxIDMapping      `protobuf:"bytes,6,rep,name=gid_mappings,json=gidMappings,proto3" json:"gid_mappings,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Mount) ProtoMessage() {}

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

func (x *Mount) GetDestination() string {
	if x != nil {
		return x.Destination
	}
	return ""
}

func (x *Mount) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *Mount) GetSource() string {
	if x != nil {
		return x.Source
	}
	return ""
}

func (x *Mount) GetOptions() []string {
	if x != nil {
		return x.Options
	}
	return nil
}

func (x *Mount) GetUidMappings() []*LinuxIDMapping {
	if x != nil {
		return x.UidMappings
	}
	return nil
}

func (x *Mount) GetGidMappings() []*LinuxIDMapping {
	if x != nil {
		return x.GidMappings
	}
	return nil
}

var File_resource_definitions_proto_proto_proto protoreflect.FileDescriptor

const file_resource_definitions_proto_proto_proto_rawDesc = "" +
	"\n" +
	"&resource/definitions/proto/proto.proto\x12 talos.resource.definitions.proto\"`\n" +
	"\x0eLinuxIDMapping\x12!\n" +
	"\fcontainer_id\x18\x01 \x01(\rR\vcontainerId\x12\x17\n" +
	"\ahost_id\x18\x02 \x01(\rR\x06hostId\x12\x12\n" +
	"\x04size\x18\x03 \x01(\rR\x04size\"\x99\x02\n" +
	"\x05Mount\x12 \n" +
	"\vdestination\x18\x01 \x01(\tR\vdestination\x12\x12\n" +
	"\x04type\x18\x02 \x01(\tR\x04type\x12\x16\n" +
	"\x06source\x18\x03 \x01(\tR\x06source\x12\x18\n" +
	"\aoptions\x18\x04 \x03(\tR\aoptions\x12S\n" +
	"\fuid_mappings\x18\x05 \x03(\v20.talos.resource.definitions.proto.LinuxIDMappingR\vuidMappings\x12S\n" +
	"\fgid_mappings\x18\x06 \x03(\v20.talos.resource.definitions.proto.LinuxIDMappingR\vgidMappingsBt\n" +
	"(dev.talos.api.resource.definitions.protoZHgithub.com/siderolabs/talos/pkg/machinery/api/resource/definitions/protob\x06proto3"

var (
	file_resource_definitions_proto_proto_proto_rawDescOnce sync.Once
	file_resource_definitions_proto_proto_proto_rawDescData []byte
)

func file_resource_definitions_proto_proto_proto_rawDescGZIP() []byte {
	file_resource_definitions_proto_proto_proto_rawDescOnce.Do(func() {
		file_resource_definitions_proto_proto_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_resource_definitions_proto_proto_proto_rawDesc), len(file_resource_definitions_proto_proto_proto_rawDesc)))
	})
	return file_resource_definitions_proto_proto_proto_rawDescData
}

var file_resource_definitions_proto_proto_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_resource_definitions_proto_proto_proto_goTypes = []any{
	(*LinuxIDMapping)(nil), // 0: talos.resource.definitions.proto.LinuxIDMapping
	(*Mount)(nil),          // 1: talos.resource.definitions.proto.Mount
}
var file_resource_definitions_proto_proto_proto_depIdxs = []int32{
	0, // 0: talos.resource.definitions.proto.Mount.uid_mappings:type_name -> talos.resource.definitions.proto.LinuxIDMapping
	0, // 1: talos.resource.definitions.proto.Mount.gid_mappings:type_name -> talos.resource.definitions.proto.LinuxIDMapping
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_resource_definitions_proto_proto_proto_init() }
func file_resource_definitions_proto_proto_proto_init() {
	if File_resource_definitions_proto_proto_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_resource_definitions_proto_proto_proto_rawDesc), len(file_resource_definitions_proto_proto_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_resource_definitions_proto_proto_proto_goTypes,
		DependencyIndexes: file_resource_definitions_proto_proto_proto_depIdxs,
		MessageInfos:      file_resource_definitions_proto_proto_proto_msgTypes,
	}.Build()
	File_resource_definitions_proto_proto_proto = out.File
	file_resource_definitions_proto_proto_proto_goTypes = nil
	file_resource_definitions_proto_proto_proto_depIdxs = nil
}
