// Code generated by protoc-gen-go. DO NOT EDIT.
// source: mixer/v1/config/client/quota.proto

package client

import (
	fmt "fmt"
	_ "github.com/gogo/protobuf/gogoproto"
	proto "github.com/golang/protobuf/proto"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

// Determines the quotas used for individual requests.
type QuotaSpec struct {
	// A list of Quota rules.
	Rules                []*QuotaRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (m *QuotaSpec) Reset()         { *m = QuotaSpec{} }
func (m *QuotaSpec) String() string { return proto.CompactTextString(m) }
func (*QuotaSpec) ProtoMessage()    {}
func (*QuotaSpec) Descriptor() ([]byte, []int) {
	return fileDescriptor_81777b5d047af315, []int{0}
}

func (m *QuotaSpec) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_QuotaSpec.Unmarshal(m, b)
}
func (m *QuotaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_QuotaSpec.Marshal(b, m, deterministic)
}
func (m *QuotaSpec) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QuotaSpec.Merge(m, src)
}
func (m *QuotaSpec) XXX_Size() int {
	return xxx_messageInfo_QuotaSpec.Size(m)
}
func (m *QuotaSpec) XXX_DiscardUnknown() {
	xxx_messageInfo_QuotaSpec.DiscardUnknown(m)
}

var xxx_messageInfo_QuotaSpec proto.InternalMessageInfo

func (m *QuotaSpec) GetRules() []*QuotaRule {
	if m != nil {
		return m.Rules
	}
	return nil
}

// Specifies a rule with list of matches and list of quotas.
// If any clause matched, the list of quotas will be used.
type QuotaRule struct {
	// If empty, match all request.
	// If any of match is true, it is matched.
	Match []*AttributeMatch `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// The list of quotas to charge.
	Quotas               []*Quota `protobuf:"bytes,2,rep,name=quotas,proto3" json:"quotas,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *QuotaRule) Reset()         { *m = QuotaRule{} }
func (m *QuotaRule) String() string { return proto.CompactTextString(m) }
func (*QuotaRule) ProtoMessage()    {}
func (*QuotaRule) Descriptor() ([]byte, []int) {
	return fileDescriptor_81777b5d047af315, []int{1}
}

func (m *QuotaRule) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_QuotaRule.Unmarshal(m, b)
}
func (m *QuotaRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_QuotaRule.Marshal(b, m, deterministic)
}
func (m *QuotaRule) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QuotaRule.Merge(m, src)
}
func (m *QuotaRule) XXX_Size() int {
	return xxx_messageInfo_QuotaRule.Size(m)
}
func (m *QuotaRule) XXX_DiscardUnknown() {
	xxx_messageInfo_QuotaRule.DiscardUnknown(m)
}

var xxx_messageInfo_QuotaRule proto.InternalMessageInfo

func (m *QuotaRule) GetMatch() []*AttributeMatch {
	if m != nil {
		return m.Match
	}
	return nil
}

func (m *QuotaRule) GetQuotas() []*Quota {
	if m != nil {
		return m.Quotas
	}
	return nil
}

// Describes how to match a given string in HTTP headers. Match is
// case-sensitive.
type StringMatch struct {
	// Types that are valid to be assigned to MatchType:
	//	*StringMatch_Exact
	//	*StringMatch_Prefix
	//	*StringMatch_Regex
	MatchType            isStringMatch_MatchType `protobuf_oneof:"match_type"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (m *StringMatch) Reset()         { *m = StringMatch{} }
func (m *StringMatch) String() string { return proto.CompactTextString(m) }
func (*StringMatch) ProtoMessage()    {}
func (*StringMatch) Descriptor() ([]byte, []int) {
	return fileDescriptor_81777b5d047af315, []int{2}
}

func (m *StringMatch) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_StringMatch.Unmarshal(m, b)
}
func (m *StringMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_StringMatch.Marshal(b, m, deterministic)
}
func (m *StringMatch) XXX_Merge(src proto.Message) {
	xxx_messageInfo_StringMatch.Merge(m, src)
}
func (m *StringMatch) XXX_Size() int {
	return xxx_messageInfo_StringMatch.Size(m)
}
func (m *StringMatch) XXX_DiscardUnknown() {
	xxx_messageInfo_StringMatch.DiscardUnknown(m)
}

var xxx_messageInfo_StringMatch proto.InternalMessageInfo

type isStringMatch_MatchType interface {
	isStringMatch_MatchType()
}

type StringMatch_Exact struct {
	Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}

type StringMatch_Prefix struct {
	Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"`
}

