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

package dashboard

import (
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	empty "github.com/golang/protobuf/ptypes/empty"
	_ "google.golang.org/genproto/googleapis/api/annotations"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

// Widget contains a single dashboard component and configuration of how to
// present the component in the dashboard.
type Widget struct {
	// 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
	Content              isWidget_Content `protobuf_oneof:"content"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (m *Widget) Reset()         { *m = Widget{} }
func (m *Widget) String() string { return proto.CompactTextString(m) }
func (*Widget) ProtoMessage()    {}
func (*Widget) Descriptor() ([]byte, []int) {
	return fileDescriptor_db3d87510c0d13d9, []int{0}
}

func (m *Widget) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_Widget.Unmarshal(m, b)
}
func (m *Widget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_Widget.Marshal(b, m, deterministic)
}
func (m *Widget) XXX_Merge(src proto.Message) {
	xxx_messageInfo_Widget.Merge(m, src)
}
func (m *Widget) XXX_Size() int {
	return xxx_messageInfo_Widget.Size(m)
}
func (m *Widget) XXX_DiscardUnknown() {
	xxx_messageInfo_Widget.DiscardUnknown(m)
}

var xxx_messageInfo_Widget proto.InternalMessageInfo

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

type isWidget_Content interface {
	isWidget_Content()
}

type Widget_XyChart struct {
	XyChart *XyChart `protobuf:"bytes,2,opt,name=xy_chart,json=xyChart,proto3,oneof"`
}

type Widget_Scorecard struct {
	Scorecard *Scorecard `protobuf:"bytes,3,opt,name=scorecard,proto3,oneof"`
}

type Widget_Text struct {
	Text *Text `protobuf:"bytes,4,opt,name=text,proto3,oneof"`
}

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

func (*Widget_XyChart) isWidget_Content() {}

func (*Widget_Scorecard) isWidget_Content() {}

func (*Widget_Text) isWidget_Content() {}

func (*Widget_Blank) isWidget_Content() {}

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

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

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

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

func (m *Widget) GetBlank() *empty.Empty {
	if x, ok := m.GetContent().(*Widget_Blank); ok {
		return x.Blank
	}
	return nil
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*Widget) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*Widget_XyChart)(nil),
		(*Widget_Scorecard)(nil),
		(*Widget_Text)(nil),
		(*Widget_Blank)(nil),
	}
}

func init() {
	proto.RegisterType((*Widget)(nil), "google.monitoring.dashboard.v1.Widget")
}

func init() {
	proto.RegisterFile("google/monitoring/dashboard/v1/widget.proto", fileDescriptor_db3d87510c0d13d9)
}

var fileDescriptor_db3d87510c0d13d9 = []byte{
	// 374 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00,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