// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/monitoring/v3/downsampling.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)
)

// List of available aggregate functions for downsampling.
type Downsampling_GridAggregation int32

const (
	Downsampling_GRID_AGGREGATION_UNSPECIFIED Downsampling_GridAggregation = 0
	// Max value.
	Downsampling_GRID_AGGREGATION_MAX Downsampling_GridAggregation = 1
	// Min value.
	Downsampling_GRID_AGGREGATION_MIN Downsampling_GridAggregation = 2
	// Sum of values.
	Downsampling_GRID_AGGREGATION_SUM Downsampling_GridAggregation = 3
	// Average value.
	Downsampling_GRID_AGGREGATION_AVG Downsampling_GridAggregation = 4
	// Last value.
	Downsampling_GRID_AGGREGATION_LAST Downsampling_GridAggregation = 5
	// Total count of points.
	Downsampling_GRID_AGGREGATION_COUNT Downsampling_GridAggregation = 6
)

// Enum value maps for Downsampling_GridAggregation.
var (
	Downsampling_GridAggregation_name = map[int32]string{
		0: "GRID_AGGREGATION_UNSPECIFIED",
		1: "GRID_AGGREGATION_MAX",
		2: "GRID_AGGREGATION_MIN",
		3: "GRID_AGGREGATION_SUM",
		4: "GRID_AGGREGATION_AVG",
		5: "GRID_AGGREGATION_LAST",
		6: "GRID_AGGREGATION_COUNT",
	}
	Downsampling_GridAggregation_value = map[string]int32{
		"GRID_AGGREGATION_UNSPECIFIED": 0,
		"GRID_AGGREGATION_MAX":         1,
		"GRID_AGGREGATION_MIN":         2,
		"GRID_AGGREGATION_SUM":         3,
		"GRID_AGGREGATION_AVG":         4,
		"GRID_AGGREGATION_LAST":        5,
		"GRID_AGGREGATION_COUNT":       6,
	}
)

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

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

func (Downsampling_GridAggregation) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_monitoring_v3_downsampling_proto_enumTypes[0].Descriptor()
}

func (Downsampling_GridAggregation) Type() protoreflect.EnumType {
	return &file_yandex_cloud_monitoring_v3_downsampling_proto_enumTypes[0]
}

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

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

// List of available gap filling policy for downsampling.
type Downsampling_GapFilling int32

const (
	Downsampling_GAP_FILLING_UNSPECIFIED Downsampling_GapFilling = 0
	// Returns `null` as a metric value and `timestamp` as a time series value.
	Downsampling_GAP_FILLING_NULL Downsampling_GapFilling = 1
	// Returns no value and no timestamp.
	Downsampling_GAP_FILLING_NONE Downsampling_GapFilling = 2
	// Returns the value from the previous time interval.
	Downsampling_GAP_FILLING_PREVIOUS Downsampling_GapFilling = 3
)

// Enum value maps for Downsampling_GapFilling.
var (
	Downsampling_GapFilling_name = map[int32]string{
		0: "GAP_FILLING_UNSPECIFIED",
		1: "GAP_FILLING_NULL",
		2: "GAP_FILLING_NONE",
		3: "GAP_FILLING_PREVIOUS",
	}
	Downsampling_GapFilling_value = map[string]int32{
		"GAP_FILLING_UNSPECIFIED": 0,
		"GAP_FILLING_NULL":        1,
		"GAP_FILLING_NONE":        2,
		"GAP_FILLING_PREVIOUS":    3,
	}
)

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

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

func (Downsampling_GapFilling) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_monitoring_v3_downsampling_proto_enumTypes[1].Descriptor()
}

func (Downsampling_GapFilling) Type() protoreflect.EnumType {
	return &file_yandex_cloud_monitoring_v3_downsampling_proto_enumTypes[1]
}

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

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

