Class AccessPolicyRule.Operation.Builder (1.67.0)

public static final class AccessPolicyRule.Operation.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllExcludedPermissions(Iterable<String> values)

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];

Parameter
Name Description
values Iterable<String>

The excludedPermissions to add.

Returns
Type Description
AccessPolicyRule.Operation.Builder

This builder for chaining.

addAllPermissions(Iterable<String> values)

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];

Parameter
Name Description
values Iterable<String>

The permissions to add.

Returns
Type Description
AccessPolicyRule.Operation.Builder

This builder for chaining.

addExcludedPermissions(String value)

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];

Parameter
Name Description
value String

The excludedPermissions to add.

Returns
Type Description
AccessPolicyRule.Operation.Builder

This builder for chaining.

addExcludedPermissionsBytes(ByteString value)

public AccessPolicyRule.Operation.Builder addExcludedPermissionsBytes(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];

Parameter
Name Description
value ByteString

The bytes of the excludedPermissions to add.

Returns
Type Description
AccessPolicyRule.Operation.Builder

This builder for chaining.

addPermissions(String value)

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];

Parameter
Name Description
value String

The permissions to add.

Returns
Type Description
AccessPolicyRule.Operation.Builder

This builder for chaining.

addPermissionsBytes(ByteString value)

public AccessPolicyRule.Operation.Builder addPermissionsBytes(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];

Parameter
Name Description
value ByteString

The bytes of the permissions to add.

Returns
Type Description
AccessPolicyRule.Operation.Builder

This builder for chaining.

build()

public AccessPolicyRule.Operation build()
Returns
Type Description
AccessPolicyRule.Operation

buildPartial()

public AccessPolicyRule.Operation buildPartial()
Returns
Type Description
AccessPolicyRule.Operation

clear()

public AccessPolicyRule.Operation.Builder clear()
Returns
Type Description
AccessPolicyRule.Operation.Builder
Overrides

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
Type Description
AccessPolicyRule.Operation.Builder

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
Type Description
AccessPolicyRule.Operation.Builder

This builder for chaining.

getDefaultInstanceForType()

public AccessPolicyRule.Operation getDefaultInstanceForType()
Returns
Type Description
AccessPolicyRule.Operation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExcludedPermissions(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludedPermissions at the given index.

getExcludedPermissionsBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludedPermissions at the given index.

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];

Returns
Type Description
int

The count of excludedPermissions.

getExcludedPermissionsList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the excludedPermissions.

getPermissions(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The permissions at the given index.

getPermissionsBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the permissions at the given index.

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];

Returns
Type Description
int

The count of permissions.

getPermissionsList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the permissions.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AccessPolicyRule.Operation other)

public AccessPolicyRule.Operation.Builder mergeFrom(AccessPolicyRule.Operation other)
Parameter
Name Description
other AccessPolicyRule.Operation
Returns
Type Description
AccessPolicyRule.Operation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AccessPolicyRule.Operation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AccessPolicyRule.Operation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AccessPolicyRule.Operation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AccessPolicyRule.Operation.Builder
Overrides

setExcludedPermissions(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The excludedPermissions to set.

Returns
Type Description
AccessPolicyRule.Operation.Builder

This builder for chaining.

setPermissions(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The permissions to set.

Returns
Type Description
AccessPolicyRule.Operation.Builder

This builder for chaining.