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

package quotamanager

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 QuotaRequest_Status int32

const (
	QuotaRequest_STATUS_UNSPECIFIED QuotaRequest_Status = 0
	// The request is pending and is waiting to be processed.
	QuotaRequest_PENDING QuotaRequest_Status = 1
	// The request is processing.
	QuotaRequest_PROCESSING QuotaRequest_Status = 2
	// The request was processed.
	QuotaRequest_PROCESSED QuotaRequest_Status = 3
	// The request was canceled.
	QuotaRequest_CANCELED QuotaRequest_Status = 4
	// The request is deleting.
	QuotaRequest_DELETING QuotaRequest_Status = 5
)

// Enum value maps for QuotaRequest_Status.
var (
	QuotaRequest_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "PENDING",
		2: "PROCESSING",
		3: "PROCESSED",
		4: "CANCELED",
		5: "DELETING",
	}
	QuotaRequest_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"PENDING":            1,
		"PROCESSING":         2,
		"PROCESSED":          3,
		"CANCELED":           4,
		"DELETING":           5,
	}
)

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

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

func (QuotaRequest_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_quotamanager_v1_quota_request_proto_enumTypes[0].Descriptor()
}

func (QuotaRequest_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_quotamanager_v1_quota_request_proto_enumTypes[0]
}

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

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

type QuotaRequest_QuotaLimit_Status int32

const (
	QuotaRequest_QuotaLimit_STATUS_UNSPECIFIED QuotaRequest_QuotaLimit_Status = 0
	// The request is pending and is waiting to be processed.
	QuotaRequest_QuotaLimit_PENDING QuotaRequest_QuotaLimit_Status = 1
	// The request is processing.
	QuotaRequest_QuotaLimit_PROCESSING QuotaRequest_QuotaLimit_Status = 2
	// The request was partially approved.
	QuotaRequest_QuotaLimit_PARTIAL_APPROVED QuotaRequest_QuotaLimit_Status = 3
	// The request was approved.
	QuotaRequest_QuotaLimit_APPROVED QuotaRequest_QuotaLimit_Status = 4
	// The request was rejected.
	QuotaRequest_QuotaLimit_REJECTED QuotaRequest_QuotaLimit_Status = 5
	// The request was canceled.
	QuotaRequest_QuotaLimit_CANCELED QuotaRequest_QuotaLimit_Status = 6
)

// Enum value maps for QuotaRequest_QuotaLimit_Status.
var (
	QuotaRequest_QuotaLimit_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "PENDING",
		2: "PROCESSING",
		3: "PARTIAL_APPROVED",
		4: "APPROVED",
		5: "REJECTED",
		6: "CANCELED",
	}
	QuotaRequest_QuotaLimit_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"PENDING":            1,
		"PROCESSING":         2,
		"PARTIAL_APPROVED":   3,
		"APPROVED":           4,
		"REJECTED":           5,
		"CANCELED":           6,
	}
)

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

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

func (QuotaRequest_QuotaLimit_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_quotamanager_v1_quota_request_proto_enumTypes[1].Descriptor()
}

func (QuotaRequest_QuotaLimit_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_quotamanager_v1_quota_request_proto_enumTypes[1]
}

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

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

type QuotaRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the quota request.
	Id       string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Status of current quota request.
	Status QuotaRequest_Status `protobuf:"varint,4,opt,name=status,proto3,enum=yandex.cloud.quotamanager.v1.QuotaRequest_Status" json:"status,omitempty"`
	// Quota limits
	QuotaLimits []*QuotaRequest_QuotaLimit `protobuf:"bytes,5,rep,name=quota_limits,json=quotaLimits,proto3" json:"quota_limits,omitempty"`
	// ID of the subject who created quota request.
	CreatedBy     string `protobuf:"bytes,7,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*QuotaRequest) ProtoMessage() {}

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

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

func (x *QuotaRequest) GetResource() *Resource {
	if x != nil {
		return x.Resource
	}
	return nil
}

func (x *QuotaRequest) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *QuotaRequest) GetStatus() QuotaRequest_Status {
	if x != nil {
		return x.Status
	}
	return QuotaRequest_STATUS_UNSPECIFIED
}

func (x *QuotaRequest) GetQuotaLimits() []*QuotaRequest_QuotaLimit {
	if x != nil {
		return x.QuotaLimits
	}
	return nil
}

func (x *QuotaRequest) GetCreatedBy() string {
	if x != nil {
		return x.CreatedBy
	}
	return ""
}

type QuotaRequest_QuotaLimit struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the quota.
	QuotaId string `protobuf:"bytes,1,opt,name=quota_id,json=quotaId,proto3" json:"quota_id,omitempty"`
	// Desired limit.
	DesiredLimit float64 `protobuf:"fixed64,2,opt,name=desired_limit,json=desiredLimit,proto3" json:"desired_limit,omitempty"`
	// Approved limit.
	ApprovedLimit float64 `protobuf:"fixed64,3,opt,name=approved_limit,json=approvedLimit,proto3" json:"approved_limit,omitempty"`
	// Unit of quota.
	Unit string `protobuf:"bytes,4,opt,name=unit,proto3" json:"unit,omitempty"`
	// Status of current quota limit.
	Status  QuotaRequest_QuotaLimit_Status `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.quotamanager.v1.QuotaRequest_QuotaLimit_Status" json:"status,omitempty"`
	Message string                         `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
	// ID of the subject who modified quota limit.
	ModifiedBy    string `protobuf:"bytes,7,opt,name=modified_by,json=modifiedBy,proto3" json:"modified_by,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*QuotaRequest_QuotaLimit) ProtoMessage() {}

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

func (x *QuotaRequest_QuotaLimit) GetQuotaId() string {
	if x != nil {
		return x.QuotaId
	}
	return ""
}

func (x *QuotaRequest_QuotaLimit) GetDesiredLimit() float64 {
	if x != nil {
		return x.DesiredLimit
	}
	return 0
}

func (x *QuotaRequest_QuotaLimit) GetApprovedLimit() float64 {
	if x != nil {
		return x.ApprovedLimit
	}
	return 0
}

func (x *QuotaRequest_QuotaLimit) GetUnit() string {
	if x != nil {
		return x.Unit
	}
	return ""
}

func (x *QuotaRequest_QuotaLimit) GetStatus() QuotaRequest_QuotaLimit_Status {
	if x != nil {
		return x.Status
	}
	return QuotaRequest_QuotaLimit_STATUS_UNSPECIFIED
}

func (x *QuotaRequest_QuotaLimit) GetMessage() string {
	if x != nil {
		return x.Message
	}
	return ""
}

func (x *QuotaRequest_QuotaLimit) GetModifiedBy() string {
	if x != nil {
		return x.ModifiedBy
	}
	return ""
}

var File_yandex_cloud_quotamanager_v1_quota_request_proto protoreflect.FileDescriptor

const file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDesc = "" +
	"\n" +
	"0yandex/cloud/quotamanager/v1/quota_request.proto\x12\x1cyandex.cloud.quotamanager.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a+yandex/cloud/quotamanager/v1/resource.proto\"\xeb\x06\n" +
	"\fQuotaRequest\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12B\n" +
	"\bresource\x18\x02 \x01(\v2&.yandex.cloud.quotamanager.v1.ResourceR\bresource\x129\n" +
	"\n" +
	"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12I\n" +
	"\x06status\x18\x04 \x01(\x0e21.yandex.cloud.quotamanager.v1.QuotaRequest.StatusR\x06status\x12X\n" +
	"\fquota_limits\x18\x05 \x03(\v25.yandex.cloud.quotamanager.v1.QuotaRequest.QuotaLimitR\vquotaLimits\x12\x1d\n" +
	"\n" +
	"created_by\x18\a \x01(\tR\tcreatedBy\x1a\x97\x03\n" +
	"\n" +
	"QuotaLimit\x12\x19\n" +
	"\bquota_id\x18\x01 \x01(\tR\aquotaId\x12#\n" +
	"\rdesired_limit\x18\x02 \x01(\x01R\fdesiredLimit\x12%\n" +
	"\x0eapproved_limit\x18\x03 \x01(\x01R\rapprovedLimit\x12\x12\n" +
	"\x04unit\x18\x04 \x01(\tR\x04unit\x12T\n" +
	"\x06status\x18\x05 \x01(\x0e2<.yandex.cloud.quotamanager.v1.QuotaRequest.QuotaLimit.StatusR\x06status\x12\x18\n" +
	"\amessage\x18\x06 \x01(\tR\amessage\x12\x1f\n" +
	"\vmodified_by\x18\a \x01(\tR\n" +
	"modifiedBy\"}\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPENDING\x10\x01\x12\x0e\n" +
	"\n" +
	"PROCESSING\x10\x02\x12\x14\n" +
	"\x10PARTIAL_APPROVED\x10\x03\x12\f\n" +
	"\bAPPROVED\x10\x04\x12\f\n" +
	"\bREJECTED\x10\x05\x12\f\n" +
	"\bCANCELED\x10\x06\"h\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPENDING\x10\x01\x12\x0e\n" +
	"\n" +
	"PROCESSING\x10\x02\x12\r\n" +
	"\tPROCESSED\x10\x03\x12\f\n" +
	"\bCANCELED\x10\x04\x12\f\n" +
	"\bDELETING\x10\x05J\x04\b\x06\x10\aBq\n" +
	" yandex.cloud.api.quotamanager.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/quotamanager/v1;quotamanagerb\x06proto3"

