Class AccessPolicyRule.Operation.Builder

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

public static final class AccessPolicyRule.Operation.Builder extends com.google.protobuf.GeneratedMessage.Builder<AccessPolicyRule.Operation.Builder> implements AccessPolicyRule.OperationOrBuilder
 Attributes that are used to determine whether this rule applies to a
 request.
 
Protobuf type google.iam.v3beta.AccessPolicyRule.Operation
  • 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<AccessPolicyRule.Operation.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.Operation.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.Operation.Builder>
    • getDefaultInstanceForType

      public AccessPolicyRule.Operation 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

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

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

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

      public com.google.protobuf.ProtocolStringList getPermissionsList()
       Optional. The permissions that are explicitly affected by this rule. Each
       permission uses the format `{service_fqdn}/{resource}.{verb}`, where
       `{service_fqdn}` is the fully qualified domain name for the service.
       Currently supported permissions are as follows:
      
       * `eventarc.googleapis.com/messageBuses.publish`.
       
      repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionsList in interface AccessPolicyRule.OperationOrBuilder
      Returns:
      A list containing the permissions.
    • getPermissionsCount

      public int getPermissionsCount()
       Optional. The permissions that are explicitly affected by this rule. Each
       permission uses the format `{service_fqdn}/{resource}.{verb}`, where
       `{service_fqdn}` is the fully qualified domain name for the service.
       Currently supported permissions are as follows:
      
       * `eventarc.googleapis.com/messageBuses.publish`.
       
      repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionsCount in interface AccessPolicyRule.OperationOrBuilder
      Returns:
      The count of permissions.
    • getPermissions

      public String getPermissions(int index)
       Optional. The permissions that are explicitly affected by this rule. Each
       permission uses the format `{service_fqdn}/{resource}.{verb}`, where
       `{service_fqdn}` is the fully qualified domain name for the service.
       Currently supported permissions are as follows:
      
       * `eventarc.googleapis.com/messageBuses.publish`.
       
      repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissions in interface AccessPolicyRule.OperationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The permissions at the given index.
    • getPermissionsBytes

      public com.google.protobuf.ByteString getPermissionsBytes(int index)
       Optional. The permissions that are explicitly affected by this rule. Each
       permission uses the format `{service_fqdn}/{resource}.{verb}`, where
       `{service_fqdn}` is the fully qualified domain name for the service.
       Currently supported permissions are as follows:
      
       * `eventarc.googleapis.com/messageBuses.publish`.
       
      repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPermissionsBytes in interface AccessPolicyRule.OperationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the permissions at the given index.
    • setPermissions

      public AccessPolicyRule.Operation.Builder setPermissions(int index, String value)
       Optional. The permissions that are explicitly affected by this rule. Each
       permission uses the format `{service_fqdn}/{resource}.{verb}`, where
       `{service_fqdn}` is the fully qualified domain name for the service.
       Currently supported permissions are as follows:
      
       * `eventarc.googleapis.com/messageBuses.publish`.
       
      repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The permissions to set.
      Returns:
      This builder for chaining.
    • addPermissions

      public AccessPolicyRule.Operation.Builder addPermissions(String value)
       Optional. The permissions that are explicitly affected by this rule. Each
       permission uses the format `{service_fqdn}/{resource}.{verb}`, where
       `{service_fqdn}` is the fully qualified domain name for the service.
       Currently supported permissions are as follows:
      
       * `eventarc.googleapis.com/messageBuses.publish`.
       
      repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The permissions to add.
      Returns:
      This builder for chaining.
    • addAllPermissions

      public AccessPolicyRule.Operation.Builder addAllPermissions(Iterable<String> values)
       Optional. The permissions that are explicitly affected by this rule. Each
       permission uses the format `{service_fqdn}/{resource}.{verb}`, where
       `{service_fqdn}` is the fully qualified domain name for the service.
       Currently supported permissions are as follows:
      
       * `eventarc.googleapis.com/messageBuses.publish`.
       
      repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The permissions to add.
      Returns:
      This builder for chaining.
    • clearPermissions

      public AccessPolicyRule.Operation.Builder clearPermissions()
       Optional. The permissions that are explicitly affected by this rule. Each
       permission uses the format `{service_fqdn}/{resource}.{verb}`, where
       `{service_fqdn}` is the fully qualified domain name for the service.
       Currently supported permissions are as follows:
      
       * `eventarc.googleapis.com/messageBuses.publish`.
       
      repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addPermissionsBytes

      public AccessPolicyRule.Operation.Builder addPermissionsBytes(com.google.protobuf.ByteString value)
       Optional. The permissions that are explicitly affected by this rule. Each
       permission uses the format `{service_fqdn}/{resource}.{verb}`, where
       `{service_fqdn}` is the fully qualified domain name for the service.
       Currently supported permissions are as follows:
      
       * `eventarc.googleapis.com/messageBuses.publish`.
       
      repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the permissions to add.
      Returns:
      This builder for chaining.
    • getExcludedPermissionsList

      public com.google.protobuf.ProtocolStringList getExcludedPermissionsList()
       Optional. Specifies the permissions that this rule excludes from the set
       of affected permissions given by `permissions`. If a permission appears
       in `permissions` _and_ in `excluded_permissions` then it will _not_ be
       subject to the policy effect.
      
       The excluded permissions can be specified using the same syntax as
       `permissions`.
       
      repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludedPermissionsList in interface AccessPolicyRule.OperationOrBuilder
      Returns:
      A list containing the excludedPermissions.
    • getExcludedPermissionsCount

      public int getExcludedPermissionsCount()
       Optional. Specifies the permissions that this rule excludes from the set
       of affected permissions given by `permissions`. If a permission appears
       in `permissions` _and_ in `excluded_permissions` then it will _not_ be
       subject to the policy effect.
      
       The excluded permissions can be specified using the same syntax as
       `permissions`.
       
      repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludedPermissionsCount in interface AccessPolicyRule.OperationOrBuilder
      Returns:
      The count of excludedPermissions.
    • getExcludedPermissions

      public String getExcludedPermissions(int index)
       Optional. Specifies the permissions that this rule excludes from the set
       of affected permissions given by `permissions`. If a permission appears
       in `permissions` _and_ in `excluded_permissions` then it will _not_ be
       subject to the policy effect.
      
       The excluded permissions can be specified using the same syntax as
       `permissions`.
       
      repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludedPermissions in interface AccessPolicyRule.OperationOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The excludedPermissions at the given index.
    • getExcludedPermissionsBytes

      public com.google.protobuf.ByteString getExcludedPermissionsBytes(int index)
       Optional. Specifies the permissions that this rule excludes from the set
       of affected permissions given by `permissions`. If a permission appears
       in `permissions` _and_ in `excluded_permissions` then it will _not_ be
       subject to the policy effect.
      
       The excluded permissions can be specified using the same syntax as
       `permissions`.
       
      repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludedPermissionsBytes in interface AccessPolicyRule.OperationOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the excludedPermissions at the given index.
    • setExcludedPermissions

      public AccessPolicyRule.Operation.Builder setExcludedPermissions(int index, String value)
       Optional. Specifies the permissions that this rule excludes from the set
       of affected permissions given by `permissions`. If a permission appears
       in `permissions` _and_ in `excluded_permissions` then it will _not_ be
       subject to the policy effect.
      
       The excluded permissions can be specified using the same syntax as
       `permissions`.
       
      repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The excludedPermissions to set.
      Returns:
      This builder for chaining.
    • addExcludedPermissions

      public AccessPolicyRule.Operation.Builder addExcludedPermissions(String value)
       Optional. Specifies the permissions that this rule excludes from the set
       of affected permissions given by `permissions`. If a permission appears
       in `permissions` _and_ in `excluded_permissions` then it will _not_ be
       subject to the policy effect.
      
       The excluded permissions can be specified using the same syntax as
       `permissions`.
       
      repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The excludedPermissions to add.
      Returns:
      This builder for chaining.
    • addAllExcludedPermissions

      public AccessPolicyRule.Operation.Builder addAllExcludedPermissions(Iterable<String> values)
       Optional. Specifies the permissions that this rule excludes from the set
       of affected permissions given by `permissions`. If a permission appears
       in `permissions` _and_ in `excluded_permissions` then it will _not_ be
       subject to the policy effect.
      
       The excluded permissions can be specified using the same syntax as
       `permissions`.
       
      repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The excludedPermissions to add.
      Returns:
      This builder for chaining.
    • clearExcludedPermissions

      public AccessPolicyRule.Operation.Builder clearExcludedPermissions()
       Optional. Specifies the permissions that this rule excludes from the set
       of affected permissions given by `permissions`. If a permission appears
       in `permissions` _and_ in `excluded_permissions` then it will _not_ be
       subject to the policy effect.
      
       The excluded permissions can be specified using the same syntax as
       `permissions`.
       
      repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addExcludedPermissionsBytes

      public AccessPolicyRule.Operation.Builder addExcludedPermissionsBytes(com.google.protobuf.ByteString value)
       Optional. Specifies the permissions that this rule excludes from the set
       of affected permissions given by `permissions`. If a permission appears
       in `permissions` _and_ in `excluded_permissions` then it will _not_ be
       subject to the policy effect.
      
       The excluded permissions can be specified using the same syntax as
       `permissions`.
       
      repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the excludedPermissions to add.
      Returns:
      This builder for chaining.