Class VirtualMachine.Builder (1.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VirtualMachine build()
Returns
TypeDescription
VirtualMachine

buildPartial()

public VirtualMachine buildPartial()
Returns
TypeDescription
VirtualMachine

clear()

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

clearField(Descriptors.FieldDescriptor field)

public VirtualMachine.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VirtualMachine.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVirtualMachineConfig()

public VirtualMachine.Builder clearVirtualMachineConfig()

Virtual Machine configuration settings.

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

Returns
TypeDescription
VirtualMachine.Builder

clone()

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

getDefaultInstanceForType()

public VirtualMachine getDefaultInstanceForType()
Returns
TypeDescription
VirtualMachine

getDescriptorForType()

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

The bytes for instanceName.

getVirtualMachineConfig()

public VirtualMachineConfig getVirtualMachineConfig()

Virtual Machine configuration settings.

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

Returns
TypeDescription
VirtualMachineConfig

The virtualMachineConfig.

getVirtualMachineConfigBuilder()

public VirtualMachineConfig.Builder getVirtualMachineConfigBuilder()

Virtual Machine configuration settings.

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

Returns
TypeDescription
VirtualMachineConfig.Builder

getVirtualMachineConfigOrBuilder()

public VirtualMachineConfigOrBuilder getVirtualMachineConfigOrBuilder()

Virtual Machine configuration settings.

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

Returns
TypeDescription
VirtualMachineConfigOrBuilder

hasVirtualMachineConfig()

public boolean hasVirtualMachineConfig()

Virtual Machine configuration settings.

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

Returns
TypeDescription
boolean

Whether the virtualMachineConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VirtualMachine other)

public VirtualMachine.Builder mergeFrom(VirtualMachine other)
Parameter
NameDescription
otherVirtualMachine
Returns
TypeDescription
VirtualMachine.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The instanceId to set.

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

The bytes for instanceId to set.

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

The instanceName to set.

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

The bytes for instanceName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VirtualMachine.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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