// List of available aggregate functions for downsampling.
type Downsampling struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Mode:
	//
	//	*Downsampling_MaxPoints
	//	*Downsampling_GridInterval
	//	*Downsampling_Disabled
	Mode isDownsampling_Mode `protobuf_oneof:"mode"`
	// Function that is used for downsampling.
	GridAggregation Downsampling_GridAggregation `protobuf:"varint,4,opt,name=grid_aggregation,json=gridAggregation,proto3,enum=yandex.cloud.monitoring.v3.Downsampling_GridAggregation" json:"grid_aggregation,omitempty"`
	// Parameters for filling gaps in data.
	GapFilling    Downsampling_GapFilling `protobuf:"varint,5,opt,name=gap_filling,json=gapFilling,proto3,enum=yandex.cloud.monitoring.v3.Downsampling_GapFilling" json:"gap_filling,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Downsampling) ProtoMessage() {}

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

func (x *Downsampling) GetMode() isDownsampling_Mode {
	if x != nil {
		return x.Mode
	}
	return nil
}

func (x *Downsampling) GetMaxPoints() int64 {
	if x != nil {
		if x, ok := x.Mode.(*Downsampling_MaxPoints); ok {
			return x.MaxPoints
		}
	}
	return 0
}

func (x *Downsampling) GetGridInterval() int64 {
	if x != nil {
		if x, ok := x.Mode.(*Downsampling_GridInterval); ok {
			return x.GridInterval
		}
	}
	return 0
}

func (x *Downsampling) GetDisabled() bool {
	if x != nil {
		if x, ok := x.Mode.(*Downsampling_Disabled); ok {
			return x.Disabled
		}
	}
	return false
}

func (x *Downsampling) GetGridAggregation() Downsampling_GridAggregation {
	if x != nil {
		return x.GridAggregation
	}
	return Downsampling_GRID_AGGREGATION_UNSPECIFIED
}

func (x *Downsampling) GetGapFilling() Downsampling_GapFilling {
	if x != nil {
		return x.GapFilling
	}
	return Downsampling_GAP_FILLING_UNSPECIFIED
}

type isDownsampling_Mode interface {
	isDownsampling_Mode()
}

type Downsampling_MaxPoints struct {
	// Maximum number of points to be returned.
	MaxPoints int64 `protobuf:"varint,1,opt,name=max_points,json=maxPoints,proto3,oneof"`
}

type Downsampling_GridInterval struct {
	// Time interval (grid) for downsampling in milliseconds.
	// Points in the specified range are aggregated into one time point.
	GridInterval int64 `protobuf:"varint,2,opt,name=grid_interval,json=gridInterval,proto3,oneof"`
}

type Downsampling_Disabled struct {
	// Disable downsampling.
	Disabled bool `protobuf:"varint,3,opt,name=disabled,proto3,oneof"`
}

func (*Downsampling_MaxPoints) isDownsampling_Mode() {}

func (*Downsampling_GridInterval) isDownsampling_Mode() {}

func (*Downsampling_Disabled) isDownsampling_Mode() {}

var File_yandex_cloud_monitoring_v3_downsampling_proto protoreflect.FileDescriptor

const file_yandex_cloud_monitoring_v3_downsampling_proto_rawDesc = "" +
	"\n" +
	"-yandex/cloud/monitoring/v3/downsampling.proto\x12\x1ayandex.cloud.monitoring.v3\"\xfd\x04\n" +
	"\fDownsampling\x12\x1f\n" +
	"\n" +
	"max_points\x18\x01 \x01(\x03H\x00R\tmaxPoints\x12%\n" +
	"\rgrid_interval\x18\x02 \x01(\x03H\x00R\fgridInterval\x12\x1c\n" +
	"\bdisabled\x18\x03 \x01(\bH\x00R\bdisabled\x12c\n" +
	"\x10grid_aggregation\x18\x04 \x01(\x0e28.yandex.cloud.monitoring.v3.Downsampling.GridAggregationR\x0fgridAggregation\x12T\n" +
	"\vgap_filling\x18\x05 \x01(\x0e23.yandex.cloud.monitoring.v3.Downsampling.GapFillingR\n" +
	"gapFilling\"\xd2\x01\n" +
	"\x0fGridAggregation\x12 \n" +
	"\x1cGRID_AGGREGATION_UNSPECIFIED\x10\x00\x12\x18\n" +
	"\x14GRID_AGGREGATION_MAX\x10\x01\x12\x18\n" +
	"\x14GRID_AGGREGATION_MIN\x10\x02\x12\x18\n" +
	"\x14GRID_AGGREGATION_SUM\x10\x03\x12\x18\n" +
	"\x14GRID_AGGREGATION_AVG\x10\x04\x12\x19\n" +
	"\x15GRID_AGGREGATION_LAST\x10\x05\x12\x1a\n" +
	"\x16GRID_AGGREGATION_COUNT\x10\x06\"o\n" +
	"\n" +
	"GapFilling\x12\x1b\n" +
	"\x17GAP_FILLING_UNSPECIFIED\x10\x00\x12\x14\n" +
	"\x10GAP_FILLING_NULL\x10\x01\x12\x14\n" +
	"\x10GAP_FILLING_NONE\x10\x02\x12\x18\n" +
	"\x14GAP_FILLING_PREVIOUS\x10\x03B\x06\n" +
	"\x04modeBk\n" +
	"\x1eyandex.cloud.api.monitoring.v3ZIgithub.com/yandex-cloud/go-genproto/yandex/cloud/monitoring/v3;monitoringb\x06proto3"

var (
	file_yandex_cloud_monitoring_v3_downsampling_proto_rawDescOnce sync.Once
	file_yandex_cloud_monitoring_v3_downsampling_proto_rawDescData []byte
)

func file_yandex_cloud_monitoring_v3_downsampling_proto_rawDescGZIP() []byte {
	file_yandex_cloud_monitoring_v3_downsampling_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_monitoring_v3_downsampling_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_monitoring_v3_downsampling_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_downsampling_proto_rawDesc)))
	})
	return file_yandex_cloud_monitoring_v3_downsampling_proto_rawDescData
}

var file_yandex_cloud_monitoring_v3_downsampling_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_monitoring_v3_downsampling_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_monitoring_v3_downsampling_proto_goTypes = []any{
	(Downsampling_GridAggregation)(0), // 0: yandex.cloud.monitoring.v3.Downsampling.GridAggregation
	(Downsampling_GapFilling)(0),      // 1: yandex.cloud.monitoring.v3.Downsampling.GapFilling
	(*Downsampling)(nil),              // 2: yandex.cloud.monitoring.v3.Downsampling
}
var file_yandex_cloud_monitoring_v3_downsampling_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.monitoring.v3.Downsampling.grid_aggregation:type_name -> yandex.cloud.monitoring.v3.Downsampling.GridAggregation
	1, // 1: yandex.cloud.monitoring.v3.Downsampling.gap_filling:type_name -> yandex.cloud.monitoring.v3.Downsampling.GapFilling
	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_downsampling_proto_init() }
func file_yandex_cloud_monitoring_v3_downsampling_proto_init() {
	if File_yandex_cloud_monitoring_v3_downsampling_proto != nil {
		return
	}
	file_yandex_cloud_monitoring_v3_downsampling_proto_msgTypes[0].OneofWrappers = []any{
		(*Downsampling_MaxPoints)(nil),
		(*Downsampling_GridInterval)(nil),
		(*Downsampling_Disabled)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_monitoring_v3_downsampling_proto_rawDesc), len(file_yandex_cloud_monitoring_v3_downsampling_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_monitoring_v3_downsampling_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_monitoring_v3_downsampling_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_monitoring_v3_downsampling_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_monitoring_v3_downsampling_proto_msgTypes,
	}.Build()
	File_yandex_cloud_monitoring_v3_downsampling_proto = out.File
	file_yandex_cloud_monitoring_v3_downsampling_proto_goTypes = nil
	file_yandex_cloud_monitoring_v3_downsampling_proto_depIdxs = nil
}
