Class DeleteQueuedResourceRequest.Builder (2.42.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeleteQueuedResourceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder
Overrides

build()

public DeleteQueuedResourceRequest build()
Returns
TypeDescription
DeleteQueuedResourceRequest

buildPartial()

public DeleteQueuedResourceRequest buildPartial()
Returns
TypeDescription
DeleteQueuedResourceRequest

clear()

public DeleteQueuedResourceRequest.Builder clear()
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeleteQueuedResourceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DeleteQueuedResourceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeleteQueuedResourceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder
Overrides

clearRequestId()

public DeleteQueuedResourceRequest.Builder clearRequestId()

Idempotent request UUID.

string request_id = 2;

Returns
TypeDescription
DeleteQueuedResourceRequest.Builder

This builder for chaining.

clone()

public DeleteQueuedResourceRequest.Builder clone()
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder
Overrides

getDefaultInstanceForType()

public DeleteQueuedResourceRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteQueuedResourceRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The force.

getName()

public String getName()

Required. The resource name.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name.

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

Returns
TypeDescription
ByteString

The bytes for name.

getRequestId()

public String getRequestId()

Idempotent request UUID.

string request_id = 2;

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Idempotent request UUID.

string request_id = 2;

Returns
TypeDescription
ByteString

The bytes for requestId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteQueuedResourceRequest other)

public DeleteQueuedResourceRequest.Builder mergeFrom(DeleteQueuedResourceRequest other)
Parameter
NameDescription
otherDeleteQueuedResourceRequest
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeleteQueuedResourceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeleteQueuedResourceRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeleteQueuedResourceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeleteQueuedResourceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The force to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder
Overrides

setRequestId(String value)

public DeleteQueuedResourceRequest.Builder setRequestId(String value)

Idempotent request UUID.

string request_id = 2;

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
DeleteQueuedResourceRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public DeleteQueuedResourceRequest.Builder setRequestIdBytes(ByteString value)

Idempotent request UUID.

string request_id = 2;

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
DeleteQueuedResourceRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DeleteQueuedResourceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteQueuedResourceRequest.Builder
Overrides