// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/monitoring/v3/widget.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)
)

// Widget.
type Widget struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. Widget layout position.
	Position *Widget_LayoutPosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	// Required. Widget data.
	//
	// Types that are valid to be assigned to Widget:
	//
	//	*Widget_Text
	//	*Widget_Title
	//	*Widget_Chart
	//	*Widget_MultiSourceChart
	//	*Widget_Group
	Widget        isWidget_Widget `protobuf_oneof:"widget"`
	Links         []*LinkItem     `protobuf:"bytes,12,rep,name=links,proto3" json:"links,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Widget) ProtoMessage() {}

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

func (x *Widget) GetPosition() *Widget_LayoutPosition {
	if x != nil {
		return x.Position
	}
	return nil
}

func (x *Widget) GetWidget() isWidget_Widget {
	if x != nil {
		return x.Widget
	}
	return nil
}

func (x *Widget) GetText() *TextWidget {
	if x != nil {
		if x, ok := x.Widget.(*Widget_Text); ok {
			return x.Text
		}
	}
	return nil
}

func (x *Widget) GetTitle() *TitleWidget {
	if x != nil {
		if x, ok := x.Widget.(*Widget_Title); ok {
			return x.Title
		}
	}
	return nil
}

func (x *Widget) GetChart() *ChartWidget {
	if x != nil {
		if x, ok := x.Widget.(*Widget_Chart); ok {
			return x.Chart
		}
	}
	return nil
}

func (x *Widget) GetMultiSourceChart() *MultiSourceChartWidget {
	if x != nil {
		if x, ok := x.Widget.(*Widget_MultiSourceChart); ok {
			return x.MultiSourceChart
		}
	}
	return nil
}

func (x *Widget) GetGroup() *GroupWidget {
	if x != nil {
		if x, ok := x.Widget.(*Widget_Group); ok {
			return x.Group
		}
	}
	return nil
}

func (x *Widget) GetLinks() []*LinkItem {
	if x != nil {
		return x.Links
	}
	return nil
}

type isWidget_Widget interface {
	isWidget_Widget()
}

type Widget_Text struct {
	// Text widget.
	Text *TextWidget `protobuf:"bytes,2,opt,name=text,proto3,oneof"`
}

type Widget_Title struct {
	// Title widget.
	Title *TitleWidget `protobuf:"bytes,3,opt,name=title,proto3,oneof"`
}

type Widget_Chart struct {
	// Chart widget.
	Chart *ChartWidget `protobuf:"bytes,5,opt,name=chart,proto3,oneof"`
}

type Widget_MultiSourceChart struct {
	// Multi-source chart widget.
	MultiSourceChart *MultiSourceChartWidget `protobuf:"bytes,10,opt,name=multi_source_chart,json=multiSourceChart,proto3,oneof"`
}

type Widget_Group struct {
	// Group widget.
	Group *GroupWidget `protobuf:"bytes,11,opt,name=group,proto3,oneof"`
}

func (*Widget_Text) isWidget_Widget() {}

func (*Widget_Title) isWidget_Widget() {}

func (*Widget_Chart) isWidget_Widget() {}

func (*Widget_MultiSourceChart) isWidget_Widget() {}

func (*Widget_Group) isWidget_Widget() {}

// Layout item for widget item positioning.
type Widget_LayoutPosition struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. X-axis top-left corner coordinate.
	X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	// Required. Y-axis top-left corner coordinate.
	Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// Required. Weight.
	W int64 `protobuf:"varint,3,opt,name=w,proto3" json:"w,omitempty"`
	// Required. Height.
	H             int64 `protobuf:"varint,4,opt,name=h,proto3" json:"h,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Widget_LayoutPosition) ProtoMessage() {}

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

func (x *Widget_LayoutPosition) GetX() int64 {
	if x != nil {
		return x.X
	}
	return 0
}

func (x *Widget_LayoutPosition) GetY() int64 {
	if x != nil {
		return x.Y
	}
	return 0
}

func (x *Widget_LayoutPosition) GetW() int64 {
	if x != nil {
		return x.W
	}
	return 0
}

func (x *Widget_LayoutPosition) GetH() int64 {
	if x != nil {
		return x.H
	}
	return 0
}

var File_yandex_cloud_monitoring_v3_widget_proto protoreflect.FileDescriptor

