# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
require 'google/protobuf/duration_pb'
require 'google/protobuf/timestamp_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto", :syntax => :proto3) do
    add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest" do
      optional :project_name, :string, 1
      repeated :group_id, :string, 2
      optional :service_filter, :message, 3, "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter"
      optional :time_range, :message, 5, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange"
      optional :timed_count_duration, :message, 6, "google.protobuf.Duration"
      optional :alignment, :enum, 7, "google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment"
      optional :alignment_time, :message, 8, "google.protobuf.Timestamp"
      optional :order, :enum, 9, "google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder"
      optional :page_size, :int32, 11
      optional :page_token, :string, 12
    end
    add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse" do
      repeated :error_group_stats, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats"
      optional :next_page_token, :string, 2
      optional :time_range_begin, :message, 4, "google.protobuf.Timestamp"
    end
    add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats" do
      optional :group, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorGroup"
      optional :count, :int64, 2
      optional :affected_users_count, :int64, 3
      repeated :timed_counts, :message, 4, "google.devtools.clouderrorreporting.v1beta1.TimedCount"
      optional :first_seen_time, :message, 5, "google.protobuf.Timestamp"
      optional :last_seen_time, :message, 6, "google.protobuf.Timestamp"
      repeated :affected_services, :message, 7, "google.devtools.clouderrorreporting.v1beta1.ServiceContext"
      optional :num_affected_services, :int32, 8
      optional :representative, :message, 9, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent"
    end
    add_message "google.devtools.clouderrorreporting.v1beta1.TimedCount" do
      optional :count, :int64, 1
      optional :start_time, :message, 2, "google.protobuf.Timestamp"
      optional :end_time, :message, 3, "google.protobuf.Timestamp"
    end
    add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsRequest" do
      optional :project_name, :string, 1
      optional :group_id, :string, 2
      optional :service_filter, :message, 3, "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter"
      optional :time_range, :message, 4, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange"
      optional :page_size, :int32, 6
      optional :page_token, :string, 7
    end
    add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsResponse" do
      repeated :error_events, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent"
      optional :next_page_token, :string, 2
      optional :time_range_begin, :message, 4, "google.protobuf.Timestamp"
    end
    add_message "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange" do
      optional :period, :enum, 1, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period"
    end
    add_enum "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period" do
      value :PERIOD_UNSPECIFIED, 0
      value :PERIOD_1_HOUR, 1
      value :PERIOD_6_HOURS, 2
      value :PERIOD_1_DAY, 3
      value :PERIOD_1_WEEK, 4
      value :PERIOD_30_DAYS, 5
    end
    add_message "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter" do
      optional :service, :string, 2
      optional :version, :string, 3
      optional :resource_type, :string, 4
    end
    add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest" do
      optional :project_name, :string, 1
    end
    add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse" do
    end
    add_enum "google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment" do
      value :ERROR_COUNT_ALIGNMENT_UNSPECIFIED, 0
      value :ALIGNMENT_EQUAL_ROUNDED, 1
      value :ALIGNMENT_EQUAL_AT_END, 2
    end
    add_enum "google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder" do
      value :GROUP_ORDER_UNSPECIFIED, 0
      value :COUNT_DESC, 1
      value :LAST_SEEN_DESC, 2
      value :CREATED_DESC, 3
      value :AFFECTED_USERS_DESC, 4
    end
  end
end

module Google
  module Cloud
    module ErrorReporting
      module V1beta1
        ListGroupStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest").msgclass
        ListGroupStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse").msgclass
        ErrorGroupStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats").msgclass
        TimedCount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.TimedCount").msgclass
        ListEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListEventsRequest").msgclass
        ListEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ListEventsResponse").msgclass
        QueryTimeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.QueryTimeRange").msgclass
        QueryTimeRange::Period = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period").enummodule
        ServiceContextFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter").msgclass
        DeleteEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest").msgclass
        DeleteEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse").msgclass
        TimedCountAlignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment").enummodule
        ErrorGroupOrder = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder").enummodule
      end
    end
  end
end
