func (*ThrottleRequest) Descriptor() ([]byte, []int) {
	return file_Quota_proto_rawDescGZIP(), []int{2}
}
Deprecated: Use ThrottleRequest.ProtoReflect.Descriptor instead.
package pb
import (
	proto "github.com/golang/protobuf/proto"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)
const (
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
const _ = proto.ProtoPackageIsVersion4
type QuotaScope int32
const (
	QuotaScope_CLUSTER QuotaScope = 1
	QuotaScope_MACHINE QuotaScope = 2
)
var (
	QuotaScope_name = map[int32]string{
		1: "CLUSTER",
		2: "MACHINE",
	}
	QuotaScope_value = map[string]int32{
		"CLUSTER": 1,
		"MACHINE": 2,
	}
)
func (x QuotaScope) Enum() *QuotaScope {
	p := new(QuotaScope)
	*p = x
	return p
}
func (x QuotaScope) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QuotaScope) Descriptor() protoreflect.EnumDescriptor {
	return file_Quota_proto_enumTypes[0].Descriptor()
}
func (QuotaScope) Type() protoreflect.EnumType {
	return &file_Quota_proto_enumTypes[0]
}
func (x QuotaScope) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}
func (x *QuotaScope) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = QuotaScope(num)
	return nil
}
func (QuotaScope) EnumDescriptor() ([]byte, []int) {
	return file_Quota_proto_rawDescGZIP(), []int{0}
}
type ThrottleType int32
const (
	ThrottleType_REQUEST_NUMBER ThrottleType = 1
	ThrottleType_REQUEST_SIZE   ThrottleType = 2
	ThrottleType_WRITE_NUMBER   ThrottleType = 3
	ThrottleType_WRITE_SIZE     ThrottleType = 4
	ThrottleType_READ_NUMBER    ThrottleType = 5
	ThrottleType_READ_SIZE      ThrottleType = 6
)
var (
	ThrottleType_name = map[int32]string{
		1: "REQUEST_NUMBER",
		2: "REQUEST_SIZE",
		3: "WRITE_NUMBER",
		4: "WRITE_SIZE",
		5: "READ_NUMBER",
		6: "READ_SIZE",
	}
	ThrottleType_value = map[string]int32{
		"REQUEST_NUMBER": 1,
		"REQUEST_SIZE":   2,
		"WRITE_NUMBER":   3,
		"WRITE_SIZE":     4,
		"READ_NUMBER":    5,
		"READ_SIZE":      6,
	}
)
func (x ThrottleType) Enum() *ThrottleType {
	p := new(ThrottleType)
	*p = x
	return p
}
func (x ThrottleType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ThrottleType) Descriptor() protoreflect.EnumDescriptor {
	return file_Quota_proto_enumTypes[1].Descriptor()
}
func (ThrottleType) Type() protoreflect.EnumType {
	return &file_Quota_proto_enumTypes[1]
}
func (x ThrottleType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}
func (x *ThrottleType) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = ThrottleType(num)
	return nil
}
func (ThrottleType) EnumDescriptor() ([]byte, []int) {
	return file_Quota_proto_rawDescGZIP(), []int{1}
}
type QuotaType int32
const (
	QuotaType_THROTTLE QuotaType = 1
)
var (
	QuotaType_name = map[int32]string{
		1: "THROTTLE",
	}
	QuotaType_value = map[string]int32{
		"THROTTLE": 1,
	}
)
func (x QuotaType) Enum() *QuotaType {
	p := new(QuotaType)
	*p = x
	return p
}
func (x QuotaType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QuotaType) Descriptor() protoreflect.EnumDescriptor {
	return file_Quota_proto_enumTypes[2].Descriptor()
}
func (QuotaType) Type() protoreflect.EnumType {
	return &file_Quota_proto_enumTypes[2]
}
func (x QuotaType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}
func (x *QuotaType) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = QuotaType(num)
	return nil
}
func (QuotaType) EnumDescriptor() ([]byte, []int) {
	return file_Quota_proto_rawDescGZIP(), []int{2}
}
type TimedQuota struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	TimeUnit  *TimeUnit   `protobuf:"varint,1,req,name=time_unit,json=timeUnit,enum=pb.TimeUnit" json:"time_unit,omitempty"`
	SoftLimit *uint64     `protobuf:"varint,2,opt,name=soft_limit,json=softLimit" json:"soft_limit,omitempty"`
	Share     *float32    `protobuf:"fixed32,3,opt,name=share" json:"share,omitempty"`
	Scope     *QuotaScope `protobuf:"varint,4,opt,name=scope,enum=pb.QuotaScope,def=2" json:"scope,omitempty"`
}
const (
	Default_TimedQuota_Scope = QuotaScope_MACHINE
)
func (x *TimedQuota) Reset() {
	*x = TimedQuota{}
	if protoimpl.UnsafeEnabled {
		mi := &file_Quota_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *TimedQuota) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*TimedQuota) ProtoMessage() {}
func (x *TimedQuota) ProtoReflect() protoreflect.Message {
	mi := &file_Quota_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*TimedQuota) Descriptor() ([]byte, []int) {
	return file_Quota_proto_rawDescGZIP(), []int{0}
}
func (x *TimedQuota) GetTimeUnit() TimeUnit {
	if x != nil && x.TimeUnit != nil {
		return *x.TimeUnit
	}
	return TimeUnit_NANOSECONDS
}
func (x *TimedQuota) GetSoftLimit() uint64 {
	if x != nil && x.SoftLimit != nil {
		return *x.SoftLimit
	}
	return 0
}
func (x *TimedQuota) GetShare() float32 {
	if x != nil && x.Share != nil {
		return *x.Share
	}
	return 0
}
func (x *TimedQuota) GetScope() QuotaScope {
	if x != nil && x.Scope != nil {
		return *x.Scope
	}
	return Default_TimedQuota_Scope
}
type Throttle struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	ReqNum    *TimedQuota `protobuf:"bytes,1,opt,name=req_num,json=reqNum" json:"req_num,omitempty"`
	ReqSize   *TimedQuota `protobuf:"bytes,2,opt,name=req_size,json=reqSize" json:"req_size,omitempty"`
	WriteNum  *TimedQuota `protobuf:"bytes,3,opt,name=write_num,json=writeNum" json:"write_num,omitempty"`
	WriteSize *TimedQuota `protobuf:"bytes,4,opt,name=write_size,json=writeSize" json:"write_size,omitempty"`
	ReadNum   *TimedQuota `protobuf:"bytes,5,opt,name=read_num,json=readNum" json:"read_num,omitempty"`
	ReadSize  *TimedQuota `protobuf:"bytes,6,opt,name=read_size,json=readSize" json:"read_size,omitempty"`
}
func (x *Throttle) Reset() {
	*x = Throttle{}
	if protoimpl.UnsafeEnabled {
		mi := &file_Quota_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *Throttle) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*Throttle) ProtoMessage() {}
func (x *Throttle) ProtoReflect() protoreflect.Message {
	mi := &file_Quota_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*Throttle) Descriptor() ([]byte, []int) {
	return file_Quota_proto_rawDescGZIP(), []int{1}
}
func (x *Throttle) GetReqNum() *TimedQuota {
	if x != nil {
		return x.ReqNum
	}
	return nil
}
func (x *Throttle) GetReqSize() *TimedQuota {
	if x != nil {
		return x.ReqSize
	}
	return nil
}
func (x *Throttle) GetWriteNum() *TimedQuota {
	if x != nil {
		return x.WriteNum
	}
	return nil
}
func (x *Throttle) GetWriteSize() *TimedQuota {
	if x != nil {
		return x.WriteSize
	}
	return nil
}
func (x *Throttle) GetReadNum() *TimedQuota {
	if x != nil {
		return x.ReadNum
	}
	return nil
}
func (x *Throttle) GetReadSize() *TimedQuota {
	if x != nil {
		return x.ReadSize
	}
	return nil
}
type ThrottleRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Type       *ThrottleType `protobuf:"varint,1,opt,name=type,enum=pb.ThrottleType" json:"type,omitempty"`
	TimedQuota *TimedQuota   `protobuf:"bytes,2,opt,name=timed_quota,json=timedQuota" json:"timed_quota,omitempty"`
}
func (x *ThrottleRequest) Reset() {
	*x = ThrottleRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_Quota_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *ThrottleRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*ThrottleRequest) ProtoMessage() {}
func (x *ThrottleRequest) ProtoReflect() protoreflect.Message {
	mi := &file_Quota_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}