Class DeleteQueuedResourceRequest.Builder (2.84.0)

public static final class DeleteQueuedResourceRequest.Builder extends GeneratedMessage.Builder<DeleteQueuedResourceRequest.Builder> implements DeleteQueuedResourceRequestOrBuilder

Request for DeleteQueuedResource.

Protobuf type google.cloud.tpu.v2.DeleteQueuedResourceRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteQueuedResourceRequest build()
Returns
Type Description
DeleteQueuedResourceRequest

buildPartial()

public DeleteQueuedResourceRequest buildPartial()
Returns
Type Description
DeleteQueuedResourceRequest

clear()

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

clearForce()

public DeleteQueuedResourceRequest.Builder clearForce()

Optional. If set to true, all running nodes belonging to this queued resource will be deleted first and then the queued resource will be deleted. Otherwise (i.e. force=false), the queued resource will only be deleted if its nodes have already been deleted or the queued resource is in the ACCEPTED, FAILED, or SUSPENDED state.

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

Returns
Type Description
DeleteQueuedResourceRequest.Builder

This builder for chaining.

clearName()

public DeleteQueuedResourceRequest.Builder clearName()

Required. The resource name.

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

Returns
Type Description
DeleteQueuedResourceRequest.Builder

This builder for chaining.

clearRequestId()

public DeleteQueuedResourceRequest.Builder clearRequestId()

Optional. Idempotent request UUID.

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

Returns
Type Description
DeleteQueuedResourceRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeleteQueuedResourceRequest getDefaultInstanceForType()
Returns
Type Description
DeleteQueuedResourceRequest

getDescriptorForType()

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

getForce()

public boolean getForce()

Optional. If set to true, all running nodes belonging to this queued resource will be deleted first and then the queued resource will be deleted. Otherwise (i.e. force=false), the queued resource will only be deleted if its nodes have already been deleted or the queued resource is in the ACCEPTED, FAILED, or SUSPENDED state.

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

Returns
Type Description
boolean

The force.

getName()

public String getName()

Required. The resource name.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name.

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

Returns
Type Description
ByteString

The bytes for name.

getRequestId()

public String getRequestId()

Optional. Idempotent request UUID.

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

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. Idempotent request UUID.

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

Returns
Type Description
ByteString

The bytes for requestId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeleteQueuedResourceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setForce(boolean value)

public DeleteQueuedResourceRequest.Builder setForce(boolean value)

Optional. If set to true, all running nodes belonging to this queued resource will be deleted first and then the queued resource will be deleted. Otherwise (i.e. force=false), the queued resource will only be deleted if its nodes have already been deleted or the queued resource is in the ACCEPTED, FAILED, or SUSPENDED state.

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

Parameter
Name Description
value boolean

The force to set.

Returns
Type Description
DeleteQueuedResourceRequest.Builder

This builder for chaining.

setName(String value)

public DeleteQueuedResourceRequest.Builder setName(String value)

Required. The resource name.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteQueuedResourceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteQueuedResourceRequest.Builder setNameBytes(ByteString value)

Required. The resource name.

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
DeleteQueuedResourceRequest.Builder

This builder for chaining.

setRequestId(String value)

public DeleteQueuedResourceRequest.Builder setRequestId(String value)

Optional. Idempotent request UUID.

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

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
DeleteQueuedResourceRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public DeleteQueuedResourceRequest.Builder setRequestIdBytes(ByteString value)

Optional. Idempotent request UUID.

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

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
DeleteQueuedResourceRequest.Builder

This builder for chaining.