Class GceSetup.Builder (1.28.0)

public static final class GceSetup.Builder extends GeneratedMessageV3.Builder<GceSetup.Builder> implements GceSetupOrBuilder

The definition of how to configure a VM instance outside of Resources and Identity.

Protobuf type google.cloud.notebooks.v2.GceSetup

Implements

GceSetupOrBuilder

Static Methods

getDescriptor()

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

Methods

addAcceleratorConfigs(AcceleratorConfig value)

public GceSetup.Builder addAcceleratorConfigs(AcceleratorConfig value)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAcceleratorConfig
Returns
TypeDescription
GceSetup.Builder

addAcceleratorConfigs(AcceleratorConfig.Builder builderForValue)

public GceSetup.Builder addAcceleratorConfigs(AcceleratorConfig.Builder builderForValue)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
GceSetup.Builder

addAcceleratorConfigs(int index, AcceleratorConfig value)

public GceSetup.Builder addAcceleratorConfigs(int index, AcceleratorConfig value)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
GceSetup.Builder

addAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)

public GceSetup.Builder addAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
GceSetup.Builder

addAcceleratorConfigsBuilder()

public AcceleratorConfig.Builder addAcceleratorConfigsBuilder()

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AcceleratorConfig.Builder

addAcceleratorConfigsBuilder(int index)

public AcceleratorConfig.Builder addAcceleratorConfigsBuilder(int index)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

addAllAcceleratorConfigs(Iterable<? extends AcceleratorConfig> values)

public GceSetup.Builder addAllAcceleratorConfigs(Iterable<? extends AcceleratorConfig> values)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.notebooks.v2.AcceleratorConfig>
Returns
TypeDescription
GceSetup.Builder

addAllDataDisks(Iterable<? extends DataDisk> values)

public GceSetup.Builder addAllDataDisks(Iterable<? extends DataDisk> values)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.notebooks.v2.DataDisk>
Returns
TypeDescription
GceSetup.Builder

addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)

public GceSetup.Builder addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.notebooks.v2.NetworkInterface>
Returns
TypeDescription
GceSetup.Builder

addAllServiceAccounts(Iterable<? extends ServiceAccount> values)

public GceSetup.Builder addAllServiceAccounts(Iterable<? extends ServiceAccount> values)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.notebooks.v2.ServiceAccount>
Returns
TypeDescription
GceSetup.Builder

addAllTags(Iterable<String> values)

public GceSetup.Builder addAllTags(Iterable<String> values)

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The tags to add.

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

addDataDisks(DataDisk value)

public GceSetup.Builder addDataDisks(DataDisk value)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataDisk
Returns
TypeDescription
GceSetup.Builder

addDataDisks(DataDisk.Builder builderForValue)

public GceSetup.Builder addDataDisks(DataDisk.Builder builderForValue)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueDataDisk.Builder
Returns
TypeDescription
GceSetup.Builder

addDataDisks(int index, DataDisk value)

public GceSetup.Builder addDataDisks(int index, DataDisk value)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueDataDisk
Returns
TypeDescription
GceSetup.Builder

addDataDisks(int index, DataDisk.Builder builderForValue)

public GceSetup.Builder addDataDisks(int index, DataDisk.Builder builderForValue)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueDataDisk.Builder
Returns
TypeDescription
GceSetup.Builder

addDataDisksBuilder()

public DataDisk.Builder addDataDisksBuilder()

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataDisk.Builder

addDataDisksBuilder(int index)

public DataDisk.Builder addDataDisksBuilder(int index)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DataDisk.Builder

addNetworkInterfaces(NetworkInterface value)

public GceSetup.Builder addNetworkInterfaces(NetworkInterface value)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueNetworkInterface
Returns
TypeDescription
GceSetup.Builder

addNetworkInterfaces(NetworkInterface.Builder builderForValue)

public GceSetup.Builder addNetworkInterfaces(NetworkInterface.Builder builderForValue)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueNetworkInterface.Builder
Returns
TypeDescription
GceSetup.Builder

addNetworkInterfaces(int index, NetworkInterface value)

public GceSetup.Builder addNetworkInterfaces(int index, NetworkInterface value)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueNetworkInterface
Returns
TypeDescription
GceSetup.Builder

addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

public GceSetup.Builder addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueNetworkInterface.Builder
Returns
TypeDescription
GceSetup.Builder

addNetworkInterfacesBuilder()

public NetworkInterface.Builder addNetworkInterfacesBuilder()

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
NetworkInterface.Builder