var (
	file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDescOnce sync.Once
	file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDescData []byte
)

func file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDescGZIP() []byte {
	file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDesc), len(file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDesc)))
	})
	return file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDescData
}

var file_yandex_cloud_quotamanager_v1_quota_request_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_quotamanager_v1_quota_request_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_quotamanager_v1_quota_request_proto_goTypes = []any{
	(QuotaRequest_Status)(0),            // 0: yandex.cloud.quotamanager.v1.QuotaRequest.Status
	(QuotaRequest_QuotaLimit_Status)(0), // 1: yandex.cloud.quotamanager.v1.QuotaRequest.QuotaLimit.Status
	(*QuotaRequest)(nil),                // 2: yandex.cloud.quotamanager.v1.QuotaRequest
	(*QuotaRequest_QuotaLimit)(nil),     // 3: yandex.cloud.quotamanager.v1.QuotaRequest.QuotaLimit
	(*Resource)(nil),                    // 4: yandex.cloud.quotamanager.v1.Resource
	(*timestamppb.Timestamp)(nil),       // 5: google.protobuf.Timestamp
}
var file_yandex_cloud_quotamanager_v1_quota_request_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.quotamanager.v1.QuotaRequest.resource:type_name -> yandex.cloud.quotamanager.v1.Resource
	5, // 1: yandex.cloud.quotamanager.v1.QuotaRequest.created_at:type_name -> google.protobuf.Timestamp
	0, // 2: yandex.cloud.quotamanager.v1.QuotaRequest.status:type_name -> yandex.cloud.quotamanager.v1.QuotaRequest.Status
	3, // 3: yandex.cloud.quotamanager.v1.QuotaRequest.quota_limits:type_name -> yandex.cloud.quotamanager.v1.QuotaRequest.QuotaLimit
	1, // 4: yandex.cloud.quotamanager.v1.QuotaRequest.QuotaLimit.status:type_name -> yandex.cloud.quotamanager.v1.QuotaRequest.QuotaLimit.Status
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_yandex_cloud_quotamanager_v1_quota_request_proto_init() }
func file_yandex_cloud_quotamanager_v1_quota_request_proto_init() {
	if File_yandex_cloud_quotamanager_v1_quota_request_proto != nil {
		return
	}
	file_yandex_cloud_quotamanager_v1_resource_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDesc), len(file_yandex_cloud_quotamanager_v1_quota_request_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_quotamanager_v1_quota_request_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_quotamanager_v1_quota_request_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_quotamanager_v1_quota_request_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_quotamanager_v1_quota_request_proto_msgTypes,
	}.Build()
	File_yandex_cloud_quotamanager_v1_quota_request_proto = out.File
	file_yandex_cloud_quotamanager_v1_quota_request_proto_goTypes = nil
	file_yandex_cloud_quotamanager_v1_quota_request_proto_depIdxs = nil
}
