// 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/thresholds.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 Thresholds_ShowMode int32

const (
	Thresholds_SHOW_MODE_UNSPECIFIED   Thresholds_ShowMode = 0
	Thresholds_SHOW_MODE_CONSTANT_LINE Thresholds_ShowMode = 1
)

// Enum value maps for Thresholds_ShowMode.
var (
	Thresholds_ShowMode_name = map[int32]string{
		0: "SHOW_MODE_UNSPECIFIED",
		1: "SHOW_MODE_CONSTANT_LINE",
	}
	Thresholds_ShowMode_value = map[string]int32{
		"SHOW_MODE_UNSPECIFIED":   0,
		"SHOW_MODE_CONSTANT_LINE": 1,
	}
)

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

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

func (Thresholds_ShowMode) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_monitoring_v3_thresholds_proto_enumTypes[0].Descriptor()
}

func (Thresholds_ShowMode) Type() protoreflect.EnumType {
	return &file_yandex_cloud_monitoring_v3_thresholds_proto_enumTypes[0]
}

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

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

type Thresholds struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Thresholds
	Items []*Thresholds_Item `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// Thresholds visualisation mode
	ShowMode      Thresholds_ShowMode `protobuf:"varint,2,opt,name=show_mode,json=showMode,proto3,enum=yandex.cloud.monitoring.v3.Thresholds_ShowMode" json:"show_mode,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Thresholds) ProtoMessage() {}

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

func (x *Thresholds) GetItems() []*Thresholds_Item {
	if x != nil {
		return x.Items
	}
	return nil
}

func (x *Thresholds) GetShowMode() Thresholds_ShowMode {
	if x != nil {
		return x.ShowMode
	}
	return Thresholds_SHOW_MODE_UNSPECIFIED
}

type Thresholds_Item struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Color in hexadecimal format
	Color string `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"`
	// Threshold value
	Value         *float64 `protobuf:"fixed64,2,opt,name=value,proto3,oneof" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Thresholds_Item) ProtoMessage() {}

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

func (x *Thresholds_Item) GetColor() string {
	if x != nil {
		return x.Color
	}
	return ""
}

func (x *Thresholds_Item) GetValue() float64 {
	if x != nil && x.Value != nil {
		return *x.Value
	}
	return 0
}

var File_yandex_cloud_monitoring_v3_thresholds_proto protoreflect.FileDescriptor

const file_yandex_cloud_monitoring_v3_thresholds_proto_rawDesc = "" +
	"\n" +
	"+yandex/cloud/monitoring/v3/thresholds.proto\x12\x1ayandex.cloud.monitoring.v3\"\xa4\x02\n" +
	"\n" +
	"Thresholds\x12A\n" +
	"\x05items\x18\x01 \x03(\v2+.yandex.cloud.monitoring.v3.Thresholds.ItemR\x05items\x12L\n" +
	"\tshow_mode\x18\x02 \x01(\x0e2/.yandex.cloud.monitoring.v3.Thresholds.ShowModeR\bshowMode\x1aA\n" +
	"\x04Item\x12\x14\n" +
	"\x05color\x18\x01 \x01(\tR\x05color\x12\x19\n" +
	"\x05value\x18\x02 \x01(\x01H\x00R\x05value\x88\x01\x01B\b\n" +
	"\x06_value\"B\n" +
	"\bShowMode\x12\x19\n" +
	"\x15SHOW_MODE_UNSPECIFIED\x10\x00\x12\x1b\n" +
	"\x17SHOW_MODE_CONSTANT_LINE\x10\x01Bk\n" +
	"\x1eyandex.cloud.api.monitoring.v3ZIgithub.com/yandex-cloud/go-genproto/yandex/cloud/monitoring/v3;monitoringb\x06proto3"

var (
	file_yandex_cloud_monitoring_v3_thresholds_proto_rawDescOnce sync.Once
	file_yandex_cloud_monitoring_v3_thresholds_proto_rawDescData []byte
)

func file_yandex_cloud_monitoring_v3_thresholds_proto_rawDescGZIP() []byte {
	file_yandex_cloud_monitoring_v3_thresholds_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_monitoring_v3_thresholds_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_monitoring_v3_thresholds_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_thresholds_proto_rawDesc)))
	})
	return file_yandex_cloud_monitoring_v3_thresholds_proto_rawDescData
}

var file_yandex_cloud_monitoring_v3_thresholds_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_monitoring_v3_thresholds_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_monitoring_v3_thresholds_proto_goTypes = []any{
	(Thresholds_ShowMode)(0), // 0: yandex.cloud.monitoring.v3.Thresholds.ShowMode
	(*Thresholds)(nil),       // 1: yandex.cloud.monitoring.v3.Thresholds
	(*Thresholds_Item)(nil),  // 2: yandex.cloud.monitoring.v3.Thresholds.Item
}
var file_yandex_cloud_monitoring_v3_thresholds_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.monitoring.v3.Thresholds.items:type_name -> yandex.cloud.monitoring.v3.Thresholds.Item
	0, // 1: yandex.cloud.monitoring.v3.Thresholds.show_mode:type_name -> yandex.cloud.monitoring.v3.Thresholds.ShowMode
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_yandex_cloud_monitoring_v3_thresholds_proto_init() }
func file_yandex_cloud_monitoring_v3_thresholds_proto_init() {
	if File_yandex_cloud_monitoring_v3_thresholds_proto != nil {
		return
	}
	file_yandex_cloud_monitoring_v3_thresholds_proto_msgTypes[1].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_monitoring_v3_thresholds_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_thresholds_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_monitoring_v3_thresholds_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_monitoring_v3_thresholds_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_monitoring_v3_thresholds_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_monitoring_v3_thresholds_proto_msgTypes,
	}.Build()
	File_yandex_cloud_monitoring_v3_thresholds_proto = out.File
	file_yandex_cloud_monitoring_v3_thresholds_proto_goTypes = nil
	file_yandex_cloud_monitoring_v3_thresholds_proto_depIdxs = nil
}
