# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/osconfig/v1/patch_deployments.proto

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/cloud/osconfig/v1/patch_jobs_pb'
require 'google/protobuf/duration_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'
require 'google/type/datetime_pb'
require 'google/type/dayofweek_pb'
require 'google/type/timeofday_pb'


descriptor_data = "\n0google/cloud/osconfig/v1/patch_deployments.proto\x12\x18google.cloud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/osconfig/v1/patch_jobs.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xec\x06\n\x0fPatchDeployment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12K\n\x0finstance_filter\x18\x03 \x01(\x0b\x32-.google.cloud.osconfig.v1.PatchInstanceFilterB\x03\xe0\x41\x02\x12@\n\x0cpatch_config\x18\x04 \x01(\x0b\x32%.google.cloud.osconfig.v1.PatchConfigB\x03\xe0\x41\x01\x12\x30\n\x08\x64uration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12K\n\x11one_time_schedule\x18\x06 \x01(\x0b\x32).google.cloud.osconfig.v1.OneTimeScheduleB\x03\xe0\x41\x02H\x00\x12N\n\x12recurring_schedule\x18\x07 \x01(\x0b\x32+.google.cloud.osconfig.v1.RecurringScheduleB\x03\xe0\x41\x02H\x00\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x11last_execute_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x07rollout\x18\x0b \x01(\x0b\x32&.google.cloud.osconfig.v1.PatchRolloutB\x03\xe0\x41\x01\x12\x43\n\x05state\x18\x0c \x01(\x0e\x32/.google.cloud.osconfig.v1.PatchDeployment.StateB\x03\xe0\x41\x03\"6\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\n\n\x06PAUSED\x10\x02:d\xea\x41\x61\n\'osconfig.googleapis.com/PatchDeployment\x12\x36projects/{project}/patchDeployments/{patch_deployment}B\n\n\x08schedule\"H\n\x0fOneTimeSchedule\x12\x35\n\x0c\x65xecute_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\x86\x05\n\x11RecurringSchedule\x12-\n\ttime_zone\x18\x01 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x02\x12\x33\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x30\n\x0btime_of_day\x18\x04 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x02\x12M\n\tfrequency\x18\x05 \x01(\x0e\x32\x35.google.cloud.osconfig.v1.RecurringSchedule.FrequencyB\x03\xe0\x41\x02\x12?\n\x06weekly\x18\x06 \x01(\x0b\x32(.google.cloud.osconfig.v1.WeeklyScheduleB\x03\xe0\x41\x02H\x00\x12\x41\n\x07monthly\x18\x07 \x01(\x0b\x32).google.cloud.osconfig.v1.MonthlyScheduleB\x03\xe0\x41\x02H\x00\x12:\n\x11last_execute_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x11next_execute_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"J\n\tFrequency\x12\x19\n\x15\x46REQUENCY_UNSPECIFIED\x10\x00\x12\n\n\x06WEEKLY\x10\x01\x12\x0b\n\x07MONTHLY\x10\x02\x12\t\n\x05\x44\x41ILY\x10\x03\x42\x11\n\x0fschedule_config\"B\n\x0eWeeklySchedule\x12\x30\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x02\"\x87\x01\n\x0fMonthlySchedule\x12J\n\x11week_day_of_month\x18\x01 \x01(\x0b\x32(.google.cloud.osconfig.v1.WeekDayOfMonthB\x03\xe0\x41\x02H\x00\x12\x18\n\tmonth_day\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02H\x00\x42\x0e\n\x0c\x64\x61y_of_month\"v\n\x0eWeekDayOfMonth\x12\x19\n\x0cweek_ordinal\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x30\n\x0b\x64\x61y_of_week\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x02\x12\x17\n\nday_offset\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"\xcf\x01\n\x1c\x43reatePatchDeploymentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12 \n\x13patch_deployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x10patch_deployment\x18\x03 \x01(\x0b\x32).google.cloud.osconfig.v1.PatchDeploymentB\x03\xe0\x41\x02\"Z\n\x19GetPatchDeploymentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'osconfig.googleapis.com/PatchDeployment\"\x93\x01\n\x1bListPatchDeploymentsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"}\n\x1cListPatchDeploymentsResponse\x12\x44\n\x11patch_deployments\x18\x01 \x03(\x0b\x32).google.cloud.osconfig.v1.PatchDeployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x1c\x44\x65letePatchDeploymentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'osconfig.googleapis.com/PatchDeployment\"\x9e\x01\n\x1cUpdatePatchDeploymentRequest\x12H\n\x10patch_deployment\x18\x01 \x01(\x0b\x32).google.cloud.osconfig.v1.PatchDeploymentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\\\n\x1bPausePatchDeploymentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'osconfig.googleapis.com/PatchDeployment\"]\n\x1cResumePatchDeploymentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'osconfig.googleapis.com/PatchDeploymentB\xbe\x01\n\x1c\x63om.google.cloud.osconfig.v1B\x10PatchDeploymentsZ8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::V1b\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.cloud.osconfig.v1.PatchInstanceFilter", "google/cloud/osconfig/v1/patch_jobs.proto"],
    ["google.protobuf.Duration", "google/protobuf/duration.proto"],
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
    ["google.type.TimeZone", "google/type/datetime.proto"],
    ["google.type.TimeOfDay", "google/type/timeofday.proto"],
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 OsConfig
      module V1
        PatchDeployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchDeployment").msgclass
        PatchDeployment::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PatchDeployment.State").enummodule
        OneTimeSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OneTimeSchedule").msgclass
        RecurringSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.RecurringSchedule").msgclass
        RecurringSchedule::Frequency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.RecurringSchedule.Frequency").enummodule
        WeeklySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.WeeklySchedule").msgclass
        MonthlySchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.MonthlySchedule").msgclass
        WeekDayOfMonth = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.WeekDayOfMonth").msgclass
        CreatePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CreatePatchDeploymentRequest").msgclass
        GetPatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetPatchDeploymentRequest").msgclass
        ListPatchDeploymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchDeploymentsRequest").msgclass
        ListPatchDeploymentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListPatchDeploymentsResponse").msgclass
        DeletePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.DeletePatchDeploymentRequest").msgclass
        UpdatePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.UpdatePatchDeploymentRequest").msgclass
        PausePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.PausePatchDeploymentRequest").msgclass
        ResumePatchDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ResumePatchDeploymentRequest").msgclass
      end
    end
  end
end