const file_yandex_cloud_monitoring_v3_widget_proto_rawDesc = "" +
	"\n" +
	"'yandex/cloud/monitoring/v3/widget.proto\x12\x1ayandex.cloud.monitoring.v3\x1a-yandex/cloud/monitoring/v3/chart_widget.proto\x1a,yandex/cloud/monitoring/v3/text_widget.proto\x1a-yandex/cloud/monitoring/v3/title_widget.proto\x1a:yandex/cloud/monitoring/v3/multi_source_chart_widget.proto\x1a*yandex/cloud/monitoring/v3/link_item.proto\x1a-yandex/cloud/monitoring/v3/group_widget.proto\"\xd8\x04\n" +
	"\x06Widget\x12M\n" +
	"\bposition\x18\x01 \x01(\v21.yandex.cloud.monitoring.v3.Widget.LayoutPositionR\bposition\x12<\n" +
	"\x04text\x18\x02 \x01(\v2&.yandex.cloud.monitoring.v3.TextWidgetH\x00R\x04text\x12?\n" +
	"\x05title\x18\x03 \x01(\v2'.yandex.cloud.monitoring.v3.TitleWidgetH\x00R\x05title\x12?\n" +
	"\x05chart\x18\x05 \x01(\v2'.yandex.cloud.monitoring.v3.ChartWidgetH\x00R\x05chart\x12b\n" +
	"\x12multi_source_chart\x18\n" +
	" \x01(\v22.yandex.cloud.monitoring.v3.MultiSourceChartWidgetH\x00R\x10multiSourceChart\x12?\n" +
	"\x05group\x18\v \x01(\v2'.yandex.cloud.monitoring.v3.GroupWidgetH\x00R\x05group\x12:\n" +
	"\x05links\x18\f \x03(\v2$.yandex.cloud.monitoring.v3.LinkItemR\x05links\x1aH\n" +
	"\x0eLayoutPosition\x12\f\n" +
	"\x01x\x18\x01 \x01(\x03R\x01x\x12\f\n" +
	"\x01y\x18\x02 \x01(\x03R\x01y\x12\f\n" +
	"\x01w\x18\x03 \x01(\x03R\x01w\x12\f\n" +
	"\x01h\x18\x04 \x01(\x03R\x01hB\b\n" +
	"\x06widgetJ\x04\b\x04\x10\x05J\x04\b\x06\x10\n" +
	"Bk\n" +
	"\x1eyandex.cloud.api.monitoring.v3ZIgithub.com/yandex-cloud/go-genproto/yandex/cloud/monitoring/v3;monitoringb\x06proto3"

var (
	file_yandex_cloud_monitoring_v3_widget_proto_rawDescOnce sync.Once
	file_yandex_cloud_monitoring_v3_widget_proto_rawDescData []byte
)

func file_yandex_cloud_monitoring_v3_widget_proto_rawDescGZIP() []byte {
	file_yandex_cloud_monitoring_v3_widget_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_monitoring_v3_widget_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_monitoring_v3_widget_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_widget_proto_rawDesc)))
	})
	return file_yandex_cloud_monitoring_v3_widget_proto_rawDescData
}

var file_yandex_cloud_monitoring_v3_widget_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_monitoring_v3_widget_proto_goTypes = []any{
	(*Widget)(nil),                 // 0: yandex.cloud.monitoring.v3.Widget
	(*Widget_LayoutPosition)(nil),  // 1: yandex.cloud.monitoring.v3.Widget.LayoutPosition
	(*TextWidget)(nil),             // 2: yandex.cloud.monitoring.v3.TextWidget
	(*TitleWidget)(nil),            // 3: yandex.cloud.monitoring.v3.TitleWidget
	(*ChartWidget)(nil),            // 4: yandex.cloud.monitoring.v3.ChartWidget
	(*MultiSourceChartWidget)(nil), // 5: yandex.cloud.monitoring.v3.MultiSourceChartWidget
	(*GroupWidget)(nil),            // 6: yandex.cloud.monitoring.v3.GroupWidget
	(*LinkItem)(nil),               // 7: yandex.cloud.monitoring.v3.LinkItem
}
var file_yandex_cloud_monitoring_v3_widget_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.monitoring.v3.Widget.position:type_name -> yandex.cloud.monitoring.v3.Widget.LayoutPosition
	2, // 1: yandex.cloud.monitoring.v3.Widget.text:type_name -> yandex.cloud.monitoring.v3.TextWidget
	3, // 2: yandex.cloud.monitoring.v3.Widget.title:type_name -> yandex.cloud.monitoring.v3.TitleWidget
	4, // 3: yandex.cloud.monitoring.v3.Widget.chart:type_name -> yandex.cloud.monitoring.v3.ChartWidget
	5, // 4: yandex.cloud.monitoring.v3.Widget.multi_source_chart:type_name -> yandex.cloud.monitoring.v3.MultiSourceChartWidget
	6, // 5: yandex.cloud.monitoring.v3.Widget.group:type_name -> yandex.cloud.monitoring.v3.GroupWidget
	7, // 6: yandex.cloud.monitoring.v3.Widget.links:type_name -> yandex.cloud.monitoring.v3.LinkItem
	7, // [7:7] is the sub-list for method output_type
	7, // [7:7] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_yandex_cloud_monitoring_v3_widget_proto_init() }
func file_yandex_cloud_monitoring_v3_widget_proto_init() {
	if File_yandex_cloud_monitoring_v3_widget_proto != nil {
		return
	}
	file_yandex_cloud_monitoring_v3_chart_widget_proto_init()
	file_yandex_cloud_monitoring_v3_text_widget_proto_init()
	file_yandex_cloud_monitoring_v3_title_widget_proto_init()
	file_yandex_cloud_monitoring_v3_multi_source_chart_widget_proto_init()
	file_yandex_cloud_monitoring_v3_link_item_proto_init()
	file_yandex_cloud_monitoring_v3_group_widget_proto_init()
	file_yandex_cloud_monitoring_v3_widget_proto_msgTypes[0].OneofWrappers = []any{
		(*Widget_Text)(nil),
		(*Widget_Title)(nil),
		(*Widget_Chart)(nil),
		(*Widget_MultiSourceChart)(nil),
		(*Widget_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_widget_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_widget_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_monitoring_v3_widget_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_monitoring_v3_widget_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_monitoring_v3_widget_proto_msgTypes,
	}.Build()
	File_yandex_cloud_monitoring_v3_widget_proto = out.File
	file_yandex_cloud_monitoring_v3_widget_proto_goTypes = nil
	file_yandex_cloud_monitoring_v3_widget_proto_depIdxs = nil
}
