Interface InstanceOrBuilder (0.14.1)

public interface InstanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Labels to apply to this instance. These can be later modified by the setLabels method.

map<string, string> labels = 21;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsMetadata(String key)

public abstract boolean containsMetadata(String key)

Custom metadata to apply to this instance.

map<string, string> metadata = 22;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAcceleratorConfig()

public abstract Instance.AcceleratorConfig getAcceleratorConfig()

The hardware accelerator 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.

.google.events.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;

Returns
TypeDescription
Instance.AcceleratorConfig

The acceleratorConfig.

getAcceleratorConfigOrBuilder()

public abstract Instance.AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder()

The hardware accelerator 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.

.google.events.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;

Returns
TypeDescription
Instance.AcceleratorConfigOrBuilder

getCanIpForward()

public abstract boolean getCanIpForward()

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

bool can_ip_forward = 39;

Returns
TypeDescription
boolean

The canIpForward.

getContainerImage()

public abstract ContainerImage getContainerImage()

Use a container image to start the notebook instance.

.google.events.cloud.notebooks.v1.ContainerImage container_image = 3;

Returns
TypeDescription
ContainerImage

The containerImage.

getContainerImageOrBuilder()

public abstract ContainerImageOrBuilder getContainerImageOrBuilder()

Use a container image to start the notebook instance.

.google.events.cloud.notebooks.v1.ContainerImage container_image = 3;

Returns
TypeDescription
ContainerImageOrBuilder

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. Instance creation time.

.google.protobuf.Timestamp create_time = 23;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Instance creation time.

.google.protobuf.Timestamp create_time = 23;

Returns
TypeDescription
TimestampOrBuilder

getCreator()

public abstract String getCreator()

Output only. Email address of entity that sent original CreateInstance request.

string creator = 36;

Returns
TypeDescription
String

The creator.

getCreatorBytes()

public abstract ByteString getCreatorBytes()

Output only. Email address of entity that sent original CreateInstance request.

string creator = 36;

Returns
TypeDescription
ByteString

The bytes for creator.

getCustomGpuDriverPath()

public abstract String getCustomGpuDriverPath()

Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

string custom_gpu_driver_path = 12;

Returns
TypeDescription
String

The customGpuDriverPath.

getCustomGpuDriverPathBytes()

public abstract ByteString getCustomGpuDriverPathBytes()

Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

string custom_gpu_driver_path = 12;

Returns
TypeDescription
ByteString

The bytes for customGpuDriverPath.

getDisks(int index)

public abstract Instance.Disk getDisks(int index)

Output only. Attached disks to notebook instance.

repeated .google.events.cloud.notebooks.v1.Instance.Disk disks = 28;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Disk

getDisksCount()

public abstract int getDisksCount()

Output only. Attached disks to notebook instance.

repeated .google.events.cloud.notebooks.v1.Instance.Disk disks = 28;

Returns
TypeDescription
int

getDisksList()

public abstract List<Instance.Disk> getDisksList()

Output only. Attached disks to notebook instance.

repeated .google.events.cloud.notebooks.v1.Instance.Disk disks = 28;

Returns
TypeDescription
List<Disk>

getDisksOrBuilder(int index)

public abstract Instance.DiskOrBuilder getDisksOrBuilder(int index)

Output only. Attached disks to notebook instance.

repeated .google.events.cloud.notebooks.v1.Instance.Disk disks = 28;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.DiskOrBuilder

getDisksOrBuilderList()

public abstract List<? extends Instance.DiskOrBuilder> getDisksOrBuilderList()

Output only. Attached disks to notebook instance.

repeated .google.events.cloud.notebooks.v1.Instance.Disk disks = 28;

Returns
TypeDescription
List<? extends com.google.events.cloud.notebooks.v1.Instance.DiskOrBuilder>

getEnvironmentCase()

public abstract Instance.EnvironmentCase getEnvironmentCase()
Returns
TypeDescription
Instance.EnvironmentCase

getInstallGpuDriver()

public abstract boolean getInstallGpuDriver()

Whether the end user authorizes Google Cloud to install GPU driver on this instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs.

bool install_gpu_driver = 11;

Returns
TypeDescription
boolean

The installGpuDriver.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Labels to apply to this instance. These can be later modified by the setLabels method.

map<string, string> labels = 21;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Labels to apply to this instance. These can be later modified by the setLabels method.

map<string, string> labels = 21;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Labels to apply to this instance. These can be later modified by the setLabels method.

