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

type GroupWidget struct {
	state          protoimpl.MessageState      `protogen:"open.v1"`
	Id             string                      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title          string                      `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Collapsed      bool                        `protobuf:"varint,3,opt,name=collapsed,proto3" json:"collapsed,omitempty"`
	Widgets        []*GroupWidget_ChildWidget  `protobuf:"bytes,4,rep,name=widgets,proto3" json:"widgets,omitempty"`
	RepeatSettings *GroupWidget_RepeatSettings `protobuf:"bytes,5,opt,name=repeat_settings,json=repeatSettings,proto3" json:"repeat_settings,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*GroupWidget) ProtoMessage() {}

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

func (x *GroupWidget) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

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

func (x *GroupWidget) GetCollapsed() bool {
	if x != nil {
		return x.Collapsed
	}
	return false
}

func (x *GroupWidget) GetWidgets() []*GroupWidget_ChildWidget {
	if x != nil {
		return x.Widgets
	}
	return nil
}

func (x *GroupWidget) GetRepeatSettings() *GroupWidget_RepeatSettings {
	if x != nil {
		return x.RepeatSettings
	}
	return nil
}

type GroupWidget_RepeatSettings struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	RepeatBy      []string               `protobuf:"bytes,1,rep,name=repeat_by,json=repeatBy,proto3" json:"repeat_by,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GroupWidget_RepeatSettings) ProtoMessage() {}

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

func (x *GroupWidget_RepeatSettings) GetRepeatBy() []string {
	if x != nil {
		return x.RepeatBy
	}
	return nil
}

// Layout item for widget item positioning.
type GroupWidget_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 *GroupWidget_LayoutPosition) Reset() {
	*x = GroupWidget_LayoutPosition{}
	mi := &file_yandex_cloud_monitoring_v3_group_widget_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GroupWidget_LayoutPosition) ProtoMessage() {}

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

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

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

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

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

type GroupWidget_ChildWidget struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	Id    string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Links []*LinkItem            `protobuf:"bytes,19,rep,name=links,proto3" json:"links,omitempty"`
	// Widget layout position.
	Position *GroupWidget_LayoutPosition `protobuf:"bytes,20,opt,name=position,proto3" json:"position,omitempty"`
	// Types that are valid to be assigned to Widget:
	//
	//	*GroupWidget_ChildWidget_Text
	//	*GroupWidget_ChildWidget_Title
	//	*GroupWidget_ChildWidget_Chart
	//	*GroupWidget_ChildWidget_MultiSourceChart
	Widget        isGroupWidget_ChildWidget_Widget `protobuf_oneof:"widget"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GroupWidget_ChildWidget) Reset() {
	*x = GroupWidget_ChildWidget{}
	mi := &file_yandex_cloud_monitoring_v3_group_widget_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GroupWidget_ChildWidget) ProtoMessage() {}

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

func (x *GroupWidget_ChildWidget) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

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

func (x *GroupWidget_ChildWidget) GetPosition() *GroupWidget_LayoutPosition {
	if x != nil {
		return x.Position
	}
	return nil
}

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

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

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

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

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

type isGroupWidget_ChildWidget_Widget interface {
	isGroupWidget_ChildWidget_Widget()
}

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

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

type GroupWidget_ChildWidget_Chart struct {
	Chart *ChartWidget `protobuf:"bytes,4,opt,name=chart,proto3,oneof"`
}

type GroupWidget_ChildWidget_MultiSourceChart struct {
	MultiSourceChart *MultiSourceChartWidget `protobuf:"bytes,9,opt,name=multi_source_chart,json=multiSourceChart,proto3,oneof"`
}

func (*GroupWidget_ChildWidget_Text) isGroupWidget_ChildWidget_Widget() {}

func (*GroupWidget_ChildWidget_Title) isGroupWidget_ChildWidget_Widget() {}

func (*GroupWidget_ChildWidget_Chart) isGroupWidget_ChildWidget_Widget() {}

func (*GroupWidget_ChildWidget_MultiSourceChart) isGroupWidget_ChildWidget_Widget() {}

var File_yandex_cloud_monitoring_v3_group_widget_proto protoreflect.FileDescriptor

const file_yandex_cloud_monitoring_v3_group_widget_proto_rawDesc = "" +
	"\n" +
	"-yandex/cloud/monitoring/v3/group_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\"\xe4\x06\n" +
	"\vGroupWidget\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
	"\x05title\x18\x02 \x01(\tR\x05title\x12\x1c\n" +
	"\tcollapsed\x18\x03 \x01(\bR\tcollapsed\x12M\n" +
	"\awidgets\x18\x04 \x03(\v23.yandex.cloud.monitoring.v3.GroupWidget.ChildWidgetR\awidgets\x12_\n" +
	"\x0frepeat_settings\x18\x05 \x01(\v26.yandex.cloud.monitoring.v3.GroupWidget.RepeatSettingsR\x0erepeatSettings\x1a-\n" +
	"\x0eRepeatSettings\x12\x1b\n" +
	"\trepeat_by\x18\x01 \x03(\tR\brepeatBy\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\x01h\x1a\xe7\x03\n" +
	"\vChildWidget\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12:\n" +
	"\x05links\x18\x13 \x03(\v2$.yandex.cloud.monitoring.v3.LinkItemR\x05links\x12R\n" +
	"\bposition\x18\x14 \x01(\v26.yandex.cloud.monitoring.v3.GroupWidget.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\x04 \x01(\v2'.yandex.cloud.monitoring.v3.ChartWidgetH\x00R\x05chart\x12b\n" +
	"\x12multi_source_chart\x18\t \x01(\v22.yandex.cloud.monitoring.v3.MultiSourceChartWidgetH\x00R\x10multiSourceChartB\b\n" +
	"\x06widgetJ\x04\b\x05\x10\tJ\x04\b\n" +
	"\x10\x13Bk\n" +
	"\x1eyandex.cloud.api.monitoring.v3ZIgithub.com/yandex-cloud/go-genproto/yandex/cloud/monitoring/v3;monitoringb\x06proto3"