addNetworkInterfacesBuilder(int index)

public NetworkInterface.Builder addNetworkInterfacesBuilder(int index)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceAccounts(ServiceAccount value)

public GceSetup.Builder addServiceAccounts(ServiceAccount value)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueServiceAccount
Returns
TypeDescription
GceSetup.Builder

addServiceAccounts(ServiceAccount.Builder builderForValue)

public GceSetup.Builder addServiceAccounts(ServiceAccount.Builder builderForValue)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueServiceAccount.Builder
Returns
TypeDescription
GceSetup.Builder

addServiceAccounts(int index, ServiceAccount value)

public GceSetup.Builder addServiceAccounts(int index, ServiceAccount value)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueServiceAccount
Returns
TypeDescription
GceSetup.Builder

addServiceAccounts(int index, ServiceAccount.Builder builderForValue)

public GceSetup.Builder addServiceAccounts(int index, ServiceAccount.Builder builderForValue)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueServiceAccount.Builder
Returns
TypeDescription
GceSetup.Builder

addServiceAccountsBuilder()

public ServiceAccount.Builder addServiceAccountsBuilder()

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ServiceAccount.Builder

addServiceAccountsBuilder(int index)

public ServiceAccount.Builder addServiceAccountsBuilder(int index)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAccount.Builder

addTags(String value)

public GceSetup.Builder addTags(String value)

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The tags to add.

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public GceSetup.Builder addTagsBytes(ByteString value)

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the tags to add.

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

build()

public GceSetup build()
Returns
TypeDescription
GceSetup

buildPartial()

public GceSetup buildPartial()
Returns
TypeDescription
GceSetup

clear()

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

clearAcceleratorConfigs()

public GceSetup.Builder clearAcceleratorConfigs()

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

clearBootDisk()

public GceSetup.Builder clearBootDisk()

Optional. The boot disk for the VM.

.google.cloud.notebooks.v2.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

clearContainerImage()

public GceSetup.Builder clearContainerImage()

Optional. Use a container image to start the notebook instance.

.google.cloud.notebooks.v2.ContainerImage container_image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

clearDataDisks()

public GceSetup.Builder clearDataDisks()

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

clearDisablePublicIp()

public GceSetup.Builder clearDisablePublicIp()

Optional. If true, no external IP will be assigned to this VM instance.

bool disable_public_ip = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

clearEnableIpForwarding()

public GceSetup.Builder clearEnableIpForwarding()

Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward

bool enable_ip_forwarding = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGpuDriverConfig()

public GceSetup.Builder clearGpuDriverConfig()

Optional. Configuration for GPU drivers.

.google.cloud.notebooks.v2.GPUDriverConfig gpu_driver_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

clearImage()

public GceSetup.Builder clearImage()
Returns
TypeDescription
GceSetup.Builder

clearMachineType()

public GceSetup.Builder clearMachineType()

Optional. The machine type of the VM instance. https://cloud.google.com/compute/docs/machine-resource

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

clearMetadata()

public GceSetup.Builder clearMetadata()
Returns
TypeDescription
GceSetup.Builder

clearNetworkInterfaces()

public GceSetup.Builder clearNetworkInterfaces()

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAccounts()

public GceSetup.Builder clearServiceAccounts()

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

clearShieldedInstanceConfig()

public GceSetup.Builder clearShieldedInstanceConfig()

Optional. Shielded VM configuration. Images using supported Shielded VM features.

.google.cloud.notebooks.v2.ShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

clearTags()

public GceSetup.Builder clearTags()

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

clearVmImage()

public GceSetup.Builder clearVmImage()

Optional. Use a Compute Engine VM image to start the notebook instance.

.google.cloud.notebooks.v2.VmImage vm_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GceSetup.Builder

clone()

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

containsMetadata(String key)

public boolean containsMetadata(String key)

Optional. Custom metadata to apply to this instance.

map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAcceleratorConfigs(int index)

public AcceleratorConfig getAcceleratorConfigs(int index)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig

getAcceleratorConfigsBuilder(int index)

public AcceleratorConfig.Builder getAcceleratorConfigsBuilder(int index)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

getAcceleratorConfigsBuilderList()

public List<AcceleratorConfig.Builder> getAcceleratorConfigsBuilderList()

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getAcceleratorConfigsCount()

public int getAcceleratorConfigsCount()

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getAcceleratorConfigsList()

public List<AcceleratorConfig> getAcceleratorConfigsList()

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<AcceleratorConfig>

