Class ListWorkerPoolsResponse.Builder (3.16.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloudbuild.v1.WorkerPool>
Returns
TypeDescription
ListWorkerPoolsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListWorkerPoolsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWorkerPool
Returns
TypeDescription
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
NameDescription
builderForValueWorkerPool.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueWorkerPool
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkerPool.Builder
Returns
TypeDescription
ListWorkerPoolsResponse.Builder

addWorkerPoolsBuilder()

public WorkerPool.Builder addWorkerPoolsBuilder()

WorkerPools for the specified project.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
WorkerPool.Builder

build()

public ListWorkerPoolsResponse build()
Returns
TypeDescription
ListWorkerPoolsResponse

buildPartial()

public ListWorkerPoolsResponse buildPartial()
Returns
TypeDescription
ListWorkerPoolsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListWorkerPoolsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListWorkerPoolsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWorkerPools()

public ListWorkerPoolsResponse.Builder clearWorkerPools()

WorkerPools for the specified project.

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

Returns
TypeDescription
ListWorkerPoolsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListWorkerPoolsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListWorkerPoolsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
WorkerPool.Builder

getWorkerPoolsBuilderList()

public List<WorkerPool.Builder> getWorkerPoolsBuilderList()

WorkerPools for the specified project.

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

Returns
TypeDescription
List<Builder>

getWorkerPoolsCount()

public int getWorkerPoolsCount()

WorkerPools for the specified project.

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

Returns
TypeDescription
int

getWorkerPoolsList()

public List<WorkerPool> getWorkerPoolsList()

WorkerPools for the specified project.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
WorkerPoolOrBuilder

getWorkerPoolsOrBuilderList()

public List<? extends WorkerPoolOrBuilder> getWorkerPoolsOrBuilderList()

WorkerPools for the specified project.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListWorkerPoolsResponse other)

public ListWorkerPoolsResponse.Builder mergeFrom(ListWorkerPoolsResponse other)
Parameter
NameDescription
otherListWorkerPoolsResponse
Returns
TypeDescription
ListWorkerPoolsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListWorkerPoolsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueWorkerPool
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkerPool.Builder
Returns
TypeDescription
ListWorkerPoolsResponse.Builder