Class DeleteAccessPolicyRequest.Builder (1.67.0)

public static final class DeleteAccessPolicyRequest.Builder extends GeneratedMessage.Builder<DeleteAccessPolicyRequest.Builder> implements DeleteAccessPolicyRequestOrBuilder

Request message for DeleteAccessPolicy method.

Protobuf type google.iam.v3beta.DeleteAccessPolicyRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteAccessPolicyRequest build()
Returns
Type Description
DeleteAccessPolicyRequest

buildPartial()

public DeleteAccessPolicyRequest buildPartial()
Returns
Type Description
DeleteAccessPolicyRequest

clear()

public DeleteAccessPolicyRequest.Builder clear()
Returns
Type Description
DeleteAccessPolicyRequest.Builder
Overrides

clearEtag()

public DeleteAccessPolicyRequest.Builder clearEtag()

Optional. The etag of the access policy. If this is provided, it must match the server's etag.

string etag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.

clearForce()

public DeleteAccessPolicyRequest.Builder clearForce()

Optional. If set to true, the request will force the deletion of the Policy even if the Policy references PolicyBindings.

bool force = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.

clearName()

public DeleteAccessPolicyRequest.Builder clearName()

Required. The name of the access policy to delete.

Format: projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id} projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id} folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id} organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.

clearValidateOnly()

public DeleteAccessPolicyRequest.Builder clearValidateOnly()

Optional. If set, validate the request and preview the deletion, but do not actually post it.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeleteAccessPolicyRequest getDefaultInstanceForType()
Returns
Type Description
DeleteAccessPolicyRequest

getDescriptorForType()

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

getEtag()

public String getEtag()

Optional. The etag of the access policy. If this is provided, it must match the server's etag.

string etag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. The etag of the access policy. If this is provided, it must match the server's etag.

string etag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getForce()

public boolean getForce()

Optional. If set to true, the request will force the deletion of the Policy even if the Policy references PolicyBindings.

bool force = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The force.

getName()

public String getName()

Required. The name of the access policy to delete.

Format: projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id} projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id} folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id} organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the access policy to delete.

Format: projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id} projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id} folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id} organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getValidateOnly()

public boolean getValidateOnly()

Optional. If set, validate the request and preview the deletion, but do not actually post it.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeleteAccessPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEtag(String value)

public DeleteAccessPolicyRequest.Builder setEtag(String value)

Optional. The etag of the access policy. If this is provided, it must match the server's etag.

string etag = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public DeleteAccessPolicyRequest.Builder setEtagBytes(ByteString value)

Optional. The etag of the access policy. If this is provided, it must match the server's etag.

string etag = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.

setForce(boolean value)

public DeleteAccessPolicyRequest.Builder setForce(boolean value)

Optional. If set to true, the request will force the deletion of the Policy even if the Policy references PolicyBindings.

bool force = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The force to set.

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.

setName(String value)

public DeleteAccessPolicyRequest.Builder setName(String value)

Required. The name of the access policy to delete.

Format: projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id} projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id} folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id} organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteAccessPolicyRequest.Builder setNameBytes(ByteString value)

Required. The name of the access policy to delete.

Format: projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id} projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id} folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id} organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.

setValidateOnly(boolean value)

public DeleteAccessPolicyRequest.Builder setValidateOnly(boolean value)

Optional. If set, validate the request and preview the deletion, but do not actually post it.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
DeleteAccessPolicyRequest.Builder

This builder for chaining.