Class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder>
com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
All Implemented Interfaces:
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy

public static final class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder> implements AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
 The IAM policies governed by the organization policies of the
 [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
 
Protobuf type google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder>
    • getDefaultInstanceForType

      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder>
    • mergeFrom

      public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder>
      Throws:
      IOException
    • getAttachedResource

      public String getAttachedResource()
       The full resource name of the resource on which this IAM policy is set.
       Example:
       `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       See [Cloud Asset Inventory Resource Name
       Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       for more information.
       
      string attached_resource = 1;
      Specified by:
      getAttachedResource in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The attachedResource.
    • getAttachedResourceBytes

      public com.google.protobuf.ByteString getAttachedResourceBytes()
       The full resource name of the resource on which this IAM policy is set.
       Example:
       `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       See [Cloud Asset Inventory Resource Name
       Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       for more information.
       
      string attached_resource = 1;
      Specified by:
      getAttachedResourceBytes in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The bytes for attachedResource.
    • setAttachedResource

       The full resource name of the resource on which this IAM policy is set.
       Example:
       `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       See [Cloud Asset Inventory Resource Name
       Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       for more information.
       
      string attached_resource = 1;
      Parameters:
      value - The attachedResource to set.
      Returns:
      This builder for chaining.
    • clearAttachedResource

       The full resource name of the resource on which this IAM policy is set.
       Example:
       `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       See [Cloud Asset Inventory Resource Name
       Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       for more information.
       
      string attached_resource = 1;
      Returns:
      This builder for chaining.
    • setAttachedResourceBytes

      public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setAttachedResourceBytes(com.google.protobuf.ByteString value)
       The full resource name of the resource on which this IAM policy is set.
       Example:
       `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       See [Cloud Asset Inventory Resource Name
       Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       for more information.
       
      string attached_resource = 1;
      Parameters:
      value - The bytes for attachedResource to set.
      Returns:
      This builder for chaining.
    • hasPolicy

      public boolean hasPolicy()
       The IAM policy directly set on the given resource.
       
      .google.iam.v1.Policy policy = 2;
      Specified by:
      hasPolicy in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      Whether the policy field is set.
    • getPolicy

      public Policy getPolicy()
       The IAM policy directly set on the given resource.
       
      .google.iam.v1.Policy policy = 2;
      Specified by:
      getPolicy in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The policy.
    • setPolicy

       The IAM policy directly set on the given resource.
       
      .google.iam.v1.Policy policy = 2;
    • setPolicy

       The IAM policy directly set on the given resource.
       
      .google.iam.v1.Policy policy = 2;
    • mergePolicy

       The IAM policy directly set on the given resource.
       
      .google.iam.v1.Policy policy = 2;
    • clearPolicy

       The IAM policy directly set on the given resource.
       
      .google.iam.v1.Policy policy = 2;
    • getPolicyBuilder

      public Policy.Builder getPolicyBuilder()
       The IAM policy directly set on the given resource.
       
      .google.iam.v1.Policy policy = 2;
    • getPolicyOrBuilder

      public PolicyOrBuilder getPolicyOrBuilder()
       The IAM policy directly set on the given resource.
       
      .google.iam.v1.Policy policy = 2;
      Specified by:
      getPolicyOrBuilder in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
    • getProject

      public String getProject()
       The project that this IAM policy belongs to, in the format of
       projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       belongs to a project.
       
      string project = 5;
      Specified by:
      getProject in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       The project that this IAM policy belongs to, in the format of
       projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       belongs to a project.
       
      string project = 5;
      Specified by:
      getProjectBytes in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The bytes for project.
    • setProject

       The project that this IAM policy belongs to, in the format of
       projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       belongs to a project.
       
      string project = 5;
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

       The project that this IAM policy belongs to, in the format of
       projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       belongs to a project.
       
      string project = 5;
      Returns:
      This builder for chaining.
    • setProjectBytes

      public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setProjectBytes(com.google.protobuf.ByteString value)
       The project that this IAM policy belongs to, in the format of
       projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       belongs to a project.
       
      string project = 5;
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getFoldersList

      public com.google.protobuf.ProtocolStringList getFoldersList()
       The folder(s) that this IAM policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 6;
      Specified by:
      getFoldersList in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      A list containing the folders.
    • getFoldersCount

      public int getFoldersCount()
       The folder(s) that this IAM policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 6;
      Specified by:
      getFoldersCount in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The count of folders.
    • getFolders

      public String getFolders(int index)
       The folder(s) that this IAM policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 6;
      Specified by:
      getFolders in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The folders at the given index.
    • getFoldersBytes

      public com.google.protobuf.ByteString getFoldersBytes(int index)
       The folder(s) that this IAM policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 6;
      Specified by:
      getFoldersBytes in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the folders at the given index.
    • setFolders

       The folder(s) that this IAM policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 6;
      Parameters:
      index - The index to set the value at.
      value - The folders to set.
      Returns:
      This builder for chaining.
    • addFolders

       The folder(s) that this IAM policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 6;
      Parameters:
      value - The folders to add.
      Returns:
      This builder for chaining.
    • addAllFolders

       The folder(s) that this IAM policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 6;
      Parameters:
      values - The folders to add.
      Returns:
      This builder for chaining.
    • clearFolders

       The folder(s) that this IAM policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 6;
      Returns:
      This builder for chaining.
    • addFoldersBytes

      public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder addFoldersBytes(com.google.protobuf.ByteString value)
       The folder(s) that this IAM policy belongs to, in the format of
       folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       belongs (directly or cascadingly) to one or more folders.
       
      repeated string folders = 6;
      Parameters:
      value - The bytes of the folders to add.
      Returns:
      This builder for chaining.
    • getOrganization

      public String getOrganization()
       The organization that this IAM policy belongs to, in the format of
       organizations/{ORGANIZATION_NUMBER}. This field is available when the
       IAM policy belongs (directly or cascadingly) to an organization.
       
      string organization = 7;
      Specified by:
      getOrganization in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The organization.
    • getOrganizationBytes

      public com.google.protobuf.ByteString getOrganizationBytes()
       The organization that this IAM policy belongs to, in the format of
       organizations/{ORGANIZATION_NUMBER}. This field is available when the
       IAM policy belongs (directly or cascadingly) to an organization.
       
      string organization = 7;
      Specified by:
      getOrganizationBytes in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The bytes for organization.
    • setOrganization

       The organization that this IAM policy belongs to, in the format of
       organizations/{ORGANIZATION_NUMBER}. This field is available when the
       IAM policy belongs (directly or cascadingly) to an organization.
       
      string organization = 7;
      Parameters:
      value - The organization to set.
      Returns:
      This builder for chaining.
    • clearOrganization

       The organization that this IAM policy belongs to, in the format of
       organizations/{ORGANIZATION_NUMBER}. This field is available when the
       IAM policy belongs (directly or cascadingly) to an organization.
       
      string organization = 7;
      Returns:
      This builder for chaining.
    • setOrganizationBytes

      public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setOrganizationBytes(com.google.protobuf.ByteString value)
       The organization that this IAM policy belongs to, in the format of
       organizations/{ORGANIZATION_NUMBER}. This field is available when the
       IAM policy belongs (directly or cascadingly) to an organization.
       
      string organization = 7;
      Parameters:
      value - The bytes for organization to set.
      Returns:
      This builder for chaining.
    • getAssetType

      public String getAssetType()
       The asset type of the
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
       Example:
       `cloudresourcemanager.googleapis.com/Project`
       See [Cloud Asset Inventory Supported Asset
       Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       for all supported asset types.
       
      string asset_type = 8;
      Specified by:
      getAssetType in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The assetType.
    • getAssetTypeBytes

      public com.google.protobuf.ByteString getAssetTypeBytes()
       The asset type of the
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
       Example:
       `cloudresourcemanager.googleapis.com/Project`
       See [Cloud Asset Inventory Supported Asset
       Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       for all supported asset types.
       
      string asset_type = 8;
      Specified by:
      getAssetTypeBytes in interface AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
      Returns:
      The bytes for assetType.
    • setAssetType

       The asset type of the
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
       Example:
       `cloudresourcemanager.googleapis.com/Project`
       See [Cloud Asset Inventory Supported Asset
       Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       for all supported asset types.
       
      string asset_type = 8;
      Parameters:
      value - The assetType to set.
      Returns:
      This builder for chaining.
    • clearAssetType

       The asset type of the
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
       Example:
       `cloudresourcemanager.googleapis.com/Project`
       See [Cloud Asset Inventory Supported Asset
       Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       for all supported asset types.
       
      string asset_type = 8;
      Returns:
      This builder for chaining.
    • setAssetTypeBytes

      public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setAssetTypeBytes(com.google.protobuf.ByteString value)
       The asset type of the
       [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
       Example:
       `cloudresourcemanager.googleapis.com/Project`
       See [Cloud Asset Inventory Supported Asset
       Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
       for all supported asset types.
       
      string asset_type = 8;
      Parameters:
      value - The bytes for assetType to set.
      Returns:
      This builder for chaining.