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

package siderolink

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

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

	common "github.com/siderolabs/talos/pkg/machinery/api/common"
)

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

// ConfigSpec describes Siderolink configuration.
type ConfigSpec struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ApiEndpoint   string                 `protobuf:"bytes,1,opt,name=api_endpoint,json=apiEndpoint,proto3" json:"api_endpoint,omitempty"`
	Host          string                 `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	JoinToken     string                 `protobuf:"bytes,3,opt,name=join_token,json=joinToken,proto3" json:"join_token,omitempty"`
	Insecure      bool                   `protobuf:"varint,4,opt,name=insecure,proto3" json:"insecure,omitempty"`
	Tunnel        bool                   `protobuf:"varint,5,opt,name=tunnel,proto3" json:"tunnel,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ConfigSpec) ProtoMessage() {}

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

func (x *ConfigSpec) GetApiEndpoint() string {
	if x != nil {
		return x.ApiEndpoint
	}
	return ""
}

func (x *ConfigSpec) GetHost() string {
	if x != nil {
		return x.Host
	}
	return ""
}

func (x *ConfigSpec) GetJoinToken() string {
	if x != nil {
		return x.JoinToken
	}
	return ""
}

func (x *ConfigSpec) GetInsecure() bool {
	if x != nil {
		return x.Insecure
	}
	return false
}

func (x *ConfigSpec) GetTunnel() bool {
	if x != nil {
		return x.Tunnel
	}
	return false
}

// StatusSpec describes Siderolink status.
type StatusSpec struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Host          string                 `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Connected     bool                   `protobuf:"varint,2,opt,name=connected,proto3" json:"connected,omitempty"`
	LinkName      string                 `protobuf:"bytes,3,opt,name=link_name,json=linkName,proto3" json:"link_name,omitempty"`
	GrpcTunnel    bool                   `protobuf:"varint,4,opt,name=grpc_tunnel,json=grpcTunnel,proto3" json:"grpc_tunnel,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*StatusSpec) ProtoMessage() {}

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

func (x *StatusSpec) GetHost() string {
	if x != nil {
		return x.Host
	}
	return ""
}

func (x *StatusSpec) GetConnected() bool {
	if x != nil {
		return x.Connected
	}
	return false
}

func (x *StatusSpec) GetLinkName() string {
	if x != nil {
		return x.LinkName
	}
	return ""
}

func (x *StatusSpec) GetGrpcTunnel() bool {
	if x != nil {
		return x.GrpcTunnel
	}
	return false
}

