Class CreateWorkerPoolRequest.Builder (3.49.0)

public static final class CreateWorkerPoolRequest.Builder extends GeneratedMessageV3.Builder<CreateWorkerPoolRequest.Builder> implements CreateWorkerPoolRequestOrBuilder

Request to create a new WorkerPool.

Protobuf type google.devtools.cloudbuild.v1.CreateWorkerPoolRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkerPoolRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

build()

public CreateWorkerPoolRequest build()
Returns
Type Description
CreateWorkerPoolRequest

buildPartial()

public CreateWorkerPoolRequest buildPartial()
Returns
Type Description
CreateWorkerPoolRequest

clear()

public CreateWorkerPoolRequest.Builder clear()
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateWorkerPoolRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateWorkerPoolRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

clearParent()

public CreateWorkerPoolRequest.Builder clearParent()

Required. The parent resource where this worker pool will be created. Format: projects/{project}/locations/{location}.

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

Returns
Type Description
CreateWorkerPoolRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateWorkerPoolRequest.Builder clearValidateOnly()

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

bool validate_only = 4;

Returns
Type Description
CreateWorkerPoolRequest.Builder

This builder for chaining.

clearWorkerPool()

public CreateWorkerPoolRequest.Builder clearWorkerPool()

Required. WorkerPool resource to create.

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

Returns
Type Description
CreateWorkerPoolRequest.Builder

clearWorkerPoolId()

public CreateWorkerPoolRequest.Builder clearWorkerPoolId()

Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name.

This value should be 1-63 characters, and valid characters are /a-z-/.

string worker_pool_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateWorkerPoolRequest.Builder

This builder for chaining.

clone()

public CreateWorkerPoolRequest.Builder clone()
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateWorkerPoolRequest getDefaultInstanceForType()
Returns
Type Description
CreateWorkerPoolRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource where this worker pool will be created. Format: projects/{project}/locations/{location}.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where this worker pool will be created. Format: projects/{project}/locations/{location}.

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

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

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

bool validate_only = 4;

Returns
Type Description
boolean

The validateOnly.

getWorkerPool()

public WorkerPool getWorkerPool()

Required. WorkerPool resource to create.

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

Returns
Type Description
WorkerPool

The workerPool.

getWorkerPoolBuilder()

public WorkerPool.Builder getWorkerPoolBuilder()

Required. WorkerPool resource to create.

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

Returns
Type Description
WorkerPool.Builder

getWorkerPoolId()

public String getWorkerPoolId()

Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name.

This value should be 1-63 characters, and valid characters are /a-z-/.

string worker_pool_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The workerPoolId.

getWorkerPoolIdBytes()

public ByteString getWorkerPoolIdBytes()

Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name.

This value should be 1-63 characters, and valid characters are /a-z-/.

string worker_pool_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for workerPoolId.

getWorkerPoolOrBuilder()

public WorkerPoolOrBuilder getWorkerPoolOrBuilder()

Required. WorkerPool resource to create.

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

Returns
Type Description
WorkerPoolOrBuilder

hasWorkerPool()

public boolean hasWorkerPool()

Required. WorkerPool resource to create.

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

Returns
Type Description
boolean

Whether the workerPool field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateWorkerPoolRequest other)

public CreateWorkerPoolRequest.Builder mergeFrom(CreateWorkerPoolRequest other)
Parameter
Name Description
other CreateWorkerPoolRequest
Returns
Type Description
CreateWorkerPoolRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateWorkerPoolRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateWorkerPoolRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkerPoolRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

mergeWorkerPool(WorkerPool value)

public CreateWorkerPoolRequest.Builder mergeWorkerPool(WorkerPool value)

Required. WorkerPool resource to create.

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

Parameter
Name Description
value WorkerPool
Returns
Type Description
CreateWorkerPoolRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkerPoolRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

setParent(String value)

public CreateWorkerPoolRequest.Builder setParent(String value)

Required. The parent resource where this worker pool will be created. Format: projects/{project}/locations/{location}.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateWorkerPoolRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateWorkerPoolRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this worker pool will be created. Format: projects/{project}/locations/{location}.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateWorkerPoolRequest.Builder

This builder for chaining.

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

public CreateWorkerPoolRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkerPoolRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateWorkerPoolRequest.Builder
Overrides

setValidateOnly(boolean value)

public CreateWorkerPoolRequest.Builder setValidateOnly(boolean value)

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

bool validate_only = 4;

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateWorkerPoolRequest.Builder

This builder for chaining.

setWorkerPool(WorkerPool value)

public CreateWorkerPoolRequest.Builder setWorkerPool(WorkerPool value)

Required. WorkerPool resource to create.

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

Parameter
Name Description
value WorkerPool
Returns
Type Description
CreateWorkerPoolRequest.Builder

setWorkerPool(WorkerPool.Builder builderForValue)

public CreateWorkerPoolRequest.Builder setWorkerPool(WorkerPool.Builder builderForValue)

Required. WorkerPool resource to create.

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

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

setWorkerPoolId(String value)

public CreateWorkerPoolRequest.Builder setWorkerPoolId(String value)

Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name.

This value should be 1-63 characters, and valid characters are /a-z-/.

string worker_pool_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The workerPoolId to set.

Returns
Type Description
CreateWorkerPoolRequest.Builder

This builder for chaining.

setWorkerPoolIdBytes(ByteString value)

public CreateWorkerPoolRequest.Builder setWorkerPoolIdBytes(ByteString value)

Required. Immutable. The ID to use for the WorkerPool, which will become the final component of the resource name.

This value should be 1-63 characters, and valid characters are /a-z-/.

string worker_pool_id = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for workerPoolId to set.

Returns
Type Description
CreateWorkerPoolRequest.Builder

This builder for chaining.