Interface GceSetupOrBuilder (1.28.0)

public interface GceSetupOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsMetadata(String key)

public abstract 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 abstract 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

getAcceleratorConfigsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.

getBootDiskOrBuilder()

public abstract 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 abstract 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.

getContainerImageOrBuilder()

public abstract 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 abstract 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

getDataDisksCount()

public abstract 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 abstract 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 abstract 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 abstract 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>

getDisablePublicIp()

public abstract 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 abstract 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 abstract 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.

getGpuDriverConfigOrBuilder()

public abstract 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 abstract GceSetup.ImageCase getImageCase()
Returns
TypeDescription
GceSetup.ImageCase

getMachineType()

public abstract 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 abstract 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 abstract Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

public abstract 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 abstract 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 abstract 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 abstract 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

getNetworkInterfaces(int index)

public abstract 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

getNetworkInterfacesCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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

getServiceAccountsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.

getShieldedInstanceConfigOrBuilder()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract List<String> getTagsList()

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

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

Returns
TypeDescription
List<String>

A list containing the tags.

getVmImage()

public abstract 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.

getVmImageOrBuilder()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.