getAcceleratorConfigsOrBuilder(int index)

public AcceleratorConfigOrBuilder getAcceleratorConfigsOrBuilder(int index)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfigOrBuilder

getAcceleratorConfigsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getAcceleratorConfigsOrBuilderList()

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.notebooks.v2.AcceleratorConfigOrBuilder>

getBootDisk()

public BootDisk getBootDisk()

Optional. The boot disk for the VM.

.google.cloud.notebooks.v2.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BootDisk

The bootDisk.

getBootDiskBuilder()

public BootDisk.Builder getBootDiskBuilder()

Optional. The boot disk for the VM.

.google.cloud.notebooks.v2.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BootDisk.Builder

getBootDiskOrBuilder()

public BootDiskOrBuilder getBootDiskOrBuilder()

Optional. The boot disk for the VM.

.google.cloud.notebooks.v2.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BootDiskOrBuilder

getContainerImage()

public ContainerImage getContainerImage()

Optional. Use a container image to start the notebook instance.

.google.cloud.notebooks.v2.ContainerImage container_image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ContainerImage

The containerImage.

getContainerImageBuilder()

public ContainerImage.Builder getContainerImageBuilder()

Optional. Use a container image to start the notebook instance.

.google.cloud.notebooks.v2.ContainerImage container_image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ContainerImage.Builder

getContainerImageOrBuilder()

public ContainerImageOrBuilder getContainerImageOrBuilder()

Optional. Use a container image to start the notebook instance.

.google.cloud.notebooks.v2.ContainerImage container_image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ContainerImageOrBuilder

getDataDisks(int index)

public DataDisk getDataDisks(int index)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DataDisk

getDataDisksBuilder(int index)

public DataDisk.Builder getDataDisksBuilder(int index)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DataDisk.Builder

getDataDisksBuilderList()

public List<DataDisk.Builder> getDataDisksBuilderList()

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getDataDisksCount()

public int getDataDisksCount()

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getDataDisksList()

public List<DataDisk> getDataDisksList()

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<DataDisk>

getDataDisksOrBuilder(int index)

public DataDiskOrBuilder getDataDisksOrBuilder(int index)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
DataDiskOrBuilder

getDataDisksOrBuilderList()

public List<? extends DataDiskOrBuilder> getDataDisksOrBuilderList()

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.notebooks.v2.DataDiskOrBuilder>

getDefaultInstanceForType()

public GceSetup getDefaultInstanceForType()
Returns
TypeDescription
GceSetup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisablePublicIp()

public boolean getDisablePublicIp()

Optional. If true, no external IP will be assigned to this VM instance.

bool disable_public_ip = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The disablePublicIp.

getEnableIpForwarding()

public boolean getEnableIpForwarding()

Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward

bool enable_ip_forwarding = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The enableIpForwarding.

getGpuDriverConfig()

public GPUDriverConfig getGpuDriverConfig()

Optional. Configuration for GPU drivers.

.google.cloud.notebooks.v2.GPUDriverConfig gpu_driver_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GPUDriverConfig

The gpuDriverConfig.

getGpuDriverConfigBuilder()

public GPUDriverConfig.Builder getGpuDriverConfigBuilder()

Optional. Configuration for GPU drivers.

.google.cloud.notebooks.v2.GPUDriverConfig gpu_driver_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GPUDriverConfig.Builder

getGpuDriverConfigOrBuilder()

public GPUDriverConfigOrBuilder getGpuDriverConfigOrBuilder()

Optional. Configuration for GPU drivers.

.google.cloud.notebooks.v2.GPUDriverConfig gpu_driver_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GPUDriverConfigOrBuilder

getImageCase()

public GceSetup.ImageCase getImageCase()
Returns
TypeDescription
GceSetup.ImageCase

getMachineType()

public String getMachineType()

Optional. The machine type of the VM instance. https://cloud.google.com/compute/docs/machine-resource

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Optional. The machine type of the VM instance. https://cloud.google.com/compute/docs/machine-resource

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for machineType.

getMetadata()

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

public int getMetadataCount()

Optional. Custom metadata to apply to this instance.

map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getMetadataMap()

public Map<String,String> getMetadataMap()

Optional. Custom metadata to apply to this instance.

map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public String getMetadataOrDefault(String key, String defaultValue)

Optional. Custom metadata to apply to this instance.

map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

Optional. Custom metadata to apply to this instance.

map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableMetadata()

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getNetworkInterfaces(int index)

