Class ListWorkerPoolsResponse.Builder (3.57.0)

public static final class ListWorkerPoolsResponse.Builder extends GeneratedMessageV3.Builder<ListWorkerPoolsResponse.Builder> implements ListWorkerPoolsResponseOrBuilder

Response containing existing WorkerPools.

Protobuf type google.devtools.cloudbuild.v1.ListWorkerPoolsResponse

Static Methods

getDescriptor()

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

Methods

addAllWorkerPools(Iterable<? extends WorkerPool> values)

public ListWorkerPoolsResponse.Builder addAllWorkerPools(Iterable<? extends WorkerPool> values)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloudbuild.v1.WorkerPool>
Returns
Type Description
ListWorkerPoolsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWorkerPools(WorkerPool value)

public ListWorkerPoolsResponse.Builder addWorkerPools(WorkerPool value)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameter
Name Description
value WorkerPool
Returns
Type Description
ListWorkerPoolsResponse.Builder

addWorkerPools(WorkerPool.Builder builderForValue)

public ListWorkerPoolsResponse.Builder addWorkerPools(WorkerPool.Builder builderForValue)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

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

addWorkerPools(int index, WorkerPool value)

public ListWorkerPoolsResponse.Builder addWorkerPools(int index, WorkerPool value)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameters
Name Description
index int
value WorkerPool
Returns
Type Description
ListWorkerPoolsResponse.Builder

addWorkerPools(int index, WorkerPool.Builder builderForValue)

public ListWorkerPoolsResponse.Builder addWorkerPools(int index, WorkerPool.Builder builderForValue)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameters
Name Description
index int
builderForValue WorkerPool.Builder
Returns
Type Description
ListWorkerPoolsResponse.Builder

addWorkerPoolsBuilder()

public WorkerPool.Builder addWorkerPoolsBuilder()

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Returns
Type Description
WorkerPool.Builder

addWorkerPoolsBuilder(int index)

public WorkerPool.Builder addWorkerPoolsBuilder(int index)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameter
Name Description
index int
Returns
Type Description
WorkerPool.Builder

build()

public ListWorkerPoolsResponse build()
Returns
Type Description
ListWorkerPoolsResponse

buildPartial()

public ListWorkerPoolsResponse buildPartial()
Returns
Type Description
ListWorkerPoolsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListWorkerPoolsResponse.Builder clearNextPageToken()

Continuation token used to page through large result sets. Provide this value in a subsequent ListWorkerPoolsRequest to return the next page of results.

string next_page_token = 2;

Returns
Type Description
ListWorkerPoolsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWorkerPools()

public ListWorkerPoolsResponse.Builder clearWorkerPools()

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Returns
Type Description
ListWorkerPoolsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListWorkerPoolsResponse getDefaultInstanceForType()
Returns
Type Description
ListWorkerPoolsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Continuation token used to page through large result sets. Provide this value in a subsequent ListWorkerPoolsRequest to return the next page of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Continuation token used to page through large result sets. Provide this value in a subsequent ListWorkerPoolsRequest to return the next page of results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getWorkerPools(int index)

public WorkerPool getWorkerPools(int index)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameter
Name Description
index int
Returns
Type Description
WorkerPool

getWorkerPoolsBuilder(int index)

public WorkerPool.Builder getWorkerPoolsBuilder(int index)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameter
Name Description
index int
Returns
Type Description
WorkerPool.Builder

getWorkerPoolsBuilderList()

public List<WorkerPool.Builder> getWorkerPoolsBuilderList()

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Returns
Type Description
List<Builder>

getWorkerPoolsCount()

public int getWorkerPoolsCount()

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Returns
Type Description
int

getWorkerPoolsList()

public List<WorkerPool> getWorkerPoolsList()

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Returns
Type Description
List<WorkerPool>

getWorkerPoolsOrBuilder(int index)

public WorkerPoolOrBuilder getWorkerPoolsOrBuilder(int index)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameter
Name Description
index int
Returns
Type Description
WorkerPoolOrBuilder

getWorkerPoolsOrBuilderList()

public List<? extends WorkerPoolOrBuilder> getWorkerPoolsOrBuilderList()

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Returns
Type Description
List<? extends com.google.cloudbuild.v1.WorkerPoolOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListWorkerPoolsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeWorkerPools(int index)

public ListWorkerPoolsResponse.Builder removeWorkerPools(int index)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameter
Name Description
index int
Returns
Type Description
ListWorkerPoolsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListWorkerPoolsResponse.Builder setNextPageToken(String value)

Continuation token used to page through large result sets. Provide this value in a subsequent ListWorkerPoolsRequest to return the next page of results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListWorkerPoolsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListWorkerPoolsResponse.Builder setNextPageTokenBytes(ByteString value)

Continuation token used to page through large result sets. Provide this value in a subsequent ListWorkerPoolsRequest to return the next page of results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListWorkerPoolsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWorkerPools(int index, WorkerPool value)

public ListWorkerPoolsResponse.Builder setWorkerPools(int index, WorkerPool value)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameters
Name Description
index int
value WorkerPool
Returns
Type Description
ListWorkerPoolsResponse.Builder

setWorkerPools(int index, WorkerPool.Builder builderForValue)

public ListWorkerPoolsResponse.Builder setWorkerPools(int index, WorkerPool.Builder builderForValue)

WorkerPools for the specified project.

repeated .google.devtools.cloudbuild.v1.WorkerPool worker_pools = 1;

Parameters
Name Description
index int
builderForValue WorkerPool.Builder
Returns
Type Description
ListWorkerPoolsResponse.Builder