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

package quota

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 QuotaMetric struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // formatted as <domain>.<metric>.<unit>, e.g. mdb.hdd.size
	Limit         int64                  `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Usage         float64                `protobuf:"fixed64,4,opt,name=usage,proto3" json:"usage,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*QuotaMetric) ProtoMessage() {}

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

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

func (x *QuotaMetric) GetLimit() int64 {
	if x != nil {
		return x.Limit
	}
	return 0
}

func (x *QuotaMetric) GetUsage() float64 {
	if x != nil {
		return x.Usage
	}
	return 0
}

type MetricLimit struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Limit         int64                  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MetricLimit) ProtoMessage() {}

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

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

func (x *MetricLimit) GetLimit() int64 {
	if x != nil {
		return x.Limit
	}
	return 0
}

type QuotaFailure struct {
	state         protoimpl.MessageState    `protogen:"open.v1"`
	Violations    []*QuotaFailure_Violation `protobuf:"bytes,2,rep,name=violations,proto3" json:"violations,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*QuotaFailure) ProtoMessage() {}

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

func (x *QuotaFailure) GetViolations() []*QuotaFailure_Violation {
	if x != nil {
		return x.Violations
	}
	return nil
}

type QuotaFailure_Violation struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Metric        *QuotaMetric           `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
	Required      int64                  `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` // new value for the MetricLimit.limit, so it is: old limit + delta
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*QuotaFailure_Violation) ProtoMessage() {}

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

func (x *QuotaFailure_Violation) GetMetric() *QuotaMetric {
	if x != nil {
		return x.Metric
	}
	return nil
}

func (x *QuotaFailure_Violation) GetRequired() int64 {
	if x != nil {
		return x.Required
	}
	return 0
}

var File_yandex_cloud_quota_quota_proto protoreflect.FileDescriptor

const file_yandex_cloud_quota_quota_proto_rawDesc = "" +
	"\n" +
	"\x1eyandex/cloud/quota/quota.proto\x12\x12yandex.cloud.quota\"S\n" +
	"\vQuotaMetric\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
	"\x05limit\x18\x03 \x01(\x03R\x05limit\x12\x14\n" +
	"\x05usage\x18\x04 \x01(\x01R\x05usageJ\x04\b\x02\x10\x03\"7\n" +
	"\vMetricLimit\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
	"\x05limit\x18\x02 \x01(\x03R\x05limit\"\xbc\x01\n" +
	"\fQuotaFailure\x12J\n" +
	"\n" +
	"violations\x18\x02 \x03(\v2*.yandex.cloud.quota.QuotaFailure.ViolationR\n" +
	"violations\x1a`\n" +
	"\tViolation\x127\n" +
	"\x06metric\x18\x01 \x01(\v2\x1f.yandex.cloud.quota.QuotaMetricR\x06metric\x12\x1a\n" +
	"\brequired\x18\x02 \x01(\x03R\brequiredBV\n" +
	"\x16yandex.cloud.api.quotaZ<github.com/yandex-cloud/go-genproto/yandex/cloud/quota;quotab\x06proto3"

var (
	file_yandex_cloud_quota_quota_proto_rawDescOnce sync.Once
	file_yandex_cloud_quota_quota_proto_rawDescData []byte
)

func file_yandex_cloud_quota_quota_proto_rawDescGZIP() []byte {
	file_yandex_cloud_quota_quota_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_quota_quota_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_quota_quota_proto_rawDesc), len(file_yandex_cloud_quota_quota_proto_rawDesc)))
	})
	return file_yandex_cloud_quota_quota_proto_rawDescData
}

var file_yandex_cloud_quota_quota_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_quota_quota_proto_goTypes = []any{
	(*QuotaMetric)(nil),            // 0: yandex.cloud.quota.QuotaMetric
	(*MetricLimit)(nil),            // 1: yandex.cloud.quota.MetricLimit
	(*QuotaFailure)(nil),           // 2: yandex.cloud.quota.QuotaFailure
	(*QuotaFailure_Violation)(nil), // 3: yandex.cloud.quota.QuotaFailure.Violation
}
var file_yandex_cloud_quota_quota_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.quota.QuotaFailure.violations:type_name -> yandex.cloud.quota.QuotaFailure.Violation
	0, // 1: yandex.cloud.quota.QuotaFailure.Violation.metric:type_name -> yandex.cloud.quota.QuotaMetric
	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_quota_quota_proto_init() }
func file_yandex_cloud_quota_quota_proto_init() {
	if File_yandex_cloud_quota_quota_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_quota_quota_proto_rawDesc), len(file_yandex_cloud_quota_quota_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_quota_quota_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_quota_quota_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_quota_quota_proto_msgTypes,
	}.Build()
	File_yandex_cloud_quota_quota_proto = out.File
	file_yandex_cloud_quota_quota_proto_goTypes = nil
	file_yandex_cloud_quota_quota_proto_depIdxs = nil
}