public NetworkInterface getNetworkInterfaces(int index)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkInterface

getNetworkInterfacesBuilder(int index)

public NetworkInterface.Builder getNetworkInterfacesBuilder(int index)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkInterface.Builder

getNetworkInterfacesBuilderList()

public List<NetworkInterface.Builder> getNetworkInterfacesBuilderList()

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getNetworkInterfacesCount()

public int getNetworkInterfacesCount()

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getNetworkInterfacesList()

public List<NetworkInterface> getNetworkInterfacesList()

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

public NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.notebooks.v2.NetworkInterfaceOrBuilder>

getServiceAccounts(int index)

public ServiceAccount getServiceAccounts(int index)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAccount

getServiceAccountsBuilder(int index)

public ServiceAccount.Builder getServiceAccountsBuilder(int index)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAccount.Builder

getServiceAccountsBuilderList()

public List<ServiceAccount.Builder> getServiceAccountsBuilderList()

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getServiceAccountsCount()

public int getServiceAccountsCount()

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getServiceAccountsList()

public List<ServiceAccount> getServiceAccountsList()

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ServiceAccount>

getServiceAccountsOrBuilder(int index)

public ServiceAccountOrBuilder getServiceAccountsOrBuilder(int index)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAccountOrBuilder

getServiceAccountsOrBuilderList()

public List<? extends ServiceAccountOrBuilder> getServiceAccountsOrBuilderList()

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.notebooks.v2.ServiceAccountOrBuilder>

getShieldedInstanceConfig()

public ShieldedInstanceConfig getShieldedInstanceConfig()

Optional. Shielded VM configuration. Images using supported Shielded VM features.

.google.cloud.notebooks.v2.ShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ShieldedInstanceConfig

The shieldedInstanceConfig.

getShieldedInstanceConfigBuilder()

public ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder()

Optional. Shielded VM configuration. Images using supported Shielded VM features.

.google.cloud.notebooks.v2.ShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ShieldedInstanceConfig.Builder

getShieldedInstanceConfigOrBuilder()

public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()

Optional. Shielded VM configuration. Images using supported Shielded VM features.

.google.cloud.notebooks.v2.ShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ShieldedInstanceConfigOrBuilder

getTags(int index)

public String getTags(int index)

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the tags.

getVmImage()

public VmImage getVmImage()

Optional. Use a Compute Engine VM image to start the notebook instance.

.google.cloud.notebooks.v2.VmImage vm_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
VmImage

The vmImage.

getVmImageBuilder()

public VmImage.Builder getVmImageBuilder()

Optional. Use a Compute Engine VM image to start the notebook instance.

.google.cloud.notebooks.v2.VmImage vm_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
VmImage.Builder

getVmImageOrBuilder()

public VmImageOrBuilder getVmImageOrBuilder()

Optional. Use a Compute Engine VM image to start the notebook instance.

.google.cloud.notebooks.v2.VmImage vm_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
VmImageOrBuilder

hasBootDisk()

public boolean hasBootDisk()

Optional. The boot disk for the VM.

.google.cloud.notebooks.v2.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the bootDisk field is set.

hasContainerImage()

public boolean hasContainerImage()

Optional. Use a container image to start the notebook instance.

.google.cloud.notebooks.v2.ContainerImage container_image = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the containerImage field is set.

hasGpuDriverConfig()

public boolean hasGpuDriverConfig()

Optional. Configuration for GPU drivers.

.google.cloud.notebooks.v2.GPUDriverConfig gpu_driver_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the gpuDriverConfig field is set.

hasShieldedInstanceConfig()

public boolean hasShieldedInstanceConfig()

Optional. Shielded VM configuration. Images using supported Shielded VM features.

.google.cloud.notebooks.v2.ShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the shieldedInstanceConfig field is set.

hasVmImage()

public boolean hasVmImage()

Optional. Use a Compute Engine VM image to start the notebook instance.

.google.cloud.notebooks.v2.VmImage vm_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the vmImage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBootDisk(BootDisk value)

public GceSetup.Builder mergeBootDisk(BootDisk value)

Optional. The boot disk for the VM.

.google.cloud.notebooks.v2.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueBootDisk
Returns
TypeDescription
GceSetup.Builder

mergeContainerImage(ContainerImage value)

public GceSetup.Builder mergeContainerImage(ContainerImage value)

Optional. Use a container image to start the notebook instance.

.google.cloud.notebooks.v2.ContainerImage container_image = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueContainerImage
Returns
TypeDescription
GceSetup.Builder

