Class VirtualMachine.Builder (1.52.0)

public static final class VirtualMachine.Builder extends GeneratedMessageV3.Builder<VirtualMachine.Builder> implements VirtualMachineOrBuilder

Runtime using Virtual Machine for computing.

Protobuf type google.cloud.notebooks.v1.VirtualMachine

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VirtualMachine build()
Returns
Type Description
VirtualMachine

buildPartial()

public VirtualMachine buildPartial()
Returns
Type Description
VirtualMachine

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceId()

public VirtualMachine.Builder clearInstanceId()

Output only. The unique identifier of the Managed Compute Engine instance.

string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearInstanceName()

public VirtualMachine.Builder clearInstanceName()

Output only. The user-friendly name of the Managed Compute Engine instance.

string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVirtualMachineConfig()

public VirtualMachine.Builder clearVirtualMachineConfig()

Virtual Machine configuration settings.

.google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;

Returns
Type Description
VirtualMachine.Builder

clone()

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

getDefaultInstanceForType()

public VirtualMachine getDefaultInstanceForType()
Returns
Type Description
VirtualMachine

getDescriptorForType()

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

getInstanceId()

public String getInstanceId()

Output only. The unique identifier of the Managed Compute Engine instance.

string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The instanceId.

getInstanceIdBytes()

public ByteString getInstanceIdBytes()

Output only. The unique identifier of the Managed Compute Engine instance.

string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for instanceId.

getInstanceName()

public String getInstanceName()

Output only. The user-friendly name of the Managed Compute Engine instance.

string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The instanceName.

getInstanceNameBytes()

public ByteString getInstanceNameBytes()

Output only. The user-friendly name of the Managed Compute Engine instance.

string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for instanceName.

getVirtualMachineConfig()

public VirtualMachineConfig getVirtualMachineConfig()

Virtual Machine configuration settings.

.google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;

Returns
Type Description
VirtualMachineConfig

The virtualMachineConfig.

getVirtualMachineConfigBuilder()

public VirtualMachineConfig.Builder getVirtualMachineConfigBuilder()

Virtual Machine configuration settings.

.google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;

Returns
Type Description
VirtualMachineConfig.Builder

getVirtualMachineConfigOrBuilder()

public VirtualMachineConfigOrBuilder getVirtualMachineConfigOrBuilder()

Virtual Machine configuration settings.

.google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;

Returns
Type Description
VirtualMachineConfigOrBuilder

hasVirtualMachineConfig()

public boolean hasVirtualMachineConfig()

Virtual Machine configuration settings.

.google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;

Returns
Type Description
boolean

Whether the virtualMachineConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VirtualMachine other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVirtualMachineConfig(VirtualMachineConfig value)

public VirtualMachine.Builder mergeVirtualMachineConfig(VirtualMachineConfig value)

Virtual Machine configuration settings.

.google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;

Parameter
Name Description
value VirtualMachineConfig
Returns
Type Description
VirtualMachine.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceId(String value)

public VirtualMachine.Builder setInstanceId(String value)

Output only. The unique identifier of the Managed Compute Engine instance.

string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The instanceId to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setInstanceIdBytes(ByteString value)

public VirtualMachine.Builder setInstanceIdBytes(ByteString value)

Output only. The unique identifier of the Managed Compute Engine instance.

string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for instanceId to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setInstanceName(String value)

public VirtualMachine.Builder setInstanceName(String value)

Output only. The user-friendly name of the Managed Compute Engine instance.

string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The instanceName to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setInstanceNameBytes(ByteString value)

public VirtualMachine.Builder setInstanceNameBytes(ByteString value)

Output only. The user-friendly name of the Managed Compute Engine instance.

string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for instanceName to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVirtualMachineConfig(VirtualMachineConfig value)

public VirtualMachine.Builder setVirtualMachineConfig(VirtualMachineConfig value)

Virtual Machine configuration settings.

.google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;

Parameter
Name Description
value VirtualMachineConfig
Returns
Type Description
VirtualMachine.Builder

setVirtualMachineConfig(VirtualMachineConfig.Builder builderForValue)

public VirtualMachine.Builder setVirtualMachineConfig(VirtualMachineConfig.Builder builderForValue)

Virtual Machine configuration settings.

.google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;

Parameter
Name Description
builderForValue VirtualMachineConfig.Builder
Returns
Type Description
VirtualMachine.Builder