123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943 |
- // Copyright 2016-18, OpenCensus Authors
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.25.0
- // protoc v3.12.3
- // source: opencensus/proto/stats/v1/stats.proto
- package v1
- import (
- proto "github.com/golang/protobuf/proto"
- timestamp "github.com/golang/protobuf/ptypes/timestamp"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- // This is a compile-time assertion that a sufficiently up-to-date version
- // of the legacy proto package is being used.
- const _ = proto.ProtoPackageIsVersion4
- type Measure_Type int32
- const (
- // Unknown type.
- Measure_TYPE_UNSPECIFIED Measure_Type = 0
- // Indicates an int64 Measure.
- Measure_INT64 Measure_Type = 1
- // Indicates a double Measure.
- Measure_DOUBLE Measure_Type = 2
- )
- // Enum value maps for Measure_Type.
- var (
- Measure_Type_name = map[int32]string{
- 0: "TYPE_UNSPECIFIED",
- 1: "INT64",
- 2: "DOUBLE",
- }
- Measure_Type_value = map[string]int32{
- "TYPE_UNSPECIFIED": 0,
- "INT64": 1,
- "DOUBLE": 2,
- }
- )
- func (x Measure_Type) Enum() *Measure_Type {
- p := new(Measure_Type)
- *p = x
- return p
- }
- func (x Measure_Type) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (Measure_Type) Descriptor() protoreflect.EnumDescriptor {
- return file_opencensus_proto_stats_v1_stats_proto_enumTypes[0].Descriptor()
- }
- func (Measure_Type) Type() protoreflect.EnumType {
- return &file_opencensus_proto_stats_v1_stats_proto_enumTypes[0]
- }
- func (x Measure_Type) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use Measure_Type.Descriptor instead.
- func (Measure_Type) EnumDescriptor() ([]byte, []int) {
- return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{1, 0}
- }
- // TODO(bdrutu): Consider if this should be moved to a "tags" directory to match the API structure.
- type Tag struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
- Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
- }
- func (x *Tag) Reset() {
- *x = Tag{}
- if protoimpl.UnsafeEnabled {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Tag) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Tag) ProtoMessage() {}
- func (x *Tag) ProtoReflect() protoreflect.Message {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Tag.ProtoReflect.Descriptor instead.
- func (*Tag) Descriptor() ([]byte, []int) {
- return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{0}
- }
- func (x *Tag) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *Tag) GetValue() string {
- if x != nil {
- return x.Value
- }
- return ""
- }
- // Measure .
- type Measure struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- // A string by which the measure will be referred to, e.g. "rpc_server_latency". Names MUST be
- // unique within the library.
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // Describes the measure, e.g. "RPC latency in seconds".
- Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
- // Describes the unit used for the Measure. Follows the format described by
- // http://unitsofmeasure.org/ucum.html.
- Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
- // The type used for this Measure.
- Type Measure_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opencensus.proto.stats.v1.Measure_Type" json:"type,omitempty"`
- }
- func (x *Measure) Reset() {
- *x = Measure{}
- if protoimpl.UnsafeEnabled {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Measure) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Measure) ProtoMessage() {}
- func (x *Measure) ProtoReflect() protoreflect.Message {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Measure.ProtoReflect.Descriptor instead.
- func (*Measure) Descriptor() ([]byte, []int) {
- return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{1}
- }
- func (x *Measure) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *Measure) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- func (x *Measure) GetUnit() string {
- if x != nil {
- return x.Unit
- }
- return ""
- }
- func (x *Measure) GetType() Measure_Type {
- if x != nil {
- return x.Type
- }
- return Measure_TYPE_UNSPECIFIED
- }
- type View struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- // A string by which the View will be referred to, e.g. "rpc_latency". Names MUST be unique
- // within the library.
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // Describes the view, e.g. "RPC latency distribution"
- Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
- // The Measure to which this view is applied.
- Measure *Measure `protobuf:"bytes,3,opt,name=measure,proto3" json:"measure,omitempty"`
- // An array of tag keys. These values associated with tags of this name form the basis by which
- // individual stats will be aggregated (one aggregation per unique tag value). If none are
- // provided, then all data is recorded in a single aggregation.
- Columns []string `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
- // The description of the aggregation used for this view which describes how data collected are
- // aggregated.
- //
- // Types that are assignable to Aggregation:
- // *View_CountAggregation
- // *View_SumAggregation
- // *View_LastValueAggregation
- // *View_DistributionAggregation
- Aggregation isView_Aggregation `protobuf_oneof:"aggregation"`
- }
- func (x *View) Reset() {
- *x = View{}
- if protoimpl.UnsafeEnabled {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *View) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*View) ProtoMessage() {}
- func (x *View) ProtoReflect() protoreflect.Message {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use View.ProtoReflect.Descriptor instead.
- func (*View) Descriptor() ([]byte, []int) {
- return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{2}
- }
- func (x *View) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *View) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- func (x *View) GetMeasure() *Measure {
- if x != nil {
- return x.Measure
- }
- return nil
- }
- func (x *View) GetColumns() []string {
- if x != nil {
- return x.Columns
- }
- return nil
- }
- func (m *View) GetAggregation() isView_Aggregation {
- if m != nil {
- return m.Aggregation
- }
- return nil
- }
- func (x *View) GetCountAggregation() *CountAggregation {
- if x, ok := x.GetAggregation().(*View_CountAggregation); ok {
- return x.CountAggregation
- }
- return nil
- }
- func (x *View) GetSumAggregation() *SumAggregation {
- if x, ok := x.GetAggregation().(*View_SumAggregation); ok {
- return x.SumAggregation
- }
- return nil
- }
- func (x *View) GetLastValueAggregation() *LastValueAggregation {
- if x, ok := x.GetAggregation().(*View_LastValueAggregation); ok {
- return x.LastValueAggregation
- }
- return nil
- }
- func (x *View) GetDistributionAggregation() *DistributionAggregation {
- if x, ok := x.GetAggregation().(*View_DistributionAggregation); ok {
- return x.DistributionAggregation
- }
- return nil
- }
- type isView_Aggregation interface {
- isView_Aggregation()
- }
- type View_CountAggregation struct {
- // Counts the number of measurements recorded.
- CountAggregation *CountAggregation `protobuf:"bytes,5,opt,name=count_aggregation,json=countAggregation,proto3,oneof"`
- }
- type View_SumAggregation struct {
- // Indicates that data collected and aggregated with this Aggregation will be summed up.
- SumAggregation *SumAggregation `protobuf:"bytes,6,opt,name=sum_aggregation,json=sumAggregation,proto3,oneof"`
- }
- type View_LastValueAggregation struct {
- // Indicates that data collected and aggregated with this Aggregation will represent the last
- // recorded value. This is useful to support Gauges.
- LastValueAggregation *LastValueAggregation `protobuf:"bytes,7,opt,name=last_value_aggregation,json=lastValueAggregation,proto3,oneof"`
- }
- type View_DistributionAggregation struct {
- // Indicates that the desired Aggregation is a histogram distribution. A distribution
- // Aggregation may contain a histogram of the values in the population. User should define the
- // bucket boundaries for that histogram (see DistributionAggregation).
- DistributionAggregation *DistributionAggregation `protobuf:"bytes,8,opt,name=distribution_aggregation,json=distributionAggregation,proto3,oneof"`
- }
- func (*View_CountAggregation) isView_Aggregation() {}
- func (*View_SumAggregation) isView_Aggregation() {}
- func (*View_LastValueAggregation) isView_Aggregation() {}
- func (*View_DistributionAggregation) isView_Aggregation() {}
- type CountAggregation struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *CountAggregation) Reset() {
- *x = CountAggregation{}
- if protoimpl.UnsafeEnabled {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CountAggregation) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CountAggregation) ProtoMessage() {}
- func (x *CountAggregation) ProtoReflect() protoreflect.Message {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CountAggregation.ProtoReflect.Descriptor instead.
- func (*CountAggregation) Descriptor() ([]byte, []int) {
- return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{3}
- }
- type SumAggregation struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *SumAggregation) Reset() {
- *x = SumAggregation{}
- if protoimpl.UnsafeEnabled {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *SumAggregation) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SumAggregation) ProtoMessage() {}
- func (x *SumAggregation) ProtoReflect() protoreflect.Message {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SumAggregation.ProtoReflect.Descriptor instead.
- func (*SumAggregation) Descriptor() ([]byte, []int) {
- return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{4}
- }
- type LastValueAggregation struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *LastValueAggregation) Reset() {
- *x = LastValueAggregation{}
- if protoimpl.UnsafeEnabled {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *LastValueAggregation) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*LastValueAggregation) ProtoMessage() {}
- func (x *LastValueAggregation) ProtoReflect() protoreflect.Message {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use LastValueAggregation.ProtoReflect.Descriptor instead.
- func (*LastValueAggregation) Descriptor() ([]byte, []int) {
- return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{5}
- }
- type DistributionAggregation struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- // A Distribution may optionally contain a histogram of the values in the
- // population. The bucket boundaries for that histogram are described by
- // `bucket_bounds`. This defines `size(bucket_bounds) + 1` (= N)
- // buckets. The boundaries for bucket index i are:
- //
- // (-infinity, bucket_bounds[i]) for i == 0
- // [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2
- // [bucket_bounds[i-1], +infinity) for i == N-1
- //
- // i.e. an underflow bucket (number 0), zero or more finite buckets (1
- // through N - 2, and an overflow bucket (N - 1), with inclusive lower
- // bounds and exclusive upper bounds.
- //
- // If `bucket_bounds` has no elements (zero size), then there is no
- // histogram associated with the Distribution. If `bucket_bounds` has only
- // one element, there are no finite buckets, and that single element is the
- // common boundary of the overflow and underflow buckets. The values must
- // be monotonically increasing.
- BucketBounds []float64 `protobuf:"fixed64,1,rep,packed,name=bucket_bounds,json=bucketBounds,proto3" json:"bucket_bounds,omitempty"`
- }
- func (x *DistributionAggregation) Reset() {
- *x = DistributionAggregation{}
- if protoimpl.UnsafeEnabled {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DistributionAggregation) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DistributionAggregation) ProtoMessage() {}
- func (x *DistributionAggregation) ProtoReflect() protoreflect.Message {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DistributionAggregation.ProtoReflect.Descriptor instead.
- func (*DistributionAggregation) Descriptor() ([]byte, []int) {
- return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{6}
- }
- func (x *DistributionAggregation) GetBucketBounds() []float64 {
- if x != nil {
- return x.BucketBounds
- }
- return nil
- }
- // Describes a data point to be collected for a Measure.
- type Measurement struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Tags []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
- // The name of the measure to which the value is applied.
- MeasureName string `protobuf:"bytes,2,opt,name=measure_name,json=measureName,proto3" json:"measure_name,omitempty"`
- // The recorded value, MUST have the appropriate type to match the Measure.
- //
- // Types that are assignable to Value:
- // *Measurement_DoubleValue
- // *Measurement_IntValue
- Value isMeasurement_Value `protobuf_oneof:"value"`
- // The time when this measurement was recorded. If the implementation uses a async buffer to
- // record measurements this may be the time when the measurement was read from the buffer.
- Time *timestamp.Timestamp `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
- }
- func (x *Measurement) Reset() {
- *x = Measurement{}
- if protoimpl.UnsafeEnabled {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Measurement) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Measurement) ProtoMessage() {}
- func (x *Measurement) ProtoReflect() protoreflect.Message {
- mi := &file_opencensus_proto_stats_v1_stats_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Measurement.ProtoReflect.Descriptor instead.
- func (*Measurement) Descriptor() ([]byte, []int) {
- return file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP(), []int{7}
- }
- func (x *Measurement) GetTags() []*Tag {
- if x != nil {
- return x.Tags
- }
- return nil
- }
- func (x *Measurement) GetMeasureName() string {
- if x != nil {
- return x.MeasureName
- }
- return ""
- }
- func (m *Measurement) GetValue() isMeasurement_Value {
- if m != nil {
- return m.Value
- }
- return nil
- }
- func (x *Measurement) GetDoubleValue() float64 {
- if x, ok := x.GetValue().(*Measurement_DoubleValue); ok {
- return x.DoubleValue
- }
- return 0
- }
- func (x *Measurement) GetIntValue() int64 {
- if x, ok := x.GetValue().(*Measurement_IntValue); ok {
- return x.IntValue
- }
- return 0
- }
- func (x *Measurement) GetTime() *timestamp.Timestamp {
- if x != nil {
- return x.Time
- }
- return nil
- }
- type isMeasurement_Value interface {
- isMeasurement_Value()
- }
- type Measurement_DoubleValue struct {
- DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
- }
- type Measurement_IntValue struct {
- IntValue int64 `protobuf:"varint,4,opt,name=int_value,json=intValue,proto3,oneof"`
- }
- func (*Measurement_DoubleValue) isMeasurement_Value() {}
- func (*Measurement_IntValue) isMeasurement_Value() {}
- var File_opencensus_proto_stats_v1_stats_proto protoreflect.FileDescriptor
- var file_opencensus_proto_stats_v1_stats_proto_rawDesc = []byte{
- 0x0a, 0x25, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74,
- 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
- 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e,
- 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
- 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
- 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
- 0x75, 0x65, 0x22, 0xc5, 0x01, 0x0a, 0x07, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x12,
- 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
- 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
- 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x12, 0x3b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
- 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e,
- 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52,
- 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x33, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a,
- 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
- 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x01, 0x12, 0x0a,
- 0x0a, 0x06, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x22, 0xaf, 0x04, 0x0a, 0x04, 0x56,
- 0x69, 0x65, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
- 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
- 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x07, 0x6d, 0x65, 0x61,
- 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x70, 0x65,
- 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74,
- 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x52, 0x07,
- 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
- 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
- 0x73, 0x12, 0x5a, 0x0a, 0x11, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x67, 0x67, 0x72, 0x65,
- 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6f,
- 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
- 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x67,
- 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x10, 0x63, 0x6f, 0x75,
- 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x54, 0x0a,
- 0x0f, 0x73, 0x75, 0x6d, 0x5f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
- 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e,
- 0x76, 0x31, 0x2e, 0x53, 0x75, 0x6d, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x75, 0x6d, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74,
- 0x69, 0x6f, 0x6e, 0x12, 0x67, 0x0a, 0x16, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75,
- 0x65, 0x5f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e,
- 0x4c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61,
- 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x14, 0x6c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75,
- 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6f, 0x0a, 0x18,
- 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x67, 0x67,
- 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32,
- 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72,
- 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x17, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69,
- 0x6f, 0x6e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a,
- 0x0b, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x12, 0x0a, 0x10,
- 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x22, 0x10, 0x0a, 0x0e, 0x53, 0x75, 0x6d, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x22, 0x16, 0x0a, 0x14, 0x4c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41,
- 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3e, 0x0a, 0x17, 0x44, 0x69,
- 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67,
- 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x5f,
- 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x01, 0x52, 0x0c, 0x62, 0x75,
- 0x63, 0x6b, 0x65, 0x74, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x73, 0x22, 0xe1, 0x01, 0x0a, 0x0b, 0x4d,
- 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x61,
- 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63,
- 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74,
- 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x21,
- 0x0a, 0x0c, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x4e, 0x61, 0x6d,
- 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75,
- 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c,
- 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61,
- 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74,
- 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
- 0x04, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x8c,
- 0x01, 0x0a, 0x1c, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42,
- 0x0a, 0x53, 0x74, 0x61, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67,
- 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73,
- 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x76,
- 0x31, 0xea, 0x02, 0x19, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x50,
- 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_opencensus_proto_stats_v1_stats_proto_rawDescOnce sync.Once
- file_opencensus_proto_stats_v1_stats_proto_rawDescData = file_opencensus_proto_stats_v1_stats_proto_rawDesc
- )
- func file_opencensus_proto_stats_v1_stats_proto_rawDescGZIP() []byte {
- file_opencensus_proto_stats_v1_stats_proto_rawDescOnce.Do(func() {
- file_opencensus_proto_stats_v1_stats_proto_rawDescData = protoimpl.X.CompressGZIP(file_opencensus_proto_stats_v1_stats_proto_rawDescData)
- })
- return file_opencensus_proto_stats_v1_stats_proto_rawDescData
- }
- var file_opencensus_proto_stats_v1_stats_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_opencensus_proto_stats_v1_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
- var file_opencensus_proto_stats_v1_stats_proto_goTypes = []interface{}{
- (Measure_Type)(0), // 0: opencensus.proto.stats.v1.Measure.Type
- (*Tag)(nil), // 1: opencensus.proto.stats.v1.Tag
- (*Measure)(nil), // 2: opencensus.proto.stats.v1.Measure
- (*View)(nil), // 3: opencensus.proto.stats.v1.View
- (*CountAggregation)(nil), // 4: opencensus.proto.stats.v1.CountAggregation
- (*SumAggregation)(nil), // 5: opencensus.proto.stats.v1.SumAggregation
- (*LastValueAggregation)(nil), // 6: opencensus.proto.stats.v1.LastValueAggregation
- (*DistributionAggregation)(nil), // 7: opencensus.proto.stats.v1.DistributionAggregation
- (*Measurement)(nil), // 8: opencensus.proto.stats.v1.Measurement
- (*timestamp.Timestamp)(nil), // 9: google.protobuf.Timestamp
- }
- var file_opencensus_proto_stats_v1_stats_proto_depIdxs = []int32{
- 0, // 0: opencensus.proto.stats.v1.Measure.type:type_name -> opencensus.proto.stats.v1.Measure.Type
- 2, // 1: opencensus.proto.stats.v1.View.measure:type_name -> opencensus.proto.stats.v1.Measure
- 4, // 2: opencensus.proto.stats.v1.View.count_aggregation:type_name -> opencensus.proto.stats.v1.CountAggregation
- 5, // 3: opencensus.proto.stats.v1.View.sum_aggregation:type_name -> opencensus.proto.stats.v1.SumAggregation
- 6, // 4: opencensus.proto.stats.v1.View.last_value_aggregation:type_name -> opencensus.proto.stats.v1.LastValueAggregation
- 7, // 5: opencensus.proto.stats.v1.View.distribution_aggregation:type_name -> opencensus.proto.stats.v1.DistributionAggregation
- 1, // 6: opencensus.proto.stats.v1.Measurement.tags:type_name -> opencensus.proto.stats.v1.Tag
- 9, // 7: opencensus.proto.stats.v1.Measurement.time:type_name -> google.protobuf.Timestamp
- 8, // [8:8] is the sub-list for method output_type
- 8, // [8:8] is the sub-list for method input_type
- 8, // [8:8] is the sub-list for extension type_name
- 8, // [8:8] is the sub-list for extension extendee
- 0, // [0:8] is the sub-list for field type_name
- }
- func init() { file_opencensus_proto_stats_v1_stats_proto_init() }
- func file_opencensus_proto_stats_v1_stats_proto_init() {
- if File_opencensus_proto_stats_v1_stats_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Tag); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Measure); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*View); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CountAggregation); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SumAggregation); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*LastValueAggregation); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DistributionAggregation); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Measurement); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[2].OneofWrappers = []interface{}{
- (*View_CountAggregation)(nil),
- (*View_SumAggregation)(nil),
- (*View_LastValueAggregation)(nil),
- (*View_DistributionAggregation)(nil),
- }
- file_opencensus_proto_stats_v1_stats_proto_msgTypes[7].OneofWrappers = []interface{}{
- (*Measurement_DoubleValue)(nil),
- (*Measurement_IntValue)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_opencensus_proto_stats_v1_stats_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 8,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_opencensus_proto_stats_v1_stats_proto_goTypes,
- DependencyIndexes: file_opencensus_proto_stats_v1_stats_proto_depIdxs,
- EnumInfos: file_opencensus_proto_stats_v1_stats_proto_enumTypes,
- MessageInfos: file_opencensus_proto_stats_v1_stats_proto_msgTypes,
- }.Build()
- File_opencensus_proto_stats_v1_stats_proto = out.File
- file_opencensus_proto_stats_v1_stats_proto_rawDesc = nil
- file_opencensus_proto_stats_v1_stats_proto_goTypes = nil
- file_opencensus_proto_stats_v1_stats_proto_depIdxs = nil
- }
|