# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/monitoring/dashboard/v1/common.proto

require 'google/api/distribution_pb'
require 'google/protobuf/duration_pb'
require 'google/protobuf'

Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/monitoring/dashboard/v1/common.proto", :syntax => :proto3) do
    add_message "google.monitoring.dashboard.v1.Aggregation" do
      optional :alignment_period, :message, 1, "google.protobuf.Duration"
      optional :per_series_aligner, :enum, 2, "google.monitoring.dashboard.v1.Aggregation.Aligner"
      optional :cross_series_reducer, :enum, 4, "google.monitoring.dashboard.v1.Aggregation.Reducer"
      repeated :group_by_fields, :string, 5
    end
    add_enum "google.monitoring.dashboard.v1.Aggregation.Aligner" do
      value :ALIGN_NONE, 0
      value :ALIGN_DELTA, 1
      value :ALIGN_RATE, 2
      value :ALIGN_INTERPOLATE, 3
      value :ALIGN_NEXT_OLDER, 4
      value :ALIGN_MIN, 10
      value :ALIGN_MAX, 11
      value :ALIGN_MEAN, 12
      value :ALIGN_COUNT, 13
      value :ALIGN_SUM, 14
      value :ALIGN_STDDEV, 15
      value :ALIGN_COUNT_TRUE, 16
      value :ALIGN_COUNT_FALSE, 24
      value :ALIGN_FRACTION_TRUE, 17
      value :ALIGN_PERCENTILE_99, 18
      value :ALIGN_PERCENTILE_95, 19
      value :ALIGN_PERCENTILE_50, 20
      value :ALIGN_PERCENTILE_05, 21
      value :ALIGN_PERCENT_CHANGE, 23
    end
    add_enum "google.monitoring.dashboard.v1.Aggregation.Reducer" do
      value :REDUCE_NONE, 0
      value :REDUCE_MEAN, 1
      value :REDUCE_MIN, 2
      value :REDUCE_MAX, 3
      value :REDUCE_SUM, 4
      value :REDUCE_STDDEV, 5
      value :REDUCE_COUNT, 6
      value :REDUCE_COUNT_TRUE, 7
      value :REDUCE_COUNT_FALSE, 15
      value :REDUCE_FRACTION_TRUE, 8
      value :REDUCE_PERCENTILE_99, 9
      value :REDUCE_PERCENTILE_95, 10
      value :REDUCE_PERCENTILE_50, 11
      value :REDUCE_PERCENTILE_05, 12
    end
    add_message "google.monitoring.dashboard.v1.PickTimeSeriesFilter" do
      optional :ranking_method, :enum, 1, "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method"
      optional :num_time_series, :int32, 2
      optional :direction, :enum, 3, "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction"
    end
    add_enum "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method" do
      value :METHOD_UNSPECIFIED, 0
      value :METHOD_MEAN, 1
      value :METHOD_MAX, 2
      value :METHOD_MIN, 3
      value :METHOD_SUM, 4
      value :METHOD_LATEST, 5
    end
    add_enum "google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction" do
      value :DIRECTION_UNSPECIFIED, 0
      value :TOP, 1
      value :BOTTOM, 2
    end
    add_message "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter" do
      optional :ranking_method, :enum, 1, "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method"
      optional :num_time_series, :int32, 2
    end
    add_enum "google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method" do
      value :METHOD_UNSPECIFIED, 0
      value :METHOD_CLUSTER_OUTLIER, 1
    end
  end
end

module Google
  module Cloud
    module Monitoring
      module Dashboard
        module V1
          Aggregation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Aggregation").msgclass
          Aggregation::Aligner = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Aggregation.Aligner").enummodule
          Aggregation::Reducer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.Aggregation.Reducer").enummodule
          PickTimeSeriesFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.PickTimeSeriesFilter").msgclass
          PickTimeSeriesFilter::Method = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method").enummodule
          PickTimeSeriesFilter::Direction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction").enummodule
          StatisticalTimeSeriesFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter").msgclass
          StatisticalTimeSeriesFilter::Method = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter.Method").enummodule
        end
      end
    end
  end
end
