Class ListWorkstationsResponse.Builder (0.25.0)

public static final class ListWorkstationsResponse.Builder extends GeneratedMessageV3.Builder<ListWorkstationsResponse.Builder> implements ListWorkstationsResponseOrBuilder

Response message for ListWorkstations.

Protobuf type google.cloud.workstations.v1beta.ListWorkstationsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllUnreachable(Iterable<String> values)

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

Optional. Unreachable resources.

repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListWorkstationsResponse.Builder

This builder for chaining.

addAllWorkstations(Iterable<? extends Workstation> values)

public ListWorkstationsResponse.Builder addAllWorkstations(Iterable<? extends Workstation> values)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.workstations.v1beta.Workstation>
Returns
TypeDescription
ListWorkstationsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListWorkstationsResponse.Builder addUnreachable(String value)

Optional. Unreachable resources.

repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListWorkstationsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListWorkstationsResponse.Builder addUnreachableBytes(ByteString value)

Optional. Unreachable resources.

repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListWorkstationsResponse.Builder

This builder for chaining.

addWorkstations(Workstation value)

public ListWorkstationsResponse.Builder addWorkstations(Workstation value)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameter
NameDescription
valueWorkstation
Returns
TypeDescription
ListWorkstationsResponse.Builder

addWorkstations(Workstation.Builder builderForValue)

public ListWorkstationsResponse.Builder addWorkstations(Workstation.Builder builderForValue)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameter
NameDescription
builderForValueWorkstation.Builder
Returns
TypeDescription
ListWorkstationsResponse.Builder

addWorkstations(int index, Workstation value)

public ListWorkstationsResponse.Builder addWorkstations(int index, Workstation value)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameters
NameDescription
indexint
valueWorkstation
Returns
TypeDescription
ListWorkstationsResponse.Builder

addWorkstations(int index, Workstation.Builder builderForValue)

public ListWorkstationsResponse.Builder addWorkstations(int index, Workstation.Builder builderForValue)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameters
NameDescription
indexint
builderForValueWorkstation.Builder
Returns
TypeDescription
ListWorkstationsResponse.Builder

addWorkstationsBuilder()

public Workstation.Builder addWorkstationsBuilder()

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Returns
TypeDescription
Workstation.Builder

addWorkstationsBuilder(int index)

public Workstation.Builder addWorkstationsBuilder(int index)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Workstation.Builder

build()

public ListWorkstationsResponse build()
Returns
TypeDescription
ListWorkstationsResponse

buildPartial()

public ListWorkstationsResponse buildPartial()
Returns
TypeDescription
ListWorkstationsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListWorkstationsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListWorkstationsResponse.Builder
Overrides

clearNextPageToken()

public ListWorkstationsResponse.Builder clearNextPageToken()

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

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListWorkstationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListWorkstationsResponse.Builder clearUnreachable()

Optional. Unreachable resources.

repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ListWorkstationsResponse.Builder

This builder for chaining.

clearWorkstations()

public ListWorkstationsResponse.Builder clearWorkstations()

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Returns
TypeDescription
ListWorkstationsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListWorkstationsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListWorkstationsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Optional. Unreachable resources.

repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Unreachable resources.

repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. Unreachable resources.

repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Optional. Unreachable resources.

repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

getWorkstations(int index)

public Workstation getWorkstations(int index)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Workstation

getWorkstationsBuilder(int index)

public Workstation.Builder getWorkstationsBuilder(int index)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Workstation.Builder

getWorkstationsBuilderList()

public List<Workstation.Builder> getWorkstationsBuilderList()

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Returns
TypeDescription
List<Builder>

getWorkstationsCount()

public int getWorkstationsCount()

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Returns
TypeDescription
int

getWorkstationsList()

public List<Workstation> getWorkstationsList()

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Returns
TypeDescription
List<Workstation>

getWorkstationsOrBuilder(int index)

public WorkstationOrBuilder getWorkstationsOrBuilder(int index)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkstationOrBuilder

getWorkstationsOrBuilderList()

public List<? extends WorkstationOrBuilder> getWorkstationsOrBuilderList()

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Returns
TypeDescription
List<? extends com.google.cloud.workstations.v1beta.WorkstationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListWorkstationsResponse other)

public ListWorkstationsResponse.Builder mergeFrom(ListWorkstationsResponse other)
Parameter
NameDescription
otherListWorkstationsResponse
Returns
TypeDescription
ListWorkstationsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListWorkstationsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListWorkstationsResponse.Builder
Overrides

removeWorkstations(int index)

public ListWorkstationsResponse.Builder removeWorkstations(int index)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListWorkstationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListWorkstationsResponse.Builder setNextPageToken(String value)

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

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListWorkstationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListWorkstationsResponse.Builder setNextPageTokenBytes(ByteString value)

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

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListWorkstationsResponse.Builder

This builder for chaining.

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

public ListWorkstationsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListWorkstationsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Optional. Unreachable resources.

repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListWorkstationsResponse.Builder

This builder for chaining.

setWorkstations(int index, Workstation value)

public ListWorkstationsResponse.Builder setWorkstations(int index, Workstation value)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameters
NameDescription
indexint
valueWorkstation
Returns
TypeDescription
ListWorkstationsResponse.Builder

setWorkstations(int index, Workstation.Builder builderForValue)

public ListWorkstationsResponse.Builder setWorkstations(int index, Workstation.Builder builderForValue)

The requested workstations.

repeated .google.cloud.workstations.v1beta.Workstation workstations = 1;

Parameters
NameDescription
indexint
builderForValueWorkstation.Builder
Returns
TypeDescription
ListWorkstationsResponse.Builder