# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/resourcemanager/v3/projects.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/iam/v1/iam_policy_pb'
require 'google/iam/v1/policy_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n.google/cloud/resourcemanager/v3/projects.proto\x12\x1fgoogle.cloud.resourcemanager.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe3\x04\n\x07Project\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06parent\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nproject_id\x18\x03 \x01(\tB\x03\xe0\x41\x05\x12\x42\n\x05state\x18\x04 \x01(\x0e\x32..google.cloud.resourcemanager.v3.Project.StateB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\t \x01(\tB\x03\xe0\x41\x03\x12I\n\x06labels\x18\n \x03(\x0b\x32\x34.google.cloud.resourcemanager.v3.Project.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\"@\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x14\n\x10\x44\x45LETE_REQUESTED\x10\x02:G\xea\x41\x44\n+cloudresourcemanager.googleapis.com/Project\x12\x12projects/{project}R\x01\x01\"V\n\x11GetProjectRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\"|\n\x13ListProjectsRequest\x12\x19\n\x06parent\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\x12\x01*\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"k\n\x14ListProjectsResponse\x12:\n\x08projects\x18\x01 \x03(\x0b\x32(.google.cloud.resourcemanager.v3.Project\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\\\n\x15SearchProjectsRequest\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"m\n\x16SearchProjectsResponse\x12:\n\x08projects\x18\x01 \x03(\x0b\x32(.google.cloud.resourcemanager.v3.Project\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x14\x43reateProjectRequest\x12>\n\x07project\x18\x01 \x01(\x0b\x32(.google.cloud.resourcemanager.v3.ProjectB\x03\xe0\x41\x02\"i\n\x15\x43reateProjectMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08gettable\x18\x02 \x01(\x08\x12\r\n\x05ready\x18\x03 \x01(\x08\"\x8c\x01\n\x14UpdateProjectRequest\x12>\n\x07project\x18\x01 \x01(\x0b\x32(.google.cloud.resourcemanager.v3.ProjectB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x17\n\x15UpdateProjectMetadata\"~\n\x12MoveProjectRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12%\n\x12\x64\x65stination_parent\x18\x02 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\x12\x01*\"\x15\n\x13MoveProjectMetadata\"Y\n\x14\x44\x65leteProjectRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\"\x17\n\x15\x44\x65leteProjectMetadata\"[\n\x16UndeleteProjectRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\"\x19\n\x17UndeleteProjectMetadata2\x8f\x10\n\x08Projects\x12\x90\x01\n\nGetProject\x12\x32.google.cloud.resourcemanager.v3.GetProjectRequest\x1a(.google.cloud.resourcemanager.v3.Project\"$\xda\x41\x04name\x82\xd3\xe4\x93\x02\x17\x12\x15/v3/{name=projects/*}\x12\x9a\x01\n\x0cListProjects\x12\x34.google.cloud.resourcemanager.v3.ListProjectsRequest\x1a\x35.google.cloud.resourcemanager.v3.ListProjectsResponse\"\x1d\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v3/projects\x12\xa6\x01\n\x0eSearchProjects\x12\x36.google.cloud.resourcemanager.v3.SearchProjectsRequest\x1a\x37.google.cloud.resourcemanager.v3.SearchProjectsResponse\"#\xda\x41\x05query\x82\xd3\xe4\x93\x02\x15\x12\x13/v3/projects:search\x12\xb1\x01\n\rCreateProject\x12\x35.google.cloud.resourcemanager.v3.CreateProjectRequest\x1a\x1d.google.longrunning.Operation\"J\xca\x41 \n\x07Project\x12\x15\x43reateProjectMetadata\xda\x41\x07project\x82\xd3\xe4\x93\x02\x17\"\x0c/v3/projects:\x07project\x12\xce\x01\n\rUpdateProject\x12\x35.google.cloud.resourcemanager.v3.UpdateProjectRequest\x1a\x1d.google.longrunning.Operation\"g\xca\x41 \n\x07Project\x12\x15UpdateProjectMetadata\xda\x41\x13project,update_mask\x82\xd3\xe4\x93\x02(2\x1d/v3/{project.name=projects/*}:\x07project\x12\xc4\x01\n\x0bMoveProject\x12\x33.google.cloud.resourcemanager.v3.MoveProjectRequest\x1a\x1d.google.longrunning.Operation\"a\xca\x41\x1e\n\x07Project\x12\x13MoveProjectMetadata\xda\x41\x18name, destination_parent\x82\xd3\xe4\x93\x02\x1f\"\x1a/v3/{name=projects/*}:move:\x01*\x12\xae\x01\n\rDeleteProject\x12\x35.google.cloud.resourcemanager.v3.DeleteProjectRequest\x1a\x1d.google.longrunning.Operation\"G\xca\x41 \n\x07Project\x12\x15\x44\x65leteProjectMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x17*\x15/v3/{name=projects/*}\x12\xc0\x01\n\x0fUndeleteProject\x12\x37.google.cloud.resourcemanager.v3.UndeleteProjectRequest\x1a\x1d.google.longrunning.Operation\"U\xca\x41\"\n\x07Project\x12\x17UndeleteProjectMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02#\"\x1e/v3/{name=projects/*}:undelete:\x01*\x12\x87\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"<\xda\x41\x08resource\x82\xd3\xe4\x93\x02+\"&/v3/{resource=projects/*}:getIamPolicy:\x01*\x12\x8f\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"D\xda\x41\x10resource, policy\x82\xd3\xe4\x93\x02+\"&/v3/{resource=projects/*}:setIamPolicy:\x01*\x12\xba\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"O\xda\x41\x15resource, permissions\x82\xd3\xe4\x93\x02\x31\",/v3/{resource=projects/*}:testIamPermissions:\x01*\x1a\x90\x01\xca\x41#cloudresourcemanager.googleapis.com\xd2\x41ghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xee\x01\n#com.google.cloud.resourcemanager.v3B\rProjectsProtoP\x01ZMcloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb;resourcemanagerpb\xaa\x02\x1fGoogle.Cloud.ResourceManager.V3\xca\x02\x1fGoogle\\Cloud\\ResourceManager\\V3\xea\x02\"Google::Cloud::ResourceManager::V3b\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 ResourceManager
      module V3
        Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.Project").msgclass
        Project::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.Project.State").enummodule
        GetProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.GetProjectRequest").msgclass
        ListProjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.ListProjectsRequest").msgclass
        ListProjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.ListProjectsResponse").msgclass
        SearchProjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.SearchProjectsRequest").msgclass
        SearchProjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.SearchProjectsResponse").msgclass
        CreateProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.CreateProjectRequest").msgclass
        CreateProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.CreateProjectMetadata").msgclass
        UpdateProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UpdateProjectRequest").msgclass
        UpdateProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UpdateProjectMetadata").msgclass
        MoveProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.MoveProjectRequest").msgclass
        MoveProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.MoveProjectMetadata").msgclass
        DeleteProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.DeleteProjectRequest").msgclass
        DeleteProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.DeleteProjectMetadata").msgclass
        UndeleteProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UndeleteProjectRequest").msgclass
        UndeleteProjectMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.resourcemanager.v3.UndeleteProjectMetadata").msgclass
      end
    end
  end
end
