// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.33.2
// source: google/monitoring/dashboard/v1/widget.proto

package dashboardpb

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

	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
)

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 contains a single dashboard component and configuration of how to
// present the component in the dashboard.
type Widget struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. The title of the widget.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Content defines the component used to populate the widget.
	//
	// Types that are valid to be assigned to Content:
	//
	//	*Widget_XyChart
	//	*Widget_Scorecard
	//	*Widget_Text
	//	*Widget_Blank
	//	*Widget_AlertChart
	//	*Widget_TimeSeriesTable
	//	*Widget_CollapsibleGroup
	//	*Widget_LogsPanel
	//	*Widget_IncidentList
	//	*Widget_PieChart
	//	*Widget_ErrorReportingPanel
	//	*Widget_SectionHeader
	//	*Widget_SingleViewGroup
	Content isWidget_Content `protobuf_oneof:"content"`
	// Optional. The widget id. Ids may be made up of alphanumerics, dashes and
	// underscores. Widget ids are optional.
	Id            string `protobuf:"bytes,17,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Widget) Reset() {
	*x = Widget{}
	mi := &file_google_monitoring_dashboard_v1_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_google_monitoring_dashboard_v1_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_google_monitoring_dashboard_v1_widget_proto_rawDescGZIP(), []int{0}
}

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

func (x *Widget) GetContent() isWidget_Content {
	if x != nil {
		return x.Content
	}
	return nil
}

func (x *Widget) GetXyChart() *XyChart {
	if x != nil {
		if x, ok := x.Content.(*Widget_XyChart); ok {
			return x.XyChart
		}
	}
	return nil
}

func (x *Widget) GetScorecard() *Scorecard {
	if x != nil {
		if x, ok := x.Content.(*Widget_Scorecard); ok {
			return x.Scorecard
		}
	}
	return nil
}

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

func (x *Widget) GetBlank() *emptypb.Empty {
	if x != nil {
		if x, ok := x.Content.(*Widget_Blank); ok {
			return x.Blank
		}
	}
	return nil
}

func (x *Widget) GetAlertChart() *AlertChart {
	if x != nil {
		if x, ok := x.Content.(*Widget_AlertChart); ok {
			return x.AlertChart
		}
	}
	return nil
}

func (x *Widget) GetTimeSeriesTable() *TimeSeriesTable {
	if x != nil {
		if x, ok := x.Content.(*Widget_TimeSeriesTable); ok {
			return x.TimeSeriesTable
		}
	}
	return nil
}

func (x *Widget) GetCollapsibleGroup() *CollapsibleGroup {
	if x != nil {
		if x, ok := x.Content.(*Widget_CollapsibleGroup); ok {
			return x.CollapsibleGroup
		}
	}
	return nil
}

func (x *Widget) GetLogsPanel() *LogsPanel {
	if x != nil {
		if x, ok := x.Content.(*Widget_LogsPanel); ok {
			return x.LogsPanel
		}
	}
	return nil
}

func (x *Widget) GetIncidentList() *IncidentList {
	if x != nil {
		if x, ok := x.Content.(*Widget_IncidentList); ok {
			return x.IncidentList
		}
	}
	return nil
}

func (x *Widget) GetPieChart() *PieChart {
	if x != nil {
		if x, ok := x.Content.(*Widget_PieChart); ok {
			return x.PieChart
		}
	}
	return nil
}

func (x *Widget) GetErrorReportingPanel() *ErrorReportingPanel {
	if x != nil {
		if x, ok := x.Content.(*Widget_ErrorReportingPanel); ok {
			return x.ErrorReportingPanel
		}
	}
	return nil
}

func (x *Widget) GetSectionHeader() *SectionHeader {
	if x != nil {
		if x, ok := x.Content.(*Widget_SectionHeader); ok {
			return x.SectionHeader
		}
	}
	return nil
}

func (x *Widget) GetSingleViewGroup() *SingleViewGroup {
	if x != nil {
		if x, ok := x.Content.(*Widget_SingleViewGroup); ok {
			return x.SingleViewGroup
		}
	}
	return nil
}

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

type isWidget_Content interface {
	isWidget_Content()
}

type Widget_XyChart struct {
	// A chart of time series data.
	XyChart *XyChart `protobuf:"bytes,2,opt,name=xy_chart,json=xyChart,proto3,oneof"`
}

type Widget_Scorecard struct {
	// A scorecard summarizing time series data.
	Scorecard *Scorecard `protobuf:"bytes,3,opt,name=scorecard,proto3,oneof"`
}

type Widget_Text struct {
	// A raw string or markdown displaying textual content.
	Text *Text `protobuf:"bytes,4,opt,name=text,proto3,oneof"`
}

type Widget_Blank struct {
	// A blank space.
	Blank *emptypb.Empty `protobuf:"bytes,5,opt,name=blank,proto3,oneof"`
}

type Widget_AlertChart struct {
	// A chart of alert policy data.
	AlertChart *AlertChart `protobuf:"bytes,7,opt,name=alert_chart,json=alertChart,proto3,oneof"`
}

type Widget_TimeSeriesTable struct {
	// A widget that displays time series data in a tabular format.
	TimeSeriesTable *TimeSeriesTable `protobuf:"bytes,8,opt,name=time_series_table,json=timeSeriesTable,proto3,oneof"`
}

type Widget_CollapsibleGroup struct {
	// A widget that groups the other widgets. All widgets that are within
	// the area spanned by the grouping widget are considered member widgets.
	CollapsibleGroup *CollapsibleGroup `protobuf:"bytes,9,opt,name=collapsible_group,json=collapsibleGroup,proto3,oneof"`
}

type Widget_LogsPanel struct {
	// A widget that shows a stream of logs.
	LogsPanel *LogsPanel `protobuf:"bytes,10,opt,name=logs_panel,json=logsPanel,proto3,oneof"`
}

type Widget_IncidentList struct {
	// A widget that shows list of incidents.
	IncidentList *IncidentList `protobuf:"bytes,12,opt,name=incident_list,json=incidentList,proto3,oneof"`
}

type Widget_PieChart struct {
	// A widget that displays timeseries data as a pie chart.
	PieChart *PieChart `protobuf:"bytes,14,opt,name=pie_chart,json=pieChart,proto3,oneof"`
}

type Widget_ErrorReportingPanel struct {
	// A widget that displays a list of error groups.
	ErrorReportingPanel *ErrorReportingPanel `protobuf:"bytes,19,opt,name=error_reporting_panel,json=errorReportingPanel,proto3,oneof"`
}

type Widget_SectionHeader struct {
	// A widget that defines a section header for easier navigation of the
	// dashboard.
	SectionHeader *SectionHeader `protobuf:"bytes,21,opt,name=section_header,json=sectionHeader,proto3,oneof"`
}

type Widget_SingleViewGroup struct {
	// A widget that groups the other widgets by using a dropdown menu.
	SingleViewGroup *SingleViewGroup `protobuf:"bytes,22,opt,name=single_view_group,json=singleViewGroup,proto3,oneof"`
}

func (*Widget_XyChart) isWidget_Content() {}

func (*Widget_Scorecard) isWidget_Content() {}

func (*Widget_Text) isWidget_Content() {}

func (*Widget_Blank) isWidget_Content() {}

func (*Widget_AlertChart) isWidget_Content() {}

func (*Widget_TimeSeriesTable) isWidget_Content() {}

func (*Widget_CollapsibleGroup) isWidget_Content() {}

func (*Widget_LogsPanel) isWidget_Content() {}

func (*Widget_IncidentList) isWidget_Content() {}

func (*Widget_PieChart) isWidget_Content() {}

func (*Widget_ErrorReportingPanel) isWidget_Content() {}

func (*Widget_SectionHeader) isWidget_Content() {}

func (*Widget_SingleViewGroup) isWidget_Content() {}

var File_google_monitoring_dashboard_v1_widget_proto protoreflect.FileDescriptor

const file_google_monitoring_dashboard_v1_widget_proto_rawDesc = "" +
	"\n" +
	"+google/monitoring/dashboard/v1/widget.proto\x12\x1egoogle.monitoring.dashboard.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a/google/monitoring/dashboard/v1/alertchart.proto\x1a6google/monitoring/dashboard/v1/collapsible_group.proto\x1a:google/monitoring/dashboard/v1/error_reporting_panel.proto\x1a2google/monitoring/dashboard/v1/incident_list.proto\x1a/google/monitoring/dashboard/v1/logs_panel.proto\x1a-google/monitoring/dashboard/v1/piechart.proto\x1a.google/monitoring/dashboard/v1/scorecard.proto\x1a3google/monitoring/dashboard/v1/section_header.proto\x1a6google/monitoring/dashboard/v1/single_view_group.proto\x1a*google/monitoring/dashboard/v1/table.proto\x1a)google/monitoring/dashboard/v1/text.proto\x1a,google/monitoring/dashboard/v1/xychart.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xdb\b\n" +
	"\x06Widget\x12\x19\n" +
	"\x05title\x18\x01 \x01(\tB\x03\xe0A\x01R\x05title\x12D\n" +
	"\bxy_chart\x18\x02 \x01(\v2'.google.monitoring.dashboard.v1.XyChartH\x00R\axyChart\x12I\n" +
	"\tscorecard\x18\x03 \x01(\v2).google.monitoring.dashboard.v1.ScorecardH\x00R\tscorecard\x12:\n" +
	"\x04text\x18\x04 \x01(\v2$.google.monitoring.dashboard.v1.TextH\x00R\x04text\x12.\n" +
	"\x05blank\x18\x05 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x05blank\x12M\n" +
	"\valert_chart\x18\a \x01(\v2*.google.monitoring.dashboard.v1.AlertChartH\x00R\n" +
	"alertChart\x12]\n" +
	"\x11time_series_table\x18\b \x01(\v2/.google.monitoring.dashboard.v1.TimeSeriesTableH\x00R\x0ftimeSeriesTable\x12_\n" +
	"\x11collapsible_group\x18\t \x01(\v20.google.monitoring.dashboard.v1.CollapsibleGroupH\x00R\x10collapsibleGroup\x12J\n" +
	"\n" +
	"logs_panel\x18\n" +
	" \x01(\v2).google.monitoring.dashboard.v1.LogsPanelH\x00R\tlogsPanel\x12S\n" +
	"\rincident_list\x18\f \x01(\v2,.google.monitoring.dashboard.v1.IncidentListH\x00R\fincidentList\x12G\n" +
	"\tpie_chart\x18\x0e \x01(\v2(.google.monitoring.dashboard.v1.PieChartH\x00R\bpieChart\x12i\n" +
	"\x15error_reporting_panel\x18\x13 \x01(\v23.google.monitoring.dashboard.v1.ErrorReportingPanelH\x00R\x13errorReportingPanel\x12V\n" +
	"\x0esection_header\x18\x15 \x01(\v2-.google.monitoring.dashboard.v1.SectionHeaderH\x00R\rsectionHeader\x12]\n" +
	"\x11single_view_group\x18\x16 \x01(\v2/.google.monitoring.dashboard.v1.SingleViewGroupH\x00R\x0fsingleViewGroup\x12\x13\n" +
	"\x02id\x18\x11 \x01(\tB\x03\xe0A\x01R\x02idB\t\n" +
	"\acontentB\xf4\x01\n" +
	"\"com.google.monitoring.dashboard.v1B\vWidgetProtoP\x01ZFcloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb\xaa\x02$Google.Cloud.Monitoring.Dashboard.V1\xca\x02$Google\\Cloud\\Monitoring\\Dashboard\\V1\xea\x02(Google::Cloud::Monitoring::Dashboard::V1b\x06proto3"

var (
	file_google_monitoring_dashboard_v1_widget_proto_rawDescOnce sync.Once
	file_google_monitoring_dashboard_v1_widget_proto_rawDescData []byte
)

func file_google_monitoring_dashboard_v1_widget_proto_rawDescGZIP() []byte {
	file_google_monitoring_dashboard_v1_widget_proto_rawDescOnce.Do(func() {
		file_google_monitoring_dashboard_v1_widget_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_monitoring_dashboard_v1_widget_proto_rawDesc), len(file_google_monitoring_dashboard_v1_widget_proto_rawDesc)))
	})
	return file_google_monitoring_dashboard_v1_widget_proto_rawDescData
}

var file_google_monitoring_dashboard_v1_widget_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_google_monitoring_dashboard_v1_widget_proto_goTypes = []any{
	(*Widget)(nil),              // 0: google.monitoring.dashboard.v1.Widget
	(*XyChart)(nil),             // 1: google.monitoring.dashboard.v1.XyChart
	(*Scorecard)(nil),           // 2: google.monitoring.dashboard.v1.Scorecard
	(*Text)(nil),                // 3: google.monitoring.dashboard.v1.Text
	(*emptypb.Empty)(nil),       // 4: google.protobuf.Empty
	(*AlertChart)(nil),          // 5: google.monitoring.dashboard.v1.AlertChart
	(*TimeSeriesTable)(nil),     // 6: google.monitoring.dashboard.v1.TimeSeriesTable
	(*CollapsibleGroup)(nil),    // 7: google.monitoring.dashboard.v1.CollapsibleGroup
	(*LogsPanel)(nil),           // 8: google.monitoring.dashboard.v1.LogsPanel
	(*IncidentList)(nil),        // 9: google.monitoring.dashboard.v1.IncidentList
	(*PieChart)(nil),            // 10: google.monitoring.dashboard.v1.PieChart
	(*ErrorReportingPanel)(nil), // 11: google.monitoring.dashboard.v1.ErrorReportingPanel
	(*SectionHeader)(nil),       // 12: google.monitoring.dashboard.v1.SectionHeader
	(*SingleViewGroup)(nil),     // 13: google.monitoring.dashboard.v1.SingleViewGroup
}
var file_google_monitoring_dashboard_v1_widget_proto_depIdxs = []int32{
	1,  // 0: google.monitoring.dashboard.v1.Widget.xy_chart:type_name -> google.monitoring.dashboard.v1.XyChart
	2,  // 1: google.monitoring.dashboard.v1.Widget.scorecard:type_name -> google.monitoring.dashboard.v1.Scorecard
	3,  // 2: google.monitoring.dashboard.v1.Widget.text:type_name -> google.monitoring.dashboard.v1.Text
	4,  // 3: google.monitoring.dashboard.v1.Widget.blank:type_name -> google.protobuf.Empty
	5,  // 4: google.monitoring.dashboard.v1.Widget.alert_chart:type_name -> google.monitoring.dashboard.v1.AlertChart
	6,  // 5: google.monitoring.dashboard.v1.Widget.time_series_table:type_name -> google.monitoring.dashboard.v1.TimeSeriesTable
	7,  // 6: google.monitoring.dashboard.v1.Widget.collapsible_group:type_name -> google.monitoring.dashboard.v1.CollapsibleGroup
	8,  // 7: google.monitoring.dashboard.v1.Widget.logs_panel:type_name -> google.monitoring.dashboard.v1.LogsPanel
	9,  // 8: google.monitoring.dashboard.v1.Widget.incident_list:type_name -> google.monitoring.dashboard.v1.IncidentList
	10, // 9: google.monitoring.dashboard.v1.Widget.pie_chart:type_name -> google.monitoring.dashboard.v1.PieChart
	11, // 10: google.monitoring.dashboard.v1.Widget.error_reporting_panel:type_name -> google.monitoring.dashboard.v1.ErrorReportingPanel
	12, // 11: google.monitoring.dashboard.v1.Widget.section_header:type_name -> google.monitoring.dashboard.v1.SectionHeader
	13, // 12: google.monitoring.dashboard.v1.Widget.single_view_group:type_name -> google.monitoring.dashboard.v1.SingleViewGroup
	13, // [13:13] is the sub-list for method output_type
	13, // [13:13] is the sub-list for method input_type
	13, // [13:13] is the sub-list for extension type_name
	13, // [13:13] is the sub-list for extension extendee
	0,  // [0:13] is the sub-list for field type_name
}

func init() { file_google_monitoring_dashboard_v1_widget_proto_init() }
func file_google_monitoring_dashboard_v1_widget_proto_init() {
	if File_google_monitoring_dashboard_v1_widget_proto != nil {
		return
	}
	file_google_monitoring_dashboard_v1_alertchart_proto_init()
	file_google_monitoring_dashboard_v1_collapsible_group_proto_init()
	file_google_monitoring_dashboard_v1_error_reporting_panel_proto_init()
	file_google_monitoring_dashboard_v1_incident_list_proto_init()
	file_google_monitoring_dashboard_v1_logs_panel_proto_init()
	file_google_monitoring_dashboard_v1_piechart_proto_init()
	file_google_monitoring_dashboard_v1_scorecard_proto_init()
	file_google_monitoring_dashboard_v1_section_header_proto_init()
	file_google_monitoring_dashboard_v1_single_view_group_proto_init()
	file_google_monitoring_dashboard_v1_table_proto_init()
	file_google_monitoring_dashboard_v1_text_proto_init()
	file_google_monitoring_dashboard_v1_xychart_proto_init()
	file_google_monitoring_dashboard_v1_widget_proto_msgTypes[0].OneofWrappers = []any{
		(*Widget_XyChart)(nil),
		(*Widget_Scorecard)(nil),
		(*Widget_Text)(nil),
		(*Widget_Blank)(nil),
		(*Widget_AlertChart)(nil),
		(*Widget_TimeSeriesTable)(nil),
		(*Widget_CollapsibleGroup)(nil),
		(*Widget_LogsPanel)(nil),
		(*Widget_IncidentList)(nil),
		(*Widget_PieChart)(nil),
		(*Widget_ErrorReportingPanel)(nil),
		(*Widget_SectionHeader)(nil),
		(*Widget_SingleViewGroup)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_monitoring_dashboard_v1_widget_proto_rawDesc), len(file_google_monitoring_dashboard_v1_widget_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_monitoring_dashboard_v1_widget_proto_goTypes,
		DependencyIndexes: file_google_monitoring_dashboard_v1_widget_proto_depIdxs,
		MessageInfos:      file_google_monitoring_dashboard_v1_widget_proto_msgTypes,
	}.Build()
	File_google_monitoring_dashboard_v1_widget_proto = out.File
	file_google_monitoring_dashboard_v1_widget_proto_goTypes = nil
	file_google_monitoring_dashboard_v1_widget_proto_depIdxs = nil
}
