// Copyright 2017 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.20.1
// source: quotapb.proto

package quotapb

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
	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)
)

// Possible states of a quota configuration.
type Config_State int32

const (
	// Unknown quota state. Invalid.
	Config_UNKNOWN_CONFIG_STATE Config_State = 0
	// Quota is enabled.
	Config_ENABLED Config_State = 1
	// Quota is disabled (considered infinite).
	Config_DISABLED Config_State = 2
)

// Enum value maps for Config_State.
var (
	Config_State_name = map[int32]string{
		0: "UNKNOWN_CONFIG_STATE",
		1: "ENABLED",
		2: "DISABLED",
	}
	Config_State_value = map[string]int32{
		"UNKNOWN_CONFIG_STATE": 0,
		"ENABLED":              1,
		"DISABLED":             2,
	}
)

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

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

func (Config_State) Descriptor() protoreflect.EnumDescriptor {
	return file_quotapb_proto_enumTypes[0].Descriptor()
}

func (Config_State) Type() protoreflect.EnumType {
	return &file_quotapb_proto_enumTypes[0]
}

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

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

// Possible views for ListConfig.
type ListConfigsRequest_ListView int32

const (
	// Only the Config name gets returned.
	ListConfigsRequest_BASIC ListConfigsRequest_ListView = 0
	// Complete Config.
	ListConfigsRequest_FULL ListConfigsRequest_ListView = 1
)

// Enum value maps for ListConfigsRequest_ListView.
var (
	ListConfigsRequest_ListView_name = map[int32]string{
		0: "BASIC",
		1: "FULL",
	}
	ListConfigsRequest_ListView_value = map[string]int32{
		"BASIC": 0,
		"FULL":  1,
	}
)

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

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

func (ListConfigsRequest_ListView) Descriptor() protoreflect.EnumDescriptor {
	return file_quotapb_proto_enumTypes[1].Descriptor()
}

func (ListConfigsRequest_ListView) Type() protoreflect.EnumType {
	return &file_quotapb_proto_enumTypes[1]
}

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

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

