Class DeleteQueuedResourceRequest.Builder (2.56.0)

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

Request for DeleteQueuedResource.

Protobuf type google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeleteQueuedResourceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeleteQueuedResourceRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public DeleteQueuedResourceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeleteQueuedResourceRequest.Builder
Overrides

clearForce()

public DeleteQueuedResourceRequest.Builder clearForce()

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;

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeleteQueuedResourceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeleteQueuedResourceRequest.Builder
Overrides

clearRequestId()

public DeleteQueuedResourceRequest.Builder clearRequestId()

Idempotent request UUID.

string request_id = 2;

Returns
Type Description
DeleteQueuedResourceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeleteQueuedResourceRequest getDefaultInstanceForType()
Returns
Type Description
DeleteQueuedResourceRequest

getDescriptorForType()

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

getForce()

public boolean getForce()

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;

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()

Idempotent request UUID.

string request_id = 2;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Idempotent request UUID.

string request_id = 2;

Returns
Type Description
ByteString

The bytes for requestId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeleteQueuedResourceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeleteQueuedResourceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeleteQueuedResourceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeleteQueuedResourceRequest.Builder
Overrides

setForce(boolean value)

public DeleteQueuedResourceRequest.Builder setForce(boolean value)

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;

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeleteQueuedResourceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeleteQueuedResourceRequest.Builder
Overrides

setRequestId(String value)

public DeleteQueuedResourceRequest.Builder setRequestId(String value)

Idempotent request UUID.

string request_id = 2;

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)

Idempotent request UUID.

string request_id = 2;

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
DeleteQueuedResourceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DeleteQueuedResourceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeleteQueuedResourceRequest.Builder
Overrides