Class ListWorkstationClustersResponse.Builder (0.15.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
TypeDescription
Descriptor

Methods

addAllUnreachable(Iterable<String> values)

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

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.workstations.v1.WorkstationCluster>
Returns
TypeDescription
ListWorkstationClustersResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListWorkstationClustersResponse.Builder addUnreachable(String value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListWorkstationClustersResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListWorkstationClustersResponse.Builder addUnreachableBytes(ByteString value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
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
NameDescription
valueWorkstationCluster
Returns
TypeDescription
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
NameDescription
builderForValueWorkstationCluster.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueWorkstationCluster
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkstationCluster.Builder
Returns
TypeDescription
ListWorkstationClustersResponse.Builder

addWorkstationClustersBuilder()

public WorkstationCluster.Builder addWorkstationClustersBuilder()

The requested workstation clusters.

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

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

build()

public ListWorkstationClustersResponse build()
Returns
TypeDescription
ListWorkstationClustersResponse

buildPartial()

public ListWorkstationClustersResponse buildPartial()
Returns
TypeDescription
ListWorkstationClustersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListWorkstationClustersResponse.Builder clearUnreachable()

Unreachable resources.

repeated string unreachable = 3;

Returns
TypeDescription
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
TypeDescription
ListWorkstationClustersResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListWorkstationClustersResponse getDefaultInstanceForType()
Returns
TypeDescription
ListWorkstationClustersResponse

getDescriptorForType()

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

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Unreachable resources.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unreachable resources.

repeated string unreachable = 3;

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

getWorkstationClustersBuilder(int index)

public WorkstationCluster.Builder getWorkstationClustersBuilder(int index)

The requested workstation clusters.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkstationCluster.Builder

getWorkstationClustersBuilderList()

public List<WorkstationCluster.Builder> getWorkstationClustersBuilderList()

The requested workstation clusters.

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

Returns
TypeDescription
List<Builder>

getWorkstationClustersCount()

public int getWorkstationClustersCount()

The requested workstation clusters.

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

Returns
TypeDescription
int

getWorkstationClustersList()

public List<WorkstationCluster> getWorkstationClustersList()

The requested workstation clusters.

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

Returns
TypeDescription
List<WorkstationCluster>

getWorkstationClustersOrBuilder(int index)

public WorkstationClusterOrBuilder getWorkstationClustersOrBuilder(int index)

The requested workstation clusters.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkstationClusterOrBuilder

getWorkstationClustersOrBuilderList()

public List<? extends WorkstationClusterOrBuilder> getWorkstationClustersOrBuilderList()

The requested workstation clusters.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListWorkstationClustersResponse other)

public ListWorkstationClustersResponse.Builder mergeFrom(ListWorkstationClustersResponse other)
Parameter
NameDescription
otherListWorkstationClustersResponse
Returns
TypeDescription
ListWorkstationClustersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListWorkstationClustersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListWorkstationClustersResponse.Builder
Overrides

setUnreachable(int index, String value)

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

Unreachable resources.

repeated string unreachable = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
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
NameDescription
indexint
valueWorkstationCluster
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkstationCluster.Builder
Returns
TypeDescription
ListWorkstationClustersResponse.Builder