var (
	file_yandex_cloud_monitoring_v3_group_widget_proto_rawDescOnce sync.Once
	file_yandex_cloud_monitoring_v3_group_widget_proto_rawDescData []byte
)

func file_yandex_cloud_monitoring_v3_group_widget_proto_rawDescGZIP() []byte {
	file_yandex_cloud_monitoring_v3_group_widget_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_monitoring_v3_group_widget_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_monitoring_v3_group_widget_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_group_widget_proto_rawDesc)))
	})
	return file_yandex_cloud_monitoring_v3_group_widget_proto_rawDescData
}

var file_yandex_cloud_monitoring_v3_group_widget_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_monitoring_v3_group_widget_proto_goTypes = []any{
	(*GroupWidget)(nil),                // 0: yandex.cloud.monitoring.v3.GroupWidget
	(*GroupWidget_RepeatSettings)(nil), // 1: yandex.cloud.monitoring.v3.GroupWidget.RepeatSettings
	(*GroupWidget_LayoutPosition)(nil), // 2: yandex.cloud.monitoring.v3.GroupWidget.LayoutPosition
	(*GroupWidget_ChildWidget)(nil),    // 3: yandex.cloud.monitoring.v3.GroupWidget.ChildWidget
	(*LinkItem)(nil),                   // 4: yandex.cloud.monitoring.v3.LinkItem
	(*TextWidget)(nil),                 // 5: yandex.cloud.monitoring.v3.TextWidget
	(*TitleWidget)(nil),                // 6: yandex.cloud.monitoring.v3.TitleWidget
	(*ChartWidget)(nil),                // 7: yandex.cloud.monitoring.v3.ChartWidget
	(*MultiSourceChartWidget)(nil),     // 8: yandex.cloud.monitoring.v3.MultiSourceChartWidget
}
var file_yandex_cloud_monitoring_v3_group_widget_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.monitoring.v3.GroupWidget.widgets:type_name -> yandex.cloud.monitoring.v3.GroupWidget.ChildWidget
	1, // 1: yandex.cloud.monitoring.v3.GroupWidget.repeat_settings:type_name -> yandex.cloud.monitoring.v3.GroupWidget.RepeatSettings
	4, // 2: yandex.cloud.monitoring.v3.GroupWidget.ChildWidget.links:type_name -> yandex.cloud.monitoring.v3.LinkItem
	2, // 3: yandex.cloud.monitoring.v3.GroupWidget.ChildWidget.position:type_name -> yandex.cloud.monitoring.v3.GroupWidget.LayoutPosition
	5, // 4: yandex.cloud.monitoring.v3.GroupWidget.ChildWidget.text:type_name -> yandex.cloud.monitoring.v3.TextWidget
	6, // 5: yandex.cloud.monitoring.v3.GroupWidget.ChildWidget.title:type_name -> yandex.cloud.monitoring.v3.TitleWidget
	7, // 6: yandex.cloud.monitoring.v3.GroupWidget.ChildWidget.chart:type_name -> yandex.cloud.monitoring.v3.ChartWidget
	8, // 7: yandex.cloud.monitoring.v3.GroupWidget.ChildWidget.multi_source_chart:type_name -> yandex.cloud.monitoring.v3.MultiSourceChartWidget
	8, // [8:8] is the sub-list for method output_type
	8, // [8:8] is the sub-list for method input_type
	8, // [8:8] is the sub-list for extension type_name
	8, // [8:8] is the sub-list for extension extendee
	0, // [0:8] is the sub-list for field type_name
}

func init() { file_yandex_cloud_monitoring_v3_group_widget_proto_init() }
func file_yandex_cloud_monitoring_v3_group_widget_proto_init() {
	if File_yandex_cloud_monitoring_v3_group_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_msgTypes[3].OneofWrappers = []any{
		(*GroupWidget_ChildWidget_Text)(nil),
		(*GroupWidget_ChildWidget_Title)(nil),
		(*GroupWidget_ChildWidget_Chart)(nil),
		(*GroupWidget_ChildWidget_MultiSourceChart)(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_group_widget_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_group_widget_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_monitoring_v3_group_widget_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_monitoring_v3_group_widget_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_monitoring_v3_group_widget_proto_msgTypes,
	}.Build()
	File_yandex_cloud_monitoring_v3_group_widget_proto = out.File
	file_yandex_cloud_monitoring_v3_group_widget_proto_goTypes = nil
	file_yandex_cloud_monitoring_v3_group_widget_proto_depIdxs = nil
}