mergeFrom(GceSetup other)

public GceSetup.Builder mergeFrom(GceSetup other)
Parameter
NameDescription
otherGceSetup
Returns
TypeDescription
GceSetup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGpuDriverConfig(GPUDriverConfig value)

public GceSetup.Builder mergeGpuDriverConfig(GPUDriverConfig value)

Optional. Configuration for GPU drivers.

.google.cloud.notebooks.v2.GPUDriverConfig gpu_driver_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueGPUDriverConfig
Returns
TypeDescription
GceSetup.Builder

mergeShieldedInstanceConfig(ShieldedInstanceConfig value)

public GceSetup.Builder mergeShieldedInstanceConfig(ShieldedInstanceConfig value)

Optional. Shielded VM configuration. Images using supported Shielded VM features.

.google.cloud.notebooks.v2.ShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueShieldedInstanceConfig
Returns
TypeDescription
GceSetup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVmImage(VmImage value)

public GceSetup.Builder mergeVmImage(VmImage value)

Optional. Use a Compute Engine VM image to start the notebook instance.

.google.cloud.notebooks.v2.VmImage vm_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueVmImage
Returns
TypeDescription
GceSetup.Builder

putAllMetadata(Map<String,String> values)

public GceSetup.Builder putAllMetadata(Map<String,String> values)

Optional. Custom metadata to apply to this instance.

map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
GceSetup.Builder

putMetadata(String key, String value)

public GceSetup.Builder putMetadata(String key, String value)

Optional. Custom metadata to apply to this instance.

map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
GceSetup.Builder

removeAcceleratorConfigs(int index)

public GceSetup.Builder removeAcceleratorConfigs(int index)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
GceSetup.Builder

removeDataDisks(int index)

public GceSetup.Builder removeDataDisks(int index)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
GceSetup.Builder

removeMetadata(String key)

public GceSetup.Builder removeMetadata(String key)

Optional. Custom metadata to apply to this instance.

map<string, string> metadata = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
GceSetup.Builder

removeNetworkInterfaces(int index)

public GceSetup.Builder removeNetworkInterfaces(int index)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
GceSetup.Builder

removeServiceAccounts(int index)

public GceSetup.Builder removeServiceAccounts(int index)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
GceSetup.Builder

setAcceleratorConfigs(int index, AcceleratorConfig value)

public GceSetup.Builder setAcceleratorConfigs(int index, AcceleratorConfig value)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
GceSetup.Builder

setAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)

public GceSetup.Builder setAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)

Optional. The hardware accelerators used on this instance. If you use accelerators, make sure that your configuration has enough vCPUs and memory to support the machine_type you have selected. Currently supports only one accelerator configuration.

repeated .google.cloud.notebooks.v2.AcceleratorConfig accelerator_configs = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
GceSetup.Builder

setBootDisk(BootDisk value)

public GceSetup.Builder setBootDisk(BootDisk value)

Optional. The boot disk for the VM.

.google.cloud.notebooks.v2.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueBootDisk
Returns
TypeDescription
GceSetup.Builder

setBootDisk(BootDisk.Builder builderForValue)

public GceSetup.Builder setBootDisk(BootDisk.Builder builderForValue)

Optional. The boot disk for the VM.

.google.cloud.notebooks.v2.BootDisk boot_disk = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBootDisk.Builder
Returns
TypeDescription
GceSetup.Builder

setContainerImage(ContainerImage value)

public GceSetup.Builder setContainerImage(ContainerImage value)

Optional. Use a container image to start the notebook instance.

.google.cloud.notebooks.v2.ContainerImage container_image = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueContainerImage
Returns
TypeDescription
GceSetup.Builder

setContainerImage(ContainerImage.Builder builderForValue)

public GceSetup.Builder setContainerImage(ContainerImage.Builder builderForValue)

Optional. Use a container image to start the notebook instance.

.google.cloud.notebooks.v2.ContainerImage container_image = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueContainerImage.Builder
Returns
TypeDescription
GceSetup.Builder

setDataDisks(int index, DataDisk value)

public GceSetup.Builder setDataDisks(int index, DataDisk value)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueDataDisk
Returns
TypeDescription
GceSetup.Builder

setDataDisks(int index, DataDisk.Builder builderForValue)

public GceSetup.Builder setDataDisks(int index, DataDisk.Builder builderForValue)

Optional. Data disks attached to the VM instance. Currently supports only one data disk.