map<string, string> labels = 21;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Labels to apply to this instance. These can be later modified by the setLabels method.

map<string, string> labels = 21;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMachineType()

public abstract String getMachineType()

Required. The Compute Engine machine type of this instance.

string machine_type = 8;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public abstract ByteString getMachineTypeBytes()

Required. The Compute Engine machine type of this instance.

string machine_type = 8;

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()

Custom metadata to apply to this instance.

map<string, string> metadata = 22;

Returns
TypeDescription
int

getMetadataMap()

public abstract Map<String,String> getMetadataMap()

Custom metadata to apply to this instance.

map<string, string> metadata = 22;

Returns
TypeDescription
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public abstract String getMetadataOrDefault(String key, String defaultValue)

Custom metadata to apply to this instance.

map<string, string> metadata = 22;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getMetadataOrThrow(String key)

public abstract String getMetadataOrThrow(String key)

Custom metadata to apply to this instance.

map<string, string> metadata = 22;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getName()

public abstract String getName()

Output only. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Output only. The name of this notebook instance. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNetwork()

public abstract String getNetwork()

The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}

string network = 19;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public abstract ByteString getNetworkBytes()

The name of the VPC that this instance is in. Format: projects/{project_id}/global/networks/{network_id}

string network = 19;

Returns
TypeDescription
ByteString

The bytes for network.

getNicType()

public abstract Instance.NicType getNicType()

Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

.google.events.cloud.notebooks.v1.Instance.NicType nic_type = 33;

Returns
TypeDescription
Instance.NicType

The nicType.

getNicTypeValue()

public abstract int getNicTypeValue()

Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

.google.events.cloud.notebooks.v1.Instance.NicType nic_type = 33;

Returns
TypeDescription
int

The enum numeric value on the wire for nicType.

getNoProxyAccess()

public abstract boolean getNoProxyAccess()

If true, the notebook instance will not register with the proxy.

bool no_proxy_access = 18;

Returns
TypeDescription
boolean

The noProxyAccess.

getNoPublicIp()

public abstract boolean getNoPublicIp()

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

bool no_public_ip = 17;

Returns
TypeDescription
boolean

The noPublicIp.

getPostStartupScript()

public abstract String getPostStartupScript()

Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).

string post_startup_script = 4;

Returns
TypeDescription
String

The postStartupScript.

getPostStartupScriptBytes()

public abstract ByteString getPostStartupScriptBytes()

Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path (gs://path-to-file/file-name).

string post_startup_script = 4;

Returns
TypeDescription
ByteString

The bytes for postStartupScript.

getProxyUri()

public abstract String getProxyUri()

Output only. The proxy endpoint that is used to access the Jupyter notebook.

string proxy_uri = 5;

Returns
TypeDescription
String

The proxyUri.

getProxyUriBytes()

public abstract ByteString getProxyUriBytes()

Output only. The proxy endpoint that is used to access the Jupyter notebook.

string proxy_uri = 5;

Returns
TypeDescription
ByteString

The bytes for proxyUri.

getReservationAffinity()

public abstract ReservationAffinity getReservationAffinity()

Optional. The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this notebook instance.

.google.events.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34;

Returns
TypeDescription
ReservationAffinity

The reservationAffinity.

getReservationAffinityOrBuilder()

public abstract ReservationAffinityOrBuilder getReservationAffinityOrBuilder()

Optional. The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this notebook instance.

.google.events.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34;

Returns
TypeDescription
ReservationAffinityOrBuilder

getServiceAccount()

public abstract String getServiceAccount()

The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.

string service_account = 7;

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public abstract ByteString getServiceAccountBytes()

The service account on this instance, giving access to other Google Cloud services. You can use any service account within the same project, but you must have the service account user permission to use the instance. If not specified, the Compute Engine default service account is used.

string service_account = 7;

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getServiceAccountScopes(int index)

public abstract String getServiceAccountScopes(int index)

Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following scopes are defined:

repeated string service_account_scopes = 31;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The serviceAccountScopes at the given index.

getServiceAccountScopesBytes(int index)

public abstract ByteString getServiceAccountScopesBytes(int index)

Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following scopes are defined:

repeated string service_account_scopes = 31;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the serviceAccountScopes at the given index.

getServiceAccountScopesCount()

public abstract int getServiceAccountScopesCount()

Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following scopes are defined:

repeated string service_account_scopes = 31;

Returns
TypeDescription
int

The count of serviceAccountScopes.

getServiceAccountScopesList()

public abstract List<String> getServiceAccountScopesList()

Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following scopes are defined:

repeated string service_account_scopes = 31;

Returns
TypeDescription
List<String>

A list containing the serviceAccountScopes.

getShieldedInstanceConfig()

public abstract Instance.ShieldedInstanceConfig getShieldedInstanceConfig()

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

.google.events.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30;

Returns
TypeDescription
Instance.ShieldedInstanceConfig

The shieldedInstanceConfig.

getShieldedInstanceConfigOrBuilder()

public abstract Instance.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()

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

.google.events.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30;

Returns
TypeDescription
Instance.ShieldedInstanceConfigOrBuilder

getState()

public abstract Instance.State getState()

Output only. The state of this instance.

.google.events.cloud.notebooks.v1.Instance.State state = 10;

Returns
TypeDescription
Instance.State

The state.

getStateValue()

public abstract int getStateValue()

Output only. The state of this instance.

.google.events.cloud.notebooks.v1.Instance.State state = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getSubnet()

public abstract String getSubnet()

The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}

