# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/maintenance/api/v1beta/maintenance_service.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/field_info_pb'
require 'google/api/resource_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n=google/cloud/maintenance/api/v1beta/maintenance_service.proto\x12#google.cloud.maintenance.api.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb4\x01\n\x1cSummarizeMaintenancesRequest\x12G\n\x06parent\x18\x96N \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.maintenance.googleapis.com/ResourceMaintenance\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xa4\x01\n\x1dSummarizeMaintenancesResponse\x12N\n\x0cmaintenances\x18\x8dR \x03(\x0b\x32\x37.google.cloud.maintenance.api.v1beta.MaintenanceSummary\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x19\n\x0bunreachable\x18\x8fR \x03(\tB\x03\xe0\x41\x06\"\xa6\x06\n\x12MaintenanceSummary\x12\x1d\n\x10maintenance_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12O\n\x08\x63\x61tegory\x18\r \x01(\x0e\x32\x38.google.cloud.maintenance.api.v1beta.MaintenanceCategoryB\x03\xe0\x41\x03\x12I\n maintenance_scheduled_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x1emaintenance_scheduled_end_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_start_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11user_controllable\x18\n \x01(\x08\x42\x03\xe0\x41\x03\x12N\n\x08\x63ontrols\x18\x0e \x03(\x0b\x32\x37.google.cloud.maintenance.api.v1beta.MaintenanceControlB\x03\xe0\x41\x03\x12Q\n\x05stats\x18\x0c \x03(\x0b\x32=.google.cloud.maintenance.api.v1beta.MaintenanceSummary.StatsB\x03\xe0\x41\x03\x1ap\n\x05Stats\x12\x10\n\x08group_by\x18\x01 \x01(\t\x12U\n\naggregates\x18\x02 \x03(\x0b\x32\x41.google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate\x1a)\n\tAggregate\x12\r\n\x05group\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"\xc8\r\n\x13ResourceMaintenance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12X\n\x08resource\x18\x02 \x01(\x0b\x32\x41.google.cloud.maintenance.api.v1beta.ResourceMaintenance.ResourceB\x03\xe0\x41\x03\x12^\n\x0bmaintenance\x18\x03 \x01(\x0b\x32\x44.google.cloud.maintenance.api.v1beta.ResourceMaintenance.MaintenanceB\x03\xe0\x41\x03\x12R\n\x05state\x18\x04 \x01(\x0e\x32>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_start_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x17maintenance_cancel_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12I\n maintenance_scheduled_start_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x1emaintenance_scheduled_end_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11user_controllable\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12N\n\x08\x63ontrols\x18\r \x03(\x0b\x32\x37.google.cloud.maintenance.api.v1beta.MaintenanceControlB\x03\xe0\x41\x03\x12Z\n\x06labels\x18\xa1Q \x03(\x0b\x32\x44.google.cloud.maintenance.api.v1beta.ResourceMaintenance.LabelsEntryB\x03\xe0\x41\x01\x12\x64\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32I.google.cloud.maintenance.api.v1beta.ResourceMaintenance.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x1aP\n\x08Resource\x12\x1a\n\rresource_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08location\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04type\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1a\xa6\x01\n\x0bMaintenance\x12\x18\n\x10maintenance_name\x18\x01 \x01(\t\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12O\n\x08\x63\x61tegory\x18\x04 \x01(\x0e\x32\x38.google.cloud.maintenance.api.v1beta.MaintenanceCategoryB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04:\xb4\x01\xea\x41\xb0\x01\n.maintenance.googleapis.com/ResourceMaintenance\x12Sprojects/{project}/locations/{location}/resourceMaintenances/{resource_maintenance}*\x14resourceMaintenances2\x13resourceMaintenance\"\xe2\x01\n\x12MaintenanceControl\x12P\n\x07\x63ontrol\x18\x01 \x01(\x0e\x32?.google.cloud.maintenance.api.v1beta.MaintenanceControl.Control\x12\x11\n\tis_custom\x18\x02 \x01(\x08\x12\x15\n\rdocumentation\x18\x03 \x01(\t\"P\n\x07\x43ontrol\x12\x17\n\x13\x43ONTROL_UNSPECIFIED\x10\x00\x12\t\n\x05\x41PPLY\x10\x01\x12\x11\n\rMANAGE_POLICY\x10\x02\x12\x0e\n\nRESCHEDULE\x10\x03\"\xb7\x01\n\x1fListResourceMaintenancesRequest\x12G\n\x06parent\x18\x96N \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.maintenance.googleapis.com/ResourceMaintenance\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xac\x01\n ListResourceMaintenancesResponse\x12X\n\x15resource_maintenances\x18\x8dR \x03(\x0b\x32\x38.google.cloud.maintenance.api.v1beta.ResourceMaintenance\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"f\n\x1dGetResourceMaintenanceRequest\x12\x45\n\x04name\x18\x91N \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.maintenance.googleapis.com/ResourceMaintenance*c\n\x13MaintenanceCategory\x12$\n MAINTENANCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x12\n\x0eINFRASTRUCTURE\x10\x01\x12\x12\n\x0eSERVICE_UPDATE\x10\x03\x32\xb6\x06\n\x0bMaintenance\x12\xf7\x01\n\x15SummarizeMaintenances\x12\x41.google.cloud.maintenance.api.v1beta.SummarizeMaintenancesRequest\x1a\x42.google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1beta/{parent=projects/*/locations/*}/resourceMaintenances:summarize\x12\xf6\x01\n\x18ListResourceMaintenances\x12\x44.google.cloud.maintenance.api.v1beta.ListResourceMaintenancesRequest\x1a\x45.google.cloud.maintenance.api.v1beta.ListResourceMaintenancesResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12</v1beta/{parent=projects/*/locations/*}/resourceMaintenances\x12\xe3\x01\n\x16GetResourceMaintenance\x12\x42.google.cloud.maintenance.api.v1beta.GetResourceMaintenanceRequest\x1a\x38.google.cloud.maintenance.api.v1beta.ResourceMaintenance\"K\xda\x41\x04name\x82\xd3\xe4\x93\x02>\x12</v1beta/{name=projects/*/locations/*/resourceMaintenances/*}\x1aN\xca\x41\x1amaintenance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBw\n\'com.google.cloud.maintenance.api.v1betaB\x0fUMMServiceProtoP\x01Z9cloud.google.com/go/maintenance/api/apiv1beta/apipb;apipbb\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Google
  module Cloud
    module Maintenance
      module Api
        module V1beta
          SummarizeMaintenancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.SummarizeMaintenancesRequest").msgclass
          SummarizeMaintenancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse").msgclass
          MaintenanceSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.MaintenanceSummary").msgclass
          MaintenanceSummary::Stats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.MaintenanceSummary.Stats").msgclass
          MaintenanceSummary::Aggregate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate").msgclass
          ResourceMaintenance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.ResourceMaintenance").msgclass
          ResourceMaintenance::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.ResourceMaintenance.Resource").msgclass
          ResourceMaintenance::Maintenance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.ResourceMaintenance.Maintenance").msgclass
          ResourceMaintenance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.ResourceMaintenance.State").enummodule
          MaintenanceControl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.MaintenanceControl").msgclass
          MaintenanceControl::Control = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.MaintenanceControl.Control").enummodule
          ListResourceMaintenancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.ListResourceMaintenancesRequest").msgclass
          ListResourceMaintenancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.ListResourceMaintenancesResponse").msgclass
          GetResourceMaintenanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.GetResourceMaintenanceRequest").msgclass
          MaintenanceCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.maintenance.api.v1beta.MaintenanceCategory").enummodule
        end
      end
    end
  end
end
