Class WorkerPool.Builder (3.5.2)

public static final class WorkerPool.Builder extends GeneratedMessageV3.Builder<WorkerPool.Builder> implements WorkerPoolOrBuilder

Configuration for a WorkerPool. Cloud Build owns and maintains a pool of workers for general use and have no access to a project's private network. By default, builds submitted to Cloud Build will use a worker from this pool. If your build needs access to resources on a private network, create and use a WorkerPool to run your builds. Private WorkerPools give your builds access to any single VPC network that you administer, including any on-prem resources connected to that VPC network. For an overview of private pools, see Private pools overview.

Protobuf type google.devtools.cloudbuild.v1.WorkerPool

Implements

WorkerPoolOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WorkerPool build()
Returns
TypeDescription
WorkerPool

buildPartial()

public WorkerPool buildPartial()
Returns
TypeDescription
WorkerPool

clear()

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

clearAnnotations()

public WorkerPool.Builder clearAnnotations()
Returns
TypeDescription
WorkerPool.Builder

clearConfig()

public WorkerPool.Builder clearConfig()
Returns
TypeDescription
WorkerPool.Builder

clearCreateTime()

public WorkerPool.Builder clearCreateTime()

Output only. Time at which the request to create the WorkerPool was received.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkerPool.Builder

clearDeleteTime()

public WorkerPool.Builder clearDeleteTime()

Output only. Time at which the request to delete the WorkerPool was received.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkerPool.Builder

clearDisplayName()

public WorkerPool.Builder clearDisplayName()

A user-specified, human-readable name for the WorkerPool. If provided, this value must be 1-63 characters.

string display_name = 2;

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

clearEtag()

public WorkerPool.Builder clearEtag()

Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public WorkerPool.Builder clearName()

Output only. The resource name of the WorkerPool, with format projects/{project}/locations/{location}/workerPools/{worker_pool}. The value of {worker_pool} is provided by worker_pool_id in CreateWorkerPool request and the value of {location} is determined by the endpoint accessed.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivatePoolV1Config()

public WorkerPool.Builder clearPrivatePoolV1Config()

Private Pool using a v1 configuration.

.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;

Returns
TypeDescription
WorkerPool.Builder

clearState()

public WorkerPool.Builder clearState()

Output only. WorkerPool state.

.google.devtools.cloudbuild.v1.WorkerPool.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

clearUid()

public WorkerPool.Builder clearUid()

Output only. A unique identifier for the WorkerPool.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

clearUpdateTime()

public WorkerPool.Builder clearUpdateTime()

Output only. Time at which the request to update the WorkerPool was received.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkerPool.Builder

clone()

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

containsAnnotations(String key)

public boolean containsAnnotations(String key)

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 4;

Returns
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 4;

Returns
TypeDescription
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getConfigCase()

public WorkerPool.ConfigCase getConfigCase()
Returns
TypeDescription
WorkerPool.ConfigCase

getCreateTime()

public Timestamp getCreateTime()

Output only. Time at which the request to create the WorkerPool was received.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time at which the request to create the WorkerPool was received.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time at which the request to create the WorkerPool was received.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public WorkerPool getDefaultInstanceForType()
Returns
TypeDescription
WorkerPool

getDeleteTime()

public Timestamp getDeleteTime()

Output only. Time at which the request to delete the WorkerPool was received.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. Time at which the request to delete the WorkerPool was received.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. Time at which the request to delete the WorkerPool was received.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

A user-specified, human-readable name for the WorkerPool. If provided, this value must be 1-63 characters.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

A user-specified, human-readable name for the WorkerPool. If provided, this value must be 1-63 characters.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for etag.

getMutableAnnotations()

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Output only. The resource name of the WorkerPool, with format projects/{project}/locations/{location}/workerPools/{worker_pool}. The value of {worker_pool} is provided by worker_pool_id in CreateWorkerPool request and the value of {location} is determined by the endpoint accessed.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the WorkerPool, with format projects/{project}/locations/{location}/workerPools/{worker_pool}. The value of {worker_pool} is provided by worker_pool_id in CreateWorkerPool request and the value of {location} is determined by the endpoint accessed.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getPrivatePoolV1Config()

public PrivatePoolV1Config getPrivatePoolV1Config()

Private Pool using a v1 configuration.

.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;

Returns
TypeDescription
PrivatePoolV1Config

The privatePoolV1Config.

getPrivatePoolV1ConfigBuilder()

public PrivatePoolV1Config.Builder getPrivatePoolV1ConfigBuilder()

Private Pool using a v1 configuration.

.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;

Returns
TypeDescription
PrivatePoolV1Config.Builder

getPrivatePoolV1ConfigOrBuilder()

public PrivatePoolV1ConfigOrBuilder getPrivatePoolV1ConfigOrBuilder()

Private Pool using a v1 configuration.

.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;

Returns
TypeDescription
PrivatePoolV1ConfigOrBuilder

getState()

public WorkerPool.State getState()

Output only. WorkerPool state.

.google.devtools.cloudbuild.v1.WorkerPool.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
WorkerPool.State

The state.

getStateValue()

public int getStateValue()

Output only. WorkerPool state.

