Class ListRuntimesResponse.Builder (1.43.0)

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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.notebooks.v1.Runtime>
Returns
Type Description
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
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListRuntimesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListRuntimesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Runtime
Returns
Type Description
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
Name Description
builderForValue Runtime.Builder
Returns
Type Description
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
Name Description
index int
value Runtime
Returns
Type Description
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
Name Description
index int
builderForValue Runtime.Builder
Returns
Type Description
ListRuntimesResponse.Builder

addRuntimesBuilder()

public Runtime.Builder addRuntimesBuilder()

A list of returned Runtimes.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value String

The unreachable to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListRuntimesResponse.Builder

This builder for chaining.

build()

public ListRuntimesResponse build()
Returns
Type Description
ListRuntimesResponse

buildPartial()

public ListRuntimesResponse buildPartial()
Returns
Type Description
ListRuntimesResponse

clear()

public ListRuntimesResponse.Builder clear()
Returns
Type Description
ListRuntimesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListRuntimesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListRuntimesResponse.Builder
Overrides

clearNextPageToken()

public ListRuntimesResponse.Builder clearNextPageToken()

Page token that can be used to continue listing from the last result in the next list call.

string next_page_token = 2;

Returns
Type Description
ListRuntimesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListRuntimesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListRuntimesResponse.Builder
Overrides

clearRuntimes()

public ListRuntimesResponse.Builder clearRuntimes()

A list of returned Runtimes.

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

Returns
Type Description
ListRuntimesResponse.Builder

clearUnreachable()

public ListRuntimesResponse.Builder clearUnreachable()

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;

Returns
Type Description
ListRuntimesResponse.Builder

This builder for chaining.

clone()

public ListRuntimesResponse.Builder clone()
Returns
Type Description
ListRuntimesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListRuntimesResponse getDefaultInstanceForType()
Returns
Type Description
ListRuntimesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Page token that can be used to continue listing from the last result in the next list call.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Page token that can be used to continue listing from the last result in the next list call.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getRuntimes(int index)

public Runtime getRuntimes(int index)

A list of returned Runtimes.

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

Parameter
Name Description
index int
Returns
Type Description
Runtime

getRuntimesBuilder(int index)

public Runtime.Builder getRuntimesBuilder(int index)

A list of returned Runtimes.

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

Parameter
Name Description
index int
Returns
Type Description
Runtime.Builder

getRuntimesBuilderList()

public List<Runtime.Builder> getRuntimesBuilderList()

A list of returned Runtimes.

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

Returns
Type Description
List<Builder>

getRuntimesCount()

public int getRuntimesCount()

A list of returned Runtimes.

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

Returns
Type Description
int

getRuntimesList()

public List<Runtime> getRuntimesList()

A list of returned Runtimes.

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

Returns
Type Description
List<Runtime>

getRuntimesOrBuilder(int index)

public RuntimeOrBuilder getRuntimesOrBuilder(int index)

A list of returned Runtimes.

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

Parameter
Name Description
index int
Returns
Type Description
RuntimeOrBuilder

getRuntimesOrBuilderList()

public List<? extends RuntimeOrBuilder> getRuntimesOrBuilderList()

A list of returned Runtimes.

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

Returns
Type Description
List<? extends com.google.cloud.notebooks.v1.RuntimeOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

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
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

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;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

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;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListRuntimesResponse other)

public ListRuntimesResponse.Builder mergeFrom(ListRuntimesResponse other)
Parameter
Name Description
other ListRuntimesResponse
Returns
Type Description
ListRuntimesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListRuntimesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListRuntimesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListRuntimesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListRuntimesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListRuntimesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListRuntimesResponse.Builder
Overrides

removeRuntimes(int index)

public ListRuntimesResponse.Builder removeRuntimes(int index)

A list of returned Runtimes.

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

Parameter
Name Description
index int
Returns
Type Description
ListRuntimesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListRuntimesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListRuntimesResponse.Builder
Overrides

setNextPageToken(String value)

public ListRuntimesResponse.Builder setNextPageToken(String value)

Page token that can be used to continue listing from the last result in the next list call.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListRuntimesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRuntimesResponse.Builder setNextPageTokenBytes(ByteString value)

Page token that can be used to continue listing from the last result in the next list call.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListRuntimesResponse.Builder

This builder for chaining.

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

public ListRuntimesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListRuntimesResponse.Builder
Overrides

setRuntimes(int index, Runtime value)

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

A list of returned Runtimes.

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

Parameters
Name Description
index int
value Runtime
Returns
Type Description
ListRuntimesResponse.Builder

setRuntimes(int index, Runtime.Builder builderForValue)

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

A list of returned Runtimes.

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

Parameters
Name Description
index int
builderForValue Runtime.Builder
Returns
Type Description
ListRuntimesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListRuntimesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListRuntimesResponse.Builder
Overrides

setUnreachable(int index, String value)

public ListRuntimesResponse.Builder setUnreachable(int index, 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;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListRuntimesResponse.Builder

This builder for chaining.