mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-21 13:21:17 +00:00
715 lines
30 KiB
Go
715 lines
30 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 any "github.com/golang/protobuf/ptypes/any"
|
||
|
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||
|
|
||
|
// 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. It
|
||
|
// optionally contains a histogram representing the distribution of those values
|
||
|
// across a set of 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 formulas for buckets of fixed or exponentially increasing
|
||
|
// widths.
|
||
|
//
|
||
|
// 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. This value
|
||
|
// must equal the sum of the values in `bucket_counts` if a histogram is
|
||
|
// provided.
|
||
|
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. If the distribution does not
|
||
|
// contain a histogram, then omit this field.
|
||
|
BucketOptions *Distribution_BucketOptions `protobuf:"bytes,6,opt,name=bucket_options,json=bucketOptions,proto3" json:"bucket_options,omitempty"`
|
||
|
// The number of values in each bucket of the histogram, as described in
|
||
|
// `bucket_options`. If the distribution does not have a histogram, then omit
|
||
|
// this field. If there is a histogram, then the sum of the values in
|
||
|
// `bucket_counts` must equal the value in the `count` field of the
|
||
|
// distribution.
|
||
|
//
|
||
|
// If present, `bucket_counts` should contain N values, where N is the number
|
||
|
// of buckets specified in `bucket_options`. If you supply fewer than N
|
||
|
// values, the remaining values are assumed to be 0.
|
||
|
//
|
||
|
// The order of the values in `bucket_counts` follows the bucket numbering
|
||
|
// schemes described for the three bucket types. The first value must be the
|
||
|
// count for the underflow bucket (number 0). The next N-2 values are the
|
||
|
// counts for the finite buckets (number 1 through N-2). The N'th value in
|
||
|
// `bucket_counts` is the count for the overflow bucket (number N-1).
|
||
|
BucketCounts []int64 `protobuf:"varint,7,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"`
|
||
|
// Must be in increasing order of `value` field.
|
||
|
Exemplars []*Distribution_Exemplar `protobuf:"bytes,10,rep,name=exemplars,proto3" json:"exemplars,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_ff64d440f86eff03, []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
|
||
|
}
|
||
|
|
||
|
func (m *Distribution) GetExemplars() []*Distribution_Exemplar {
|
||
|
if m != nil {
|
||
|
return m.Exemplars
|
||
|
}
|
||
|
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_ff64d440f86eff03, []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
|
||
|
}
|
||
|
|
||
|
// `BucketOptions` describes the bucket boundaries used to create a histogram
|
||
|
// for the distribution. The buckets can be in a linear sequence, an
|
||
|
// exponential sequence, or each bucket can be specified explicitly.
|
||
|
// `BucketOptions` does not include the number of values in each bucket.
|
||
|
//
|
||
|
// A bucket has an inclusive lower bound and exclusive upper bound for the
|
||
|
// values that are counted for that bucket. The upper bound of a bucket must
|
||
|
// be 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.
|
||
|
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_ff64d440f86eff03, []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
|
||
|
}
|
||
|
|
||
|
// Specifies a linear 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.
|
||
|
//
|
||
|
// There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
|
||
|
// following boundaries:
|
||
|
//
|
||
|
// 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_ff64d440f86eff03, []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
|
||
|
}
|
||
|
|
||
|
// Specifies an exponential 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.
|
||
|
//
|
||
|
// There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
|
||
|
// following boundaries:
|
||
|
//
|
||
|
// 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_ff64d440f86eff03, []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
|
||
|
}
|
||
|
|
||
|
// Specifies a set of buckets with arbitrary widths.
|
||
|
//
|
||
|
// There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
|
||
|
// boundaries:
|
||
|
//
|
||
|
// Upper bound (0 <= i < N-1): bounds[i]
|
||
|
// Lower bound (1 <= i < N); bounds[i - 1]
|
||
|
//
|
||
|
// The `bounds` field must contain at least one element. If `bounds` has
|
||
|
// only one element, then 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_ff64d440f86eff03, []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
|
||
|
}
|
||
|
|
||
|
// Exemplars are example points that may be used to annotate aggregated
|
||
|
// distribution values. They are metadata that gives information about a
|
||
|
// particular value added to a Distribution bucket, such as a trace ID that
|
||
|
// was active when a value was added. They may contain further information,
|
||
|
// such as a example values and timestamps, origin, etc.
|
||
|
type Distribution_Exemplar struct {
|
||
|
// Value of the exemplar point. This value determines to which bucket the
|
||
|
// exemplar belongs.
|
||
|
Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
|
||
|
// The observation (sampling) time of the above value.
|
||
|
Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
||
|
// Contextual information about the example value. Examples are:
|
||
|
//
|
||
|
// Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
|
||
|
//
|
||
|
// Literal string: type.googleapis.com/google.protobuf.StringValue
|
||
|
//
|
||
|
// Labels dropped during aggregation:
|
||
|
// type.googleapis.com/google.monitoring.v3.DroppedLabels
|
||
|
//
|
||
|
// There may be only a single attachment of any given message type in a
|
||
|
// single exemplar, and this is enforced by the system.
|
||
|
Attachments []*any.Any `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_Exemplar) Reset() { *m = Distribution_Exemplar{} }
|
||
|
func (m *Distribution_Exemplar) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Distribution_Exemplar) ProtoMessage() {}
|
||
|
func (*Distribution_Exemplar) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_distribution_ff64d440f86eff03, []int{0, 2}
|
||
|
}
|
||
|
func (m *Distribution_Exemplar) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Distribution_Exemplar.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Distribution_Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Distribution_Exemplar.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Distribution_Exemplar) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Distribution_Exemplar.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Distribution_Exemplar) XXX_Size() int {
|
||
|
return xxx_messageInfo_Distribution_Exemplar.Size(m)
|
||
|
}
|
||
|
func (m *Distribution_Exemplar) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Distribution_Exemplar.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Distribution_Exemplar proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Distribution_Exemplar) GetValue() float64 {
|
||
|
if m != nil {
|
||
|
return m.Value
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_Exemplar) GetTimestamp() *timestamp.Timestamp {
|
||
|
if m != nil {
|
||
|
return m.Timestamp
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Distribution_Exemplar) GetAttachments() []*any.Any {
|
||
|
if m != nil {
|
||
|
return m.Attachments
|
||
|
}
|
||
|
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")
|
||
|
proto.RegisterType((*Distribution_Exemplar)(nil), "google.api.Distribution.Exemplar")
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterFile("google/api/distribution.proto", fileDescriptor_distribution_ff64d440f86eff03)
|
||
|
}
|
||
|
|
||
|
var fileDescriptor_distribution_ff64d440f86eff03 = []byte{
|
||
|
// 631 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xed, 0x6a, 0xd4, 0x40,
|
||
|
0x14, 0x6d, 0x9a, 0xdd, 0x6d, 0x7b, 0xb7, 0x5b, 0xeb, 0x58, 0x25, 0x06, 0xd4, 0xb5, 0x05, 0x59,
|
||
|
0x50, 0xb3, 0xb0, 0x8a, 0x0a, 0xfe, 0x90, 0x6e, 0x3f, 0xac, 0xa0, 0xb4, 0x8c, 0xe2, 0x0f, 0x11,
|
||
|
0xc2, 0x6c, 0x76, 0x92, 0x0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