type StringMatch_Regex struct {
	Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}

func (*StringMatch_Exact) isStringMatch_MatchType() {}

func (*StringMatch_Prefix) isStringMatch_MatchType() {}

func (*StringMatch_Regex) isStringMatch_MatchType() {}

func (m *StringMatch) GetMatchType() isStringMatch_MatchType {
	if m != nil {
		return m.MatchType
	}
	return nil
}

func (m *StringMatch) GetExact() string {
	if x, ok := m.GetMatchType().(*StringMatch_Exact); ok {
		return x.Exact
	}
	return ""
}

func (m *StringMatch) GetPrefix() string {
	if x, ok := m.GetMatchType().(*StringMatch_Prefix); ok {
		return x.Prefix
	}
	return ""
}

func (m *StringMatch) GetRegex() string {
	if x, ok := m.GetMatchType().(*StringMatch_Regex); ok {
		return x.Regex
	}
	return ""
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*StringMatch) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*StringMatch_Exact)(nil),
		(*StringMatch_Prefix)(nil),
		(*StringMatch_Regex)(nil),
	}
}

// Specifies a match clause to match Istio attributes
type AttributeMatch struct {
	// Map of attribute names to StringMatch type.
	// Each map element specifies one condition to match.
	//
	// Example:
	//
	//   clause:
	//     source.uid:
	//       exact: SOURCE_UID
	//     request.http_method:
	//       exact: POST
	Clause               map[string]*StringMatch `protobuf:"bytes,1,rep,name=clause,proto3" json:"clause,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (m *AttributeMatch) Reset()         { *m = AttributeMatch{} }
func (m *AttributeMatch) String() string { return proto.CompactTextString(m) }
func (*AttributeMatch) ProtoMessage()    {}
func (*AttributeMatch) Descriptor() ([]byte, []int) {
	return fileDescriptor_81777b5d047af315, []int{3}
}

func (m *AttributeMatch) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_AttributeMatch.Unmarshal(m, b)
}
func (m *AttributeMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_AttributeMatch.Marshal(b, m, deterministic)
}
func (m *AttributeMatch) XXX_Merge(src proto.Message) {
	xxx_messageInfo_AttributeMatch.Merge(m, src)
}
func (m *AttributeMatch) XXX_Size() int {
	return xxx_messageInfo_AttributeMatch.Size(m)
}
func (m *AttributeMatch) XXX_DiscardUnknown() {
	xxx_messageInfo_AttributeMatch.DiscardUnknown(m)
}

var xxx_messageInfo_AttributeMatch proto.InternalMessageInfo

func (m *AttributeMatch) GetClause() map[string]*StringMatch {
	if m != nil {
		return m.Clause
	}
	return nil
}

// Specifies a quota to use with quota name and amount.
type Quota struct {
	// The quota name to charge
	Quota string `protobuf:"bytes,1,opt,name=quota,proto3" json:"quota,omitempty"`
	// The quota amount to charge
	Charge               int64    `protobuf:"varint,2,opt,name=charge,proto3" json:"charge,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *Quota) Reset()         { *m = Quota{} }
func (m *Quota) String() string { return proto.CompactTextString(m) }
func (*Quota) ProtoMessage()    {}
func (*Quota) Descriptor() ([]byte, []int) {
	return fileDescriptor_81777b5d047af315, []int{4}
}

func (m *Quota) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_Quota.Unmarshal(m, b)
}
func (m *Quota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_Quota.Marshal(b, m, deterministic)
}
func (m *Quota) XXX_Merge(src proto.Message) {
	xxx_messageInfo_Quota.Merge(m, src)
}
func (m *Quota) XXX_Size() int {
	return xxx_messageInfo_Quota.Size(m)
}
func (m *Quota) XXX_DiscardUnknown() {
	xxx_messageInfo_Quota.DiscardUnknown(m)
}

