// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/loadtesting/api/v1/regression/widget.proto

package regression

import (
	report "github.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/api/v1/report"
	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)
)

// Title size.
type TitleWidget_TitleSize int32

const (
	// Unspecified.
	TitleWidget_TITLE_SIZE_UNSPECIFIED TitleWidget_TitleSize = 0
	// Extra small.
	TitleWidget_TITLE_SIZE_XS TitleWidget_TitleSize = 1
	// Small.
	TitleWidget_TITLE_SIZE_S TitleWidget_TitleSize = 2
	// Medium.
	TitleWidget_TITLE_SIZE_M TitleWidget_TitleSize = 3
	// Large.
	TitleWidget_TITLE_SIZE_L TitleWidget_TitleSize = 4
)

// Enum value maps for TitleWidget_TitleSize.
var (
	TitleWidget_TitleSize_name = map[int32]string{
		0: "TITLE_SIZE_UNSPECIFIED",
		1: "TITLE_SIZE_XS",
		2: "TITLE_SIZE_S",
		3: "TITLE_SIZE_M",
		4: "TITLE_SIZE_L",
	}
	TitleWidget_TitleSize_value = map[string]int32{
		"TITLE_SIZE_UNSPECIFIED": 0,
		"TITLE_SIZE_XS":          1,
		"TITLE_SIZE_S":           2,
		"TITLE_SIZE_M":           3,
		"TITLE_SIZE_L":           4,
	}
)

func (x TitleWidget_TitleSize) Enum() *TitleWidget_TitleSize {
	p := new(TitleWidget_TitleSize)
	*p = x
	return p
}

func (x TitleWidget_TitleSize) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (TitleWidget_TitleSize) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_enumTypes[0].Descriptor()
}

func (TitleWidget_TitleSize) Type() protoreflect.EnumType {
	return &file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_enumTypes[0]
}

func (x TitleWidget_TitleSize) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use TitleWidget_TitleSize.Descriptor instead.
func (TitleWidget_TitleSize) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDescGZIP(), []int{3, 0}
}

// Regression dashboard widget.
type Widget struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Widget position.
	Position *Widget_LayoutPosition `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	// Types that are valid to be assigned to Widget:
	//
	//	*Widget_Chart
	//	*Widget_Text
	//	*Widget_Title
	Widget        isWidget_Widget `protobuf_oneof:"widget"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Widget) Reset() {
	*x = Widget{}
	mi := &file_yandex_cloud_loadtesting_api_v1_regression_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_loadtesting_api_v1_regression_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_loadtesting_api_v1_regression_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) GetChart() *ChartWidget {
	if x != nil {
		if x, ok := x.Widget.(*Widget_Chart); ok {
			return x.Chart
		}
	}
	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
}

type isWidget_Widget interface {
	isWidget_Widget()
}

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

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

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

func (*Widget_Chart) isWidget_Widget() {}

func (*Widget_Text) isWidget_Widget() {}

func (*Widget_Title) isWidget_Widget() {}

// Regression chart.
type ChartWidget struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the chart.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the chart.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the chart.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Test filter selector to show KPI values for.
	FilterStr string `protobuf:"bytes,4,opt,name=filter_str,json=filterStr,proto3" json:"filter_str,omitempty"`
	// Test case to show KPI values for.
	TestCase string `protobuf:"bytes,5,opt,name=test_case,json=testCase,proto3" json:"test_case,omitempty"`
	// KPIs to show.
	Kpis          []*report.Kpi `protobuf:"bytes,6,rep,name=kpis,proto3" json:"kpis,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ChartWidget) ProtoMessage() {}

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

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

func (x *ChartWidget) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *ChartWidget) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *ChartWidget) GetFilterStr() string {
	if x != nil {
		return x.FilterStr
	}
	return ""
}

func (x *ChartWidget) GetTestCase() string {
	if x != nil {
		return x.TestCase
	}
	return ""
}

func (x *ChartWidget) GetKpis() []*report.Kpi {
	if x != nil {
		return x.Kpis
	}
	return nil
}

// Text widget.
type TextWidget struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Text string.
	Text          string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TextWidget) Reset() {
	*x = TextWidget{}
	mi := &file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*TextWidget) ProtoMessage() {}

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

func (x *TextWidget) GetText() string {
	if x != nil {
		return x.Text
	}
	return ""
}

// Title widget.
type TitleWidget struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Title string.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// Title size.
	Size          TitleWidget_TitleSize `protobuf:"varint,2,opt,name=size,proto3,enum=yandex.cloud.loadtesting.api.v1.regression.TitleWidget_TitleSize" json:"size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TitleWidget) ProtoMessage() {}

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

func (x *TitleWidget) GetText() string {
	if x != nil {
		return x.Text
	}
	return ""
}

func (x *TitleWidget) GetSize() TitleWidget_TitleSize {
	if x != nil {
		return x.Size
	}
	return TitleWidget_TITLE_SIZE_UNSPECIFIED
}

// Widget position.
type Widget_LayoutPosition struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// X.
	X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	// Y.
	Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// Width.
	Width int64 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	// Height.
	Height        int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Widget_LayoutPosition) Reset() {
	*x = Widget_LayoutPosition{}
	mi := &file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_msgTypes[4]
	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_loadtesting_api_v1_regression_widget_proto_msgTypes[4]
	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_loadtesting_api_v1_regression_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) GetWidth() int64 {
	if x != nil {
		return x.Width
	}
	return 0
}

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

var File_yandex_cloud_loadtesting_api_v1_regression_widget_proto protoreflect.FileDescriptor

