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

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\nCgoogle/cloud/cloudcontrolspartner/v1/access_approval_requests.proto\x12$google.cloud.cloudcontrolspartner.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x03\n\x15\x41\x63\x63\x65ssApprovalRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x30\n\x0crequest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12L\n\x10requested_reason\x18\x03 \x01(\x0b\x32\x32.google.cloud.cloudcontrolspartner.v1.AccessReason\x12=\n\x19requested_expiration_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\xfd\x01\xea\x41\xf9\x01\n9cloudcontrolspartner.googleapis.com/AccessApprovalRequest\x12\x8c\x01organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}*\x16\x61\x63\x63\x65ssApprovalRequests2\x15\x61\x63\x63\x65ssApprovalRequest\"\xd3\x01\n!ListAccessApprovalRequestsRequest\x12Q\n\x06parent\x18\x01 \x01(\tBA\xe0\x41\x02\xfa\x41;\x12\x39\x63loudcontrolspartner.googleapis.com/AccessApprovalRequest\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\"\xb1\x01\n\"ListAccessApprovalRequestsResponse\x12]\n\x18\x61\x63\x63\x65ss_approval_requests\x18\x01 \x03(\x0b\x32;.google.cloud.cloudcontrolspartner.v1.AccessApprovalRequest\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xc2\x02\n\x0c\x41\x63\x63\x65ssReason\x12\x45\n\x04type\x18\x01 \x01(\x0e\x32\x37.google.cloud.cloudcontrolspartner.v1.AccessReason.Type\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\"\xda\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43USTOMER_INITIATED_SUPPORT\x10\x01\x12\x1c\n\x18GOOGLE_INITIATED_SERVICE\x10\x02\x12\x1b\n\x17GOOGLE_INITIATED_REVIEW\x10\x03\x12\x1c\n\x18THIRD_PARTY_DATA_REQUEST\x10\x04\x12\'\n#GOOGLE_RESPONSE_TO_PRODUCTION_ALERT\x10\x05\x12\x1a\n\x16\x43LOUD_INITIATED_ACCESS\x10\x06\x42\x9f\x02\n(com.google.cloud.cloudcontrolspartner.v1B\x1b\x41\x63\x63\x65ssApprovalRequestsProtoP\x01Z\\cloud.google.com/go/cloudcontrolspartner/apiv1/cloudcontrolspartnerpb;cloudcontrolspartnerpb\xaa\x02$Google.Cloud.CloudControlsPartner.V1\xca\x02$Google\\Cloud\\CloudControlsPartner\\V1\xea\x02\'Google::Cloud::CloudControlsPartner::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"],
  ]
  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 CloudControlsPartner
      module V1
        AccessApprovalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.AccessApprovalRequest").msgclass
        ListAccessApprovalRequestsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsRequest").msgclass
        ListAccessApprovalRequestsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsResponse").msgclass
        AccessReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.AccessReason").msgclass
        AccessReason::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudcontrolspartner.v1.AccessReason.Type").enummodule
      end
    end
  end
end