// Configuration of a quota.
//
// Quotas contain a certain number of tokens that get applied to their
// corresponding entities. Global quotas apply to all operations, tree and user
// quotas to certain trees and users, respectively.
//
// Performing an operation costs a certain number of tokens (usually one). Once
// a quota has no more tokens available, requests that would subtract from it
// are denied with a resource_exhausted error.
//
// Tokens may be replenished in two different ways: either by passage of time or
// sequencing progress. Time-based replenishment adds a fixed amount of tokens
// after a certain interval. Sequencing-based adds a token for each leaf
// processed by the sequencer. Sequencing-based replenishment may only be used
// with global and tree quotas.
//
// A quota may be disabled or removed at any time. The effect is the same: a
// disabled or non-existing quota is considered infinite by the quota system.
// (Disabling is handy if you plan to re-enable a quota later on.)
type Config struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the config, eg, “quotas/trees/1234/read/config”.
	// Readonly.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// State of the config.
	State Config_State `protobuf:"varint,2,opt,name=state,proto3,enum=quotapb.Config_State" json:"state,omitempty"`
	// Max number of tokens available for the config.
	MaxTokens int64 `protobuf:"varint,3,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"`
	// Replenishment strategy used by the config.
	//
	// Types that are valid to be assigned to ReplenishmentStrategy:
	//
	//	*Config_SequencingBased
	//	*Config_TimeBased
	ReplenishmentStrategy isConfig_ReplenishmentStrategy `protobuf_oneof:"replenishment_strategy"`
	// Current number of tokens available for the config.
	// May be higher than max_tokens for DISABLED configs, which are considered to
	// have "infinite" tokens.
	// Readonly.
	CurrentTokens int64 `protobuf:"varint,6,opt,name=current_tokens,json=currentTokens,proto3" json:"current_tokens,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Config) ProtoMessage() {}

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

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

func (x *Config) GetState() Config_State {
	if x != nil {
		return x.State
	}
	return Config_UNKNOWN_CONFIG_STATE
}

func (x *Config) GetMaxTokens() int64 {
	if x != nil {
		return x.MaxTokens
	}
	return 0
}

func (x *Config) GetReplenishmentStrategy() isConfig_ReplenishmentStrategy {
	if x != nil {
		return x.ReplenishmentStrategy
	}
	return nil
}

func (x *Config) GetSequencingBased() *SequencingBasedStrategy {
	if x != nil {
		if x, ok := x.ReplenishmentStrategy.(*Config_SequencingBased); ok {
			return x.SequencingBased
		}
	}
	return nil
}

func (x *Config) GetTimeBased() *TimeBasedStrategy {
	if x != nil {
		if x, ok := x.ReplenishmentStrategy.(*Config_TimeBased); ok {
			return x.TimeBased
		}
	}
	return nil
}

func (x *Config) GetCurrentTokens() int64 {
	if x != nil {
		return x.CurrentTokens
	}
	return 0
}

type isConfig_ReplenishmentStrategy interface {
	isConfig_ReplenishmentStrategy()
}

type Config_SequencingBased struct {
	// Sequencing-based replenishment settings.
	SequencingBased *SequencingBasedStrategy `protobuf:"bytes,4,opt,name=sequencing_based,json=sequencingBased,proto3,oneof"`
}

type Config_TimeBased struct {
	// Time-based replenishment settings.
	TimeBased *TimeBasedStrategy `protobuf:"bytes,5,opt,name=time_based,json=timeBased,proto3,oneof"`
}

func (*Config_SequencingBased) isConfig_ReplenishmentStrategy() {}

func (*Config_TimeBased) isConfig_ReplenishmentStrategy() {}

// Sequencing-based replenishment strategy settings.
//
// Only global/write and trees/write quotas may use sequencing-based
// replenishment.
type SequencingBasedStrategy struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SequencingBasedStrategy) ProtoMessage() {}

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

// Time-based replenishment strategy settings.
type TimeBasedStrategy struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Number of tokens to replenish at every replenish_interval_seconds.
	TokensToReplenish int64 `protobuf:"varint,1,opt,name=tokens_to_replenish,json=tokensToReplenish,proto3" json:"tokens_to_replenish,omitempty"`
	// Interval at which tokens_to_replenish get replenished.
	ReplenishIntervalSeconds int64 `protobuf:"varint,2,opt,name=replenish_interval_seconds,json=replenishIntervalSeconds,proto3" json:"replenish_interval_seconds,omitempty"`
	unknownFields            protoimpl.UnknownFields
	sizeCache                protoimpl.SizeCache
}

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

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

func (*TimeBasedStrategy) ProtoMessage() {}

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

func (x *TimeBasedStrategy) GetTokensToReplenish() int64 {
	if x != nil {
		return x.TokensToReplenish
	}
	return 0
}

func (x *TimeBasedStrategy) GetReplenishIntervalSeconds() int64 {
	if x != nil {
		return x.ReplenishIntervalSeconds
	}
	return 0
}

// CreateConfig request.
type CreateConfigRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the config to create.
	// For example, "quotas/global/read/config" (global/read quota) or
	// "quotas/trees/1234/write/config" (write quota for tree 1234).
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Config to be created.
	Config        *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CreateConfigRequest) ProtoMessage() {}

func (x *CreateConfigRequest) ProtoReflect() protoreflect.Message {
	mi := &file_quotapb_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 CreateConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateConfigRequest) Descriptor() ([]byte, []int) {
	return file_quotapb_proto_rawDescGZIP(), []int{3}
}

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

func (x *CreateConfigRequest) GetConfig() *Config {
	if x != nil {
		return x.Config
	}
	return nil
}

// DeleteConfig request.
type DeleteConfigRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the config to delete.
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteConfigRequest) Reset() {
	*x = DeleteConfigRequest{}
	mi := &file_quotapb_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DeleteConfigRequest) ProtoMessage() {}

func (x *DeleteConfigRequest) ProtoReflect() protoreflect.Message {
	mi := &file_quotapb_proto_msgTypes[4]
	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 DeleteConfigRequest.ProtoReflect.Descriptor instead.
func (*DeleteConfigRequest) Descriptor() ([]byte, []int) {
	return file_quotapb_proto_rawDescGZIP(), []int{4}
}

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

// GetConfig request.
type GetConfigRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the config to retrieve.
	// For example, "quotas/global/read/config".
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetConfigRequest) Reset() {
	*x = GetConfigRequest{}
	mi := &file_quotapb_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*GetConfigRequest) ProtoMessage() {}

func (x *GetConfigRequest) ProtoReflect() protoreflect.Message {
	mi := &file_quotapb_proto_msgTypes[5]
	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 GetConfigRequest.ProtoReflect.Descriptor instead.
func (*GetConfigRequest) Descriptor() ([]byte, []int) {
	return file_quotapb_proto_rawDescGZIP(), []int{5}
}

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

// ListConfig request.
type ListConfigsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Names of the config to retrieve. For example, "quotas/global/read/config".
	// If empty, all configs are listed.
	// Name components may be substituted by "-" to search for all variations of
	// that component. For example:
	// - "quotas/global/-/config" (both read and write global quotas)
	// - "quotas/trees/-/-/config" (all tree quotas)
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// View specifies how much data to return.
	View          ListConfigsRequest_ListView `protobuf:"varint,2,opt,name=view,proto3,enum=quotapb.ListConfigsRequest_ListView" json:"view,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListConfigsRequest) Reset() {
	*x = ListConfigsRequest{}
	mi := &file_quotapb_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListConfigsRequest) ProtoMessage() {}

func (x *ListConfigsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_quotapb_proto_msgTypes[6]
	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 ListConfigsRequest.ProtoReflect.Descriptor instead.
func (*ListConfigsRequest) Descriptor() ([]byte, []int) {
	return file_quotapb_proto_rawDescGZIP(), []int{6}
}

func (x *ListConfigsRequest) GetNames() []string {
	if x != nil {
		return x.Names
	}
	return nil
}

func (x *ListConfigsRequest) GetView() ListConfigsRequest_ListView {
	if x != nil {
		return x.View
	}
	return ListConfigsRequest_BASIC
}

// ListConfig response.
type ListConfigsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Configs matching the request filter.
	Configs       []*Config `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListConfigsResponse) Reset() {
	*x = ListConfigsResponse{}
	mi := &file_quotapb_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListConfigsResponse) ProtoMessage() {}

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

func (x *ListConfigsResponse) GetConfigs() []*Config {
	if x != nil {
		return x.Configs
	}
	return nil
}

// Updates a quota config according to the update_mask provided.
//
// Some config changes will cause the current number of tokens to be updated, as
// listed below:
//
//   - If max_tokens is reduced and the current number of tokens is greater than
//     the new max_tokens, the current number of tokens is reduced to max_tokens.
//     This happens so the quota is immediately conformant to the new
//     configuration.
//
//   - A state transition from disabled to enabled causes the quota to be fully
//     replenished. This happens so the re-enabled quota will enter in action in a
//     known, predictable state.
//
// A "full replenish", also called "reset", may be forced via the reset_quota
// parameter, regardless of any other changes. For convenience, reset only
// requests (name and reset_quota = true) are allowed.
type UpdateConfigRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name of the config to update.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Config to update. Only the fields specified by update_mask need to be
	// filled.
	Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// Fields modified by the update request.
	// For example: "state" or "max_tokens".
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// If true the updated quota is reset, regardless of the update's contents.
	// A reset quota is replenished to its maximum number of tokens.
	ResetQuota    bool `protobuf:"varint,4,opt,name=reset_quota,json=resetQuota,proto3" json:"reset_quota,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpdateConfigRequest) Reset() {
	*x = UpdateConfigRequest{}
	mi := &file_quotapb_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*UpdateConfigRequest) ProtoMessage() {}

func (x *UpdateConfigRequest) ProtoReflect() protoreflect.Message {
	mi := &file_quotapb_proto_msgTypes[8]
	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 UpdateConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateConfigRequest) Descriptor() ([]byte, []int) {
	return file_quotapb_proto_rawDescGZIP(), []int{8}
}

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

func (x *UpdateConfigRequest) GetConfig() *Config {
	if x != nil {
		return x.Config
	}
	return nil
}

func (x *UpdateConfigRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
	if x != nil {
		return x.UpdateMask
	}
	return nil
}

func (x *UpdateConfigRequest) GetResetQuota() bool {
	if x != nil {
		return x.ResetQuota
	}
	return false
}

var File_quotapb_proto protoreflect.FileDescriptor

const file_quotapb_proto_rawDesc = "" +
	"\n" +
	"\rquotapb.proto\x12\aquotapb\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xf3\x02\n" +
	"\x06Config\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12+\n" +
	"\x05state\x18\x02 \x01(\x0e2\x15.quotapb.Config.StateR\x05state\x12\x1d\n" +
	"\n" +
	"max_tokens\x18\x03 \x01(\x03R\tmaxTokens\x12M\n" +
	"\x10sequencing_based\x18\x04 \x01(\v2 .quotapb.SequencingBasedStrategyH\x00R\x0fsequencingBased\x12;\n" +
	"\n" +
	"time_based\x18\x05 \x01(\v2\x1a.quotapb.TimeBasedStrategyH\x00R\ttimeBased\x12%\n" +
	"\x0ecurrent_tokens\x18\x06 \x01(\x03R\rcurrentTokens\"<\n" +
	"\x05State\x12\x18\n" +
	"\x14UNKNOWN_CONFIG_STATE\x10\x00\x12\v\n" +
	"\aENABLED\x10\x01\x12\f\n" +
	"\bDISABLED\x10\x02B\x18\n" +
	"\x16replenishment_strategy\"\x19\n" +
	"\x17SequencingBasedStrategy\"\x81\x01\n" +
	"\x11TimeBasedStrategy\x12.\n" +
	"\x13tokens_to_replenish\x18\x01 \x01(\x03R\x11tokensToReplenish\x12<\n" +
	"\x1areplenish_interval_seconds\x18\x02 \x01(\x03R\x18replenishIntervalSeconds\"R\n" +
	"\x13CreateConfigRequest\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12'\n" +
	"\x06config\x18\x02 \x01(\v2\x0f.quotapb.ConfigR\x06config\")\n" +
	"\x13DeleteConfigRequest\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\"&\n" +
	"\x10GetConfigRequest\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\"\x85\x01\n" +
	"\x12ListConfigsRequest\x12\x14\n" +
	"\x05names\x18\x01 \x03(\tR\x05names\x128\n" +
	"\x04view\x18\x02 \x01(\x0e2$.quotapb.ListConfigsRequest.ListViewR\x04view\"\x1f\n" +
	"\bListView\x12\t\n" +
	"\x05BASIC\x10\x00\x12\b\n" +
	"\x04FULL\x10\x01\"@\n" +
	"\x13ListConfigsResponse\x12)\n" +
	"\aconfigs\x18\x01 \x03(\v2\x0f.quotapb.ConfigR\aconfigs\"\xb0\x01\n" +
	"\x13UpdateConfigRequest\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12'\n" +
	"\x06config\x18\x02 \x01(\v2\x0f.quotapb.ConfigR\x06config\x12;\n" +
	"\vupdate_mask\x18\x03 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
	"updateMask\x12\x1f\n" +
	"\vreset_quota\x18\x04 \x01(\bR\n" +
	"resetQuota2\x95\x04\n" +
	"\x05Quota\x12j\n" +
	"\fCreateConfig\x12\x1c.quotapb.CreateConfigRequest\x1a\x0f.quotapb.Config\"+\x82\xd3\xe4\x93\x02%:\x01*\" /v1beta1/{name=quotas/**/config}\x12n\n" +
	"\fDeleteConfig\x12\x1c.quotapb.DeleteConfigRequest\x1a\x16.google.protobuf.Empty\"(\x82\xd3\xe4\x93\x02\"* /v1beta1/{name=quotas/**/config}\x12a\n" +
	"\tGetConfig\x12\x19.quotapb.GetConfigRequest\x1a\x0f.quotapb.Config\"(\x82\xd3\xe4\x93\x02\"\x12 /v1beta1/{name=quotas/**/config}\x12a\n" +
	"\vListConfigs\x12\x1b.quotapb.ListConfigsRequest\x1a\x1c.quotapb.ListConfigsResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1beta1/quotas\x12j\n" +
	"\fUpdateConfig\x12\x1c.quotapb.UpdateConfigRequest\x1a\x0f.quotapb.Config\"+\x82\xd3\xe4\x93\x02%:\x01*2 /v1beta1/{name=quotas/**/config}B/Z-github.com/google/trillian/quota/etcd/quotapbb\x06proto3"

var (
	file_quotapb_proto_rawDescOnce sync.Once
	file_quotapb_proto_rawDescData []byte
)

func file_quotapb_proto_rawDescGZIP() []byte {
	file_quotapb_proto_rawDescOnce.Do(func() {
		file_quotapb_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_quotapb_proto_rawDesc), len(file_quotapb_proto_rawDesc)))
	})
	return file_quotapb_proto_rawDescData
}

