# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dataplex/v1/cmek.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/cloud/dataplex/v1/service_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n#google/cloud/dataplex/v1/cmek.proto\x12\x18google.cloud.dataplex.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/dataplex/v1/service.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd0\x06\n\x10\x45ncryptionConfig\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x08\xfa\x41*\n(dataplex.googleapis.com/EncryptionConfig\x12\x10\n\x03key\x18\x02 \x01(\tB\x03\xe0\x41\x01\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\x12Y\n\x10\x65ncryption_state\x18\x05 \x01(\x0e\x32:.google.cloud.dataplex.v1.EncryptionConfig.EncryptionStateB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x06 \x01(\t\x12W\n\x0f\x66\x61ilure_details\x18\x07 \x01(\x0b\x32\x39.google.cloud.dataplex.v1.EncryptionConfig.FailureDetailsB\x03\xe0\x41\x03\x1a\xd1\x01\n\x0e\x46\x61ilureDetails\x12\\\n\nerror_code\x18\x01 \x01(\x0e\x32\x43.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCodeB\x03\xe0\x41\x03\x12\x1a\n\rerror_message\x18\x02 \x01(\tB\x03\xe0\x41\x03\"E\n\tErrorCode\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x12\n\x0eINTERNAL_ERROR\x10\x01\x12\x17\n\x13REQUIRE_USER_ACTION\x10\x02\"^\n\x0f\x45ncryptionState\x12 \n\x1c\x45NCRYPTION_STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nENCRYPTING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03:\x87\x01\xea\x41\x83\x01\n(dataplex.googleapis.com/EncryptionConfig\x12Worganizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}\"\xd4\x01\n\x1d\x43reateEncryptionConfigRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,dataplex.googleapis.com/OrganizationLocation\x12!\n\x14\x65ncryption_config_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\x11\x65ncryption_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xe0\x41\x02\"\\\n\x1aGetEncryptionConfigRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dataplex.googleapis.com/EncryptionConfig\"\xa1\x01\n\x1dUpdateEncryptionConfigRequest\x12J\n\x11\x65ncryption_config\x18\x01 \x01(\x0b\x32*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"r\n\x1d\x44\x65leteEncryptionConfigRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(dataplex.googleapis.com/EncryptionConfig\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xbd\x01\n\x1cListEncryptionConfigsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(dataplex.googleapis.com/EncryptionConfig\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\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xc7\x01\n\x1dListEncryptionConfigsResponse\x12\x46\n\x12\x65ncryption_configs\x18\x01 \x03(\x0b\x32*.google.cloud.dataplex.v1.EncryptionConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x45\n\x15unreachable_locations\x18\x03 \x03(\tB&\xfa\x41#\n!locations.googleapis.com/Location2\xaa\n\n\x0b\x43mekService\x12\xa0\x02\n\x16\x43reateEncryptionConfig\x12\x37.google.cloud.dataplex.v1.CreateEncryptionConfigRequest\x1a\x1d.google.longrunning.Operation\"\xad\x01\xca\x41%\n\x10\x45ncryptionConfig\x12\x11OperationMetadata\xda\x41-parent,encryption_config,encryption_config_id\x82\xd3\xe4\x93\x02O\":/v1/{parent=organizations/*/locations/*}/encryptionConfigs:\x11\x65ncryption_config\x12\xa2\x02\n\x16UpdateEncryptionConfig\x12\x37.google.cloud.dataplex.v1.UpdateEncryptionConfigRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\xca\x41%\n\x10\x45ncryptionConfig\x12\x11OperationMetadata\xda\x41\x1d\x65ncryption_config,update_mask\x82\xd3\xe4\x93\x02\x61\x32L/v1/{encryption_config.name=organizations/*/locations/*/encryptionConfigs/*}:\x11\x65ncryption_config\x12\xe8\x01\n\x16\x44\x65leteEncryptionConfig\x12\x37.google.cloud.dataplex.v1.DeleteEncryptionConfigRequest\x1a\x1d.google.longrunning.Operation\"v\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02<*:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x12\xd5\x01\n\x15ListEncryptionConfigs\x12\x36.google.cloud.dataplex.v1.ListEncryptionConfigsRequest\x1a\x37.google.cloud.dataplex.v1.ListEncryptionConfigsResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=organizations/*/locations/*}/encryptionConfigs\x12\xc2\x01\n\x13GetEncryptionConfig\x12\x34.google.cloud.dataplex.v1.GetEncryptionConfigRequest\x1a*.google.cloud.dataplex.v1.EncryptionConfig\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x1aK\xca\x41\x17\x64\x61taplex.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9d\x02\n\x1c\x63om.google.cloud.dataplex.v1B\tCmekProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xaa\x02\x18Google.Cloud.Dataplex.V1\xca\x02\x18Google\\Cloud\\Dataplex\\V1\xea\x02\x1bGoogle::Cloud::Dataplex::V1\xea\x41\x61\n,dataplex.googleapis.com/OrganizationLocation\x12\x31organizations/{organization}/locations/{location}b\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.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 Dataplex
      module V1
        EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.EncryptionConfig").msgclass
        EncryptionConfig::FailureDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.EncryptionConfig.FailureDetails").msgclass
        EncryptionConfig::FailureDetails::ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCode").enummodule
        EncryptionConfig::EncryptionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.EncryptionConfig.EncryptionState").enummodule
        CreateEncryptionConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateEncryptionConfigRequest").msgclass
        GetEncryptionConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetEncryptionConfigRequest").msgclass
        UpdateEncryptionConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateEncryptionConfigRequest").msgclass
        DeleteEncryptionConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteEncryptionConfigRequest").msgclass
        ListEncryptionConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEncryptionConfigsRequest").msgclass
        ListEncryptionConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEncryptionConfigsResponse").msgclass
      end
    end
  end
end
