Class SwitchRuntimeRequest (1.39.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
TypeDescription
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REQUEST_ID_FIELD_NUMBER

public static final int REQUEST_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SwitchRuntimeRequest getDefaultInstance()
Returns
TypeDescription
SwitchRuntimeRequest

getDescriptor()

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

newBuilder()

public static SwitchRuntimeRequest.Builder newBuilder()
Returns
TypeDescription
SwitchRuntimeRequest.Builder

newBuilder(SwitchRuntimeRequest prototype)

public static SwitchRuntimeRequest.Builder newBuilder(SwitchRuntimeRequest prototype)
Parameter
NameDescription
prototypeSwitchRuntimeRequest
Returns
TypeDescription
SwitchRuntimeRequest.Builder

parseDelimitedFrom(InputStream input)

public static SwitchRuntimeRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SwitchRuntimeRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SwitchRuntimeRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SwitchRuntimeRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SwitchRuntimeRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SwitchRuntimeRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SwitchRuntimeRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SwitchRuntimeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SwitchRuntimeRequest> parser()
Returns
TypeDescription
Parser<SwitchRuntimeRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAcceleratorConfig()

public RuntimeAcceleratorConfig getAcceleratorConfig()

accelerator config.

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

Returns
TypeDescription
RuntimeAcceleratorConfig

The acceleratorConfig.

getAcceleratorConfigOrBuilder()

public RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder()

accelerator config.

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

Returns
TypeDescription
RuntimeAcceleratorConfigOrBuilder

getDefaultInstanceForType()

public SwitchRuntimeRequest getDefaultInstanceForType()
Returns
TypeDescription
SwitchRuntimeRequest

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.

getParserForType()

public Parser<SwitchRuntimeRequest> getParserForType()
Returns
TypeDescription
Parser<SwitchRuntimeRequest>
Overrides

getRequestId()

public String getRequestId()

Idempotent request UUID.

string request_id = 4;

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Idempotent request UUID.

string request_id = 4;

Returns
TypeDescription
ByteString

The bytes for requestId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasAcceleratorConfig()

public boolean hasAcceleratorConfig()

accelerator config.

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

Returns
TypeDescription
boolean

Whether the acceleratorConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SwitchRuntimeRequest.Builder newBuilderForType()
Returns
TypeDescription
SwitchRuntimeRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SwitchRuntimeRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SwitchRuntimeRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SwitchRuntimeRequest.Builder toBuilder()
Returns
TypeDescription
SwitchRuntimeRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException