Class SwitchRuntimeRequest (1.51.0)

public final class SwitchRuntimeRequest extends GeneratedMessageV3 implements SwitchRuntimeRequestOrBuilder

Request for switching a Managed Notebook Runtime.

Protobuf type google.cloud.notebooks.v1.SwitchRuntimeRequest

Static Fields

ACCELERATOR_CONFIG_FIELD_NUMBER

public static final int ACCELERATOR_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

REQUEST_ID_FIELD_NUMBER

public static final int REQUEST_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SwitchRuntimeRequest getDefaultInstance()
Returns
Type Description
SwitchRuntimeRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SwitchRuntimeRequest.Builder newBuilder()
Returns
Type Description
SwitchRuntimeRequest.Builder

newBuilder(SwitchRuntimeRequest prototype)

public static SwitchRuntimeRequest.Builder newBuilder(SwitchRuntimeRequest prototype)
Parameter
Name Description
prototype SwitchRuntimeRequest
Returns
Type Description
SwitchRuntimeRequest.Builder

parseDelimitedFrom(InputStream input)

public static SwitchRuntimeRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SwitchRuntimeRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SwitchRuntimeRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SwitchRuntimeRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SwitchRuntimeRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SwitchRuntimeRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SwitchRuntimeRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SwitchRuntimeRequest> parser()
Returns
Type Description
Parser<SwitchRuntimeRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAcceleratorConfig()

public RuntimeAcceleratorConfig getAcceleratorConfig()

accelerator config.

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

Returns
Type Description
RuntimeAcceleratorConfig

The acceleratorConfig.

getAcceleratorConfigOrBuilder()

public RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder()

accelerator config.

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

Returns
Type Description
RuntimeAcceleratorConfigOrBuilder

getDefaultInstanceForType()

public SwitchRuntimeRequest getDefaultInstanceForType()
Returns
Type Description
SwitchRuntimeRequest

getMachineType()

public String getMachineType()

machine type.

string machine_type = 2;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

machine type.

string machine_type = 2;

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

The bytes for name.

getParserForType()

public Parser<SwitchRuntimeRequest> getParserForType()
Returns
Type Description
Parser<SwitchRuntimeRequest>
Overrides

getRequestId()

public String getRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Idempotent request UUID.

string request_id = 4;

Returns
Type Description
ByteString

The bytes for requestId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAcceleratorConfig()

public boolean hasAcceleratorConfig()

accelerator config.

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

Returns
Type Description
boolean

Whether the acceleratorConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SwitchRuntimeRequest.Builder newBuilderForType()
Returns
Type Description
SwitchRuntimeRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SwitchRuntimeRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SwitchRuntimeRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SwitchRuntimeRequest.Builder toBuilder()
Returns
Type Description
SwitchRuntimeRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException