Class ListWorkstationClustersResponse.Builder (0.31.0)

public static final class ListWorkstationClustersResponse.Builder extends GeneratedMessageV3.Builder<ListWorkstationClustersResponse.Builder> implements ListWorkstationClustersResponseOrBuilder

Response message for ListWorkstationClusters.

Protobuf type google.cloud.workstations.v1.ListWorkstationClustersResponse

Static Methods

getDescriptor()

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

Methods

addAllUnreachable(Iterable<String> values)

public ListWorkstationClustersResponse.Builder addAllUnreachable(Iterable<String> values)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListWorkstationClustersResponse.Builder

This builder for chaining.

addAllWorkstationClusters(Iterable<? extends WorkstationCluster> values)

public ListWorkstationClustersResponse.Builder addAllWorkstationClusters(Iterable<? extends WorkstationCluster> values)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.workstations.v1.WorkstationCluster>
Returns
Type Description
ListWorkstationClustersResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListWorkstationClustersResponse.Builder addUnreachable(String value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListWorkstationClustersResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListWorkstationClustersResponse.Builder addUnreachableBytes(ByteString value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListWorkstationClustersResponse.Builder

This builder for chaining.

addWorkstationClusters(WorkstationCluster value)

public ListWorkstationClustersResponse.Builder addWorkstationClusters(WorkstationCluster value)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameter
Name Description
value WorkstationCluster
Returns
Type Description
ListWorkstationClustersResponse.Builder

addWorkstationClusters(WorkstationCluster.Builder builderForValue)

public ListWorkstationClustersResponse.Builder addWorkstationClusters(WorkstationCluster.Builder builderForValue)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameter
Name Description
builderForValue WorkstationCluster.Builder
Returns
Type Description
ListWorkstationClustersResponse.Builder

addWorkstationClusters(int index, WorkstationCluster value)

public ListWorkstationClustersResponse.Builder addWorkstationClusters(int index, WorkstationCluster value)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameters
Name Description
index int
value WorkstationCluster
Returns
Type Description
ListWorkstationClustersResponse.Builder

addWorkstationClusters(int index, WorkstationCluster.Builder builderForValue)

public ListWorkstationClustersResponse.Builder addWorkstationClusters(int index, WorkstationCluster.Builder builderForValue)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameters
Name Description
index int
builderForValue WorkstationCluster.Builder
Returns
Type Description
ListWorkstationClustersResponse.Builder

addWorkstationClustersBuilder()

public WorkstationCluster.Builder addWorkstationClustersBuilder()

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Returns
Type Description
WorkstationCluster.Builder

addWorkstationClustersBuilder(int index)

public WorkstationCluster.Builder addWorkstationClustersBuilder(int index)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
WorkstationCluster.Builder

build()

public ListWorkstationClustersResponse build()
Returns
Type Description
ListWorkstationClustersResponse

buildPartial()

public ListWorkstationClustersResponse buildPartial()
Returns
Type Description
ListWorkstationClustersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListWorkstationClustersResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ListWorkstationClustersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListWorkstationClustersResponse.Builder clearUnreachable()

Unreachable resources.

repeated string unreachable = 3;

Returns
Type Description
ListWorkstationClustersResponse.Builder

This builder for chaining.

clearWorkstationClusters()

public ListWorkstationClustersResponse.Builder clearWorkstationClusters()

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Returns
Type Description
ListWorkstationClustersResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListWorkstationClustersResponse getDefaultInstanceForType()
Returns
Type Description
ListWorkstationClustersResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Unreachable resources.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Unreachable resources.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable resources.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

getWorkstationClusters(int index)

public WorkstationCluster getWorkstationClusters(int index)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
WorkstationCluster

getWorkstationClustersBuilder(int index)

public WorkstationCluster.Builder getWorkstationClustersBuilder(int index)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
WorkstationCluster.Builder

getWorkstationClustersBuilderList()

public List<WorkstationCluster.Builder> getWorkstationClustersBuilderList()

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Returns
Type Description
List<Builder>

getWorkstationClustersCount()

public int getWorkstationClustersCount()

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Returns
Type Description
int

getWorkstationClustersList()

public List<WorkstationCluster> getWorkstationClustersList()

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Returns
Type Description
List<WorkstationCluster>

getWorkstationClustersOrBuilder(int index)

public WorkstationClusterOrBuilder getWorkstationClustersOrBuilder(int index)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
WorkstationClusterOrBuilder

getWorkstationClustersOrBuilderList()

public List<? extends WorkstationClusterOrBuilder> getWorkstationClustersOrBuilderList()

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Returns
Type Description
List<? extends com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListWorkstationClustersResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeWorkstationClusters(int index)

public ListWorkstationClustersResponse.Builder removeWorkstationClusters(int index)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameter
Name Description
index int
Returns
Type Description
ListWorkstationClustersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListWorkstationClustersResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListWorkstationClustersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListWorkstationClustersResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListWorkstationClustersResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListWorkstationClustersResponse.Builder setUnreachable(int index, String value)

Unreachable resources.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListWorkstationClustersResponse.Builder

This builder for chaining.

setWorkstationClusters(int index, WorkstationCluster value)

public ListWorkstationClustersResponse.Builder setWorkstationClusters(int index, WorkstationCluster value)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameters
Name Description
index int
value WorkstationCluster
Returns
Type Description
ListWorkstationClustersResponse.Builder

setWorkstationClusters(int index, WorkstationCluster.Builder builderForValue)

public ListWorkstationClustersResponse.Builder setWorkstationClusters(int index, WorkstationCluster.Builder builderForValue)

The requested workstation clusters.

repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1;

Parameters
Name Description
index int
builderForValue WorkstationCluster.Builder
Returns
Type Description
ListWorkstationClustersResponse.Builder