mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-17 16:11:01 -04:00
623 lines
26 KiB
Go
623 lines
26 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: google/api/distribution.proto
|
||
|
|
||
|
package distribution // import "google.golang.org/genproto/googleapis/api/distribution"
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||
|
|
||
|
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
// Distribution contains summary statistics for a population of values and,
|
||
|
// optionally, a histogram representing the distribution of those values across
|
||
|
// a specified set of histogram buckets.
|
||
|
//
|
||
|
// The summary statistics are the count, mean, sum of the squared deviation from
|
||
|
// the mean, the minimum, and the maximum of the set of population of values.
|
||
|
//
|
||
|
// The histogram is based on a sequence of buckets and gives a count of values
|
||
|
// that fall into each bucket. The boundaries of the buckets are given either
|
||
|
// explicitly or by specifying parameters for a method of computing them
|
||
|
// (buckets of fixed width or buckets of exponentially increasing width).
|
||
|
//
|
||
|
// Although it is not forbidden, it is generally a bad idea to include
|
||
|
// non-finite values (infinities or NaNs) in the population of values, as this
|
||
|
// will render the `mean` and `sum_of_squared_deviation` fields meaningless.
|
||
|
type Distribution struct {
|
||
|
// The number of values in the population. Must be non-negative.
|
||
|
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
||
|
// The arithmetic mean of the values in the population. If `count` is zero
|
||
|
// then this field must be zero.
|
||
|
Mean float64 `protobuf:"fixed64,2,opt,name=mean,proto3" json:"mean,omitempty"`
|
||
|
// The sum of squared deviations from the mean of the values in the
|
||
|
// population. For values x_i this is:
|
||
|
//
|
||
|
// Sum[i=1..n]((x_i - mean)^2)
|
||
|
//
|
||
|
// Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
|
||
|
// describes Welford's method for accumulating this sum in one pass.
|
||
|
//
|
||
|
// If `count` is zero then this field must be zero.
|
||
|
SumOfSquaredDeviation float64 `protobuf:"fixed64,3,opt,name=sum_of_squared_deviation,json=sumOfSquaredDeviation,proto3" json:"sum_of_squared_deviation,omitempty"`
|
||
|
// If specified, contains the range of the population values. The field
|
||
|
// must not be present if the `count` is zero.
|
||
|
Range *Distribution_Range `protobuf:"bytes,4,opt,name=range,proto3" json:"range,omitempty"`
|
||
|
// Defines the histogram bucket boundaries.
|
||
|
BucketOptions *Distribution_BucketOptions `protobuf:"bytes,6,opt,name=bucket_options,json=bucketOptions,proto3" json:"bucket_options,omitempty"`
|
||
|
// If `bucket_options` is given, then the sum of the values in `bucket_counts`
|
||
|
// must equal the value in `count`. If `bucket_options` is not given, no
|
||
|
// `bucket_counts` fields may be given.
|
||
|
//
|
||
|
// Bucket counts are given in order under the numbering scheme described
|
||
|
// above (the underflow bucket has number 0; the finite buckets, if any,
|
||
|
// have numbers 1 through N-2; the overflow bucket has number N-1).
|
||
|
//
|
||
|
// The size of `bucket_counts` must be no greater than N as defined in
|
||
|
// `bucket_options`.
|
||
|
//
|
||
|
// Any suffix of trailing zero bucket_count fields may be omitted.
|
||
|
BucketCounts []int64 `protobuf:"varint,7,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Distribution) Reset() { *m = Distribution{} }
|
||
|
func (m *Distribution) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Distribution) ProtoMessage() {}
|
||
|
func (*Distribution) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_distribution_6610577e5079dd76, []int{0}
|
||
|
}
|
||
|
func (m *Distribution) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Distribution.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Distribution.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Distribution) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Distribution.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Distribution) XXX_Size() int {
|
||
|
return xxx_messageInfo_Distribution.Size(m)
|
||
|
}
|
||
|
func (m *Distribution) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Distribution.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Distribution proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Distribution) GetCount() int64 {
|
||
|
if m != nil {
|
||
|
return m.Count
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Distribution) GetMean() float64 {
|
||
|
if m != nil {
|
||
|
return m.Mean
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Distribution) GetSumOfSquaredDeviation() float64 {
|
||
|
if m != nil {
|
||
|
return m.SumOfSquaredDeviation
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Distribution) GetRange() *Distribution_Range {
|
||
|
if m != nil {
|
||
|
return m.Range
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Distribution) GetBucketOptions() *Distribution_BucketOptions {
|
||
|
if m != nil {
|
||
|
return m.BucketOptions
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Distribution) GetBucketCounts() []int64 {
|
||
|
if m != nil {
|
||
|
return m.BucketCounts
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// The range of the population values.
|
||
|
type Distribution_Range struct {
|
||
|
// The minimum of the population values.
|
||
|
Min float64 `protobuf:"fixed64,1,opt,name=min,proto3" json:"min,omitempty"`
|
||
|
// The maximum of the population values.
|
||
|
Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_Range) Reset() { *m = Distribution_Range{} }
|
||
|
func (m *Distribution_Range) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Distribution_Range) ProtoMessage() {}
|
||
|
func (*Distribution_Range) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_distribution_6610577e5079dd76, []int{0, 0}
|
||
|
}
|
||
|
func (m *Distribution_Range) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Distribution_Range.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Distribution_Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Distribution_Range.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Distribution_Range) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Distribution_Range.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Distribution_Range) XXX_Size() int {
|
||
|
return xxx_messageInfo_Distribution_Range.Size(m)
|
||
|
}
|
||
|
func (m *Distribution_Range) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Distribution_Range.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Distribution_Range proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Distribution_Range) GetMin() float64 {
|
||
|
if m != nil {
|
||
|
return m.Min
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_Range) GetMax() float64 {
|
||
|
if m != nil {
|
||
|
return m.Max
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
// A Distribution may optionally contain a histogram of the values in the
|
||
|
// population. The histogram is given in `bucket_counts` as counts of values
|
||
|
// that fall into one of a sequence of non-overlapping buckets. The sequence
|
||
|
// of buckets is described by `bucket_options`.
|
||
|
//
|
||
|
// A bucket specifies an inclusive lower bound and exclusive upper bound for
|
||
|
// the values that are counted for that bucket. The upper bound of a bucket
|
||
|
// is strictly greater than the lower bound.
|
||
|
//
|
||
|
// The sequence of N buckets for a Distribution consists of an underflow
|
||
|
// bucket (number 0), zero or more finite buckets (number 1 through N - 2) and
|
||
|
// an overflow bucket (number N - 1). The buckets are contiguous: the lower
|
||
|
// bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1.
|
||
|
// The buckets span the whole range of finite values: lower bound of the
|
||
|
// underflow bucket is -infinity and the upper bound of the overflow bucket is
|
||
|
// +infinity. The finite buckets are so-called because both bounds are
|
||
|
// finite.
|
||
|
//
|
||
|
// `BucketOptions` describes bucket boundaries in one of three ways. Two
|
||
|
// describe the boundaries by giving parameters for a formula to generate
|
||
|
// boundaries and one gives the bucket boundaries explicitly.
|
||
|
//
|
||
|
// If `bucket_boundaries` is not given, then no `bucket_counts` may be given.
|
||
|
type Distribution_BucketOptions struct {
|
||
|
// Exactly one of these three fields must be set.
|
||
|
//
|
||
|
// Types that are valid to be assigned to Options:
|
||
|
// *Distribution_BucketOptions_LinearBuckets
|
||
|
// *Distribution_BucketOptions_ExponentialBuckets
|
||
|
// *Distribution_BucketOptions_ExplicitBuckets
|
||
|
Options isDistribution_BucketOptions_Options `protobuf_oneof:"options"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions) Reset() { *m = Distribution_BucketOptions{} }
|
||
|
func (m *Distribution_BucketOptions) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Distribution_BucketOptions) ProtoMessage() {}
|
||
|
func (*Distribution_BucketOptions) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_distribution_6610577e5079dd76, []int{0, 1}
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Distribution_BucketOptions) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Distribution_BucketOptions.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions) XXX_Size() int {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions.Size(m)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Distribution_BucketOptions.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Distribution_BucketOptions proto.InternalMessageInfo
|
||
|
|
||
|
type isDistribution_BucketOptions_Options interface {
|
||
|
isDistribution_BucketOptions_Options()
|
||
|
}
|
||
|
|
||
|
type Distribution_BucketOptions_LinearBuckets struct {
|
||
|
LinearBuckets *Distribution_BucketOptions_Linear `protobuf:"bytes,1,opt,name=linear_buckets,json=linearBuckets,proto3,oneof"`
|
||
|
}
|
||
|
type Distribution_BucketOptions_ExponentialBuckets struct {
|
||
|
ExponentialBuckets *Distribution_BucketOptions_Exponential `protobuf:"bytes,2,opt,name=exponential_buckets,json=exponentialBuckets,proto3,oneof"`
|
||
|
}
|
||
|
type Distribution_BucketOptions_ExplicitBuckets struct {
|
||
|
ExplicitBuckets *Distribution_BucketOptions_Explicit `protobuf:"bytes,3,opt,name=explicit_buckets,json=explicitBuckets,proto3,oneof"`
|
||
|
}
|
||
|
|
||
|
func (*Distribution_BucketOptions_LinearBuckets) isDistribution_BucketOptions_Options() {}
|
||
|
func (*Distribution_BucketOptions_ExponentialBuckets) isDistribution_BucketOptions_Options() {}
|
||
|
func (*Distribution_BucketOptions_ExplicitBuckets) isDistribution_BucketOptions_Options() {}
|
||
|
|
||
|
func (m *Distribution_BucketOptions) GetOptions() isDistribution_BucketOptions_Options {
|
||
|
if m != nil {
|
||
|
return m.Options
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions) GetLinearBuckets() *Distribution_BucketOptions_Linear {
|
||
|
if x, ok := m.GetOptions().(*Distribution_BucketOptions_LinearBuckets); ok {
|
||
|
return x.LinearBuckets
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions) GetExponentialBuckets() *Distribution_BucketOptions_Exponential {
|
||
|
if x, ok := m.GetOptions().(*Distribution_BucketOptions_ExponentialBuckets); ok {
|
||
|
return x.ExponentialBuckets
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions) GetExplicitBuckets() *Distribution_BucketOptions_Explicit {
|
||
|
if x, ok := m.GetOptions().(*Distribution_BucketOptions_ExplicitBuckets); ok {
|
||
|
return x.ExplicitBuckets
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// XXX_OneofFuncs is for the internal use of the proto package.
|
||
|
func (*Distribution_BucketOptions) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||
|
return _Distribution_BucketOptions_OneofMarshaler, _Distribution_BucketOptions_OneofUnmarshaler, _Distribution_BucketOptions_OneofSizer, []interface{}{
|
||
|
(*Distribution_BucketOptions_LinearBuckets)(nil),
|
||
|
(*Distribution_BucketOptions_ExponentialBuckets)(nil),
|
||
|
(*Distribution_BucketOptions_ExplicitBuckets)(nil),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func _Distribution_BucketOptions_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||
|
m := msg.(*Distribution_BucketOptions)
|
||
|
// options
|
||
|
switch x := m.Options.(type) {
|
||
|
case *Distribution_BucketOptions_LinearBuckets:
|
||
|
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||
|
if err := b.EncodeMessage(x.LinearBuckets); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
case *Distribution_BucketOptions_ExponentialBuckets:
|
||
|
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||
|
if err := b.EncodeMessage(x.ExponentialBuckets); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
case *Distribution_BucketOptions_ExplicitBuckets:
|
||
|
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||
|
if err := b.EncodeMessage(x.ExplicitBuckets); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
case nil:
|
||
|
default:
|
||
|
return fmt.Errorf("Distribution_BucketOptions.Options has unexpected type %T", x)
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func _Distribution_BucketOptions_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||
|
m := msg.(*Distribution_BucketOptions)
|
||
|
switch tag {
|
||
|
case 1: // options.linear_buckets
|
||
|
if wire != proto.WireBytes {
|
||
|
return true, proto.ErrInternalBadWireType
|
||
|
}
|
||
|
msg := new(Distribution_BucketOptions_Linear)
|
||
|
err := b.DecodeMessage(msg)
|
||
|
m.Options = &Distribution_BucketOptions_LinearBuckets{msg}
|
||
|
return true, err
|
||
|
case 2: // options.exponential_buckets
|
||
|
if wire != proto.WireBytes {
|
||
|
return true, proto.ErrInternalBadWireType
|
||
|
}
|
||
|
msg := new(Distribution_BucketOptions_Exponential)
|
||
|
err := b.DecodeMessage(msg)
|
||
|
m.Options = &Distribution_BucketOptions_ExponentialBuckets{msg}
|
||
|
return true, err
|
||
|
case 3: // options.explicit_buckets
|
||
|
if wire != proto.WireBytes {
|
||
|
return true, proto.ErrInternalBadWireType
|
||
|
}
|
||
|
msg := new(Distribution_BucketOptions_Explicit)
|
||
|
err := b.DecodeMessage(msg)
|
||
|
m.Options = &Distribution_BucketOptions_ExplicitBuckets{msg}
|
||
|
return true, err
|
||
|
default:
|
||
|
return false, nil
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func _Distribution_BucketOptions_OneofSizer(msg proto.Message) (n int) {
|
||
|
m := msg.(*Distribution_BucketOptions)
|
||
|
// options
|
||
|
switch x := m.Options.(type) {
|
||
|
case *Distribution_BucketOptions_LinearBuckets:
|
||
|
s := proto.Size(x.LinearBuckets)
|
||
|
n += 1 // tag and wire
|
||
|
n += proto.SizeVarint(uint64(s))
|
||
|
n += s
|
||
|
case *Distribution_BucketOptions_ExponentialBuckets:
|
||
|
s := proto.Size(x.ExponentialBuckets)
|
||
|
n += 1 // tag and wire
|
||
|
n += proto.SizeVarint(uint64(s))
|
||
|
n += s
|
||
|
case *Distribution_BucketOptions_ExplicitBuckets:
|
||
|
s := proto.Size(x.ExplicitBuckets)
|
||
|
n += 1 // tag and wire
|
||
|
n += proto.SizeVarint(uint64(s))
|
||
|
n += s
|
||
|
case nil:
|
||
|
default:
|
||
|
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||
|
}
|
||
|
return n
|
||
|
}
|
||
|
|
||
|
// Specify a sequence of buckets that all have the same width (except
|
||
|
// overflow and underflow). Each bucket represents a constant absolute
|
||
|
// uncertainty on the specific value in the bucket.
|
||
|
//
|
||
|
// Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for
|
||
|
// bucket `i`:
|
||
|
//
|
||
|
// Upper bound (0 <= i < N-1): offset + (width * i).
|
||
|
// Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
||
|
type Distribution_BucketOptions_Linear struct {
|
||
|
// Must be greater than 0.
|
||
|
NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
|
||
|
// Must be greater than 0.
|
||
|
Width float64 `protobuf:"fixed64,2,opt,name=width,proto3" json:"width,omitempty"`
|
||
|
// Lower bound of the first bucket.
|
||
|
Offset float64 `protobuf:"fixed64,3,opt,name=offset,proto3" json:"offset,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Linear) Reset() { *m = Distribution_BucketOptions_Linear{} }
|
||
|
func (m *Distribution_BucketOptions_Linear) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Distribution_BucketOptions_Linear) ProtoMessage() {}
|
||
|
func (*Distribution_BucketOptions_Linear) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_distribution_6610577e5079dd76, []int{0, 1, 0}
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Linear) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions_Linear.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Linear) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions_Linear.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Distribution_BucketOptions_Linear) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Distribution_BucketOptions_Linear.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Linear) XXX_Size() int {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions_Linear.Size(m)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Linear) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Distribution_BucketOptions_Linear.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Distribution_BucketOptions_Linear proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Linear) GetNumFiniteBuckets() int32 {
|
||
|
if m != nil {
|
||
|
return m.NumFiniteBuckets
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Linear) GetWidth() float64 {
|
||
|
if m != nil {
|
||
|
return m.Width
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Linear) GetOffset() float64 {
|
||
|
if m != nil {
|
||
|
return m.Offset
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
// Specify a sequence of buckets that have a width that is proportional to
|
||
|
// the value of the lower bound. Each bucket represents a constant relative
|
||
|
// uncertainty on a specific value in the bucket.
|
||
|
//
|
||
|
// Defines `num_finite_buckets + 2` (= N) buckets with these boundaries for
|
||
|
// bucket i:
|
||
|
//
|
||
|
// Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
|
||
|
// Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
||
|
type Distribution_BucketOptions_Exponential struct {
|
||
|
// Must be greater than 0.
|
||
|
NumFiniteBuckets int32 `protobuf:"varint,1,opt,name=num_finite_buckets,json=numFiniteBuckets,proto3" json:"num_finite_buckets,omitempty"`
|
||
|
// Must be greater than 1.
|
||
|
GrowthFactor float64 `protobuf:"fixed64,2,opt,name=growth_factor,json=growthFactor,proto3" json:"growth_factor,omitempty"`
|
||
|
// Must be greater than 0.
|
||
|
Scale float64 `protobuf:"fixed64,3,opt,name=scale,proto3" json:"scale,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Exponential) Reset() {
|
||
|
*m = Distribution_BucketOptions_Exponential{}
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Exponential) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Distribution_BucketOptions_Exponential) ProtoMessage() {}
|
||
|
func (*Distribution_BucketOptions_Exponential) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_distribution_6610577e5079dd76, []int{0, 1, 1}
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Exponential) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions_Exponential.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Exponential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions_Exponential.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Distribution_BucketOptions_Exponential) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Distribution_BucketOptions_Exponential.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Exponential) XXX_Size() int {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions_Exponential.Size(m)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Exponential) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Distribution_BucketOptions_Exponential.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Distribution_BucketOptions_Exponential proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Exponential) GetNumFiniteBuckets() int32 {
|
||
|
if m != nil {
|
||
|
return m.NumFiniteBuckets
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Exponential) GetGrowthFactor() float64 {
|
||
|
if m != nil {
|
||
|
return m.GrowthFactor
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Exponential) GetScale() float64 {
|
||
|
if m != nil {
|
||
|
return m.Scale
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
// A set of buckets with arbitrary widths.
|
||
|
//
|
||
|
// Defines `size(bounds) + 1` (= N) buckets with these boundaries for
|
||
|
// bucket i:
|
||
|
//
|
||
|
// Upper bound (0 <= i < N-1): bounds[i]
|
||
|
// Lower bound (1 <= i < N); bounds[i - 1]
|
||
|
//
|
||
|
// There must be at least one element in `bounds`. If `bounds` has only one
|
||
|
// element, there are no finite buckets, and that single element is the
|
||
|
// common boundary of the overflow and underflow buckets.
|
||
|
type Distribution_BucketOptions_Explicit struct {
|
||
|
// The values must be monotonically increasing.
|
||
|
Bounds []float64 `protobuf:"fixed64,1,rep,packed,name=bounds,proto3" json:"bounds,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Explicit) Reset() { *m = Distribution_BucketOptions_Explicit{} }
|
||
|
func (m *Distribution_BucketOptions_Explicit) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Distribution_BucketOptions_Explicit) ProtoMessage() {}
|
||
|
func (*Distribution_BucketOptions_Explicit) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_distribution_6610577e5079dd76, []int{0, 1, 2}
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Explicit) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions_Explicit.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Explicit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions_Explicit.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Distribution_BucketOptions_Explicit) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Distribution_BucketOptions_Explicit.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Explicit) XXX_Size() int {
|
||
|
return xxx_messageInfo_Distribution_BucketOptions_Explicit.Size(m)
|
||
|
}
|
||
|
func (m *Distribution_BucketOptions_Explicit) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Distribution_BucketOptions_Explicit.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Distribution_BucketOptions_Explicit proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Distribution_BucketOptions_Explicit) GetBounds() []float64 {
|
||
|
if m != nil {
|
||
|
return m.Bounds
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Distribution)(nil), "google.api.Distribution")
|
||
|
proto.RegisterType((*Distribution_Range)(nil), "google.api.Distribution.Range")
|
||
|
proto.RegisterType((*Distribution_BucketOptions)(nil), "google.api.Distribution.BucketOptions")
|
||
|
proto.RegisterType((*Distribution_BucketOptions_Linear)(nil), "google.api.Distribution.BucketOptions.Linear")
|
||
|
proto.RegisterType((*Distribution_BucketOptions_Exponential)(nil), "google.api.Distribution.BucketOptions.Exponential")
|
||
|
proto.RegisterType((*Distribution_BucketOptions_Explicit)(nil), "google.api.Distribution.BucketOptions.Explicit")
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterFile("google/api/distribution.proto", fileDescriptor_distribution_6610577e5079dd76)
|
||
|
}
|
||
|
|
||
|
var fileDescriptor_distribution_6610577e5079dd76 = []byte{
|
||
|
// 522 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5d, 0x6b, 0xd4, 0x40,
|
||
|
0x14, 0xdd, 0x34, 0xfb, 0xa1, 0x77, 0x3f, 0x5c, 0xc7, 0x2a, 0x21, 0xa8, 0x2c, 0x2d, 0xc8, 0x82,
|
||
|
0x9a, 0x85, 0x55, 0xf0, 0xc1, 0xb7, 0x6d, 0x2d, 0xfb, 0xa0, 0xb4, 0x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