Class UpdateWorkerPoolRequest.Builder (0.78.0)

publicstaticfinalclass UpdateWorkerPoolRequest.BuilderextendsGeneratedMessageV3.Builder<UpdateWorkerPoolRequest.Builder>implementsUpdateWorkerPoolRequestOrBuilder

Request message for updating a worker pool.

Protobuf type google.cloud.run.v2.UpdateWorkerPoolRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicUpdateWorkerPoolRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

build()

publicUpdateWorkerPoolRequestbuild()
Returns
Type Description
UpdateWorkerPoolRequest

buildPartial()

publicUpdateWorkerPoolRequestbuildPartial()
Returns
Type Description
UpdateWorkerPoolRequest

clear()

publicUpdateWorkerPoolRequest.Builderclear()
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

clearAllowMissing()

publicUpdateWorkerPoolRequest.BuilderclearAllowMissing()

Optional. If set to true, and if the WorkerPool does not exist, it will create a new one. The caller must have 'run.workerpools.create' permissions if this is set to true and the WorkerPool does not exist.

bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateWorkerPoolRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicUpdateWorkerPoolRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

clearForceNewRevision()

publicUpdateWorkerPoolRequest.BuilderclearForceNewRevision()

Optional. If set to true, a new revision will be created from the template even if the system doesn't detect any changes from the previously deployed revision.

This may be useful for cases where the underlying resources need to be recreated or reinitialized. For example if the image is specified by label, but the underlying image digest has changed) or if the container performs deployment initialization work that needs to be performed again.

bool force_new_revision = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateWorkerPoolRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicUpdateWorkerPoolRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

clearUpdateMask()

publicUpdateWorkerPoolRequest.BuilderclearUpdateMask()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateWorkerPoolRequest.Builder

clearValidateOnly()

publicUpdateWorkerPoolRequest.BuilderclearValidateOnly()

Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

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

Returns
Type Description
UpdateWorkerPoolRequest.Builder

This builder for chaining.

clearWorkerPool()

publicUpdateWorkerPoolRequest.BuilderclearWorkerPool()

Required. The WorkerPool to be updated.

.google.cloud.run.v2.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateWorkerPoolRequest.Builder

clone()

publicUpdateWorkerPoolRequest.Builderclone()
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

getAllowMissing()

publicbooleangetAllowMissing()

Optional. If set to true, and if the WorkerPool does not exist, it will create a new one. The caller must have 'run.workerpools.create' permissions if this is set to true and the WorkerPool does not exist.

bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The allowMissing.

getDefaultInstanceForType()

publicUpdateWorkerPoolRequestgetDefaultInstanceForType()
Returns
Type Description
UpdateWorkerPoolRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getForceNewRevision()

publicbooleangetForceNewRevision()

Optional. If set to true, a new revision will be created from the template even if the system doesn't detect any changes from the previously deployed revision.

This may be useful for cases where the underlying resources need to be recreated or reinitialized. For example if the image is specified by label, but the underlying image digest has changed) or if the container performs deployment initialization work that needs to be performed again.

bool force_new_revision = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The forceNewRevision.

getUpdateMask()

publicFieldMaskgetUpdateMask()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

publicFieldMask.BuildergetUpdateMaskBuilder()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

publicFieldMaskOrBuildergetUpdateMaskOrBuilder()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

getValidateOnly()

publicbooleangetValidateOnly()

Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

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

Returns
Type Description
boolean

The validateOnly.

getWorkerPool()

publicWorkerPoolgetWorkerPool()

Required. The WorkerPool to be updated.

.google.cloud.run.v2.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkerPool

The workerPool.

getWorkerPoolBuilder()

publicWorkerPool.BuildergetWorkerPoolBuilder()

Required. The WorkerPool to be updated.

.google.cloud.run.v2.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkerPool.Builder

getWorkerPoolOrBuilder()

publicWorkerPoolOrBuildergetWorkerPoolOrBuilder()

Required. The WorkerPool to be updated.

.google.cloud.run.v2.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WorkerPoolOrBuilder

hasUpdateMask()

publicbooleanhasUpdateMask()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask field is set.

hasWorkerPool()

publicbooleanhasWorkerPool()

Required. The WorkerPool to be updated.

.google.cloud.run.v2.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the workerPool field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateWorkerPoolRequest other)

publicUpdateWorkerPoolRequest.BuildermergeFrom(UpdateWorkerPoolRequestother)
Parameter
Name Description
other UpdateWorkerPoolRequest
Returns
Type Description
UpdateWorkerPoolRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicUpdateWorkerPoolRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicUpdateWorkerPoolRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalUpdateWorkerPoolRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

publicUpdateWorkerPoolRequest.BuildermergeUpdateMask(FieldMaskvalue)

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWorkerPoolRequest.Builder

mergeWorkerPool(WorkerPool value)

publicUpdateWorkerPoolRequest.BuildermergeWorkerPool(WorkerPoolvalue)

Required. The WorkerPool to be updated.

.google.cloud.run.v2.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WorkerPool
Returns
Type Description
UpdateWorkerPoolRequest.Builder

setAllowMissing(boolean value)

publicUpdateWorkerPoolRequest.BuildersetAllowMissing(booleanvalue)

Optional. If set to true, and if the WorkerPool does not exist, it will create a new one. The caller must have 'run.workerpools.create' permissions if this is set to true and the WorkerPool does not exist.

bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The allowMissing to set.

Returns
Type Description
UpdateWorkerPoolRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicUpdateWorkerPoolRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

setForceNewRevision(boolean value)

publicUpdateWorkerPoolRequest.BuildersetForceNewRevision(booleanvalue)

Optional. If set to true, a new revision will be created from the template even if the system doesn't detect any changes from the previously deployed revision.

This may be useful for cases where the underlying resources need to be recreated or reinitialized. For example if the image is specified by label, but the underlying image digest has changed) or if the container performs deployment initialization work that needs to be performed again.

bool force_new_revision = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The forceNewRevision to set.

Returns
Type Description
UpdateWorkerPoolRequest.Builder

This builder for chaining.

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

publicUpdateWorkerPoolRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalUpdateWorkerPoolRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateWorkerPoolRequest.Builder
Overrides

setUpdateMask(FieldMask value)

publicUpdateWorkerPoolRequest.BuildersetUpdateMask(FieldMaskvalue)

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWorkerPoolRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

publicUpdateWorkerPoolRequest.BuildersetUpdateMask(FieldMask.BuilderbuilderForValue)

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateWorkerPoolRequest.Builder

setValidateOnly(boolean value)

publicUpdateWorkerPoolRequest.BuildersetValidateOnly(booleanvalue)

Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

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

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateWorkerPoolRequest.Builder

This builder for chaining.

setWorkerPool(WorkerPool value)

publicUpdateWorkerPoolRequest.BuildersetWorkerPool(WorkerPoolvalue)

Required. The WorkerPool to be updated.

.google.cloud.run.v2.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WorkerPool
Returns
Type Description
UpdateWorkerPoolRequest.Builder

setWorkerPool(WorkerPool.Builder builderForValue)

publicUpdateWorkerPoolRequest.BuildersetWorkerPool(WorkerPool.BuilderbuilderForValue)

Required. The WorkerPool to be updated.

.google.cloud.run.v2.WorkerPool worker_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue WorkerPool.Builder
Returns
Type Description
UpdateWorkerPoolRequest.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.