// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/monitoring/v3/link_item.proto

package monitoring

import (
	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 LinkItem struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Type:
	//
	//	*LinkItem_Link
	//	*LinkItem_Group
	Type          isLinkItem_Type `protobuf_oneof:"type"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LinkItem) ProtoMessage() {}

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

func (x *LinkItem) GetType() isLinkItem_Type {
	if x != nil {
		return x.Type
	}
	return nil
}

func (x *LinkItem) GetLink() *Link {
	if x != nil {
		if x, ok := x.Type.(*LinkItem_Link); ok {
			return x.Link
		}
	}
	return nil
}

func (x *LinkItem) GetGroup() *LinkItem_LinkGroup {
	if x != nil {
		if x, ok := x.Type.(*LinkItem_Group); ok {
			return x.Group
		}
	}
	return nil
}

type isLinkItem_Type interface {
	isLinkItem_Type()
}

type LinkItem_Link struct {
	Link *Link `protobuf:"bytes,1,opt,name=link,proto3,oneof"`
}

type LinkItem_Group struct {
	Group *LinkItem_LinkGroup `protobuf:"bytes,2,opt,name=group,proto3,oneof"`
}

func (*LinkItem_Link) isLinkItem_Type() {}

func (*LinkItem_Group) isLinkItem_Type() {}

type LinkItem_LinkGroup struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Title         string                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Items         []*LinkItem            `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LinkItem_LinkGroup) ProtoMessage() {}

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

func (x *LinkItem_LinkGroup) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *LinkItem_LinkGroup) GetItems() []*LinkItem {
	if x != nil {
		return x.Items
	}
	return nil
}

var File_yandex_cloud_monitoring_v3_link_item_proto protoreflect.FileDescriptor

const file_yandex_cloud_monitoring_v3_link_item_proto_rawDesc = "" +
	"\n" +
	"*yandex/cloud/monitoring/v3/link_item.proto\x12\x1ayandex.cloud.monitoring.v3\x1a%yandex/cloud/monitoring/v3/link.proto\"\xf1\x01\n" +
	"\bLinkItem\x126\n" +
	"\x04link\x18\x01 \x01(\v2 .yandex.cloud.monitoring.v3.LinkH\x00R\x04link\x12F\n" +
	"\x05group\x18\x02 \x01(\v2..yandex.cloud.monitoring.v3.LinkItem.LinkGroupH\x00R\x05group\x1a]\n" +
	"\tLinkGroup\x12\x14\n" +
	"\x05title\x18\x01 \x01(\tR\x05title\x12:\n" +
	"\x05items\x18\x02 \x03(\v2$.yandex.cloud.monitoring.v3.LinkItemR\x05itemsB\x06\n" +
	"\x04typeBk\n" +
	"\x1eyandex.cloud.api.monitoring.v3ZIgithub.com/yandex-cloud/go-genproto/yandex/cloud/monitoring/v3;monitoringb\x06proto3"

var (
	file_yandex_cloud_monitoring_v3_link_item_proto_rawDescOnce sync.Once
	file_yandex_cloud_monitoring_v3_link_item_proto_rawDescData []byte
)

func file_yandex_cloud_monitoring_v3_link_item_proto_rawDescGZIP() []byte {
	file_yandex_cloud_monitoring_v3_link_item_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_monitoring_v3_link_item_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_monitoring_v3_link_item_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_link_item_proto_rawDesc)))
	})
	return file_yandex_cloud_monitoring_v3_link_item_proto_rawDescData
}

var file_yandex_cloud_monitoring_v3_link_item_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_monitoring_v3_link_item_proto_goTypes = []any{
	(*LinkItem)(nil),           // 0: yandex.cloud.monitoring.v3.LinkItem
	(*LinkItem_LinkGroup)(nil), // 1: yandex.cloud.monitoring.v3.LinkItem.LinkGroup
	(*Link)(nil),               // 2: yandex.cloud.monitoring.v3.Link
}
var file_yandex_cloud_monitoring_v3_link_item_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.monitoring.v3.LinkItem.link:type_name -> yandex.cloud.monitoring.v3.Link
	1, // 1: yandex.cloud.monitoring.v3.LinkItem.group:type_name -> yandex.cloud.monitoring.v3.LinkItem.LinkGroup
	0, // 2: yandex.cloud.monitoring.v3.LinkItem.LinkGroup.items:type_name -> yandex.cloud.monitoring.v3.LinkItem
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_yandex_cloud_monitoring_v3_link_item_proto_init() }
func file_yandex_cloud_monitoring_v3_link_item_proto_init() {
	if File_yandex_cloud_monitoring_v3_link_item_proto != nil {
		return
	}
	file_yandex_cloud_monitoring_v3_link_proto_init()
	file_yandex_cloud_monitoring_v3_link_item_proto_msgTypes[0].OneofWrappers = []any{
		(*LinkItem_Link)(nil),
		(*LinkItem_Group)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_monitoring_v3_link_item_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_link_item_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_monitoring_v3_link_item_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_monitoring_v3_link_item_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_monitoring_v3_link_item_proto_msgTypes,
	}.Build()
	File_yandex_cloud_monitoring_v3_link_item_proto = out.File
	file_yandex_cloud_monitoring_v3_link_item_proto_goTypes = nil
	file_yandex_cloud_monitoring_v3_link_item_proto_depIdxs = nil
}
