1# Generated by the protocol buffer compiler.  DO NOT EDIT!
2# source: opencensus/proto/stats/v1/stats.proto
3
4require 'google/protobuf'
5
6require 'google/protobuf/timestamp_pb'
7Google::Protobuf::DescriptorPool.generated_pool.build do
8  add_message "opencensus.proto.stats.v1.Tag" do
9    optional :key, :string, 1
10    optional :value, :string, 2
11  end
12  add_message "opencensus.proto.stats.v1.Measure" do
13    optional :name, :string, 1
14    optional :description, :string, 2
15    optional :unit, :string, 3
16    optional :type, :enum, 4, "opencensus.proto.stats.v1.Measure.Type"
17  end
18  add_enum "opencensus.proto.stats.v1.Measure.Type" do
19    value :TYPE_UNSPECIFIED, 0
20    value :INT64, 1
21    value :DOUBLE, 2
22  end
23  add_message "opencensus.proto.stats.v1.View" do
24    optional :name, :string, 1
25    optional :description, :string, 2
26    optional :measure, :message, 3, "opencensus.proto.stats.v1.Measure"
27    repeated :columns, :string, 4
28    oneof :aggregation do
29      optional :count_aggregation, :message, 5, "opencensus.proto.stats.v1.CountAggregation"
30      optional :sum_aggregation, :message, 6, "opencensus.proto.stats.v1.SumAggregation"
31      optional :last_value_aggregation, :message, 7, "opencensus.proto.stats.v1.LastValueAggregation"
32      optional :distribution_aggregation, :message, 8, "opencensus.proto.stats.v1.DistributionAggregation"
33    end
34  end
35  add_message "opencensus.proto.stats.v1.CountAggregation" do
36  end
37  add_message "opencensus.proto.stats.v1.SumAggregation" do
38  end
39  add_message "opencensus.proto.stats.v1.LastValueAggregation" do
40  end
41  add_message "opencensus.proto.stats.v1.DistributionAggregation" do
42    repeated :bucket_bounds, :double, 1
43  end
44  add_message "opencensus.proto.stats.v1.Measurement" do
45    repeated :tags, :message, 1, "opencensus.proto.stats.v1.Tag"
46    optional :measure_name, :string, 2
47    optional :time, :message, 5, "google.protobuf.Timestamp"
48    oneof :value do
49      optional :double_value, :double, 3
50      optional :int_value, :int64, 4
51    end
52  end
53end
54
55module OpenCensus
56  module Proto
57    module Stats
58      module V1
59        Tag = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Tag").msgclass
60        Measure = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Measure").msgclass
61        Measure::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Measure.Type").enummodule
62        View = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.View").msgclass
63        CountAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.CountAggregation").msgclass
64        SumAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.SumAggregation").msgclass
65        LastValueAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.LastValueAggregation").msgclass
66        DistributionAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.DistributionAggregation").msgclass
67        Measurement = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Measurement").msgclass
68      end
69    end
70  end
71end
72