Class SwitchRuntimeRequest.Builder

public static final class SwitchRuntimeRequest.Builder extends GeneratedMessageV3.Builder<SwitchRuntimeRequest.Builder> implements SwitchRuntimeRequestOrBuilder

Request for switching a Managed Notebook Runtime.

Protobuf type google.cloud.notebooks.v1.SwitchRuntimeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SwitchRuntimeRequest build()
Returns
TypeDescription
SwitchRuntimeRequest

buildPartial()

public SwitchRuntimeRequest buildPartial()
Returns
TypeDescription
SwitchRuntimeRequest

clear()

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

clearAcceleratorConfig()

public SwitchRuntimeRequest.Builder clearAcceleratorConfig()

accelerator config.

.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;

Returns
TypeDescription
SwitchRuntimeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMachineType()

public SwitchRuntimeRequest.Builder clearMachineType()

machine type.

string machine_type = 2;

Returns
TypeDescription
SwitchRuntimeRequest.Builder

This builder for chaining.

clearName()

public SwitchRuntimeRequest.Builder clearName()

Required. Format: projects/{project_id}/locations/{location}/runtimes/{runtime_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SwitchRuntimeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAcceleratorConfig()

public RuntimeAcceleratorConfig getAcceleratorConfig()

accelerator config.

.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;

Returns
TypeDescription
RuntimeAcceleratorConfig

The acceleratorConfig.

getAcceleratorConfigBuilder()

public RuntimeAcceleratorConfig.Builder getAcceleratorConfigBuilder()

accelerator config.

.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;

Returns
TypeDescription
RuntimeAcceleratorConfig.Builder

getAcceleratorConfigOrBuilder()

public RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder()

accelerator config.

.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;

Returns
TypeDescription
RuntimeAcceleratorConfigOrBuilder

getDefaultInstanceForType()

public SwitchRuntimeRequest getDefaultInstanceForType()
Returns
TypeDescription
SwitchRuntimeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMachineType()

public String getMachineType()

machine type.

string machine_type = 2;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

machine type.

string machine_type = 2;

Returns
TypeDescription
ByteString

The bytes for machineType.

getName()

public String getName()

Required. Format: projects/{project_id}/locations/{location}/runtimes/{runtime_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format: projects/{project_id}/locations/{location}/runtimes/{runtime_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

hasAcceleratorConfig()

public boolean hasAcceleratorConfig()

accelerator config.

.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;

Returns
TypeDescription
boolean

Whether the acceleratorConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAcceleratorConfig(RuntimeAcceleratorConfig value)

public SwitchRuntimeRequest.Builder mergeAcceleratorConfig(RuntimeAcceleratorConfig value)

accelerator config.

.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;

Parameter
NameDescription
valueRuntimeAcceleratorConfig
Returns
TypeDescription
SwitchRuntimeRequest.Builder

mergeFrom(SwitchRuntimeRequest other)

public SwitchRuntimeRequest.Builder mergeFrom(SwitchRuntimeRequest other)
Parameter
NameDescription
otherSwitchRuntimeRequest
Returns
TypeDescription
SwitchRuntimeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAcceleratorConfig(RuntimeAcceleratorConfig value)

public SwitchRuntimeRequest.Builder setAcceleratorConfig(RuntimeAcceleratorConfig value)

accelerator config.

.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;

Parameter
NameDescription
valueRuntimeAcceleratorConfig
Returns
TypeDescription
SwitchRuntimeRequest.Builder

setAcceleratorConfig(RuntimeAcceleratorConfig.Builder builderForValue)

public SwitchRuntimeRequest.Builder setAcceleratorConfig(RuntimeAcceleratorConfig.Builder builderForValue)

accelerator config.

.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3;

Parameter
NameDescription
builderForValueRuntimeAcceleratorConfig.Builder
Returns
TypeDescription
SwitchRuntimeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineType(String value)

public SwitchRuntimeRequest.Builder setMachineType(String value)

machine type.

string machine_type = 2;

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
SwitchRuntimeRequest.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public SwitchRuntimeRequest.Builder setMachineTypeBytes(ByteString value)

machine type.

string machine_type = 2;

Parameter
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
SwitchRuntimeRequest.Builder

This builder for chaining.

setName(String value)

public SwitchRuntimeRequest.Builder setName(String value)

Required. Format: projects/{project_id}/locations/{location}/runtimes/{runtime_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SwitchRuntimeRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SwitchRuntimeRequest.Builder setNameBytes(ByteString value)

Required. Format: projects/{project_id}/locations/{location}/runtimes/{runtime_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SwitchRuntimeRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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