Class ListRuntimesResponse.Builder (1.4.0)

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

Response for listing Managed Notebook Runtimes.

Protobuf type google.cloud.notebooks.v1.ListRuntimesResponse

Static Methods

getDescriptor()

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

Methods

addAllRuntimes(Iterable<? extends Runtime> values)

public ListRuntimesResponse.Builder addAllRuntimes(Iterable<? extends Runtime> values)

A list of returned Runtimes.

repeated .google.cloud.notebooks.v1.Runtime runtimes = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.notebooks.v1.Runtime>
Returns
TypeDescription
ListRuntimesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

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

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListRuntimesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRuntimes(Runtime value)

public ListRuntimesResponse.Builder addRuntimes(Runtime value)

A list of returned Runtimes.

repeated .google.cloud.notebooks.v1.Runtime runtimes = 1;

Parameter
NameDescription
valueRuntime
Returns
TypeDescription
ListRuntimesResponse.Builder

addRuntimes(Runtime.Builder builderForValue)

public ListRuntimesResponse.Builder addRuntimes(Runtime.Builder builderForValue)

A list of returned Runtimes.

repeated .google.cloud.notebooks.v1.Runtime runtimes = 1;

Parameter
NameDescription
builderForValueRuntime.Builder
Returns
TypeDescription
ListRuntimesResponse.Builder

addRuntimes(int index, Runtime value)

public ListRuntimesResponse.Builder addRuntimes(int index, Runtime value)

A list of returned Runtimes.

repeated .google.cloud.notebooks.v1.Runtime runtimes = 1;

Parameters
NameDescription
indexint
valueRuntime
Returns
TypeDescription
ListRuntimesResponse.Builder

addRuntimes(int index, Runtime.Builder builderForValue)

public ListRuntimesResponse.Builder addRuntimes(int index, Runtime.Builder builderForValue)

A list of returned Runtimes.

repeated .google.cloud.notebooks.v1.Runtime runtimes = 1;

Parameters
NameDescription
indexint
builderForValueRuntime.Builder
Returns
TypeDescription
ListRuntimesResponse.Builder

addRuntimesBuilder()

public Runtime.Builder addRuntimesBuilder()

A list of returned Runtimes.

repeated .google.cloud.notebooks.v1.Runtime runtimes = 1;

Returns
TypeDescription
Runtime.Builder

addRuntimesBuilder(int index)

public Runtime.Builder addRuntimesBuilder(int index)

A list of returned Runtimes.

repeated .google.cloud.notebooks.v1.Runtime runtimes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Runtime.Builder

addUnreachable(String value)

public ListRuntimesResponse.Builder addUnreachable(String value)

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

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListRuntimesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListRuntimesResponse.Builder addUnreachableBytes(ByteString value)

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

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListRuntimesResponse.Builder

This builder for chaining.

build()

public ListRuntimesResponse build()
Returns
TypeDescription
ListRuntimesResponse

buildPartial()

public ListRuntimesResponse buildPartial()
Returns
TypeDescription
ListRuntimesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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