var xxx_messageInfo_Quota proto.InternalMessageInfo

func (m *Quota) GetQuota() string {
	if m != nil {
		return m.Quota
	}
	return ""
}

func (m *Quota) GetCharge() int64 {
	if m != nil {
		return m.Charge
	}
	return 0
}

// QuotaSpecBinding defines the binding between QuotaSpecs and one or more
// IstioService.
type QuotaSpecBinding struct {
	// REQUIRED. One or more services to map the listed QuotaSpec onto.
	Services []*IstioService `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// REQUIRED. One or more QuotaSpec references that should be mapped to
	// the specified service(s). The aggregate collection of match
	// conditions defined in the QuotaSpecs should not overlap.
	QuotaSpecs           []*QuotaSpecBinding_QuotaSpecReference `protobuf:"bytes,2,rep,name=quota_specs,json=quotaSpecs,proto3" json:"quota_specs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                               `json:"-"`
	XXX_unrecognized     []byte                                 `json:"-"`
	XXX_sizecache        int32                                  `json:"-"`
}

func (m *QuotaSpecBinding) Reset()         { *m = QuotaSpecBinding{} }
func (m *QuotaSpecBinding) String() string { return proto.CompactTextString(m) }
func (*QuotaSpecBinding) ProtoMessage()    {}
func (*QuotaSpecBinding) Descriptor() ([]byte, []int) {
	return fileDescriptor_81777b5d047af315, []int{5}
}

func (m *QuotaSpecBinding) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_QuotaSpecBinding.Unmarshal(m, b)
}
func (m *QuotaSpecBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_QuotaSpecBinding.Marshal(b, m, deterministic)
}
func (m *QuotaSpecBinding) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QuotaSpecBinding.Merge(m, src)
}
func (m *QuotaSpecBinding) XXX_Size() int {
	return xxx_messageInfo_QuotaSpecBinding.Size(m)
}
func (m *QuotaSpecBinding) XXX_DiscardUnknown() {
	xxx_messageInfo_QuotaSpecBinding.DiscardUnknown(m)
}

var xxx_messageInfo_QuotaSpecBinding proto.InternalMessageInfo

func (m *QuotaSpecBinding) GetServices() []*IstioService {
	if m != nil {
		return m.Services
	}
	return nil
}

func (m *QuotaSpecBinding) GetQuotaSpecs() []*QuotaSpecBinding_QuotaSpecReference {
	if m != nil {
		return m.QuotaSpecs
	}
	return nil
}

// QuotaSpecReference uniquely identifies the QuotaSpec used in the
// Binding.
type QuotaSpecBinding_QuotaSpecReference struct {
	// REQUIRED. The short name of the QuotaSpec. This is the resource
	// name defined by the metadata name field.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional namespace of the QuotaSpec. Defaults to the value of the
	// metadata namespace field.
	Namespace            string   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *QuotaSpecBinding_QuotaSpecReference) Reset()         { *m = QuotaSpecBinding_QuotaSpecReference{} }
func (m *QuotaSpecBinding_QuotaSpecReference) String() string { return proto.CompactTextString(m) }
func (*QuotaSpecBinding_QuotaSpecReference) ProtoMessage()    {}
func (*QuotaSpecBinding_QuotaSpecReference) Descriptor() ([]byte, []int) {
	return fileDescriptor_81777b5d047af315, []int{5, 0}
}

