Class AccessPolicyRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AccessPolicyRule.Builder>
com.google.iam.v3beta.AccessPolicyRule.Builder
All Implemented Interfaces:
AccessPolicyRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AccessPolicyRule

public static final class AccessPolicyRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<AccessPolicyRule.Builder> implements AccessPolicyRuleOrBuilder
 Access Policy Rule that determines the behavior of the policy.
 
Protobuf type google.iam.v3beta.AccessPolicyRule
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AccessPolicyRule.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AccessPolicyRule.Builder>
    • internalGetFieldAccessorTable

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

      public AccessPolicyRule.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<AccessPolicyRule.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<AccessPolicyRule.Builder>
    • getDefaultInstanceForType

      public AccessPolicyRule getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AccessPolicyRule build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AccessPolicyRule buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AccessPolicyRule.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<AccessPolicyRule.Builder>
    • mergeFrom

      public AccessPolicyRule.Builder mergeFrom(AccessPolicyRule other)
    • isInitialized

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

      public AccessPolicyRule.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<AccessPolicyRule.Builder>
      Throws:
      IOException
    • hasDescription

      public boolean hasDescription()
       Optional. Customer specified description of the rule. Must be less than or
       equal to 256 characters.
       
      optional string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDescription in interface AccessPolicyRuleOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       Optional. Customer specified description of the rule. Must be less than or
       equal to 256 characters.
       
      optional string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface AccessPolicyRuleOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Customer specified description of the rule. Must be less than or
       equal to 256 characters.
       
      optional string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface AccessPolicyRuleOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public AccessPolicyRule.Builder setDescription(String value)
       Optional. Customer specified description of the rule. Must be less than or
       equal to 256 characters.
       
      optional string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public AccessPolicyRule.Builder clearDescription()
       Optional. Customer specified description of the rule. Must be less than or
       equal to 256 characters.
       
      optional string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public AccessPolicyRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Customer specified description of the rule. Must be less than or
       equal to 256 characters.
       
      optional string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasEffect

      public boolean hasEffect()
       Required. The effect of the rule.
       
      optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEffect in interface AccessPolicyRuleOrBuilder
      Returns:
      Whether the effect field is set.
    • getEffectValue

      public int getEffectValue()
       Required. The effect of the rule.
       
      optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEffectValue in interface AccessPolicyRuleOrBuilder
      Returns:
      The enum numeric value on the wire for effect.
    • setEffectValue

      public AccessPolicyRule.Builder setEffectValue(int value)
       Required. The effect of the rule.
       
      optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for effect to set.
      Returns:
      This builder for chaining.
    • getEffect

      public AccessPolicyRule.Effect getEffect()
       Required. The effect of the rule.
       
      optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEffect in interface AccessPolicyRuleOrBuilder
      Returns:
      The effect.
    • setEffect

       Required. The effect of the rule.
       
      optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The effect to set.
      Returns:
      This builder for chaining.
    • clearEffect

      public AccessPolicyRule.Builder clearEffect()
       Required. The effect of the rule.
       
      optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getPrincipalsList

      public com.google.protobuf.ProtocolStringList getPrincipalsList()
       Required. The identities for which this rule's effect governs using one or
       more permissions on Google Cloud resources. This field can contain the
       following values:
      
       * `principal://goog/subject/{email_id}`: A specific Google Account.
       Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
       example, `principal://goog/subject/alice@example.com`.
      
       * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
       A Google Cloud service account. For example,
       `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
      
       * `principalSet://goog/group/{group_id}`: A Google group. For example,
       `principalSet://goog/group/admins@example.com`.
      
       * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
       principals associated with the specified Google Workspace or Cloud
       Identity customer ID. For example,
       `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
      
      
       If an identifier that was previously set on a policy is soft deleted, then
       calls to read that policy will return the identifier with a deleted
       prefix. Users cannot set identifiers with this syntax.
      
       * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
       Google Account that was deleted recently. For example,
       `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
       the Google Account is recovered, this identifier reverts to the standard
       identifier for a Google Account.
      
       * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
       that was deleted recently. For example,
       `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
       If the Google group is restored, this identifier reverts to the standard
       identifier for a Google group.
      
       * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
       A Google Cloud service account that was deleted recently. For example,
       `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
       If the service account is undeleted, this identifier reverts to the
       standard identifier for a service account.
       
      repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrincipalsList in interface AccessPolicyRuleOrBuilder
      Returns:
      A list containing the principals.
    • getPrincipalsCount

      public int getPrincipalsCount()
       Required. The identities for which this rule's effect governs using one or
       more permissions on Google Cloud resources. This field can contain the
       following values:
      
       * `principal://goog/subject/{email_id}`: A specific Google Account.
       Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
       example, `principal://goog/subject/alice@example.com`.
      
       * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
       A Google Cloud service account. For example,
       `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
      
       * `principalSet://goog/group/{group_id}`: A Google group. For example,
       `principalSet://goog/group/admins@example.com`.
      
       * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
       principals associated with the specified Google Workspace or Cloud
       Identity customer ID. For example,
       `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
      
      
       If an identifier that was previously set on a policy is soft deleted, then
       calls to read that policy will return the identifier with a deleted
       prefix. Users cannot set identifiers with this syntax.
      
       * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
       Google Account that was deleted recently. For example,
       `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
       the Google Account is recovered, this identifier reverts to the standard
       identifier for a Google Account.
      
       * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
       that was deleted recently. For example,
       `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
       If the Google group is restored, this identifier reverts to the standard
       identifier for a Google group.
      
       * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
       A Google Cloud service account that was deleted recently. For example,
       `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
       If the service account is undeleted, this identifier reverts to the
       standard identifier for a service account.
       
      repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrincipalsCount in interface AccessPolicyRuleOrBuilder
      Returns:
      The count of principals.
    • getPrincipals

      public String getPrincipals(int index)
       Required. The identities for which this rule's effect governs using one or
       more permissions on Google Cloud resources. This field can contain the
       following values:
      
       * `principal://goog/subject/{email_id}`: A specific Google Account.
       Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
       example, `principal://goog/subject/alice@example.com`.
      
       * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
       A Google Cloud service account. For example,
       `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
      
       * `principalSet://goog/group/{group_id}`: A Google group. For example,
       `principalSet://goog/group/admins@example.com`.
      
       * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
       principals associated with the specified Google Workspace or Cloud
       Identity customer ID. For example,
       `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
      
      
       If an identifier that was previously set on a policy is soft deleted, then
       calls to read that policy will return the identifier with a deleted
       prefix. Users cannot set identifiers with this syntax.
      
       * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
       Google Account that was deleted recently. For example,
       `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
       the Google Account is recovered, this identifier reverts to the standard
       identifier for a Google Account.
      
       * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
       that was deleted recently. For example,
       `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
       If the Google group is restored, this identifier reverts to the standard
       identifier for a Google group.
      
       * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
       A Google Cloud service account that was deleted recently. For example,
       `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
       If the service account is undeleted, this identifier reverts to the
       standard identifier for a service account.
       
      repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrincipals in interface AccessPolicyRuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The principals at the given index.
    • getPrincipalsBytes

      public com.google.protobuf.ByteString getPrincipalsBytes(int index)
       Required. The identities for which this rule's effect governs using one or
       more permissions on Google Cloud resources. This field can contain the
       following values:
      
       * `principal://goog/subject/{email_id}`: A specific Google Account.
       Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
       example, `principal://goog/subject/alice@example.com`.
      
       * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
       A Google Cloud service account. For example,
       `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
      
       * `principalSet://goog/group/{group_id}`: A Google group. For example,
       `principalSet://goog/group/admins@example.com`.
      
       * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
       principals associated with the specified Google Workspace or Cloud
       Identity customer ID. For example,
       `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
      
      
       If an identifier that was previously set on a policy is soft deleted, then
       calls to read that policy will return the identifier with a deleted
       prefix. Users cannot set identifiers with this syntax.
      
       * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
       Google Account that was deleted recently. For example,
       `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
       the Google Account is recovered, this identifier reverts to the standard
       identifier for a Google Account.
      
       * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
       that was deleted recently. For example,
       `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
       If the Google group is restored, this identifier reverts to the standard
       identifier for a Google group.
      
       * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
       A Google Cloud service account that was deleted recently. For example,
       `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
       If the service account is undeleted, this identifier reverts to the
       standard identifier for a service account.
       
      repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrincipalsBytes in interface AccessPolicyRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the principals at the given index.
    • setPrincipals

      public AccessPolicyRule.Builder setPrincipals(int index, String value)
       Required. The identities for which this rule's effect governs using one or
       more permissions on Google Cloud resources. This field can contain the
       following values:
      
       * `principal://goog/subject/{email_id}`: A specific Google Account.
       Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
       example, `principal://goog/subject/alice@example.com`.
      
       * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
       A Google Cloud service account. For example,
       `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
      
       * `principalSet://goog/group/{group_id}`: A Google group. For example,
       `principalSet://goog/group/admins@example.com`.
      
       * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
       principals associated with the specified Google Workspace or Cloud
       Identity customer ID. For example,
       `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
      
      
       If an identifier that was previously set on a policy is soft deleted, then
       calls to read that policy will return the identifier with a deleted
       prefix. Users cannot set identifiers with this syntax.
      
       * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
       Google Account that was deleted recently. For example,
       `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
       the Google Account is recovered, this identifier reverts to the standard
       identifier for a Google Account.
      
       * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
       that was deleted recently. For example,
       `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
       If the Google group is restored, this identifier reverts to the standard
       identifier for a Google group.
      
       * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
       A Google Cloud service account that was deleted recently. For example,
       `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
       If the service account is undeleted, this identifier reverts to the
       standard identifier for a service account.
       
      repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The principals to set.
      Returns:
      This builder for chaining.
    • addPrincipals

      public AccessPolicyRule.Builder addPrincipals(String value)
       Required. The identities for which this rule's effect governs using one or
       more permissions on Google Cloud resources. This field can contain the
       following values:
      
       * `principal://goog/subject/{email_id}`: A specific Google Account.
       Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
       example, `principal://goog/subject/alice@example.com`.
      
       * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
       A Google Cloud service account. For example,
       `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
      
       * `principalSet://goog/group/{group_id}`: A Google group. For example,
       `principalSet://goog/group/admins@example.com`.
      
       * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
       principals associated with the specified Google Workspace or Cloud
       Identity customer ID. For example,
       `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
      
      
       If an identifier that was previously set on a policy is soft deleted, then
       calls to read that policy will return the identifier with a deleted
       prefix. Users cannot set identifiers with this syntax.
      
       * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
       Google Account that was deleted recently. For example,
       `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
       the Google Account is recovered, this identifier reverts to the standard
       identifier for a Google Account.
      
       * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
       that was deleted recently. For example,
       `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
       If the Google group is restored, this identifier reverts to the standard
       identifier for a Google group.
      
       * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
       A Google Cloud service account that was deleted recently. For example,
       `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
       If the service account is undeleted, this identifier reverts to the
       standard identifier for a service account.
       
      repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The principals to add.
      Returns:
      This builder for chaining.
    • addAllPrincipals

      public AccessPolicyRule.Builder addAllPrincipals(Iterable<String> values)
       Required. The identities for which this rule's effect governs using one or
       more permissions on Google Cloud resources. This field can contain the
       following values:
      
       * `principal://goog/subject/{email_id}`: A specific Google Account.
       Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
       example, `principal://goog/subject/alice@example.com`.
      
       * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
       A Google Cloud service account. For example,
       `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
      
       * `principalSet://goog/group/{group_id}`: A Google group. For example,
       `principalSet://goog/group/admins@example.com`.
      
       * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
       principals associated with the specified Google Workspace or Cloud
       Identity customer ID. For example,
       `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
      
      
       If an identifier that was previously set on a policy is soft deleted, then
       calls to read that policy will return the identifier with a deleted
       prefix. Users cannot set identifiers with this syntax.
      
       * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
       Google Account that was deleted recently. For example,
       `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
       the Google Account is recovered, this identifier reverts to the standard
       identifier for a Google Account.
      
       * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
       that was deleted recently. For example,
       `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
       If the Google group is restored, this identifier reverts to the standard
       identifier for a Google group.
      
       * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
       A Google Cloud service account that was deleted recently. For example,
       `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
       If the service account is undeleted, this identifier reverts to the
       standard identifier for a service account.
       
      repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The principals to add.
      Returns:
      This builder for chaining.
    • clearPrincipals

      public AccessPolicyRule.Builder clearPrincipals()
       Required. The identities for which this rule's effect governs using one or
       more permissions on Google Cloud resources. This field can contain the
       following values:
      
       * `principal://goog/subject/{email_id}`: A specific Google Account.
       Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
       example, `principal://goog/subject/alice@example.com`.
      
       * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
       A Google Cloud service account. For example,
       `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
      
       * `principalSet://goog/group/{group_id}`: A Google group. For example,
       `principalSet://goog/group/admins@example.com`.
      
       * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
       principals associated with the specified Google Workspace or Cloud
       Identity customer ID. For example,
       `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
      
      
       If an identifier that was previously set on a policy is soft deleted, then
       calls to read that policy will return the identifier with a deleted
       prefix. Users cannot set identifiers with this syntax.
      
       * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
       Google Account that was deleted recently. For example,
       `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
       the Google Account is recovered, this identifier reverts to the standard
       identifier for a Google Account.
      
       * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
       that was deleted recently. For example,
       `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
       If the Google group is restored, this identifier reverts to the standard
       identifier for a Google group.
      
       * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
       A Google Cloud service account that was deleted recently. For example,
       `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
       If the service account is undeleted, this identifier reverts to the
       standard identifier for a service account.
       
      repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addPrincipalsBytes

      public AccessPolicyRule.Builder addPrincipalsBytes(com.google.protobuf.ByteString value)
       Required. The identities for which this rule's effect governs using one or
       more permissions on Google Cloud resources. This field can contain the
       following values:
      
       * `principal://goog/subject/{email_id}`: A specific Google Account.
       Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
       example, `principal://goog/subject/alice@example.com`.
      
       * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
       A Google Cloud service account. For example,
       `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
      
       * `principalSet://goog/group/{group_id}`: A Google group. For example,
       `principalSet://goog/group/admins@example.com`.
      
       * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
       principals associated with the specified Google Workspace or Cloud
       Identity customer ID. For example,
       `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
      
      
       If an identifier that was previously set on a policy is soft deleted, then
       calls to read that policy will return the identifier with a deleted
       prefix. Users cannot set identifiers with this syntax.
      
       * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
       Google Account that was deleted recently. For example,
       `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
       the Google Account is recovered, this identifier reverts to the standard
       identifier for a Google Account.
      
       * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
       that was deleted recently. For example,
       `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
       If the Google group is restored, this identifier reverts to the standard
       identifier for a Google group.
      
       * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
       A Google Cloud service account that was deleted recently. For example,
       `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
       If the service account is undeleted, this identifier reverts to the
       standard identifier for a service account.
       
      repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the principals to add.
      Returns:
      This builder for chaining.
    • getExcludedPrincipalsList

      public com.google.protobuf.ProtocolStringList getExcludedPrincipalsList()
       Optional. The identities that are excluded from the access policy rule,
       even if they are listed in the `principals`. For example, you could add a
       Google group to the `principals`, then exclude specific users who belong to
       that group.
       
      repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludedPrincipalsList in interface AccessPolicyRuleOrBuilder
      Returns:
      A list containing the excludedPrincipals.
    • getExcludedPrincipalsCount

      public int getExcludedPrincipalsCount()
       Optional. The identities that are excluded from the access policy rule,
       even if they are listed in the `principals`. For example, you could add a
       Google group to the `principals`, then exclude specific users who belong to
       that group.
       
      repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludedPrincipalsCount in interface AccessPolicyRuleOrBuilder
      Returns:
      The count of excludedPrincipals.
    • getExcludedPrincipals

      public String getExcludedPrincipals(int index)
       Optional. The identities that are excluded from the access policy rule,
       even if they are listed in the `principals`. For example, you could add a
       Google group to the `principals`, then exclude specific users who belong to
       that group.
       
      repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludedPrincipals in interface AccessPolicyRuleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The excludedPrincipals at the given index.
    • getExcludedPrincipalsBytes

      public com.google.protobuf.ByteString getExcludedPrincipalsBytes(int index)
       Optional. The identities that are excluded from the access policy rule,
       even if they are listed in the `principals`. For example, you could add a
       Google group to the `principals`, then exclude specific users who belong to
       that group.
       
      repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludedPrincipalsBytes in interface AccessPolicyRuleOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the excludedPrincipals at the given index.
    • setExcludedPrincipals

      public AccessPolicyRule.Builder setExcludedPrincipals(int index, String value)
       Optional. The identities that are excluded from the access policy rule,
       even if they are listed in the `principals`. For example, you could add a
       Google group to the `principals`, then exclude specific users who belong to
       that group.
       
      repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The excludedPrincipals to set.
      Returns:
      This builder for chaining.
    • addExcludedPrincipals

      public AccessPolicyRule.Builder addExcludedPrincipals(String value)
       Optional. The identities that are excluded from the access policy rule,
       even if they are listed in the `principals`. For example, you could add a
       Google group to the `principals`, then exclude specific users who belong to
       that group.
       
      repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The excludedPrincipals to add.
      Returns:
      This builder for chaining.
    • addAllExcludedPrincipals

      public AccessPolicyRule.Builder addAllExcludedPrincipals(Iterable<String> values)
       Optional. The identities that are excluded from the access policy rule,
       even if they are listed in the `principals`. For example, you could add a
       Google group to the `principals`, then exclude specific users who belong to
       that group.
       
      repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The excludedPrincipals to add.
      Returns:
      This builder for chaining.
    • clearExcludedPrincipals

      public AccessPolicyRule.Builder clearExcludedPrincipals()
       Optional. The identities that are excluded from the access policy rule,
       even if they are listed in the `principals`. For example, you could add a
       Google group to the `principals`, then exclude specific users who belong to
       that group.
       
      repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addExcludedPrincipalsBytes

      public AccessPolicyRule.Builder addExcludedPrincipalsBytes(com.google.protobuf.ByteString value)
       Optional. The identities that are excluded from the access policy rule,
       even if they are listed in the `principals`. For example, you could add a
       Google group to the `principals`, then exclude specific users who belong to
       that group.
       
      repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the excludedPrincipals to add.
      Returns:
      This builder for chaining.
    • hasOperation

      public boolean hasOperation()
       Required. Attributes that are used to determine whether this rule applies
       to a request.
       
      .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOperation in interface AccessPolicyRuleOrBuilder
      Returns:
      Whether the operation field is set.
    • getOperation

      public AccessPolicyRule.Operation getOperation()
       Required. Attributes that are used to determine whether this rule applies
       to a request.
       
      .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOperation in interface AccessPolicyRuleOrBuilder
      Returns:
      The operation.
    • setOperation

       Required. Attributes that are used to determine whether this rule applies
       to a request.
       
      .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED];
    • setOperation

      public AccessPolicyRule.Builder setOperation(AccessPolicyRule.Operation.Builder builderForValue)
       Required. Attributes that are used to determine whether this rule applies
       to a request.
       
      .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED];
    • mergeOperation

       Required. Attributes that are used to determine whether this rule applies
       to a request.
       
      .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED];
    • clearOperation

      public AccessPolicyRule.Builder clearOperation()
       Required. Attributes that are used to determine whether this rule applies
       to a request.
       
      .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED];
    • getOperationBuilder

      public AccessPolicyRule.Operation.Builder getOperationBuilder()
       Required. Attributes that are used to determine whether this rule applies
       to a request.
       
      .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED];
    • getOperationOrBuilder

      public AccessPolicyRule.OperationOrBuilder getOperationOrBuilder()
       Required. Attributes that are used to determine whether this rule applies
       to a request.
       
      .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOperationOrBuilder in interface AccessPolicyRuleOrBuilder
    • getConditionsCount

      public int getConditionsCount()
      Description copied from interface: AccessPolicyRuleOrBuilder
       Optional. The conditions that determine whether this rule applies to a
       request. Conditions are identified by their key, which is the FQDN of the
       service that they are relevant to. For example:
      
       ```
       "conditions": {
       "iam.googleapis.com": {
       "expression": <cel expression>
       }
       }
       ```
      
       Each rule is evaluated independently. If this rule does not apply
       to a request, other rules might still apply.
       Currently supported keys are as follows:
      
      
       * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
       resource fields.
      
       * `iam.googleapis.com`: Can use `CEL` functions that evaluate
       [resource
       tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
       combine them using boolean and logical operators. Other functions and
       operators are not supported.
       
      map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionsCount in interface AccessPolicyRuleOrBuilder
    • containsConditions

      public boolean containsConditions(String key)
       Optional. The conditions that determine whether this rule applies to a
       request. Conditions are identified by their key, which is the FQDN of the
       service that they are relevant to. For example:
      
       ```
       "conditions": {
       "iam.googleapis.com": {
       "expression": <cel expression>
       }
       }
       ```
      
       Each rule is evaluated independently. If this rule does not apply
       to a request, other rules might still apply.
       Currently supported keys are as follows:
      
      
       * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
       resource fields.
      
       * `iam.googleapis.com`: Can use `CEL` functions that evaluate
       [resource
       tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
       combine them using boolean and logical operators. Other functions and
       operators are not supported.
       
      map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsConditions in interface AccessPolicyRuleOrBuilder
    • getConditions

      @Deprecated public Map<String,Expr> getConditions()
      Deprecated.
      Use getConditionsMap() instead.
      Specified by:
      getConditions in interface AccessPolicyRuleOrBuilder
    • getConditionsMap

      public Map<String,Expr> getConditionsMap()
       Optional. The conditions that determine whether this rule applies to a
       request. Conditions are identified by their key, which is the FQDN of the
       service that they are relevant to. For example:
      
       ```
       "conditions": {
       "iam.googleapis.com": {
       "expression": <cel expression>
       }
       }
       ```
      
       Each rule is evaluated independently. If this rule does not apply
       to a request, other rules might still apply.
       Currently supported keys are as follows:
      
      
       * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
       resource fields.
      
       * `iam.googleapis.com`: Can use `CEL` functions that evaluate
       [resource
       tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
       combine them using boolean and logical operators. Other functions and
       operators are not supported.
       
      map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionsMap in interface AccessPolicyRuleOrBuilder
    • getConditionsOrDefault

      public Expr getConditionsOrDefault(String key, Expr defaultValue)
       Optional. The conditions that determine whether this rule applies to a
       request. Conditions are identified by their key, which is the FQDN of the
       service that they are relevant to. For example:
      
       ```
       "conditions": {
       "iam.googleapis.com": {
       "expression": <cel expression>
       }
       }
       ```
      
       Each rule is evaluated independently. If this rule does not apply
       to a request, other rules might still apply.
       Currently supported keys are as follows:
      
      
       * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
       resource fields.
      
       * `iam.googleapis.com`: Can use `CEL` functions that evaluate
       [resource
       tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
       combine them using boolean and logical operators. Other functions and
       operators are not supported.
       
      map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionsOrDefault in interface AccessPolicyRuleOrBuilder
    • getConditionsOrThrow

      public Expr getConditionsOrThrow(String key)
       Optional. The conditions that determine whether this rule applies to a
       request. Conditions are identified by their key, which is the FQDN of the
       service that they are relevant to. For example:
      
       ```
       "conditions": {
       "iam.googleapis.com": {
       "expression": <cel expression>
       }
       }
       ```
      
       Each rule is evaluated independently. If this rule does not apply
       to a request, other rules might still apply.
       Currently supported keys are as follows:
      
      
       * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
       resource fields.
      
       * `iam.googleapis.com`: Can use `CEL` functions that evaluate
       [resource
       tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
       combine them using boolean and logical operators. Other functions and
       operators are not supported.
       
      map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionsOrThrow in interface AccessPolicyRuleOrBuilder
    • clearConditions

      public AccessPolicyRule.Builder clearConditions()
    • removeConditions

      public AccessPolicyRule.Builder removeConditions(String key)
       Optional. The conditions that determine whether this rule applies to a
       request. Conditions are identified by their key, which is the FQDN of the
       service that they are relevant to. For example:
      
       ```
       "conditions": {
       "iam.googleapis.com": {
       "expression": <cel expression>
       }
       }
       ```
      
       Each rule is evaluated independently. If this rule does not apply
       to a request, other rules might still apply.
       Currently supported keys are as follows:
      
      
       * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
       resource fields.
      
       * `iam.googleapis.com`: Can use `CEL` functions that evaluate
       [resource
       tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
       combine them using boolean and logical operators. Other functions and
       operators are not supported.
       
      map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableConditions

      @Deprecated public Map<String,Expr> getMutableConditions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putConditions

      public AccessPolicyRule.Builder putConditions(String key, Expr value)
       Optional. The conditions that determine whether this rule applies to a
       request. Conditions are identified by their key, which is the FQDN of the
       service that they are relevant to. For example:
      
       ```
       "conditions": {
       "iam.googleapis.com": {
       "expression": <cel expression>
       }
       }
       ```
      
       Each rule is evaluated independently. If this rule does not apply
       to a request, other rules might still apply.
       Currently supported keys are as follows:
      
      
       * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
       resource fields.
      
       * `iam.googleapis.com`: Can use `CEL` functions that evaluate
       [resource
       tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
       combine them using boolean and logical operators. Other functions and
       operators are not supported.
       
      map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL];
    • putAllConditions

      public AccessPolicyRule.Builder putAllConditions(Map<String,Expr> values)
       Optional. The conditions that determine whether this rule applies to a
       request. Conditions are identified by their key, which is the FQDN of the
       service that they are relevant to. For example:
      
       ```
       "conditions": {
       "iam.googleapis.com": {
       "expression": <cel expression>
       }
       }
       ```
      
       Each rule is evaluated independently. If this rule does not apply
       to a request, other rules might still apply.
       Currently supported keys are as follows:
      
      
       * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
       resource fields.
      
       * `iam.googleapis.com`: Can use `CEL` functions that evaluate
       [resource
       tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
       combine them using boolean and logical operators. Other functions and
       operators are not supported.
       
      map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL];
    • putConditionsBuilderIfAbsent

      public Expr.Builder putConditionsBuilderIfAbsent(String key)
       Optional. The conditions that determine whether this rule applies to a
       request. Conditions are identified by their key, which is the FQDN of the
       service that they are relevant to. For example:
      
       ```
       "conditions": {
       "iam.googleapis.com": {
       "expression": <cel expression>
       }
       }
       ```
      
       Each rule is evaluated independently. If this rule does not apply
       to a request, other rules might still apply.
       Currently supported keys are as follows:
      
      
       * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
       resource fields.
      
       * `iam.googleapis.com`: Can use `CEL` functions that evaluate
       [resource
       tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
       combine them using boolean and logical operators. Other functions and
       operators are not supported.
       
      map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL];