Class ListRuntimesResponse.Builder (1.0.6)

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

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
TypeDescription
ListRuntimesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRuntimes()

public ListRuntimesResponse.Builder clearRuntimes()

A list of returned Runtimes.

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

Returns
TypeDescription
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
TypeDescription
ListRuntimesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRuntimesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRuntimesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Runtime

getRuntimesBuilder(int index)

public Runtime.Builder getRuntimesBuilder(int index)

A list of returned Runtimes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Runtime.Builder

getRuntimesBuilderList()

public List<Runtime.Builder> getRuntimesBuilderList()

A list of returned Runtimes.

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

Returns
TypeDescription
List<Builder>

getRuntimesCount()

public int getRuntimesCount()

A list of returned Runtimes.

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

Returns
TypeDescription
int

getRuntimesList()

public List<Runtime> getRuntimesList()

A list of returned Runtimes.

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

Returns
TypeDescription
List<Runtime>

getRuntimesOrBuilder(int index)

public RuntimeOrBuilder getRuntimesOrBuilder(int index)

A list of returned Runtimes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RuntimeOrBuilder

getRuntimesOrBuilderList()

public List<? extends RuntimeOrBuilder> getRuntimesOrBuilderList()

A list of returned Runtimes.

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

Returns
TypeDescription
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
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)

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
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListRuntimesResponse other)

public ListRuntimesResponse.Builder mergeFrom(ListRuntimesResponse other)
Parameter
NameDescription
otherListRuntimesResponse
Returns
TypeDescription
ListRuntimesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListRuntimesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListRuntimesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListRuntimesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRuntime
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRuntime.Builder
Returns
TypeDescription
ListRuntimesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListRuntimesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListRuntimesResponse.Builder

This builder for chaining.