Class DeletePolicyBindingRequest.Builder (1.60.0)

public static final class DeletePolicyBindingRequest.Builder extends GeneratedMessage.Builder<DeletePolicyBindingRequest.Builder> implements DeletePolicyBindingRequestOrBuilder

Request message for DeletePolicyBinding method.

Protobuf type google.iam.v3.DeletePolicyBindingRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeletePolicyBindingRequest build()
Returns
Type Description
DeletePolicyBindingRequest

buildPartial()

public DeletePolicyBindingRequest buildPartial()
Returns
Type Description
DeletePolicyBindingRequest

clear()

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

clearEtag()

public DeletePolicyBindingRequest.Builder clearEtag()

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

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

Returns
Type Description
DeletePolicyBindingRequest.Builder

This builder for chaining.

clearName()

public DeletePolicyBindingRequest.Builder clearName()

Required. The name of the policy binding to delete.

Format:

  • projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}
  • projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}
  • folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}
  • organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_id}

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

Returns
Type Description
DeletePolicyBindingRequest.Builder

This builder for chaining.

clearValidateOnly()

public DeletePolicyBindingRequest.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
DeletePolicyBindingRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeletePolicyBindingRequest getDefaultInstanceForType()
Returns
Type Description
DeletePolicyBindingRequest

getDescriptorForType()

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

getEtag()

public String getEtag()

Optional. The etag of the policy binding. 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 policy binding. 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.

getName()

public String getName()

Required. The name of the policy binding to delete.

Format:

  • projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}
  • projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}
  • folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}
  • organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_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 policy binding to delete.

Format:

  • projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}
  • projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}
  • folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}
  • organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_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(DeletePolicyBindingRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEtag(String value)

public DeletePolicyBindingRequest.Builder setEtag(String value)

Optional. The etag of the policy binding. 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
DeletePolicyBindingRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public DeletePolicyBindingRequest.Builder setEtagBytes(ByteString value)

Optional. The etag of the policy binding. 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
DeletePolicyBindingRequest.Builder

This builder for chaining.

setName(String value)

public DeletePolicyBindingRequest.Builder setName(String value)

Required. The name of the policy binding to delete.

Format:

  • projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}
  • projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}
  • folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}
  • organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_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
DeletePolicyBindingRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeletePolicyBindingRequest.Builder setNameBytes(ByteString value)

Required. The name of the policy binding to delete.

Format:

  • projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}
  • projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}
  • folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}
  • organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_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
DeletePolicyBindingRequest.Builder

This builder for chaining.

setValidateOnly(boolean value)

public DeletePolicyBindingRequest.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
DeletePolicyBindingRequest.Builder

This builder for chaining.