# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: opencensus/proto/stats/v1/stats.proto

require 'google/protobuf'

require 'google/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_message "opencensus.proto.stats.v1.Tag" do
    optional :key, :string, 1
    optional :value, :string, 2
  end
  add_message "opencensus.proto.stats.v1.Measure" do
    optional :name, :string, 1
    optional :description, :string, 2
    optional :unit, :string, 3
    optional :type, :enum, 4, "opencensus.proto.stats.v1.Measure.Type"
  end
  add_enum "opencensus.proto.stats.v1.Measure.Type" do
    value :TYPE_UNSPECIFIED, 0
    value :INT64, 1
    value :DOUBLE, 2
  end
  add_message "opencensus.proto.stats.v1.View" do
    optional :name, :string, 1
    optional :description, :string, 2
    optional :measure, :message, 3, "opencensus.proto.stats.v1.Measure"
    repeated :columns, :string, 4
    oneof :aggregation do
      optional :count_aggregation, :message, 5, "opencensus.proto.stats.v1.CountAggregation"
      optional :sum_aggregation, :message, 6, "opencensus.proto.stats.v1.SumAggregation"
      optional :last_value_aggregation, :message, 7, "opencensus.proto.stats.v1.LastValueAggregation"
      optional :distribution_aggregation, :message, 8, "opencensus.proto.stats.v1.DistributionAggregation"
    end
  end
  add_message "opencensus.proto.stats.v1.CountAggregation" do
  end
  add_message "opencensus.proto.stats.v1.SumAggregation" do
  end
  add_message "opencensus.proto.stats.v1.LastValueAggregation" do
  end
  add_message "opencensus.proto.stats.v1.DistributionAggregation" do
    repeated :bucket_bounds, :double, 1
  end
  add_message "opencensus.proto.stats.v1.Measurement" do
    repeated :tags, :message, 1, "opencensus.proto.stats.v1.Tag"
    optional :measure_name, :string, 2
    optional :time, :message, 5, "google.protobuf.Timestamp"
    oneof :value do
      optional :double_value, :double, 3
      optional :int_value, :int64, 4
    end
  end
end

module OpenCensus
  module Proto
    module Stats
      module V1
        Tag = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Tag").msgclass
        Measure = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Measure").msgclass
        Measure::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Measure.Type").enummodule
        View = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.View").msgclass
        CountAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.CountAggregation").msgclass
        SumAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.SumAggregation").msgclass
        LastValueAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.LastValueAggregation").msgclass
        DistributionAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.DistributionAggregation").msgclass
        Measurement = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Measurement").msgclass
      end
    end
  end
end