func (m *QuotaSpecBinding_QuotaSpecReference) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_QuotaSpecBinding_QuotaSpecReference.Unmarshal(m, b)
}
func (m *QuotaSpecBinding_QuotaSpecReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_QuotaSpecBinding_QuotaSpecReference.Marshal(b, m, deterministic)
}
func (m *QuotaSpecBinding_QuotaSpecReference) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QuotaSpecBinding_QuotaSpecReference.Merge(m, src)
}
func (m *QuotaSpecBinding_QuotaSpecReference) XXX_Size() int {
	return xxx_messageInfo_QuotaSpecBinding_QuotaSpecReference.Size(m)
}
func (m *QuotaSpecBinding_QuotaSpecReference) XXX_DiscardUnknown() {
	xxx_messageInfo_QuotaSpecBinding_QuotaSpecReference.DiscardUnknown(m)
}

var xxx_messageInfo_QuotaSpecBinding_QuotaSpecReference proto.InternalMessageInfo

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

func (m *QuotaSpecBinding_QuotaSpecReference) GetNamespace() string {
	if m != nil {
		return m.Namespace
	}
	return ""
}

func init() {
	proto.RegisterType((*QuotaSpec)(nil), "istio.mixer.v1.config.client.QuotaSpec")
	proto.RegisterType((*QuotaRule)(nil), "istio.mixer.v1.config.client.QuotaRule")
	proto.RegisterType((*StringMatch)(nil), "istio.mixer.v1.config.client.StringMatch")
	proto.RegisterType((*AttributeMatch)(nil), "istio.mixer.v1.config.client.AttributeMatch")
	proto.RegisterMapType((map[string]*StringMatch)(nil), "istio.mixer.v1.config.client.AttributeMatch.ClauseEntry")
	proto.RegisterType((*Quota)(nil), "istio.mixer.v1.config.client.Quota")
	proto.RegisterType((*QuotaSpecBinding)(nil), "istio.mixer.v1.config.client.QuotaSpecBinding")
	proto.RegisterType((*QuotaSpecBinding_QuotaSpecReference)(nil), "istio.mixer.v1.config.client.QuotaSpecBinding.QuotaSpecReference")
}

func init() { proto.RegisterFile("mixer/v1/config/client/quota.proto", fileDescriptor_81777b5d047af315) }

var fileDescriptor_81777b5d047af315 = []byte{
	// 499 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xdd, 0x6a, 0xd4, 0x40,
	0x14, 0xc7, 0x37, 0xbb, 0x26, 0xb8, 0x27, 0x22, 0xe5, 0x50, 0x4a, 0x58, 0xca, 0x52, 0x52, 0xc1,
	0x2a, 0x92, 0xd0, 0x4a, 0xa1, 0x28, 0x22, 0x5d, 0xb1, 0xa8, 0x20, 0xe8, 0xec, 0x9d, 0x37, 0x25,
	0x3b, 0x3d, 0x9b, 0x0e, 0x66, 0x93, 0x74, 0x32, 0x59, 0x76, 0x5f, 0xc0, 0x2b, 0x1f, 0xc4, 0x47,
	0xe9, 0x23, 0x78, 0xdb, 0x3e, 0x81, 0x8f, 0x20, 0x99, 0x99, 0x6d, 0x57, 0xd4, 0x65, 0x7b, 0x95,
	0x73, 0x4e, 0xce, 0xef, 0x7f, 0x3e, 0x38, 0x03, 0xe1, 0x44, 0xcc, 0x48, 0xc6, 0xd3, 0xfd, 0x98,
	0x17, 0xf9, 0x58, 0xa4, 0x31, 0xcf, 0x04, 0xe5, 0x2a, 0xbe, 0xa8, 0x0b, 0x95, 0x44, 0xa5, 0x2c,
	0x54, 0x81, 0xdb, 0xa2, 0x52, 0xa2, 0x88, 0x74, 0x66, 0x34, 0xdd, 0x8f, 0x4c, 0x66, 0x64, 0x32,
	0x7b, 0x9b, 0x69, 0x91, 0x16, 0x3a, 0x31, 0x6e, 0x2c, 0xc3, 0xf4, 0x1e, 0xfd, 0x47, 0xb7, 0x22,
	0x39, 0x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