string subnet = 20;

Returns
TypeDescription
String

The subnet.

getSubnetBytes()

public abstract ByteString getSubnetBytes()

The name of the subnet that this instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}

string subnet = 20;

Returns
TypeDescription
ByteString

The bytes for subnet.

getTags(int index)

public abstract String getTags(int index)

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

repeated string tags = 32;

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 = 32;

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 = 32;

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 = 32;

Returns
TypeDescription
List<String>

A list containing the tags.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. Instance update time.

.google.protobuf.Timestamp update_time = 24;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Instance update time.

.google.protobuf.Timestamp update_time = 24;

Returns
TypeDescription
TimestampOrBuilder

getUpgradeHistory(int index)

public abstract Instance.UpgradeHistoryEntry getUpgradeHistory(int index)

The upgrade history of this instance.

repeated .google.events.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.UpgradeHistoryEntry

getUpgradeHistoryCount()

public abstract int getUpgradeHistoryCount()

The upgrade history of this instance.

repeated .google.events.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;

Returns
TypeDescription
int

getUpgradeHistoryList()

public abstract List<Instance.UpgradeHistoryEntry> getUpgradeHistoryList()

The upgrade history of this instance.

repeated .google.events.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;

Returns
TypeDescription
List<UpgradeHistoryEntry>

getUpgradeHistoryOrBuilder(int index)

public abstract Instance.UpgradeHistoryEntryOrBuilder getUpgradeHistoryOrBuilder(int index)

The upgrade history of this instance.

repeated .google.events.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.UpgradeHistoryEntryOrBuilder

getUpgradeHistoryOrBuilderList()

public abstract List<? extends Instance.UpgradeHistoryEntryOrBuilder> getUpgradeHistoryOrBuilderList()

The upgrade history of this instance.

repeated .google.events.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;

Returns
TypeDescription
List<? extends com.google.events.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder>

getVmImage()

public abstract VmImage getVmImage()

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

.google.events.cloud.notebooks.v1.VmImage vm_image = 2;

Returns
TypeDescription
VmImage

The vmImage.

getVmImageOrBuilder()

public abstract VmImageOrBuilder getVmImageOrBuilder()

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

.google.events.cloud.notebooks.v1.VmImage vm_image = 2;

Returns
TypeDescription
VmImageOrBuilder

hasAcceleratorConfig()

public abstract boolean hasAcceleratorConfig()

The hardware accelerator 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.

.google.events.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;

Returns
TypeDescription
boolean

Whether the acceleratorConfig field is set.

hasContainerImage()

public abstract boolean hasContainerImage()

Use a container image to start the notebook instance.

.google.events.cloud.notebooks.v1.ContainerImage container_image = 3;

Returns
TypeDescription
boolean

Whether the containerImage field is set.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. Instance creation time.

.google.protobuf.Timestamp create_time = 23;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasReservationAffinity()

public abstract boolean hasReservationAffinity()

Optional. The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this notebook instance.

.google.events.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34;

Returns
TypeDescription
boolean

Whether the reservationAffinity field is set.

hasShieldedInstanceConfig()

public abstract boolean hasShieldedInstanceConfig()

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

.google.events.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30;

Returns
TypeDescription
boolean

Whether the shieldedInstanceConfig field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. Instance update time.

.google.protobuf.Timestamp update_time = 24;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasVmImage()

public abstract boolean hasVmImage()

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

.google.events.cloud.notebooks.v1.VmImage vm_image = 2;

Returns
TypeDescription
boolean

Whether the vmImage field is set.