v3

package
v1.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type DoubleRange

type DoubleRange struct {
	// start of the range (inclusive)
	Start float64 `protobuf:"fixed64,1,opt,name=start,proto3" json:"start,omitempty"`
	// end of the range (exclusive)
	End                  float64  `protobuf:"fixed64,2,opt,name=end,proto3" json:"end,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Specifies the double start and end of the range using half-open interval semantics [start, end).

func (*DoubleRange) Descriptor

func (*DoubleRange) Descriptor() ([]byte, []int)

func (*DoubleRange) Equal

func (this *DoubleRange) Equal(that interface{}) bool

func (*DoubleRange) GetEnd

func (m *DoubleRange) GetEnd() float64

func (*DoubleRange) GetStart

func (m *DoubleRange) GetStart() float64

func (*DoubleRange) ProtoMessage

func (*DoubleRange) ProtoMessage()

func (*DoubleRange) Reset

func (m *DoubleRange) Reset()

func (*DoubleRange) String

func (m *DoubleRange) String() string

func (*DoubleRange) XXX_DiscardUnknown

func (m *DoubleRange) XXX_DiscardUnknown()

func (*DoubleRange) XXX_Marshal

func (m *DoubleRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleRange) XXX_Merge

func (m *DoubleRange) XXX_Merge(src proto.Message)

func (*DoubleRange) XXX_Size

func (m *DoubleRange) XXX_Size() int

func (*DoubleRange) XXX_Unmarshal

func (m *DoubleRange) XXX_Unmarshal(b []byte) error

type FractionalPercent

type FractionalPercent struct {
	// Specifies the numerator. Defaults to 0.
	Numerator uint32 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"`
	// Specifies the denominator. If the denominator specified is less than the numerator, the final
	// fractional percentage is capped at 1 (100%).
	Denominator          FractionalPercent_DenominatorType `` /* 129-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

A fractional percentage is used in cases in which for performance reasons performing floating point to integer conversions during randomness calculations is undesirable. The message includes both a numerator and denominator that together determine the final fractional value.

* **Example**: 1/100 = 1%. * **Example**: 3/10000 = 0.03%.

func (*FractionalPercent) Descriptor

func (*FractionalPercent) Descriptor() ([]byte, []int)

func (*FractionalPercent) Equal

func (this *FractionalPercent) Equal(that interface{}) bool

func (*FractionalPercent) GetDenominator

func (*FractionalPercent) GetNumerator

func (m *FractionalPercent) GetNumerator() uint32

func (*FractionalPercent) ProtoMessage

func (*FractionalPercent) ProtoMessage()

func (*FractionalPercent) Reset

func (m *FractionalPercent) Reset()

func (*FractionalPercent) String

func (m *FractionalPercent) String() string

func (*FractionalPercent) XXX_DiscardUnknown

func (m *FractionalPercent) XXX_DiscardUnknown()

func (*FractionalPercent) XXX_Marshal

func (m *FractionalPercent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FractionalPercent) XXX_Merge

func (m *FractionalPercent) XXX_Merge(src proto.Message)

func (*FractionalPercent) XXX_Size

func (m *FractionalPercent) XXX_Size() int

func (*FractionalPercent) XXX_Unmarshal

func (m *FractionalPercent) XXX_Unmarshal(b []byte) error

type FractionalPercent_DenominatorType

type FractionalPercent_DenominatorType int32

Fraction percentages support several fixed denominator values.

const (
	// 100.
	//
	// **Example**: 1/100 = 1%.
	FractionalPercent_HUNDRED FractionalPercent_DenominatorType = 0
	// 10,000.
	//
	// **Example**: 1/10000 = 0.01%.
	FractionalPercent_TEN_THOUSAND FractionalPercent_DenominatorType = 1
	// 1,000,000.
	//
	// **Example**: 1/1000000 = 0.0001%.
	FractionalPercent_MILLION FractionalPercent_DenominatorType = 2
)

func (FractionalPercent_DenominatorType) EnumDescriptor

func (FractionalPercent_DenominatorType) EnumDescriptor() ([]byte, []int)

func (FractionalPercent_DenominatorType) String

type Int32Range

type Int32Range struct {
	// start of the range (inclusive)
	Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	// end of the range (exclusive)
	End                  int32    `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Specifies the int32 start and end of the range using half-open interval semantics [start, end).

func (*Int32Range) Descriptor

func (*Int32Range) Descriptor() ([]byte, []int)

func (*Int32Range) Equal

func (this *Int32Range) Equal(that interface{}) bool

func (*Int32Range) GetEnd

func (m *Int32Range) GetEnd() int32

func (*Int32Range) GetStart

func (m *Int32Range) GetStart() int32

func (*Int32Range) ProtoMessage

func (*Int32Range) ProtoMessage()

func (*Int32Range) Reset

func (m *Int32Range) Reset()

func (*Int32Range) String

func (m *Int32Range) String() string

func (*Int32Range) XXX_DiscardUnknown

func (m *Int32Range) XXX_DiscardUnknown()

func (*Int32Range) XXX_Marshal

func (m *Int32Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int32Range) XXX_Merge

func (m *Int32Range) XXX_Merge(src proto.Message)

func (*Int32Range) XXX_Size

func (m *Int32Range) XXX_Size() int

func (*Int32Range) XXX_Unmarshal

func (m *Int32Range) XXX_Unmarshal(b []byte) error

type Int64Range

type Int64Range struct {
	// start of the range (inclusive)
	Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	// end of the range (exclusive)
	End                  int64    `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Specifies the int64 start and end of the range using half-open interval semantics [start, end).

func (*Int64Range) Descriptor

func (*Int64Range) Descriptor() ([]byte, []int)

func (*Int64Range) Equal

func (this *Int64Range) Equal(that interface{}) bool

func (*Int64Range) GetEnd

func (m *Int64Range) GetEnd() int64

func (*Int64Range) GetStart

func (m *Int64Range) GetStart() int64

func (*Int64Range) ProtoMessage

func (*Int64Range) ProtoMessage()

func (*Int64Range) Reset

func (m *Int64Range) Reset()

func (*Int64Range) String

func (m *Int64Range) String() string

func (*Int64Range) XXX_DiscardUnknown

func (m *Int64Range) XXX_DiscardUnknown()

func (*Int64Range) XXX_Marshal

func (m *Int64Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Int64Range) XXX_Merge

func (m *Int64Range) XXX_Merge(src proto.Message)

func (*Int64Range) XXX_Size

func (m *Int64Range) XXX_Size() int

func (*Int64Range) XXX_Unmarshal

func (m *Int64Range) XXX_Unmarshal(b []byte) error

type Percent

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:"-"`
}

Identifies a percentage, in the range [0.0, 100.0].

func (*Percent) Descriptor

func (*Percent) Descriptor() ([]byte, []int)

func (*Percent) Equal

func (this *Percent) Equal(that interface{}) bool

func (*Percent) GetValue

func (m *Percent) GetValue() float64

func (*Percent) ProtoMessage

func (*Percent) ProtoMessage()

func (*Percent) Reset

func (m *Percent) Reset()

func (*Percent) String

func (m *Percent) String() string

func (*Percent) XXX_DiscardUnknown

func (m *Percent) XXX_DiscardUnknown()

func (*Percent) XXX_Marshal

func (m *Percent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Percent) XXX_Merge

func (m *Percent) XXX_Merge(src proto.Message)

func (*Percent) XXX_Size

func (m *Percent) XXX_Size() int

func (*Percent) XXX_Unmarshal

func (m *Percent) XXX_Unmarshal(b []byte) error

type SemanticVersion

type SemanticVersion struct {
	MajorNumber          uint32   `protobuf:"varint,1,opt,name=major_number,json=majorNumber,proto3" json:"major_number,omitempty"`
	MinorNumber          uint32   `protobuf:"varint,2,opt,name=minor_number,json=minorNumber,proto3" json:"minor_number,omitempty"`
	Patch                uint32   `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Envoy uses SemVer (https://semver.org/). Major/minor versions indicate expected behaviors and APIs, the patch version field is used only for security fixes and can be generally ignored.

func (*SemanticVersion) Descriptor

func (*SemanticVersion) Descriptor() ([]byte, []int)

func (*SemanticVersion) Equal

func (this *SemanticVersion) Equal(that interface{}) bool

func (*SemanticVersion) GetMajorNumber

func (m *SemanticVersion) GetMajorNumber() uint32

func (*SemanticVersion) GetMinorNumber

func (m *SemanticVersion) GetMinorNumber() uint32

func (*SemanticVersion) GetPatch

func (m *SemanticVersion) GetPatch() uint32

func (*SemanticVersion) ProtoMessage

func (*SemanticVersion) ProtoMessage()

func (*SemanticVersion) Reset

func (m *SemanticVersion) Reset()

func (*SemanticVersion) String

func (m *SemanticVersion) String() string

func (*SemanticVersion) XXX_DiscardUnknown

func (m *SemanticVersion) XXX_DiscardUnknown()

func (*SemanticVersion) XXX_Marshal

func (m *SemanticVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SemanticVersion) XXX_Merge

func (m *SemanticVersion) XXX_Merge(src proto.Message)

func (*SemanticVersion) XXX_Size

func (m *SemanticVersion) XXX_Size() int

func (*SemanticVersion) XXX_Unmarshal

func (m *SemanticVersion) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL