Class ListInstancesResponse.Builder (1.4.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class ListInstancesResponse.Builder extends GeneratedMessageV3.Builder<ListInstancesResponse.Builder> implements ListInstancesResponseOrBuilder

Response for listing notebook instances.

Protobuf type google.cloud.notebooks.v1beta1.ListInstancesResponse

Static Methods

getDescriptor()

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

Methods

addAllInstances(Iterable<? extends Instance> values)

public ListInstancesResponse.Builder addAllInstances(Iterable<? extends Instance> values)

A list of returned instances.

repeated .google.cloud.notebooks.v1beta1.Instance instances = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.notebooks.v1beta1.Instance>
Returns
TypeDescription
ListInstancesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached. For example, ['us-west1-a', 'us-central1-b']. A ListInstancesResponse will only contain either instances or unreachables,

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListInstancesResponse.Builder

This builder for chaining.

addInstances(Instance value)

public ListInstancesResponse.Builder addInstances(Instance value)

A list of returned instances.

repeated .google.cloud.notebooks.v1beta1.Instance instances = 1;

Parameter
NameDescription
valueInstance
Returns
TypeDescription
ListInstancesResponse.Builder

addInstances(Instance.Builder builderForValue)

public ListInstancesResponse.Builder addInstances(Instance.Builder builderForValue)

A list of returned instances.

repeated .google.cloud.notebooks.v1beta1.Instance instances = 1;

Parameter
NameDescription
builderForValueInstance.Builder
Returns
TypeDescription
ListInstancesResponse.Builder

addInstances(int index, Instance value)

public ListInstancesResponse.Builder addInstances(int index, Instance value)

A list of returned instances.

repeated .google.cloud.notebooks.v1beta1.Instance instances = 1;

Parameters
NameDescription
indexint
valueInstance
Returns
TypeDescription
ListInstancesResponse.Builder

addInstances(int index, Instance.Builder builderForValue)

public ListInstancesResponse.Builder addInstances(int index, Instance.Builder builderForValue)

A list of returned instances.

repeated .google.cloud.notebooks.v1beta1.Instance instances = 1;

Parameters
NameDescription
indexint
builderForValueInstance.Builder
Returns
TypeDescription
ListInstancesResponse.Builder

addInstancesBuilder()

public Instance.Builder addInstancesBuilder()

A list of returned instances.

repeated .google.cloud.notebooks.v1beta1.Instance instances = 1;

Returns
TypeDescription
Instance.Builder

addInstancesBuilder(int index)

public Instance.Builder addInstancesBuilder(int index)

A list of returned instances.

repeated .google.cloud.notebooks.v1beta1.Instance instances = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListInstancesResponse.Builder addUnreachable(String value)

Locations that could not be reached. For example, ['us-west1-a', 'us-central1-b']. A ListInstancesResponse will only contain either instances or unreachables,

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListInstancesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListInstancesResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached. For example, ['us-west1-a', 'us-central1-b']. A ListInstancesResponse will only contain either instances or unreachables,

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListInstancesResponse.Builder

This builder for chaining.

build()

public ListInstancesResponse build()
Returns
TypeDescription
ListInstancesResponse

buildPartial()

public ListInstancesResponse buildPartial()
Returns
TypeDescription
ListInstancesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListInstancesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
field