Class DeleteWorkerPoolRequest.Builder (3.33.0)

public static final class DeleteWorkerPoolRequest.Builder extends GeneratedMessageV3.Builder<DeleteWorkerPoolRequest.Builder> implements DeleteWorkerPoolRequestOrBuilder

Request to delete a WorkerPool.

Protobuf type google.devtools.cloudbuild.v1.DeleteWorkerPoolRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteWorkerPoolRequest build()
Returns
TypeDescription
DeleteWorkerPoolRequest

buildPartial()

public DeleteWorkerPoolRequest buildPartial()
Returns
TypeDescription
DeleteWorkerPoolRequest

clear()

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

clearAllowMissing()

public DeleteWorkerPoolRequest.Builder clearAllowMissing()

If set to true, and the WorkerPool is not found, the request will succeed but no action will be taken on the server.

bool allow_missing = 3;

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.

clearEtag()

public DeleteWorkerPoolRequest.Builder clearEtag()

Optional. If provided, it must match the server's etag on the workerpool for the request to be processed.

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

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeleteWorkerPoolRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeleteWorkerPoolRequest.Builder
Overrides

clearName()

public DeleteWorkerPoolRequest.Builder clearName()

Required. The name of the WorkerPool to delete. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

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

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValidateOnly()

public DeleteWorkerPoolRequest.Builder clearValidateOnly()

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

bool validate_only = 4;

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.

clone()

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

getAllowMissing()

public boolean getAllowMissing()

If set to true, and the WorkerPool is not found, the request will succeed but no action will be taken on the server.

bool allow_missing = 3;

Returns
TypeDescription
boolean

The allowMissing.

getDefaultInstanceForType()

public DeleteWorkerPoolRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteWorkerPoolRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

Optional. If provided, it must match the server's etag on the workerpool for the request to be processed.

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

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. If provided, it must match the server's etag on the workerpool for the request to be processed.

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

Returns
TypeDescription
ByteString

The bytes for etag.

getName()

public String getName()

Required. The name of the WorkerPool to delete. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the WorkerPool to delete. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

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

Returns
TypeDescription
ByteString

The bytes for name.

getValidateOnly()

public boolean getValidateOnly()

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

bool validate_only = 4;

Returns
TypeDescription
boolean

The validateOnly.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteWorkerPoolRequest other)

public DeleteWorkerPoolRequest.Builder mergeFrom(DeleteWorkerPoolRequest other)
Parameter
NameDescription
otherDeleteWorkerPoolRequest
Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAllowMissing(boolean value)

public DeleteWorkerPoolRequest.Builder setAllowMissing(boolean value)

If set to true, and the WorkerPool is not found, the request will succeed but no action will be taken on the server.

bool allow_missing = 3;

Parameter
NameDescription
valueboolean

The allowMissing to set.

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.

setEtag(String value)

public DeleteWorkerPoolRequest.Builder setEtag(String value)

Optional. If provided, it must match the server's etag on the workerpool for the request to be processed.

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

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public DeleteWorkerPoolRequest.Builder setEtagBytes(ByteString value)

Optional. If provided, it must match the server's etag on the workerpool for the request to be processed.

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

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DeleteWorkerPoolRequest.Builder setName(String value)

Required. The name of the WorkerPool to delete. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteWorkerPoolRequest.Builder setNameBytes(ByteString value)

Required. The name of the WorkerPool to delete. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.

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

public DeleteWorkerPoolRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeleteWorkerPoolRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public DeleteWorkerPoolRequest.Builder setValidateOnly(boolean value)

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

bool validate_only = 4;

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
DeleteWorkerPoolRequest.Builder

This builder for chaining.