// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/type/v3/percent.proto

package envoy_type_v3

import (
	fmt "fmt"
	_ "github.com/cncf/udpa/go/udpa/annotations"
	_ "github.com/envoyproxy/protoc-gen-validate/validate"
	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

type FractionalPercent_DenominatorType int32

const (
	FractionalPercent_HUNDRED      FractionalPercent_DenominatorType = 0
	FractionalPercent_TEN_THOUSAND FractionalPercent_DenominatorType = 1
	FractionalPercent_MILLION      FractionalPercent_DenominatorType = 2
)

var FractionalPercent_DenominatorType_name = map[int32]string{
	0: "HUNDRED",
	1: "TEN_THOUSAND",
	2: "MILLION",
}

var FractionalPercent_DenominatorType_value = map[string]int32{
	"HUNDRED":      0,
	"TEN_THOUSAND": 1,
	"MILLION":      2,
}

func (x FractionalPercent_DenominatorType) String() string {
	return proto.EnumName(FractionalPercent_DenominatorType_name, int32(x))
}

func (FractionalPercent_DenominatorType) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_e15eda1cd726d6e9, []int{1, 0}
}

type Percent struct {
	Value                float64  `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

var xxx_messageInfo_Percent proto.InternalMessageInfo

func (m *Percent) GetValue() float64 {
	if m != nil {
		return m.Value
	}
	return 0
}

type FractionalPercent struct {
	Numerator            uint32                            `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"`
	Denominator          FractionalPercent_DenominatorType `protobuf:"varint,2,opt,name=denominator,proto3,enum=envoy.type.v3.FractionalPercent_DenominatorType" json:"denominator,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

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

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

var xxx_messageInfo_FractionalPercent proto.InternalMessageInfo

func (m *FractionalPercent) GetNumerator() uint32 {
	if m != nil {
		return m.Numerator
	}
	return 0
}

func (m *FractionalPercent) GetDenominator() FractionalPercent_DenominatorType {
	if m != nil {
		return m.Denominator
	}
	return FractionalPercent_HUNDRED
}

func init() {
	proto.RegisterEnum("envoy.type.v3.FractionalPercent_DenominatorType", FractionalPercent_DenominatorType_name, FractionalPercent_DenominatorType_value)
	proto.RegisterType((*Percent)(nil), "envoy.type.v3.Percent")
	proto.RegisterType((*FractionalPercent)(nil), "envoy.type.v3.FractionalPercent")
}

func init() { proto.RegisterFile("envoy/type/v3/percent.proto", fileDescriptor_e15eda1cd726d6e9) }

var fileDescriptor_e15eda1cd726d6e9 = []byte{
	// 355 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0xcd, 0x2b, 0xcb,
	0xaf, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0x2f, 0x33, 0xd6, 0x2f, 0x48, 0x2d, 0x4a, 0x4e, 0xcd,
	0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x05, 0x4b, 0xea, 0x81, 0x24, 0xf5, 0xca,
	0x8c, 0xa5, 0x64, 0x4b, 0x53, 0x0a, 0x12, 0xf5, 0x13, 0xf3, 0xf2, 0xf2, 0x4b, 0x12, 0x4b, 0x32,
	0xf3, 0xf3, 0x8a, 0xf5, 0x8b, 0x4b, 0x12, 0x4b, 0x4a, 0x8b, 0x21, 0xaa, 0xa5, 0x14, 0x31, 0xa4,
	0xcb, 0x52, 0x8b, 0x8a, 0x33, 0xf3, 0xf3, 0x32, 0xf3, 0xd2, 0xa1, 0x4a, 0xc4, 0xcb, 0x12, 0x73,
	0x32, 0x53, 0x12, 0x4b, 0x52, 0xf5, 0x61, 0x0c, 0x88, 0x84, 0x52, 0x30, 0x17, 0x7b, 0x00, 0xc4,
	0x6a, 0x21, 0x5d, 0x2e, 0xd6, 0xb2, 0xc4, 0x9c, 0xd2, 0x54, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x46,
	0x27, 0xf1, 0x5f, 0x4e, 0x22, 0x42, 0x42, 0x92, 0x0c, 0x60, 0x10, 0xe9, 0xa0, 0xc9, 0x00, 0x05,
	0x41, 0x10, 0x55, 0x56, 0x92, 0xb3, 0x8e, 0x76, 0xc8, 0x89, 0x70, 0x09, 0x21, 0x39, 0x15, 0x6a,
	0x92, 0xd2, 0x67, 0x46, 0x2e, 0x41, 0xb7, 0xa2, 0xc4, 0x64, 0x90, 0x63, 0x12, 0x73, 0x60, 0xe6,
	0xcb, 0x70, 0x71, 0xe6, 0x95, 0xe6, 0xa6, 0x16, 0x25, 0x96, 0xe4, 0x17, 0x81, 0xed, 0xe0, 0x0d,
	0x42, 0x08, 0x08, 0xc5, 0x70, 0x71, 0xa7, 0xa4, 0xe6, 0xe5, 0xe7, 0x66, 0xe6, 0x81, 0xe5, 0x99,
	0x14, 0x18, 0x35, 0xf8, 0x8c, 0x0c, 0xf4, 0x50, 0x02, 0x42, 0x0f, 0xc3, 0x50, 0x3d, 0x17, 0x84,
	0x9e, 0x90, 0xca, 0x82, 0x54, 0x27, 0x8e, 0x5f, 0x4e, 0xac, 0x4d, 0x8c, 0x4c, 0x02, 0x8c, 0x41,
	0xc8, 0xc6, 0x29, 0xd9, 0x72, 0xf1, 0xa3, 0xa9, 0x14, 0xe2, 0xe6, 0x62, 0xf7, 0x08, 0xf5, 0x73,
	0x09, 0x72, 0x75, 0x11, 0x60, 0x10, 0x12, 0xe0, 0xe2, 0x09, 0x71, 0xf5, 0x8b, 0x0f, 0xf1, 0xf0,
	0x0f, 0x0d, 0x76, 0xf4, 0x73, 0x11, 0x60, 0x04, 0x49, 0xfb, 0x7a, 0xfa, 0xf8, 0x78, 0xfa, 0xfb,
	0x09, 0x30, 0x59, 0x29, 0x83, 0xfc, 0x2a, 0xc7, 0x25, 0x83, 0xe4, 0x1a, 0x0c, 0xa7, 0x38, 0x99,
	0xee, 0x6a, 0x38, 0x71, 0x91, 0x8d, 0x49, 0x80, 0x89, 0x4b, 0x3a, 0x33, 0x1f, 0xe2, 0xf0, 0x82,
	0xa2, 0xfc, 0x8a, 0x4a, 0x54, 0x3f, 0x38, 0xf1, 0x40, 0xd5, 0x07, 0x80, 0xc2, 0x3f, 0x80, 0x31,
	0x89, 0x0d, 0x1c, 0x11, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x9f, 0xb3, 0xea, 0x11,
	0x02, 0x00, 0x00,
}
