Class ListUsableWorkstationsResponse.Builder (0.1.0)

public static final class ListUsableWorkstationsResponse.Builder extends GeneratedMessageV3.Builder<ListUsableWorkstationsResponse.Builder> implements ListUsableWorkstationsResponseOrBuilder

Response message for ListUsableWorkstations.

Protobuf type google.cloud.workstations.v1beta.ListUsableWorkstationsResponse

Static Methods

getDescriptor()

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

Methods

addAllUnreachable(Iterable<String> values)

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

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

This builder for chaining.

addAllWorkstations(Iterable<? extends Workstation> values)

public ListUsableWorkstationsResponse.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
ListUsableWorkstationsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListUsableWorkstationsResponse.Builder addUnreachable(String value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListUsableWorkstationsResponse.Builder addUnreachableBytes(ByteString value)

Unreachable resources.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

This builder for chaining.

addWorkstations(Workstation value)

public ListUsableWorkstationsResponse.Builder addWorkstations(Workstation value)

The requested workstations.

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

Parameter
NameDescription
valueWorkstation
Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

addWorkstations(Workstation.Builder builderForValue)

public ListUsableWorkstationsResponse.Builder addWorkstations(Workstation.Builder builderForValue)

The requested workstations.

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

Parameter
NameDescription
builderForValueWorkstation.Builder
Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

addWorkstations(int index, Workstation value)

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

The requested workstations.

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

Parameters
NameDescription
indexint
valueWorkstation
Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

addWorkstations(int index, Workstation.Builder builderForValue)

public ListUsableWorkstationsResponse.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
ListUsableWorkstationsResponse.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 ListUsableWorkstationsResponse build()
Returns
TypeDescription
ListUsableWorkstationsResponse

buildPartial()

public ListUsableWorkstationsResponse buildPartial()
Returns
TypeDescription
ListUsableWorkstationsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListUsableWorkstationsResponse.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
ListUsableWorkstationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListUsableWorkstationsResponse.Builder clearUnreachable()

Unreachable resources.

repeated string unreachable = 3;

Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

This builder for chaining.

clearWorkstations()

public ListUsableWorkstationsResponse.Builder clearWorkstations()

The requested workstations.

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

Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListUsableWorkstationsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListUsableWorkstationsResponse

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.

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

public ListUsableWorkstationsResponse.Builder mergeFrom(ListUsableWorkstationsResponse other)
Parameter
NameDescription
otherListUsableWorkstationsResponse
Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeWorkstations(int index)

public ListUsableWorkstationsResponse.Builder removeWorkstations(int index)

The requested workstations.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListUsableWorkstationsResponse.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
ListUsableWorkstationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListUsableWorkstationsResponse.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
ListUsableWorkstationsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListUsableWorkstationsResponse.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
ListUsableWorkstationsResponse.Builder

This builder for chaining.

setWorkstations(int index, Workstation value)

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

The requested workstations.

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

Parameters
NameDescription
indexint
valueWorkstation
Returns
TypeDescription
ListUsableWorkstationsResponse.Builder

setWorkstations(int index, Workstation.Builder builderForValue)

public ListUsableWorkstationsResponse.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
ListUsableWorkstationsResponse.Builder