// 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{
	// 344 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00,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