Class UpdateWorkerPoolRequest.Builder (3.33.0)

public static final class UpdateWorkerPoolRequest.Builder extends GeneratedMessageV3.Builder<UpdateWorkerPoolRequest.Builder> implements UpdateWorkerPoolRequestOrBuilder

Request to update a WorkerPool.

Protobuf type google.devtools.cloudbuild.v1.UpdateWorkerPoolRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateWorkerPoolRequest build()
Returns
TypeDescription
UpdateWorkerPoolRequest

buildPartial()

public UpdateWorkerPoolRequest buildPartial()
Returns
TypeDescription
UpdateWorkerPoolRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateWorkerPoolRequest.Builder clearUpdateMask()

A mask specifying which fields in worker_pool to update.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
UpdateWorkerPoolRequest.Builder

clearValidateOnly()

public UpdateWorkerPoolRequest.Builder clearValidateOnly()

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

bool validate_only = 4;

Returns
TypeDescription
UpdateWorkerPoolRequest.Builder

This builder for chaining.

clearWorkerPool()

public UpdateWorkerPoolRequest.Builder clearWorkerPool()

Required. The WorkerPool to update.

The name field is used to identify the WorkerPool to update. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

.google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateWorkerPoolRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateWorkerPoolRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateWorkerPoolRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

A mask specifying which fields in worker_pool to update.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

A mask specifying which fields in worker_pool to update.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

A mask specifying which fields in worker_pool to update.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMaskOrBuilder

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.

getWorkerPool()

public WorkerPool getWorkerPool()

Required. The WorkerPool to update.

The name field is used to identify the WorkerPool to update. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

.google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkerPool

The workerPool.

getWorkerPoolBuilder()

public WorkerPool.Builder getWorkerPoolBuilder()

Required. The WorkerPool to update.

The name field is used to identify the WorkerPool to update. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

.google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkerPool.Builder

getWorkerPoolOrBuilder()

public WorkerPoolOrBuilder getWorkerPoolOrBuilder()

Required. The WorkerPool to update.

The name field is used to identify the WorkerPool to update. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

.google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WorkerPoolOrBuilder

hasUpdateMask()

public boolean hasUpdateMask()

A mask specifying which fields in worker_pool to update.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

hasWorkerPool()

public boolean hasWorkerPool()

Required. The WorkerPool to update.

The name field is used to identify the WorkerPool to update. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

.google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the workerPool field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateWorkerPoolRequest other)

public UpdateWorkerPoolRequest.Builder mergeFrom(UpdateWorkerPoolRequest other)
Parameter
NameDescription
otherUpdateWorkerPoolRequest
Returns
TypeDescription
UpdateWorkerPoolRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateWorkerPoolRequest.Builder mergeUpdateMask(FieldMask value)

A mask specifying which fields in worker_pool to update.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateWorkerPoolRequest.Builder

mergeWorkerPool(WorkerPool value)

public UpdateWorkerPoolRequest.Builder mergeWorkerPool(WorkerPool value)

Required. The WorkerPool to update.

The name field is used to identify the WorkerPool to update. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

.google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkerPool
Returns
TypeDescription
UpdateWorkerPoolRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateWorkerPoolRequest.Builder setUpdateMask(FieldMask value)

A mask specifying which fields in worker_pool to update.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateWorkerPoolRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateWorkerPoolRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

A mask specifying which fields in worker_pool to update.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateWorkerPoolRequest.Builder

setValidateOnly(boolean value)

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

This builder for chaining.

setWorkerPool(WorkerPool value)

public UpdateWorkerPoolRequest.Builder setWorkerPool(WorkerPool value)

Required. The WorkerPool to update.

The name field is used to identify the WorkerPool to update. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

.google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWorkerPool
Returns
TypeDescription
UpdateWorkerPoolRequest.Builder

setWorkerPool(WorkerPool.Builder builderForValue)

public UpdateWorkerPoolRequest.Builder setWorkerPool(WorkerPool.Builder builderForValue)

Required. The WorkerPool to update.

The name field is used to identify the WorkerPool to update. Format: projects/{project}/locations/{location}/workerPools/{workerPool}.

.google.devtools.cloudbuild.v1.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueWorkerPool.Builder
Returns
TypeDescription
UpdateWorkerPoolRequest.Builder