var file_quotapb_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_quotapb_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_quotapb_proto_goTypes = []any{
	(Config_State)(0),                // 0: quotapb.Config.State
	(ListConfigsRequest_ListView)(0), // 1: quotapb.ListConfigsRequest.ListView
	(*Config)(nil),                   // 2: quotapb.Config
	(*SequencingBasedStrategy)(nil),  // 3: quotapb.SequencingBasedStrategy
	(*TimeBasedStrategy)(nil),        // 4: quotapb.TimeBasedStrategy
	(*CreateConfigRequest)(nil),      // 5: quotapb.CreateConfigRequest
	(*DeleteConfigRequest)(nil),      // 6: quotapb.DeleteConfigRequest
	(*GetConfigRequest)(nil),         // 7: quotapb.GetConfigRequest
	(*ListConfigsRequest)(nil),       // 8: quotapb.ListConfigsRequest
	(*ListConfigsResponse)(nil),      // 9: quotapb.ListConfigsResponse
	(*UpdateConfigRequest)(nil),      // 10: quotapb.UpdateConfigRequest
	(*fieldmaskpb.FieldMask)(nil),    // 11: google.protobuf.FieldMask
	(*emptypb.Empty)(nil),            // 12: google.protobuf.Empty
}
var file_quotapb_proto_depIdxs = []int32{
	0,  // 0: quotapb.Config.state:type_name -> quotapb.Config.State
	3,  // 1: quotapb.Config.sequencing_based:type_name -> quotapb.SequencingBasedStrategy
	4,  // 2: quotapb.Config.time_based:type_name -> quotapb.TimeBasedStrategy
	2,  // 3: quotapb.CreateConfigRequest.config:type_name -> quotapb.Config
	1,  // 4: quotapb.ListConfigsRequest.view:type_name -> quotapb.ListConfigsRequest.ListView
	2,  // 5: quotapb.ListConfigsResponse.configs:type_name -> quotapb.Config
	2,  // 6: quotapb.UpdateConfigRequest.config:type_name -> quotapb.Config
	11, // 7: quotapb.UpdateConfigRequest.update_mask:type_name -> google.protobuf.FieldMask
	5,  // 8: quotapb.Quota.CreateConfig:input_type -> quotapb.CreateConfigRequest
	6,  // 9: quotapb.Quota.DeleteConfig:input_type -> quotapb.DeleteConfigRequest
	7,  // 10: quotapb.Quota.GetConfig:input_type -> quotapb.GetConfigRequest
	8,  // 11: quotapb.Quota.ListConfigs:input_type -> quotapb.ListConfigsRequest
	10, // 12: quotapb.Quota.UpdateConfig:input_type -> quotapb.UpdateConfigRequest
	2,  // 13: quotapb.Quota.CreateConfig:output_type -> quotapb.Config
	12, // 14: quotapb.Quota.DeleteConfig:output_type -> google.protobuf.Empty
	2,  // 15: quotapb.Quota.GetConfig:output_type -> quotapb.Config
	9,  // 16: quotapb.Quota.ListConfigs:output_type -> quotapb.ListConfigsResponse
	2,  // 17: quotapb.Quota.UpdateConfig:output_type -> quotapb.Config
	13, // [13:18] is the sub-list for method output_type
	8,  // [8:13] is the sub-list for method input_type
	8,  // [8:8] is the sub-list for extension type_name
	8,  // [8:8] is the sub-list for extension extendee
	0,  // [0:8] is the sub-list for field type_name
}

func init() { file_quotapb_proto_init() }
func file_quotapb_proto_init() {
	if File_quotapb_proto != nil {
		return
	}
	file_quotapb_proto_msgTypes[0].OneofWrappers = []any{
		(*Config_SequencingBased)(nil),
		(*Config_TimeBased)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_quotapb_proto_rawDesc), len(file_quotapb_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   9,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_quotapb_proto_goTypes,
		DependencyIndexes: file_quotapb_proto_depIdxs,
		EnumInfos:         file_quotapb_proto_enumTypes,
		MessageInfos:      file_quotapb_proto_msgTypes,
	}.Build()
	File_quotapb_proto = out.File
	file_quotapb_proto_goTypes = nil
	file_quotapb_proto_depIdxs = nil
}
