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

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/cloud/gkebackup/v1/common_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n\'google/cloud/gkebackup/v1/restore.proto\x12\x19google.cloud.gkebackup.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/gkebackup/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xee\n\n\x07Restore\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12:\n\x06\x62\x61\x63kup\x18\x06 \x01(\tB*\xe0\x41\x05\xe0\x41\x02\xfa\x41!\n\x1fgkebackup.googleapis.com/Backup\x12\x39\n\x07\x63luster\x18\x07 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n container.googleapis.com/Cluster\x12\x45\n\x0erestore_config\x18\x08 \x01(\x0b\x32(.google.cloud.gkebackup.v1.RestoreConfigB\x03\xe0\x41\x03\x12>\n\x06labels\x18\t \x03(\x0b\x32..google.cloud.gkebackup.v1.Restore.LabelsEntry\x12<\n\x05state\x18\n \x01(\x0e\x32(.google.cloud.gkebackup.v1.Restore.StateB\x03\xe0\x41\x03\x12\x19\n\x0cstate_reason\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x36\n\rcomplete_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12%\n\x18resources_restored_count\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18resources_excluded_count\x18\x0e \x01(\x05\x42\x03\xe0\x41\x03\x12#\n\x16resources_failed_count\x18\x0f \x01(\x05\x42\x03\xe0\x41\x03\x12#\n\x16volumes_restored_count\x18\x10 \x01(\x05\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x11 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x06\x66ilter\x18\x12 \x01(\x0b\x32).google.cloud.gkebackup.v1.Restore.FilterB\x06\xe0\x41\x05\xe0\x41\x01\x12p\n$volume_data_restore_policy_overrides\x18\x13 \x03(\x0b\x32:.google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverrideB\x06\xe0\x41\x05\xe0\x41\x01\x1a\xa2\x01\n\x06\x46ilter\x12K\n\x11inclusion_filters\x18\x01 \x03(\x0b\x32+.google.cloud.gkebackup.v1.ResourceSelectorB\x03\xe0\x41\x01\x12K\n\x11\x65xclusion_filters\x18\x02 \x03(\x0b\x32+.google.cloud.gkebackup.v1.ResourceSelectorB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"v\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\x0e\n\nVALIDATING\x10\x06:}\xea\x41z\n gkebackup.googleapis.com/Restore\x12Vprojects/{project}/locations/{location}/restorePlans/{restore_plan}/restores/{restore}\"\xef\x1a\n\rRestoreConfig\x12i\n\x1avolume_data_restore_policy\x18\x01 \x01(\x0e\x32@.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyB\x03\xe0\x41\x01\x12u\n cluster_resource_conflict_policy\x18\x02 \x01(\x0e\x32\x46.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicyB\x03\xe0\x41\x01\x12u\n namespaced_resource_restore_mode\x18\x03 \x01(\x0e\x32\x46.google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreModeB\x03\xe0\x41\x01\x12q\n\x1e\x63luster_resource_restore_scope\x18\x04 \x01(\x0b\x32\x44.google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScopeB\x03\xe0\x41\x01\x12\x18\n\x0e\x61ll_namespaces\x18\x05 \x01(\x08H\x00\x12\x44\n\x13selected_namespaces\x18\x06 \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesH\x00\x12K\n\x15selected_applications\x18\x07 \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesH\x00\x12\x17\n\rno_namespaces\x18\t \x01(\x08H\x00\x12\x44\n\x13\x65xcluded_namespaces\x18\n \x01(\x0b\x32%.google.cloud.gkebackup.v1.NamespacesH\x00\x12Z\n\x12substitution_rules\x18\x08 \x03(\x0b\x32\x39.google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRuleB\x03\xe0\x41\x01\x12^\n\x14transformation_rules\x18\x0b \x03(\x0b\x32;.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleB\x03\xe0\x41\x01\x12y\n#volume_data_restore_policy_bindings\x18\x0c \x03(\x0b\x32G.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBindingB\x03\xe0\x41\x01\x12Q\n\rrestore_order\x18\r \x01(\x0b\x32\x35.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrderB\x03\xe0\x41\x01\x1a\x44\n\tGroupKind\x12\x1b\n\x0eresource_group\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rresource_kind\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1a\x86\x02\n\x1b\x43lusterResourceRestoreScope\x12U\n\x14selected_group_kinds\x18\x01 \x03(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12U\n\x14\x65xcluded_group_kinds\x18\x02 \x03(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12\x1c\n\x0f\x61ll_group_kinds\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1b\n\x0eno_group_kinds\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xe3\x01\n\x10SubstitutionRule\x12\x1e\n\x11target_namespaces\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12S\n\x12target_group_kinds\x18\x02 \x03(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12\x1d\n\x10target_json_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12#\n\x16original_value_pattern\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tnew_value\x18\x05 \x01(\tB\x03\xe0\x41\x01\x1a\x8a\x02\n\x18TransformationRuleAction\x12U\n\x02op\x18\x01 \x01(\x0e\x32\x44.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.OpB\x03\xe0\x41\x02\x12\x16\n\tfrom_path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05value\x18\x04 \x01(\tB\x03\xe0\x41\x01\"X\n\x02Op\x12\x12\n\x0eOP_UNSPECIFIED\x10\x00\x12\n\n\x06REMOVE\x10\x01\x12\x08\n\x04MOVE\x10\x02\x12\x08\n\x04\x43OPY\x10\x03\x12\x07\n\x03\x41\x44\x44\x10\x04\x12\x08\n\x04TEST\x10\x05\x12\x0b\n\x07REPLACE\x10\x06\x1a\x8f\x01\n\x0eResourceFilter\x12\x17\n\nnamespaces\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12L\n\x0bgroup_kinds\x18\x02 \x03(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12\x16\n\tjson_path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a\xe4\x01\n\x12TransformationRule\x12]\n\rfield_actions\x18\x01 \x03(\x0b\x32\x41.google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleActionB\x03\xe0\x41\x02\x12U\n\x0fresource_filter\x18\x02 \x01(\x0b\x32\x37.google.cloud.gkebackup.v1.RestoreConfig.ResourceFilterB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a\xcd\x01\n\x1eVolumeDataRestorePolicyBinding\x12U\n\x06policy\x18\x01 \x01(\x0e\x32@.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyB\x03\xe0\x41\x02\x12K\n\x0bvolume_type\x18\x02 \x01(\x0e\x32\x34.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeTypeH\x00\x42\x07\n\x05scope\x1a\xb0\x02\n\x0cRestoreOrder\x12o\n\x17group_kind_dependencies\x18\x01 \x03(\x0b\x32I.google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependencyB\x03\xe0\x41\x01\x1a\xae\x01\n\x13GroupKindDependency\x12K\n\nsatisfying\x18\x01 \x01(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x02\x12J\n\trequiring\x18\x02 \x01(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x02\"\xaf\x01\n\x17VolumeDataRestorePolicy\x12*\n&VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED\x10\x00\x12#\n\x1fRESTORE_VOLUME_DATA_FROM_BACKUP\x10\x01\x12#\n\x1fREUSE_VOLUME_HANDLE_FROM_BACKUP\x10\x02\x12\x1e\n\x1aNO_VOLUME_DATA_RESTORATION\x10\x03\"\x83\x01\n\x1d\x43lusterResourceConflictPolicy\x12\x30\n,CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED\x10\x00\x12\x18\n\x14USE_EXISTING_VERSION\x10\x01\x12\x16\n\x12USE_BACKUP_VERSION\x10\x02\"\xe0\x01\n\x1dNamespacedResourceRestoreMode\x12\x30\n,NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x44\x45LETE_AND_RESTORE\x10\x01\x12\x14\n\x10\x46\x41IL_ON_CONFLICT\x10\x02\x12\x1a\n\x16MERGE_SKIP_ON_CONFLICT\x10\x03\x12$\n MERGE_REPLACE_VOLUME_ON_CONFLICT\x10\x04\x12\x1d\n\x19MERGE_REPLACE_ON_CONFLICT\x10\x05\x42#\n!namespaced_resource_restore_scope\"\x87\x02\n\x10ResourceSelector\x12K\n\ngroup_kind\x18\x01 \x01(\x0b\x32\x32.google.cloud.gkebackup.v1.RestoreConfig.GroupKindB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tnamespace\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x06labels\x18\x04 \x03(\x0b\x32\x37.google.cloud.gkebackup.v1.ResourceSelector.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc6\x01\n\x1fVolumeDataRestorePolicyOverride\x12U\n\x06policy\x18\x01 \x01(\x0e\x32@.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyB\x03\xe0\x41\x02\x12\x43\n\rselected_pvcs\x18\x02 \x01(\x0b\x32*.google.cloud.gkebackup.v1.NamespacedNamesH\x00\x42\x07\n\x05scopeB\xc3\x01\n\x1d\x63om.google.cloud.gkebackup.v1B\x0cRestoreProtoP\x01Z;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb\xaa\x02\x19Google.Cloud.GkeBackup.V1\xca\x02\x19Google\\Cloud\\GkeBackup\\V1\xea\x02\x1cGoogle::Cloud::GkeBackup::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.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
    ["google.cloud.gkebackup.v1.Namespaces", "google/cloud/gkebackup/v1/common.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 GkeBackup
      module V1
        Restore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.Restore").msgclass
        Restore::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.Restore.Filter").msgclass
        Restore::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.Restore.State").enummodule
        RestoreConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig").msgclass
        RestoreConfig::GroupKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.GroupKind").msgclass
        RestoreConfig::ClusterResourceRestoreScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope").msgclass
        RestoreConfig::SubstitutionRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule").msgclass
        RestoreConfig::TransformationRuleAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction").msgclass
        RestoreConfig::TransformationRuleAction::Op = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op").enummodule
        RestoreConfig::ResourceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter").msgclass
        RestoreConfig::TransformationRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.TransformationRule").msgclass
        RestoreConfig::VolumeDataRestorePolicyBinding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding").msgclass
        RestoreConfig::RestoreOrder = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder").msgclass
        RestoreConfig::RestoreOrder::GroupKindDependency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency").msgclass
        RestoreConfig::VolumeDataRestorePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy").enummodule
        RestoreConfig::ClusterResourceConflictPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy").enummodule
        RestoreConfig::NamespacedResourceRestoreMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode").enummodule
        ResourceSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.ResourceSelector").msgclass
        VolumeDataRestorePolicyOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride").msgclass
      end
    end
  end
end
