Class CreateWorkerPoolRequest.Builder (3.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateWorkerPoolRequest build()
Returns
TypeDescription
CreateWorkerPoolRequest

buildPartial()

public CreateWorkerPoolRequest buildPartial()
Returns
TypeDescription
CreateWorkerPoolRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateWorkerPoolRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CreateWorkerPoolRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateWorkerPoolRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateWorkerPoolRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
WorkerPoolOrBuilder

hasWorkerPool()

public boolean hasWorkerPool()

Required. WorkerPool resource to create.

.google.devtools.cloudbuild.v1.WorkerPool worker_pool = 2 [(.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(CreateWorkerPoolRequest other)

public CreateWorkerPoolRequest.Builder mergeFrom(CreateWorkerPoolRequest other)
Parameter
NameDescription
otherCreateWorkerPoolRequest
Returns
TypeDescription
CreateWorkerPoolRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkerPoolRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueWorkerPool
Returns
TypeDescription
CreateWorkerPoolRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkerPoolRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateWorkerPoolRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkerPoolRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
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
NameDescription
valueWorkerPool
Returns
TypeDescription
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
NameDescription
builderForValueWorkerPool.Builder
Returns
TypeDescription
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
NameDescription
valueString

The workerPoolId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for workerPoolId to set.

Returns
TypeDescription
CreateWorkerPoolRequest.Builder

This builder for chaining.