.google.devtools.cloudbuild.v1.WorkerPool.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. A unique identifier for the WorkerPool.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. A unique identifier for the WorkerPool.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time at which the request to update the WorkerPool was received.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time at which the request to update the WorkerPool was received.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time at which the request to update the WorkerPool was received.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time at which the request to create the WorkerPool was received.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. Time at which the request to delete the WorkerPool was received.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the deleteTime field is set.

hasPrivatePoolV1Config()

public boolean hasPrivatePoolV1Config()

Private Pool using a v1 configuration.

.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;

Returns
TypeDescription
boolean

Whether the privatePoolV1Config field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time at which the request to update the WorkerPool was received.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public WorkerPool.Builder mergeCreateTime(Timestamp value)

Output only. Time at which the request to create the WorkerPool was received.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkerPool.Builder

mergeDeleteTime(Timestamp value)

public WorkerPool.Builder mergeDeleteTime(Timestamp value)

Output only. Time at which the request to delete the WorkerPool was received.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkerPool.Builder

mergeFrom(WorkerPool other)

public WorkerPool.Builder mergeFrom(WorkerPool other)
Parameter
NameDescription
otherWorkerPool
Returns
TypeDescription
WorkerPool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePrivatePoolV1Config(PrivatePoolV1Config value)

public WorkerPool.Builder mergePrivatePoolV1Config(PrivatePoolV1Config value)

Private Pool using a v1 configuration.

.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;

Parameter
NameDescription
valuePrivatePoolV1Config
Returns
TypeDescription
WorkerPool.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public WorkerPool.Builder mergeUpdateTime(Timestamp value)

Output only. Time at which the request to update the WorkerPool was received.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkerPool.Builder

putAllAnnotations(Map<String,String> values)

public WorkerPool.Builder putAllAnnotations(Map<String,String> values)

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
WorkerPool.Builder

putAnnotations(String key, String value)

public WorkerPool.Builder putAnnotations(String key, String value)

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
WorkerPool.Builder

removeAnnotations(String key)

public WorkerPool.Builder removeAnnotations(String key)

User specified annotations. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
WorkerPool.Builder

setCreateTime(Timestamp value)

public WorkerPool.Builder setCreateTime(Timestamp value)

Output only. Time at which the request to create the WorkerPool was received.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkerPool.Builder

setCreateTime(Timestamp.Builder builderForValue)

public WorkerPool.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time at which the request to create the WorkerPool was received.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkerPool.Builder

setDeleteTime(Timestamp value)

public WorkerPool.Builder setDeleteTime(Timestamp value)

Output only. Time at which the request to delete the WorkerPool was received.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkerPool.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public WorkerPool.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. Time at which the request to delete the WorkerPool was received.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkerPool.Builder

setDisplayName(String value)

public WorkerPool.Builder setDisplayName(String value)

A user-specified, human-readable name for the WorkerPool. If provided, this value must be 1-63 characters.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public WorkerPool.Builder setDisplayNameBytes(ByteString value)

A user-specified, human-readable name for the WorkerPool. If provided, this value must be 1-63 characters.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setEtag(String value)

public WorkerPool.Builder setEtag(String value)

Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public WorkerPool.Builder setEtagBytes(ByteString value)

Output only. Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.

string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public WorkerPool.Builder setName(String value)

Output only. The resource name of the WorkerPool, with format projects/{project}/locations/{location}/workerPools/{worker_pool}. The value of {worker_pool} is provided by worker_pool_id in CreateWorkerPool request and the value of {location} is determined by the endpoint accessed.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setNameBytes(ByteString value)

public WorkerPool.Builder setNameBytes(ByteString value)

Output only. The resource name of the WorkerPool, with format projects/{project}/locations/{location}/workerPools/{worker_pool}. The value of {worker_pool} is provided by worker_pool_id in CreateWorkerPool request and the value of {location} is determined by the endpoint accessed.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setPrivatePoolV1Config(PrivatePoolV1Config value)

public WorkerPool.Builder setPrivatePoolV1Config(PrivatePoolV1Config value)

Private Pool using a v1 configuration.

.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;

Parameter
NameDescription
valuePrivatePoolV1Config
Returns
TypeDescription
WorkerPool.Builder

setPrivatePoolV1Config(PrivatePoolV1Config.Builder builderForValue)

public WorkerPool.Builder setPrivatePoolV1Config(PrivatePoolV1Config.Builder builderForValue)

Private Pool using a v1 configuration.

.google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12;

Parameter
NameDescription
builderForValuePrivatePoolV1Config.Builder
Returns
TypeDescription
WorkerPool.Builder

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

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

setState(WorkerPool.State value)

public WorkerPool.Builder setState(WorkerPool.State value)

Output only. WorkerPool state.

.google.devtools.cloudbuild.v1.WorkerPool.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueWorkerPool.State

The state to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setStateValue(int value)

public WorkerPool.Builder setStateValue(int value)

Output only. WorkerPool state.

.google.devtools.cloudbuild.v1.WorkerPool.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setUid(String value)

public WorkerPool.Builder setUid(String value)

Output only. A unique identifier for the WorkerPool.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setUidBytes(ByteString value)

public WorkerPool.Builder setUidBytes(ByteString value)

Output only. A unique identifier for the WorkerPool.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
WorkerPool.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public WorkerPool.Builder setUpdateTime(Timestamp value)

Output only. Time at which the request to update the WorkerPool was received.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WorkerPool.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public WorkerPool.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time at which the request to update the WorkerPool was received.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WorkerPool.Builder