Class CreateWorkerPoolOperationMetadata.Builder (3.48.0)

public static final class CreateWorkerPoolOperationMetadata.Builder extends GeneratedMessageV3.Builder<CreateWorkerPoolOperationMetadata.Builder> implements CreateWorkerPoolOperationMetadataOrBuilder

Metadata for the CreateWorkerPool operation.

Protobuf type google.devtools.cloudbuild.v1.CreateWorkerPoolOperationMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateWorkerPoolOperationMetadata build()
Returns
Type Description
CreateWorkerPoolOperationMetadata

buildPartial()

public CreateWorkerPoolOperationMetadata buildPartial()
Returns
Type Description
CreateWorkerPoolOperationMetadata

clear()

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

clearCompleteTime()

public CreateWorkerPoolOperationMetadata.Builder clearCompleteTime()

Time the operation was completed.

.google.protobuf.Timestamp complete_time = 3;

Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

clearCreateTime()

public CreateWorkerPoolOperationMetadata.Builder clearCreateTime()

Time the operation was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWorkerPool()

public CreateWorkerPoolOperationMetadata.Builder clearWorkerPool()

The resource name of the WorkerPool to create. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}.

string worker_pool = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

This builder for chaining.

clone()

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

getCompleteTime()

public Timestamp getCompleteTime()

Time the operation was completed.

.google.protobuf.Timestamp complete_time = 3;

Returns
Type Description
Timestamp

The completeTime.

getCompleteTimeBuilder()

public Timestamp.Builder getCompleteTimeBuilder()

Time the operation was completed.

.google.protobuf.Timestamp complete_time = 3;

Returns
Type Description
Builder

getCompleteTimeOrBuilder()

public TimestampOrBuilder getCompleteTimeOrBuilder()

Time the operation was completed.

.google.protobuf.Timestamp complete_time = 3;

Returns
Type Description
TimestampOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Time the operation was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Time the operation was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Time the operation was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CreateWorkerPoolOperationMetadata getDefaultInstanceForType()
Returns
Type Description
CreateWorkerPoolOperationMetadata

getDescriptorForType()

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

getWorkerPool()

public String getWorkerPool()

The resource name of the WorkerPool to create. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}.

string worker_pool = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The workerPool.

getWorkerPoolBytes()

public ByteString getWorkerPoolBytes()

The resource name of the WorkerPool to create. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}.

string worker_pool = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for workerPool.

hasCompleteTime()

public boolean hasCompleteTime()

Time the operation was completed.

.google.protobuf.Timestamp complete_time = 3;

Returns
Type Description
boolean

Whether the completeTime field is set.

hasCreateTime()

public boolean hasCreateTime()

Time the operation was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCompleteTime(Timestamp value)

public CreateWorkerPoolOperationMetadata.Builder mergeCompleteTime(Timestamp value)

Time the operation was completed.

.google.protobuf.Timestamp complete_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

mergeCreateTime(Timestamp value)

public CreateWorkerPoolOperationMetadata.Builder mergeCreateTime(Timestamp value)

Time the operation was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

mergeFrom(CreateWorkerPoolOperationMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCompleteTime(Timestamp value)

public CreateWorkerPoolOperationMetadata.Builder setCompleteTime(Timestamp value)

Time the operation was completed.

.google.protobuf.Timestamp complete_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

setCompleteTime(Timestamp.Builder builderForValue)

public CreateWorkerPoolOperationMetadata.Builder setCompleteTime(Timestamp.Builder builderForValue)

Time the operation was completed.

.google.protobuf.Timestamp complete_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

setCreateTime(Timestamp value)

public CreateWorkerPoolOperationMetadata.Builder setCreateTime(Timestamp value)

Time the operation was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CreateWorkerPoolOperationMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

Time the operation was created.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWorkerPool(String value)

public CreateWorkerPoolOperationMetadata.Builder setWorkerPool(String value)

The resource name of the WorkerPool to create. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}.

string worker_pool = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The workerPool to set.

Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

This builder for chaining.

setWorkerPoolBytes(ByteString value)

public CreateWorkerPoolOperationMetadata.Builder setWorkerPoolBytes(ByteString value)

The resource name of the WorkerPool to create. Format: projects/{project}/locations/{location}/workerPools/{worker_pool}.

string worker_pool = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for workerPool to set.

Returns
Type Description
CreateWorkerPoolOperationMetadata.Builder

This builder for chaining.