repeated .google.cloud.notebooks.v2.DataDisk data_disks = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueDataDisk.Builder
Returns
TypeDescription
GceSetup.Builder

setDisablePublicIp(boolean value)

public GceSetup.Builder setDisablePublicIp(boolean value)

Optional. If true, no external IP will be assigned to this VM instance.

bool disable_public_ip = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The disablePublicIp to set.

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

setEnableIpForwarding(boolean value)

public GceSetup.Builder setEnableIpForwarding(boolean value)

Optional. Flag to enable ip forwarding or not, default false/off. https://cloud.google.com/vpc/docs/using-routes#canipforward

bool enable_ip_forwarding = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The enableIpForwarding to set.

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGpuDriverConfig(GPUDriverConfig value)

public GceSetup.Builder setGpuDriverConfig(GPUDriverConfig value)

Optional. Configuration for GPU drivers.

.google.cloud.notebooks.v2.GPUDriverConfig gpu_driver_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueGPUDriverConfig
Returns
TypeDescription
GceSetup.Builder

setGpuDriverConfig(GPUDriverConfig.Builder builderForValue)

public GceSetup.Builder setGpuDriverConfig(GPUDriverConfig.Builder builderForValue)

Optional. Configuration for GPU drivers.

.google.cloud.notebooks.v2.GPUDriverConfig gpu_driver_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueGPUDriverConfig.Builder
Returns
TypeDescription
GceSetup.Builder

setMachineType(String value)

public GceSetup.Builder setMachineType(String value)

Optional. The machine type of the VM instance. https://cloud.google.com/compute/docs/machine-resource

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public GceSetup.Builder setMachineTypeBytes(ByteString value)

Optional. The machine type of the VM instance. https://cloud.google.com/compute/docs/machine-resource

string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

setNetworkInterfaces(int index, NetworkInterface value)

public GceSetup.Builder setNetworkInterfaces(int index, NetworkInterface value)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueNetworkInterface
Returns
TypeDescription
GceSetup.Builder

setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

public GceSetup.Builder setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

Optional. The network interfaces for the VM. Supports only one interface.

repeated .google.cloud.notebooks.v2.NetworkInterface network_interfaces = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueNetworkInterface.Builder
Returns
TypeDescription
GceSetup.Builder

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

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

setServiceAccounts(int index, ServiceAccount value)

public GceSetup.Builder setServiceAccounts(int index, ServiceAccount value)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueServiceAccount
Returns
TypeDescription
GceSetup.Builder

setServiceAccounts(int index, ServiceAccount.Builder builderForValue)

public GceSetup.Builder setServiceAccounts(int index, ServiceAccount.Builder builderForValue)

Optional. The service account that serves as an identity for the VM instance. Currently supports only one service account.

repeated .google.cloud.notebooks.v2.ServiceAccount service_accounts = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueServiceAccount.Builder
Returns
TypeDescription
GceSetup.Builder

setShieldedInstanceConfig(ShieldedInstanceConfig value)

public GceSetup.Builder setShieldedInstanceConfig(ShieldedInstanceConfig value)

Optional. Shielded VM configuration. Images using supported Shielded VM features.

.google.cloud.notebooks.v2.ShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueShieldedInstanceConfig
Returns
TypeDescription
GceSetup.Builder

setShieldedInstanceConfig(ShieldedInstanceConfig.Builder builderForValue)

public GceSetup.Builder setShieldedInstanceConfig(ShieldedInstanceConfig.Builder builderForValue)

Optional. Shielded VM configuration. Images using supported Shielded VM features.

.google.cloud.notebooks.v2.ShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueShieldedInstanceConfig.Builder
Returns
TypeDescription
GceSetup.Builder

setTags(int index, String value)

public GceSetup.Builder setTags(int index, String value)

Optional. The Compute Engine tags to add to runtime (see Tagging instances).

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The tags to set.

Returns
TypeDescription
GceSetup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVmImage(VmImage value)

public GceSetup.Builder setVmImage(VmImage value)

Optional. Use a Compute Engine VM image to start the notebook instance.

.google.cloud.notebooks.v2.VmImage vm_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueVmImage
Returns
TypeDescription
GceSetup.Builder

setVmImage(VmImage.Builder builderForValue)

public GceSetup.Builder setVmImage(VmImage.Builder builderForValue)

Optional. Use a Compute Engine VM image to start the notebook instance.

.google.cloud.notebooks.v2.VmImage vm_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueVmImage.Builder
Returns
TypeDescription
GceSetup.Builder