github.com/tsuna/gohbase@v0.0.0-20250731002811-4ffcadfba63e/pb/Quota.pb.go (about)

     1  //*
     2  // Licensed to the Apache Software Foundation (ASF) under one
     3  // or more contributor license agreements.  See the NOTICE file
     4  // distributed with this work for additional information
     5  // regarding copyright ownership.  The ASF licenses this file
     6  // to you under the Apache License, Version 2.0 (the
     7  // "License"); you may not use this file except in compliance
     8  // with the License.  You may obtain a copy of the License at
     9  //
    10  //     http://www.apache.org/licenses/LICENSE-2.0
    11  //
    12  // Unless required by applicable law or agreed to in writing, software
    13  // distributed under the License is distributed on an "AS IS" BASIS,
    14  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  // See the License for the specific language governing permissions and
    16  // limitations under the License.
    17  
    18  // Code generated by protoc-gen-go. DO NOT EDIT.
    19  // versions:
    20  // 	protoc-gen-go v1.36.4
    21  // 	protoc        v5.28.3
    22  // source: Quota.proto
    23  
    24  package pb
    25  
    26  import (
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	reflect "reflect"
    30  	sync "sync"
    31  	unsafe "unsafe"
    32  )
    33  
    34  const (
    35  	// Verify that this generated code is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    37  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    39  )
    40  
    41  type QuotaScope int32
    42  
    43  const (
    44  	QuotaScope_CLUSTER QuotaScope = 1
    45  	QuotaScope_MACHINE QuotaScope = 2
    46  )
    47  
    48  // Enum value maps for QuotaScope.
    49  var (
    50  	QuotaScope_name = map[int32]string{
    51  		1: "CLUSTER",
    52  		2: "MACHINE",
    53  	}
    54  	QuotaScope_value = map[string]int32{
    55  		"CLUSTER": 1,
    56  		"MACHINE": 2,
    57  	}
    58  )
    59  
    60  func (x QuotaScope) Enum() *QuotaScope {
    61  	p := new(QuotaScope)
    62  	*p = x
    63  	return p
    64  }
    65  
    66  func (x QuotaScope) String() string {
    67  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    68  }
    69  
    70  func (QuotaScope) Descriptor() protoreflect.EnumDescriptor {
    71  	return file_Quota_proto_enumTypes[0].Descriptor()
    72  }
    73  
    74  func (QuotaScope) Type() protoreflect.EnumType {
    75  	return &file_Quota_proto_enumTypes[0]
    76  }
    77  
    78  func (x QuotaScope) Number() protoreflect.EnumNumber {
    79  	return protoreflect.EnumNumber(x)
    80  }
    81  
    82  // Deprecated: Do not use.
    83  func (x *QuotaScope) UnmarshalJSON(b []byte) error {
    84  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
    85  	if err != nil {
    86  		return err
    87  	}
    88  	*x = QuotaScope(num)
    89  	return nil
    90  }
    91  
    92  // Deprecated: Use QuotaScope.Descriptor instead.
    93  func (QuotaScope) EnumDescriptor() ([]byte, []int) {
    94  	return file_Quota_proto_rawDescGZIP(), []int{0}
    95  }
    96  
    97  type ThrottleType int32
    98  
    99  const (
   100  	ThrottleType_REQUEST_NUMBER ThrottleType = 1
   101  	ThrottleType_REQUEST_SIZE   ThrottleType = 2
   102  	ThrottleType_WRITE_NUMBER   ThrottleType = 3
   103  	ThrottleType_WRITE_SIZE     ThrottleType = 4
   104  	ThrottleType_READ_NUMBER    ThrottleType = 5
   105  	ThrottleType_READ_SIZE      ThrottleType = 6
   106  )
   107  
   108  // Enum value maps for ThrottleType.
   109  var (
   110  	ThrottleType_name = map[int32]string{
   111  		1: "REQUEST_NUMBER",
   112  		2: "REQUEST_SIZE",
   113  		3: "WRITE_NUMBER",
   114  		4: "WRITE_SIZE",
   115  		5: "READ_NUMBER",
   116  		6: "READ_SIZE",
   117  	}
   118  	ThrottleType_value = map[string]int32{
   119  		"REQUEST_NUMBER": 1,
   120  		"REQUEST_SIZE":   2,
   121  		"WRITE_NUMBER":   3,
   122  		"WRITE_SIZE":     4,
   123  		"READ_NUMBER":    5,
   124  		"READ_SIZE":      6,
   125  	}
   126  )
   127  
   128  func (x ThrottleType) Enum() *ThrottleType {
   129  	p := new(ThrottleType)
   130  	*p = x
   131  	return p
   132  }
   133  
   134  func (x ThrottleType) String() string {
   135  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   136  }
   137  
   138  func (ThrottleType) Descriptor() protoreflect.EnumDescriptor {
   139  	return file_Quota_proto_enumTypes[1].Descriptor()
   140  }
   141  
   142  func (ThrottleType) Type() protoreflect.EnumType {
   143  	return &file_Quota_proto_enumTypes[1]
   144  }
   145  
   146  func (x ThrottleType) Number() protoreflect.EnumNumber {
   147  	return protoreflect.EnumNumber(x)
   148  }
   149  
   150  // Deprecated: Do not use.
   151  func (x *ThrottleType) UnmarshalJSON(b []byte) error {
   152  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
   153  	if err != nil {
   154  		return err
   155  	}
   156  	*x = ThrottleType(num)
   157  	return nil
   158  }
   159  
   160  // Deprecated: Use ThrottleType.Descriptor instead.
   161  func (ThrottleType) EnumDescriptor() ([]byte, []int) {
   162  	return file_Quota_proto_rawDescGZIP(), []int{1}
   163  }
   164  
   165  type QuotaType int32
   166  
   167  const (
   168  	QuotaType_THROTTLE QuotaType = 1
   169  )
   170  
   171  // Enum value maps for QuotaType.
   172  var (
   173  	QuotaType_name = map[int32]string{
   174  		1: "THROTTLE",
   175  	}
   176  	QuotaType_value = map[string]int32{
   177  		"THROTTLE": 1,
   178  	}
   179  )
   180  
   181  func (x QuotaType) Enum() *QuotaType {
   182  	p := new(QuotaType)
   183  	*p = x
   184  	return p
   185  }
   186  
   187  func (x QuotaType) String() string {
   188  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   189  }
   190  
   191  func (QuotaType) Descriptor() protoreflect.EnumDescriptor {
   192  	return file_Quota_proto_enumTypes[2].Descriptor()
   193  }
   194  
   195  func (QuotaType) Type() protoreflect.EnumType {
   196  	return &file_Quota_proto_enumTypes[2]
   197  }
   198  
   199  func (x QuotaType) Number() protoreflect.EnumNumber {
   200  	return protoreflect.EnumNumber(x)
   201  }
   202  
   203  // Deprecated: Do not use.
   204  func (x *QuotaType) UnmarshalJSON(b []byte) error {
   205  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
   206  	if err != nil {
   207  		return err
   208  	}
   209  	*x = QuotaType(num)
   210  	return nil
   211  }
   212  
   213  // Deprecated: Use QuotaType.Descriptor instead.
   214  func (QuotaType) EnumDescriptor() ([]byte, []int) {
   215  	return file_Quota_proto_rawDescGZIP(), []int{2}
   216  }
   217  
   218  type TimedQuota struct {
   219  	state         protoimpl.MessageState `protogen:"open.v1"`
   220  	TimeUnit      *TimeUnit              `protobuf:"varint,1,req,name=time_unit,json=timeUnit,enum=pb.TimeUnit" json:"time_unit,omitempty"`
   221  	SoftLimit     *uint64                `protobuf:"varint,2,opt,name=soft_limit,json=softLimit" json:"soft_limit,omitempty"`
   222  	Share         *float32               `protobuf:"fixed32,3,opt,name=share" json:"share,omitempty"`
   223  	Scope         *QuotaScope            `protobuf:"varint,4,opt,name=scope,enum=pb.QuotaScope,def=2" json:"scope,omitempty"`
   224  	unknownFields protoimpl.UnknownFields
   225  	sizeCache     protoimpl.SizeCache
   226  }
   227  
   228  // Default values for TimedQuota fields.
   229  const (
   230  	Default_TimedQuota_Scope = QuotaScope_MACHINE
   231  )
   232  
   233  func (x *TimedQuota) Reset() {
   234  	*x = TimedQuota{}
   235  	mi := &file_Quota_proto_msgTypes[0]
   236  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   237  	ms.StoreMessageInfo(mi)
   238  }
   239  
   240  func (x *TimedQuota) String() string {
   241  	return protoimpl.X.MessageStringOf(x)
   242  }
   243  
   244  func (*TimedQuota) ProtoMessage() {}
   245  
   246  func (x *TimedQuota) ProtoReflect() protoreflect.Message {
   247  	mi := &file_Quota_proto_msgTypes[0]
   248  	if x != nil {
   249  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   250  		if ms.LoadMessageInfo() == nil {
   251  			ms.StoreMessageInfo(mi)
   252  		}
   253  		return ms
   254  	}
   255  	return mi.MessageOf(x)
   256  }
   257  
   258  // Deprecated: Use TimedQuota.ProtoReflect.Descriptor instead.
   259  func (*TimedQuota) Descriptor() ([]byte, []int) {
   260  	return file_Quota_proto_rawDescGZIP(), []int{0}
   261  }
   262  
   263  func (x *TimedQuota) GetTimeUnit() TimeUnit {
   264  	if x != nil && x.TimeUnit != nil {
   265  		return *x.TimeUnit
   266  	}
   267  	return TimeUnit_NANOSECONDS
   268  }
   269  
   270  func (x *TimedQuota) GetSoftLimit() uint64 {
   271  	if x != nil && x.SoftLimit != nil {
   272  		return *x.SoftLimit
   273  	}
   274  	return 0
   275  }
   276  
   277  func (x *TimedQuota) GetShare() float32 {
   278  	if x != nil && x.Share != nil {
   279  		return *x.Share
   280  	}
   281  	return 0
   282  }
   283  
   284  func (x *TimedQuota) GetScope() QuotaScope {
   285  	if x != nil && x.Scope != nil {
   286  		return *x.Scope
   287  	}
   288  	return Default_TimedQuota_Scope
   289  }
   290  
   291  type Throttle struct {
   292  	state         protoimpl.MessageState `protogen:"open.v1"`
   293  	ReqNum        *TimedQuota            `protobuf:"bytes,1,opt,name=req_num,json=reqNum" json:"req_num,omitempty"`
   294  	ReqSize       *TimedQuota            `protobuf:"bytes,2,opt,name=req_size,json=reqSize" json:"req_size,omitempty"`
   295  	WriteNum      *TimedQuota            `protobuf:"bytes,3,opt,name=write_num,json=writeNum" json:"write_num,omitempty"`
   296  	WriteSize     *TimedQuota            `protobuf:"bytes,4,opt,name=write_size,json=writeSize" json:"write_size,omitempty"`
   297  	ReadNum       *TimedQuota            `protobuf:"bytes,5,opt,name=read_num,json=readNum" json:"read_num,omitempty"`
   298  	ReadSize      *TimedQuota            `protobuf:"bytes,6,opt,name=read_size,json=readSize" json:"read_size,omitempty"`
   299  	unknownFields protoimpl.UnknownFields
   300  	sizeCache     protoimpl.SizeCache
   301  }
   302  
   303  func (x *Throttle) Reset() {
   304  	*x = Throttle{}
   305  	mi := &file_Quota_proto_msgTypes[1]
   306  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   307  	ms.StoreMessageInfo(mi)
   308  }
   309  
   310  func (x *Throttle) String() string {
   311  	return protoimpl.X.MessageStringOf(x)
   312  }
   313  
   314  func (*Throttle) ProtoMessage() {}
   315  
   316  func (x *Throttle) ProtoReflect() protoreflect.Message {
   317  	mi := &file_Quota_proto_msgTypes[1]
   318  	if x != nil {
   319  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   320  		if ms.LoadMessageInfo() == nil {
   321  			ms.StoreMessageInfo(mi)
   322  		}
   323  		return ms
   324  	}
   325  	return mi.MessageOf(x)
   326  }
   327  
   328  // Deprecated: Use Throttle.ProtoReflect.Descriptor instead.
   329  func (*Throttle) Descriptor() ([]byte, []int) {
   330  	return file_Quota_proto_rawDescGZIP(), []int{1}
   331  }
   332  
   333  func (x *Throttle) GetReqNum() *TimedQuota {
   334  	if x != nil {
   335  		return x.ReqNum
   336  	}
   337  	return nil
   338  }
   339  
   340  func (x *Throttle) GetReqSize() *TimedQuota {
   341  	if x != nil {
   342  		return x.ReqSize
   343  	}
   344  	return nil
   345  }
   346  
   347  func (x *Throttle) GetWriteNum() *TimedQuota {
   348  	if x != nil {
   349  		return x.WriteNum
   350  	}
   351  	return nil
   352  }
   353  
   354  func (x *Throttle) GetWriteSize() *TimedQuota {
   355  	if x != nil {
   356  		return x.WriteSize
   357  	}
   358  	return nil
   359  }
   360  
   361  func (x *Throttle) GetReadNum() *TimedQuota {
   362  	if x != nil {
   363  		return x.ReadNum
   364  	}
   365  	return nil
   366  }
   367  
   368  func (x *Throttle) GetReadSize() *TimedQuota {
   369  	if x != nil {
   370  		return x.ReadSize
   371  	}
   372  	return nil
   373  }
   374  
   375  type ThrottleRequest struct {
   376  	state         protoimpl.MessageState `protogen:"open.v1"`
   377  	Type          *ThrottleType          `protobuf:"varint,1,opt,name=type,enum=pb.ThrottleType" json:"type,omitempty"`
   378  	TimedQuota    *TimedQuota            `protobuf:"bytes,2,opt,name=timed_quota,json=timedQuota" json:"timed_quota,omitempty"`
   379  	unknownFields protoimpl.UnknownFields
   380  	sizeCache     protoimpl.SizeCache
   381  }
   382  
   383  func (x *ThrottleRequest) Reset() {
   384  	*x = ThrottleRequest{}
   385  	mi := &file_Quota_proto_msgTypes[2]
   386  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   387  	ms.StoreMessageInfo(mi)
   388  }
   389  
   390  func (x *ThrottleRequest) String() string {
   391  	return protoimpl.X.MessageStringOf(x)
   392  }
   393  
   394  func (*ThrottleRequest) ProtoMessage() {}
   395  
   396  func (x *ThrottleRequest) ProtoReflect() protoreflect.Message {
   397  	mi := &file_Quota_proto_msgTypes[2]
   398  	if x != nil {
   399  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   400  		if ms.LoadMessageInfo() == nil {
   401  			ms.StoreMessageInfo(mi)
   402  		}
   403  		return ms
   404  	}
   405  	return mi.MessageOf(x)
   406  }
   407  
   408  // Deprecated: Use ThrottleRequest.ProtoReflect.Descriptor instead.
   409  func (*ThrottleRequest) Descriptor() ([]byte, []int) {
   410  	return file_Quota_proto_rawDescGZIP(), []int{2}
   411  }
   412  
   413  func (x *ThrottleRequest) GetType() ThrottleType {
   414  	if x != nil && x.Type != nil {
   415  		return *x.Type
   416  	}
   417  	return ThrottleType_REQUEST_NUMBER
   418  }
   419  
   420  func (x *ThrottleRequest) GetTimedQuota() *TimedQuota {
   421  	if x != nil {
   422  		return x.TimedQuota
   423  	}
   424  	return nil
   425  }
   426  
   427  type Quotas struct {
   428  	state         protoimpl.MessageState `protogen:"open.v1"`
   429  	BypassGlobals *bool                  `protobuf:"varint,1,opt,name=bypass_globals,json=bypassGlobals,def=0" json:"bypass_globals,omitempty"`
   430  	Throttle      *Throttle              `protobuf:"bytes,2,opt,name=throttle" json:"throttle,omitempty"`
   431  	unknownFields protoimpl.UnknownFields
   432  	sizeCache     protoimpl.SizeCache
   433  }
   434  
   435  // Default values for Quotas fields.
   436  const (
   437  	Default_Quotas_BypassGlobals = bool(false)
   438  )
   439  
   440  func (x *Quotas) Reset() {
   441  	*x = Quotas{}
   442  	mi := &file_Quota_proto_msgTypes[3]
   443  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   444  	ms.StoreMessageInfo(mi)
   445  }
   446  
   447  func (x *Quotas) String() string {
   448  	return protoimpl.X.MessageStringOf(x)
   449  }
   450  
   451  func (*Quotas) ProtoMessage() {}
   452  
   453  func (x *Quotas) ProtoReflect() protoreflect.Message {
   454  	mi := &file_Quota_proto_msgTypes[3]
   455  	if x != nil {
   456  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   457  		if ms.LoadMessageInfo() == nil {
   458  			ms.StoreMessageInfo(mi)
   459  		}
   460  		return ms
   461  	}
   462  	return mi.MessageOf(x)
   463  }
   464  
   465  // Deprecated: Use Quotas.ProtoReflect.Descriptor instead.
   466  func (*Quotas) Descriptor() ([]byte, []int) {
   467  	return file_Quota_proto_rawDescGZIP(), []int{3}
   468  }
   469  
   470  func (x *Quotas) GetBypassGlobals() bool {
   471  	if x != nil && x.BypassGlobals != nil {
   472  		return *x.BypassGlobals
   473  	}
   474  	return Default_Quotas_BypassGlobals
   475  }
   476  
   477  func (x *Quotas) GetThrottle() *Throttle {
   478  	if x != nil {
   479  		return x.Throttle
   480  	}
   481  	return nil
   482  }
   483  
   484  type QuotaUsage struct {
   485  	state         protoimpl.MessageState `protogen:"open.v1"`
   486  	unknownFields protoimpl.UnknownFields
   487  	sizeCache     protoimpl.SizeCache
   488  }
   489  
   490  func (x *QuotaUsage) Reset() {
   491  	*x = QuotaUsage{}
   492  	mi := &file_Quota_proto_msgTypes[4]
   493  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   494  	ms.StoreMessageInfo(mi)
   495  }
   496  
   497  func (x *QuotaUsage) String() string {
   498  	return protoimpl.X.MessageStringOf(x)
   499  }
   500  
   501  func (*QuotaUsage) ProtoMessage() {}
   502  
   503  func (x *QuotaUsage) ProtoReflect() protoreflect.Message {
   504  	mi := &file_Quota_proto_msgTypes[4]
   505  	if x != nil {
   506  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   507  		if ms.LoadMessageInfo() == nil {
   508  			ms.StoreMessageInfo(mi)
   509  		}
   510  		return ms
   511  	}
   512  	return mi.MessageOf(x)
   513  }
   514  
   515  // Deprecated: Use QuotaUsage.ProtoReflect.Descriptor instead.
   516  func (*QuotaUsage) Descriptor() ([]byte, []int) {
   517  	return file_Quota_proto_rawDescGZIP(), []int{4}
   518  }
   519  
   520  var File_Quota_proto protoreflect.FileDescriptor
   521  
   522  var file_Quota_proto_rawDesc = string([]byte{
   523  	0x0a, 0x0b, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70,
   524  	0x62, 0x1a, 0x0b, 0x48, 0x42, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9b,
   525  	0x01, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x29, 0x0a,
   526  	0x09, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0e,
   527  	0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x52, 0x08,
   528  	0x74, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x66, 0x74,
   529  	0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x6f,
   530  	0x66, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65,
   531  	0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2d, 0x0a,
   532  	0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x70,
   533  	0x62, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x3a, 0x07, 0x4d, 0x41,
   534  	0x43, 0x48, 0x49, 0x4e, 0x45, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x22, 0x92, 0x02, 0x0a,
   535  	0x08, 0x54, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x07, 0x72, 0x65, 0x71,
   536  	0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
   537  	0x54, 0x69, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x06, 0x72, 0x65, 0x71, 0x4e,
   538  	0x75, 0x6d, 0x12, 0x29, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,
   539  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x51,
   540  	0x75, 0x6f, 0x74, 0x61, 0x52, 0x07, 0x72, 0x65, 0x71, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2b, 0x0a,
   541  	0x09, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
   542  	0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x6f, 0x74, 0x61,
   543  	0x52, 0x08, 0x77, 0x72, 0x69, 0x74, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x2d, 0x0a, 0x0a, 0x77, 0x72,
   544  	0x69, 0x74, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e,
   545  	0x2e, 0x70, 0x62, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x09,
   546  	0x77, 0x72, 0x69, 0x74, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x29, 0x0a, 0x08, 0x72, 0x65, 0x61,
   547  	0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62,
   548  	0x2e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x07, 0x72, 0x65, 0x61,
   549  	0x64, 0x4e, 0x75, 0x6d, 0x12, 0x2b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x73, 0x69, 0x7a,
   550  	0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x69, 0x6d,
   551  	0x65, 0x64, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x53, 0x69, 0x7a,
   552  	0x65, 0x22, 0x68, 0x0a, 0x0f, 0x54, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x71,
   553  	0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
   554  	0x28, 0x0e, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65,
   555  	0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2f, 0x0a, 0x0b, 0x74, 0x69,
   556  	0x6d, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
   557  	0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x52,
   558  	0x0a, 0x74, 0x69, 0x6d, 0x65, 0x64, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x22, 0x60, 0x0a, 0x06, 0x51,
   559  	0x75, 0x6f, 0x74, 0x61, 0x73, 0x12, 0x2c, 0x0a, 0x0e, 0x62, 0x79, 0x70, 0x61, 0x73, 0x73, 0x5f,
   560  	0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66,
   561  	0x61, 0x6c, 0x73, 0x65, 0x52, 0x0d, 0x62, 0x79, 0x70, 0x61, 0x73, 0x73, 0x47, 0x6c, 0x6f, 0x62,
   562  	0x61, 0x6c, 0x73, 0x12, 0x28, 0x0a, 0x08, 0x74, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x18,
   563  	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x68, 0x72, 0x6f, 0x74,
   564  	0x74, 0x6c, 0x65, 0x52, 0x08, 0x74, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x22, 0x0c, 0x0a,
   565  	0x0a, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x55, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x26, 0x0a, 0x0a, 0x51,
   566  	0x75, 0x6f, 0x74, 0x61, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4c, 0x55,
   567  	0x53, 0x54, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x43, 0x48, 0x49, 0x4e,
   568  	0x45, 0x10, 0x02, 0x2a, 0x76, 0x0a, 0x0c, 0x54, 0x68, 0x72, 0x6f, 0x74, 0x74, 0x6c, 0x65, 0x54,
   569  	0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x4e,
   570  	0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x45, 0x51, 0x55, 0x45,
   571  	0x53, 0x54, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x57, 0x52, 0x49,
   572  	0x54, 0x45, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x57,
   573  	0x52, 0x49, 0x54, 0x45, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x52,
   574  	0x45, 0x41, 0x44, 0x5f, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09,
   575  	0x52, 0x45, 0x41, 0x44, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x06, 0x2a, 0x19, 0x0a, 0x09, 0x51,
   576  	0x75, 0x6f, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x48, 0x52, 0x4f,
   577  	0x54, 0x54, 0x4c, 0x45, 0x10, 0x01, 0x42, 0x48, 0x0a, 0x2a, 0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70,
   578  	0x61, 0x63, 0x68, 0x65, 0x2e, 0x68, 0x61, 0x64, 0x6f, 0x6f, 0x70, 0x2e, 0x68, 0x62, 0x61, 0x73,
   579  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72,
   580  	0x61, 0x74, 0x65, 0x64, 0x42, 0x0b, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f,
   581  	0x73, 0x48, 0x01, 0x5a, 0x05, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0x88, 0x01, 0x01, 0xa0, 0x01, 0x01,
   582  })
   583  
   584  var (
   585  	file_Quota_proto_rawDescOnce sync.Once
   586  	file_Quota_proto_rawDescData []byte
   587  )
   588  
   589  func file_Quota_proto_rawDescGZIP() []byte {
   590  	file_Quota_proto_rawDescOnce.Do(func() {
   591  		file_Quota_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_Quota_proto_rawDesc), len(file_Quota_proto_rawDesc)))
   592  	})
   593  	return file_Quota_proto_rawDescData
   594  }
   595  
   596  var file_Quota_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
   597  var file_Quota_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   598  var file_Quota_proto_goTypes = []any{
   599  	(QuotaScope)(0),         // 0: pb.QuotaScope
   600  	(ThrottleType)(0),       // 1: pb.ThrottleType
   601  	(QuotaType)(0),          // 2: pb.QuotaType
   602  	(*TimedQuota)(nil),      // 3: pb.TimedQuota
   603  	(*Throttle)(nil),        // 4: pb.Throttle
   604  	(*ThrottleRequest)(nil), // 5: pb.ThrottleRequest
   605  	(*Quotas)(nil),          // 6: pb.Quotas
   606  	(*QuotaUsage)(nil),      // 7: pb.QuotaUsage
   607  	(TimeUnit)(0),           // 8: pb.TimeUnit
   608  }
   609  var file_Quota_proto_depIdxs = []int32{
   610  	8,  // 0: pb.TimedQuota.time_unit:type_name -> pb.TimeUnit
   611  	0,  // 1: pb.TimedQuota.scope:type_name -> pb.QuotaScope
   612  	3,  // 2: pb.Throttle.req_num:type_name -> pb.TimedQuota
   613  	3,  // 3: pb.Throttle.req_size:type_name -> pb.TimedQuota
   614  	3,  // 4: pb.Throttle.write_num:type_name -> pb.TimedQuota
   615  	3,  // 5: pb.Throttle.write_size:type_name -> pb.TimedQuota
   616  	3,  // 6: pb.Throttle.read_num:type_name -> pb.TimedQuota
   617  	3,  // 7: pb.Throttle.read_size:type_name -> pb.TimedQuota
   618  	1,  // 8: pb.ThrottleRequest.type:type_name -> pb.ThrottleType
   619  	3,  // 9: pb.ThrottleRequest.timed_quota:type_name -> pb.TimedQuota
   620  	4,  // 10: pb.Quotas.throttle:type_name -> pb.Throttle
   621  	11, // [11:11] is the sub-list for method output_type
   622  	11, // [11:11] is the sub-list for method input_type
   623  	11, // [11:11] is the sub-list for extension type_name
   624  	11, // [11:11] is the sub-list for extension extendee
   625  	0,  // [0:11] is the sub-list for field type_name
   626  }
   627  
   628  func init() { file_Quota_proto_init() }
   629  func file_Quota_proto_init() {
   630  	if File_Quota_proto != nil {
   631  		return
   632  	}
   633  	file_HBase_proto_init()
   634  	type x struct{}
   635  	out := protoimpl.TypeBuilder{
   636  		File: protoimpl.DescBuilder{
   637  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   638  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_Quota_proto_rawDesc), len(file_Quota_proto_rawDesc)),
   639  			NumEnums:      3,
   640  			NumMessages:   5,
   641  			NumExtensions: 0,
   642  			NumServices:   0,
   643  		},
   644  		GoTypes:           file_Quota_proto_goTypes,
   645  		DependencyIndexes: file_Quota_proto_depIdxs,
   646  		EnumInfos:         file_Quota_proto_enumTypes,
   647  		MessageInfos:      file_Quota_proto_msgTypes,
   648  	}.Build()
   649  	File_Quota_proto = out.File
   650  	file_Quota_proto_goTypes = nil
   651  	file_Quota_proto_depIdxs = nil
   652  }