// TunnelSpec describes Siderolink GRPC Tunnel configuration.
type TunnelSpec struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ApiEndpoint   string                 `protobuf:"bytes,1,opt,name=api_endpoint,json=apiEndpoint,proto3" json:"api_endpoint,omitempty"`
	LinkName      string                 `protobuf:"bytes,2,opt,name=link_name,json=linkName,proto3" json:"link_name,omitempty"`
	Mtu           int64                  `protobuf:"varint,3,opt,name=mtu,proto3" json:"mtu,omitempty"`
	NodeAddress   *common.NetIPPort      `protobuf:"bytes,4,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TunnelSpec) Reset() {
	*x = TunnelSpec{}
	mi := &file_resource_definitions_siderolink_siderolink_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*TunnelSpec) ProtoMessage() {}

func (x *TunnelSpec) ProtoReflect() protoreflect.Message {
	mi := &file_resource_definitions_siderolink_siderolink_proto_msgTypes[2]
	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 TunnelSpec.ProtoReflect.Descriptor instead.
func (*TunnelSpec) Descriptor() ([]byte, []int) {
	return file_resource_definitions_siderolink_siderolink_proto_rawDescGZIP(), []int{2}
}

func (x *TunnelSpec) GetApiEndpoint() string {
	if x != nil {
		return x.ApiEndpoint
	}
	return ""
}

func (x *TunnelSpec) GetLinkName() string {
	if x != nil {
		return x.LinkName
	}
	return ""
}

func (x *TunnelSpec) GetMtu() int64 {
	if x != nil {
		return x.Mtu
	}
	return 0
}

func (x *TunnelSpec) GetNodeAddress() *common.NetIPPort {
	if x != nil {
		return x.NodeAddress
	}
	return nil
}

var File_resource_definitions_siderolink_siderolink_proto protoreflect.FileDescriptor

const file_resource_definitions_siderolink_siderolink_proto_rawDesc = "" +
	"\n" +
	"0resource/definitions/siderolink/siderolink.proto\x12%talos.resource.definitions.siderolink\x1a\x13common/common.proto\"\x96\x01\n" +
	"\n" +
	"ConfigSpec\x12!\n" +
	"\fapi_endpoint\x18\x01 \x01(\tR\vapiEndpoint\x12\x12\n" +
	"\x04host\x18\x02 \x01(\tR\x04host\x12\x1d\n" +
	"\n" +
	"join_token\x18\x03 \x01(\tR\tjoinToken\x12\x1a\n" +
	"\binsecure\x18\x04 \x01(\bR\binsecure\x12\x16\n" +
	"\x06tunnel\x18\x05 \x01(\bR\x06tunnel\"|\n" +
	"\n" +
	"StatusSpec\x12\x12\n" +
	"\x04host\x18\x01 \x01(\tR\x04host\x12\x1c\n" +
	"\tconnected\x18\x02 \x01(\bR\tconnected\x12\x1b\n" +
	"\tlink_name\x18\x03 \x01(\tR\blinkName\x12\x1f\n" +
	"\vgrpc_tunnel\x18\x04 \x01(\bR\n" +
	"grpcTunnel\"\x94\x01\n" +
	"\n" +
	"TunnelSpec\x12!\n" +
	"\fapi_endpoint\x18\x01 \x01(\tR\vapiEndpoint\x12\x1b\n" +
	"\tlink_name\x18\x02 \x01(\tR\blinkName\x12\x10\n" +
	"\x03mtu\x18\x03 \x01(\x03R\x03mtu\x124\n" +
	"\fnode_address\x18\x04 \x01(\v2\x11.common.NetIPPortR\vnodeAddressB~\n" +
	"-dev.talos.api.resource.definitions.siderolinkZMgithub.com/siderolabs/talos/pkg/machinery/api/resource/definitions/siderolinkb\x06proto3"

var (
	file_resource_definitions_siderolink_siderolink_proto_rawDescOnce sync.Once
	file_resource_definitions_siderolink_siderolink_proto_rawDescData []byte
)

func file_resource_definitions_siderolink_siderolink_proto_rawDescGZIP() []byte {
	file_resource_definitions_siderolink_siderolink_proto_rawDescOnce.Do(func() {
		file_resource_definitions_siderolink_siderolink_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_resource_definitions_siderolink_siderolink_proto_rawDesc), len(file_resource_definitions_siderolink_siderolink_proto_rawDesc)))
	})
	return file_resource_definitions_siderolink_siderolink_proto_rawDescData
}

var file_resource_definitions_siderolink_siderolink_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_resource_definitions_siderolink_siderolink_proto_goTypes = []any{
	(*ConfigSpec)(nil),       // 0: talos.resource.definitions.siderolink.ConfigSpec
	(*StatusSpec)(nil),       // 1: talos.resource.definitions.siderolink.StatusSpec
	(*TunnelSpec)(nil),       // 2: talos.resource.definitions.siderolink.TunnelSpec
	(*common.NetIPPort)(nil), // 3: common.NetIPPort
}
var file_resource_definitions_siderolink_siderolink_proto_depIdxs = []int32{
	3, // 0: talos.resource.definitions.siderolink.TunnelSpec.node_address:type_name -> common.NetIPPort
	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_resource_definitions_siderolink_siderolink_proto_init() }
func file_resource_definitions_siderolink_siderolink_proto_init() {
	if File_resource_definitions_siderolink_siderolink_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_siderolink_siderolink_proto_rawDesc), len(file_resource_definitions_siderolink_siderolink_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_resource_definitions_siderolink_siderolink_proto_goTypes,
		DependencyIndexes: file_resource_definitions_siderolink_siderolink_proto_depIdxs,
		MessageInfos:      file_resource_definitions_siderolink_siderolink_proto_msgTypes,
	}.Build()
	File_resource_definitions_siderolink_siderolink_proto = out.File
	file_resource_definitions_siderolink_siderolink_proto_goTypes = nil
	file_resource_definitions_siderolink_siderolink_proto_depIdxs = nil
}