const file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDesc = "" +
	"\n" +
	"7yandex/cloud/loadtesting/api/v1/regression/widget.proto\x12*yandex.cloud.loadtesting.api.v1.regression\x1a0yandex/cloud/loadtesting/api/v1/report/kpi.proto\"\xbd\x03\n" +
	"\x06Widget\x12]\n" +
	"\bposition\x18\x01 \x01(\v2A.yandex.cloud.loadtesting.api.v1.regression.Widget.LayoutPositionR\bposition\x12O\n" +
	"\x05chart\x18\x02 \x01(\v27.yandex.cloud.loadtesting.api.v1.regression.ChartWidgetH\x00R\x05chart\x12L\n" +
	"\x04text\x18\x03 \x01(\v26.yandex.cloud.loadtesting.api.v1.regression.TextWidgetH\x00R\x04text\x12O\n" +
	"\x05title\x18\x04 \x01(\v27.yandex.cloud.loadtesting.api.v1.regression.TitleWidgetH\x00R\x05title\x1aZ\n" +
	"\x0eLayoutPosition\x12\f\n" +
	"\x01x\x18\x01 \x01(\x03R\x01x\x12\f\n" +
	"\x01y\x18\x02 \x01(\x03R\x01y\x12\x14\n" +
	"\x05width\x18\x03 \x01(\x03R\x05width\x12\x16\n" +
	"\x06height\x18\x04 \x01(\x03R\x06heightB\b\n" +
	"\x06widget\"\xd0\x01\n" +
	"\vChartWidget\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1d\n" +
	"\n" +
	"filter_str\x18\x04 \x01(\tR\tfilterStr\x12\x1b\n" +
	"\ttest_case\x18\x05 \x01(\tR\btestCase\x12?\n" +
	"\x04kpis\x18\x06 \x03(\v2+.yandex.cloud.loadtesting.api.v1.report.KpiR\x04kpis\" \n" +
	"\n" +
	"TextWidget\x12\x12\n" +
	"\x04text\x18\x01 \x01(\tR\x04text\"\xea\x01\n" +
	"\vTitleWidget\x12\x12\n" +
	"\x04text\x18\x01 \x01(\tR\x04text\x12U\n" +
	"\x04size\x18\x02 \x01(\x0e2A.yandex.cloud.loadtesting.api.v1.regression.TitleWidget.TitleSizeR\x04size\"p\n" +
	"\tTitleSize\x12\x1a\n" +
	"\x16TITLE_SIZE_UNSPECIFIED\x10\x00\x12\x11\n" +
	"\rTITLE_SIZE_XS\x10\x01\x12\x10\n" +
	"\fTITLE_SIZE_S\x10\x02\x12\x10\n" +
	"\fTITLE_SIZE_M\x10\x03\x12\x10\n" +
	"\fTITLE_SIZE_L\x10\x04B\x8b\x01\n" +
	".yandex.cloud.api.loadtesting.api.v1.regressionZYgithub.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/api/v1/regression;regressionb\x06proto3"

var (
	file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDescOnce sync.Once
	file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDescData []byte
)

func file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDescGZIP() []byte {
	file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDesc), len(file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDesc)))
	})
	return file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDescData
}

var file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_goTypes = []any{
	(TitleWidget_TitleSize)(0),    // 0: yandex.cloud.loadtesting.api.v1.regression.TitleWidget.TitleSize
	(*Widget)(nil),                // 1: yandex.cloud.loadtesting.api.v1.regression.Widget
	(*ChartWidget)(nil),           // 2: yandex.cloud.loadtesting.api.v1.regression.ChartWidget
	(*TextWidget)(nil),            // 3: yandex.cloud.loadtesting.api.v1.regression.TextWidget
	(*TitleWidget)(nil),           // 4: yandex.cloud.loadtesting.api.v1.regression.TitleWidget
	(*Widget_LayoutPosition)(nil), // 5: yandex.cloud.loadtesting.api.v1.regression.Widget.LayoutPosition
	(*report.Kpi)(nil),            // 6: yandex.cloud.loadtesting.api.v1.report.Kpi
}
var file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_depIdxs = []int32{
	5, // 0: yandex.cloud.loadtesting.api.v1.regression.Widget.position:type_name -> yandex.cloud.loadtesting.api.v1.regression.Widget.LayoutPosition
	2, // 1: yandex.cloud.loadtesting.api.v1.regression.Widget.chart:type_name -> yandex.cloud.loadtesting.api.v1.regression.ChartWidget
	3, // 2: yandex.cloud.loadtesting.api.v1.regression.Widget.text:type_name -> yandex.cloud.loadtesting.api.v1.regression.TextWidget
	4, // 3: yandex.cloud.loadtesting.api.v1.regression.Widget.title:type_name -> yandex.cloud.loadtesting.api.v1.regression.TitleWidget
	6, // 4: yandex.cloud.loadtesting.api.v1.regression.ChartWidget.kpis:type_name -> yandex.cloud.loadtesting.api.v1.report.Kpi
	0, // 5: yandex.cloud.loadtesting.api.v1.regression.TitleWidget.size:type_name -> yandex.cloud.loadtesting.api.v1.regression.TitleWidget.TitleSize
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_init() }
func file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_init() {
	if File_yandex_cloud_loadtesting_api_v1_regression_widget_proto != nil {
		return
	}
	file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_msgTypes[0].OneofWrappers = []any{
		(*Widget_Chart)(nil),
		(*Widget_Text)(nil),
		(*Widget_Title)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDesc), len(file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_msgTypes,
	}.Build()
	File_yandex_cloud_loadtesting_api_v1_regression_widget_proto = out.File
	file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_goTypes = nil
	file_yandex_cloud_loadtesting_api_v1_regression_widget_proto_depIdxs = nil
}
