Package com.google.cloud.notebooks.v1
Class Instance
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.notebooks.v1.Instance
-
- All Implemented Interfaces:
InstanceOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Instance extends com.google.protobuf.GeneratedMessageV3 implements InstanceOrBuilder
The definition of a notebook instance.
Protobuf typegoogle.cloud.notebooks.v1.Instance
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Instance.AcceleratorConfig
Definition of a hardware accelerator.static interface
Instance.AcceleratorConfigOrBuilder
static class
Instance.AcceleratorType
Definition of the types of hardware accelerators that can be used on this instance.static class
Instance.Builder
The definition of a notebook instance.static class
Instance.Disk
An instance-attached disk resource.static class
Instance.DiskEncryption
Definition of the disk encryption options.static interface
Instance.DiskOrBuilder
static class
Instance.DiskType
Possible disk types for notebook instances.static class
Instance.EnvironmentCase
static class
Instance.NicType
The type of vNIC driver.static class
Instance.ShieldedInstanceConfig
A set of Shielded Instance options.static interface
Instance.ShieldedInstanceConfigOrBuilder
static class
Instance.State
The definition of the states of this instance.static class
Instance.UpgradeHistoryEntry
The entry of VM image upgrade history.static interface
Instance.UpgradeHistoryEntryOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels to apply to this instance.boolean
containsMetadata(String key)
Custom metadata to apply to this instance.boolean
equals(Object obj)
Instance.AcceleratorConfig
getAcceleratorConfig()
The hardware accelerator used on this instance.Instance.AcceleratorConfigOrBuilder
getAcceleratorConfigOrBuilder()
The hardware accelerator used on this instance.long
getBootDiskSizeGb()
Input only.Instance.DiskType
getBootDiskType()
Input only.int
getBootDiskTypeValue()
Input only.boolean
getCanIpForward()
Optional.ContainerImage
getContainerImage()
Use a container image to start the notebook instance.ContainerImageOrBuilder
getContainerImageOrBuilder()
Use a container image to start the notebook instance.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.String
getCreator()
Output only.com.google.protobuf.ByteString
getCreatorBytes()
Output only.String
getCustomGpuDriverPath()
Specify a custom Cloud Storage path where the GPU driver is stored.com.google.protobuf.ByteString
getCustomGpuDriverPathBytes()
Specify a custom Cloud Storage path where the GPU driver is stored.long
getDataDiskSizeGb()
Input only.Instance.DiskType
getDataDiskType()
Input only.int
getDataDiskTypeValue()
Input only.static Instance
getDefaultInstance()
Instance
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Instance.DiskEncryption
getDiskEncryption()
Input only.int
getDiskEncryptionValue()
Input only.Instance.Disk
getDisks(int index)
Output only.int
getDisksCount()
Output only.List<Instance.Disk>
getDisksList()
Output only.Instance.DiskOrBuilder
getDisksOrBuilder(int index)
Output only.List<? extends Instance.DiskOrBuilder>
getDisksOrBuilderList()
Output only.Instance.EnvironmentCase
getEnvironmentCase()
boolean
getInstallGpuDriver()
Whether the end user authorizes Google Cloud to install GPU driver on this instance.String
getInstanceOwners(int index)
Input only.com.google.protobuf.ByteString
getInstanceOwnersBytes(int index)
Input only.int
getInstanceOwnersCount()
Input only.com.google.protobuf.ProtocolStringList
getInstanceOwnersList()
Input only.String
getKmsKey()
Input only.com.google.protobuf.ByteString
getKmsKeyBytes()
Input only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels to apply to this instance.Map<String,String>
getLabelsMap()
Labels to apply to this instance.String
getLabelsOrDefault(String key, String defaultValue)
Labels to apply to this instance.String
getLabelsOrThrow(String key)
Labels to apply to this instance.String
getMachineType()
Required.com.google.protobuf.ByteString
getMachineTypeBytes()
Required.Map<String,String>
getMetadata()
Deprecated.int
getMetadataCount()
Custom metadata to apply to this instance.Map<String,String>
getMetadataMap()
Custom metadata to apply to this instance.String
getMetadataOrDefault(String key, String defaultValue)
Custom metadata to apply to this instance.String
getMetadataOrThrow(String key)
Custom metadata to apply to this instance.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getNetwork()
The name of the VPC that this instance is in.com.google.protobuf.ByteString
getNetworkBytes()
The name of the VPC that this instance is in.Instance.NicType
getNicType()
Optional.int
getNicTypeValue()
Optional.boolean
getNoProxyAccess()
If true, the notebook instance will not register with the proxy.boolean
getNoPublicIp()
If true, no public IP will be assigned to this instance.boolean
getNoRemoveDataDisk()
Input only.com.google.protobuf.Parser<Instance>
getParserForType()
String
getPostStartupScript()
Path to a Bash script that automatically runs after a notebook instance fully boots up.com.google.protobuf.ByteString
getPostStartupScriptBytes()
Path to a Bash script that automatically runs after a notebook instance fully boots up.String
getProxyUri()
Output only.com.google.protobuf.ByteString
getProxyUriBytes()
Output only.ReservationAffinity
getReservationAffinity()
Optional.ReservationAffinityOrBuilder
getReservationAffinityOrBuilder()
Optional.int
getSerializedSize()
String
getServiceAccount()
The service account on this instance, giving access to other Google Cloud services.com.google.protobuf.ByteString
getServiceAccountBytes()
The service account on this instance, giving access to other Google Cloud services.String
getServiceAccountScopes(int index)
Optional.com.google.protobuf.ByteString
getServiceAccountScopesBytes(int index)
Optional.int
getServiceAccountScopesCount()
Optional.com.google.protobuf.ProtocolStringList
getServiceAccountScopesList()
Optional.Instance.ShieldedInstanceConfig
getShieldedInstanceConfig()
Optional.Instance.ShieldedInstanceConfigOrBuilder
getShieldedInstanceConfigOrBuilder()
Optional.Instance.State
getState()
Output only.int
getStateValue()
Output only.String
getSubnet()
The name of the subnet that this instance is in.com.google.protobuf.ByteString
getSubnetBytes()
The name of the subnet that this instance is in.String
getTags(int index)
Optional.com.google.protobuf.ByteString
getTagsBytes(int index)
Optional.int
getTagsCount()
Optional.com.google.protobuf.ProtocolStringList
getTagsList()
Optional.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.Instance.UpgradeHistoryEntry
getUpgradeHistory(int index)
The upgrade history of this instance.int
getUpgradeHistoryCount()
The upgrade history of this instance.List<Instance.UpgradeHistoryEntry>
getUpgradeHistoryList()
The upgrade history of this instance.Instance.UpgradeHistoryEntryOrBuilder
getUpgradeHistoryOrBuilder(int index)
The upgrade history of this instance.List<? extends Instance.UpgradeHistoryEntryOrBuilder>
getUpgradeHistoryOrBuilderList()
The upgrade history of this instance.VmImage
getVmImage()
Use a Compute Engine VM image to start the notebook instance.VmImageOrBuilder
getVmImageOrBuilder()
Use a Compute Engine VM image to start the notebook instance.boolean
hasAcceleratorConfig()
The hardware accelerator used on this instance.boolean
hasContainerImage()
Use a container image to start the notebook instance.boolean
hasCreateTime()
Output only.int
hashCode()
boolean
hasReservationAffinity()
Optional.boolean
hasShieldedInstanceConfig()
Optional.boolean
hasUpdateTime()
Output only.boolean
hasVmImage()
Use a Compute Engine VM image to start the notebook instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Instance.Builder
newBuilder()
static Instance.Builder
newBuilder(Instance prototype)
Instance.Builder
newBuilderForType()
protected Instance.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Instance
parseDelimitedFrom(InputStream input)
static Instance
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(byte[] data)
static Instance
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(com.google.protobuf.ByteString data)
static Instance
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(com.google.protobuf.CodedInputStream input)
static Instance
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(InputStream input)
static Instance
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(ByteBuffer data)
static Instance
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Instance>
parser()
Instance.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VM_IMAGE_FIELD_NUMBER
public static final int VM_IMAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTAINER_IMAGE_FIELD_NUMBER
public static final int CONTAINER_IMAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POST_STARTUP_SCRIPT_FIELD_NUMBER
public static final int POST_STARTUP_SCRIPT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROXY_URI_FIELD_NUMBER
public static final int PROXY_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTANCE_OWNERS_FIELD_NUMBER
public static final int INSTANCE_OWNERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCELERATOR_CONFIG_FIELD_NUMBER
public static final int ACCELERATOR_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSTALL_GPU_DRIVER_FIELD_NUMBER
public static final int INSTALL_GPU_DRIVER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER
public static final int CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_DISK_TYPE_FIELD_NUMBER
public static final int BOOT_DISK_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_DISK_SIZE_GB_FIELD_NUMBER
public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_DISK_TYPE_FIELD_NUMBER
public static final int DATA_DISK_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_DISK_SIZE_GB_FIELD_NUMBER
public static final int DATA_DISK_SIZE_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NO_REMOVE_DATA_DISK_FIELD_NUMBER
public static final int NO_REMOVE_DATA_DISK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISK_ENCRYPTION_FIELD_NUMBER
public static final int DISK_ENCRYPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KMS_KEY_FIELD_NUMBER
public static final int KMS_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISKS_FIELD_NUMBER
public static final int DISKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NO_PUBLIC_IP_FIELD_NUMBER
public static final int NO_PUBLIC_IP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NO_PROXY_ACCESS_FIELD_NUMBER
public static final int NO_PROXY_ACCESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBNET_FIELD_NUMBER
public static final int SUBNET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPGRADE_HISTORY_FIELD_NUMBER
public static final int UPGRADE_HISTORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NIC_TYPE_FIELD_NUMBER
public static final int NIC_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVATION_AFFINITY_FIELD_NUMBER
public static final int RESERVATION_AFFINITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATOR_FIELD_NUMBER
public static final int CREATOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CAN_IP_FORWARD_FIELD_NUMBER
public static final int CAN_IP_FORWARD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getEnvironmentCase
public Instance.EnvironmentCase getEnvironmentCase()
- Specified by:
getEnvironmentCase
in interfaceInstanceOrBuilder
-
getName
public String getName()
Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getName
in interfaceInstanceOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNameBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for name.
-
hasVmImage
public boolean hasVmImage()
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 2;
- Specified by:
hasVmImage
in interfaceInstanceOrBuilder
- Returns:
- Whether the vmImage field is set.
-
getVmImage
public VmImage getVmImage()
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 2;
- Specified by:
getVmImage
in interfaceInstanceOrBuilder
- Returns:
- The vmImage.
-
getVmImageOrBuilder
public VmImageOrBuilder getVmImageOrBuilder()
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 2;
- Specified by:
getVmImageOrBuilder
in interfaceInstanceOrBuilder
-
hasContainerImage
public boolean hasContainerImage()
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 3;
- Specified by:
hasContainerImage
in interfaceInstanceOrBuilder
- Returns:
- Whether the containerImage field is set.
-
getContainerImage
public ContainerImage getContainerImage()
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 3;
- Specified by:
getContainerImage
in interfaceInstanceOrBuilder
- Returns:
- The containerImage.
-
getContainerImageOrBuilder
public ContainerImageOrBuilder getContainerImageOrBuilder()
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 3;
- Specified by:
getContainerImageOrBuilder
in interfaceInstanceOrBuilder
-
getPostStartupScript
public 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;
- Specified by:
getPostStartupScript
in interfaceInstanceOrBuilder
- Returns:
- The postStartupScript.
-
getPostStartupScriptBytes
public com.google.protobuf.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;
- Specified by:
getPostStartupScriptBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for postStartupScript.
-
getProxyUri
public String getProxyUri()
Output only. The proxy endpoint that is used to access the Jupyter notebook.
string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProxyUri
in interfaceInstanceOrBuilder
- Returns:
- The proxyUri.
-
getProxyUriBytes
public com.google.protobuf.ByteString getProxyUriBytes()
Output only. The proxy endpoint that is used to access the Jupyter notebook.
string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProxyUriBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for proxyUri.
-
getInstanceOwnersList
public com.google.protobuf.ProtocolStringList getInstanceOwnersList()
Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getInstanceOwnersList
in interfaceInstanceOrBuilder
- Returns:
- A list containing the instanceOwners.
-
getInstanceOwnersCount
public int getInstanceOwnersCount()
Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getInstanceOwnersCount
in interfaceInstanceOrBuilder
- Returns:
- The count of instanceOwners.
-
getInstanceOwners
public String getInstanceOwners(int index)
Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getInstanceOwners
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The instanceOwners at the given index.
-
getInstanceOwnersBytes
public com.google.protobuf.ByteString getInstanceOwnersBytes(int index)
Input only. The owner of this instance after creation. Format: `alias@example.com` Currently supports one owner only. If not specified, all of the service account users of your VM instance's service account can use the instance.
repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getInstanceOwnersBytes
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instanceOwners at the given index.
-
getServiceAccount
public 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](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
string service_account = 7;
- Specified by:
getServiceAccount
in interfaceInstanceOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.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](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
string service_account = 7;
- Specified by:
getServiceAccountBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for serviceAccount.
-
getServiceAccountScopesList
public com.google.protobuf.ProtocolStringList getServiceAccountScopesList()
Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) are defined: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getServiceAccountScopesList
in interfaceInstanceOrBuilder
- Returns:
- A list containing the serviceAccountScopes.
-
getServiceAccountScopesCount
public int getServiceAccountScopesCount()
Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) are defined: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getServiceAccountScopesCount
in interfaceInstanceOrBuilder
- Returns:
- The count of serviceAccountScopes.
-
getServiceAccountScopes
public String getServiceAccountScopes(int index)
Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) are defined: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getServiceAccountScopes
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The serviceAccountScopes at the given index.
-
getServiceAccountScopesBytes
public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index)
Optional. The URIs of service account scopes to be included in Compute Engine instances. If not specified, the following [scopes](https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam) are defined: - https://www.googleapis.com/auth/cloud-platform - https://www.googleapis.com/auth/userinfo.email If not using default scopes, you need at least: https://www.googleapis.com/auth/compute
repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getServiceAccountScopesBytes
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the serviceAccountScopes at the given index.
-
getMachineType
public String getMachineType()
Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types) of this instance.
string machine_type = 8 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMachineType
in interfaceInstanceOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
Required. The [Compute Engine machine type](https://cloud.google.com/compute/docs/machine-types) of this instance.
string machine_type = 8 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMachineTypeBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for machineType.
-
hasAcceleratorConfig
public 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](https://cloud.google.com/compute/docs/gpus/#gpus-list).
.google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;
- Specified by:
hasAcceleratorConfig
in interfaceInstanceOrBuilder
- Returns:
- Whether the acceleratorConfig field is set.
-
getAcceleratorConfig
public 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](https://cloud.google.com/compute/docs/gpus/#gpus-list).
.google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;
- Specified by:
getAcceleratorConfig
in interfaceInstanceOrBuilder
- Returns:
- The acceleratorConfig.
-
getAcceleratorConfigOrBuilder
public 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](https://cloud.google.com/compute/docs/gpus/#gpus-list).
.google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;
- Specified by:
getAcceleratorConfigOrBuilder
in interfaceInstanceOrBuilder
-
getStateValue
public int getStateValue()
Output only. The state of this instance.
.google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
getState
public Instance.State getState()
Output only. The state of this instance.
.google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceInstanceOrBuilder
- Returns:
- The state.
-
getInstallGpuDriver
public 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;
- Specified by:
getInstallGpuDriver
in interfaceInstanceOrBuilder
- Returns:
- The installGpuDriver.
-
getCustomGpuDriverPath
public 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;
- Specified by:
getCustomGpuDriverPath
in interfaceInstanceOrBuilder
- Returns:
- The customGpuDriverPath.
-
getCustomGpuDriverPathBytes
public com.google.protobuf.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;
- Specified by:
getCustomGpuDriverPathBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for customGpuDriverPath.
-
getBootDiskTypeValue
public int getBootDiskTypeValue()
Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
.google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getBootDiskTypeValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for bootDiskType.
-
getBootDiskType
public Instance.DiskType getBootDiskType()
Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
.google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getBootDiskType
in interfaceInstanceOrBuilder
- Returns:
- The bootDiskType.
-
getBootDiskSizeGb
public long getBootDiskSizeGb()
Input only. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not specified, this defaults to 100.
int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getBootDiskSizeGb
in interfaceInstanceOrBuilder
- Returns:
- The bootDiskSizeGb.
-
getDataDiskTypeValue
public int getDataDiskTypeValue()
Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
.google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getDataDiskTypeValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for dataDiskType.
-
getDataDiskType
public Instance.DiskType getDataDiskType()
Input only. The type of the data disk attached to this instance, defaults to standard persistent disk (`PD_STANDARD`).
.google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getDataDiskType
in interfaceInstanceOrBuilder
- Returns:
- The dataDiskType.
-
getDataDiskSizeGb
public long getDataDiskSizeGb()
Input only. The size of the data disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). You can choose the size of the data disk based on how big your notebooks and data are. If not specified, this defaults to 100.
int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getDataDiskSizeGb
in interfaceInstanceOrBuilder
- Returns:
- The dataDiskSizeGb.
-
getNoRemoveDataDisk
public boolean getNoRemoveDataDisk()
Input only. If true, the data disk will not be auto deleted when deleting the instance.
bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getNoRemoveDataDisk
in interfaceInstanceOrBuilder
- Returns:
- The noRemoveDataDisk.
-
getDiskEncryptionValue
public int getDiskEncryptionValue()
Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
.google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getDiskEncryptionValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for diskEncryption.
-
getDiskEncryption
public Instance.DiskEncryption getDiskEncryption()
Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
.google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getDiskEncryption
in interfaceInstanceOrBuilder
- Returns:
- The diskEncryption.
-
getKmsKey
public String getKmsKey()
Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about [using your own encryption keys](/kms/docs/quickstart).
string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getKmsKey
in interfaceInstanceOrBuilder
- Returns:
- The kmsKey.
-
getKmsKeyBytes
public com.google.protobuf.ByteString getKmsKeyBytes()
Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about [using your own encryption keys](/kms/docs/quickstart).
string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getKmsKeyBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for kmsKey.
-
getDisksList
public List<Instance.Disk> getDisksList()
Output only. Attached disks to notebook instance.
repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDisksList
in interfaceInstanceOrBuilder
-
getDisksOrBuilderList
public List<? extends Instance.DiskOrBuilder> getDisksOrBuilderList()
Output only. Attached disks to notebook instance.
repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDisksOrBuilderList
in interfaceInstanceOrBuilder
-
getDisksCount
public int getDisksCount()
Output only. Attached disks to notebook instance.
repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDisksCount
in interfaceInstanceOrBuilder
-
getDisks
public Instance.Disk getDisks(int index)
Output only. Attached disks to notebook instance.
repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDisks
in interfaceInstanceOrBuilder
-
getDisksOrBuilder
public Instance.DiskOrBuilder getDisksOrBuilder(int index)
Output only. Attached disks to notebook instance.
repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDisksOrBuilder
in interfaceInstanceOrBuilder
-
hasShieldedInstanceConfig
public boolean hasShieldedInstanceConfig()
Optional. Shielded VM configuration. [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasShieldedInstanceConfig
in interfaceInstanceOrBuilder
- Returns:
- Whether the shieldedInstanceConfig field is set.
-
getShieldedInstanceConfig
public Instance.ShieldedInstanceConfig getShieldedInstanceConfig()
Optional. Shielded VM configuration. [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getShieldedInstanceConfig
in interfaceInstanceOrBuilder
- Returns:
- The shieldedInstanceConfig.
-
getShieldedInstanceConfigOrBuilder
public Instance.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
Optional. Shielded VM configuration. [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getShieldedInstanceConfigOrBuilder
in interfaceInstanceOrBuilder
-
getNoPublicIp
public boolean getNoPublicIp()
If true, no public IP will be assigned to this instance.
bool no_public_ip = 17;
- Specified by:
getNoPublicIp
in interfaceInstanceOrBuilder
- Returns:
- The noPublicIp.
-
getNoProxyAccess
public boolean getNoProxyAccess()
If true, the notebook instance will not register with the proxy.
bool no_proxy_access = 18;
- Specified by:
getNoProxyAccess
in interfaceInstanceOrBuilder
- Returns:
- The noProxyAccess.
-
getNetwork
public String getNetwork()
The name of the VPC that this instance is in. Format: `projects/{project_id}/global/networks/{network_id}`
string network = 19;
- Specified by:
getNetwork
in interfaceInstanceOrBuilder
- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
The name of the VPC that this instance is in. Format: `projects/{project_id}/global/networks/{network_id}`
string network = 19;
- Specified by:
getNetworkBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for network.
-
getSubnet
public String getSubnet()
The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
string subnet = 20;
- Specified by:
getSubnet
in interfaceInstanceOrBuilder
- Returns:
- The subnet.
-
getSubnetBytes
public com.google.protobuf.ByteString getSubnetBytes()
The name of the subnet that this instance is in. Format: `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
string subnet = 20;
- Specified by:
getSubnetBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for subnet.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:InstanceOrBuilder
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 21;
- Specified by:
getLabelsCount
in interfaceInstanceOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 21;
- Specified by:
containsLabels
in interfaceInstanceOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceInstanceOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 21;
- Specified by:
getLabelsMap
in interfaceInstanceOrBuilder
-
getLabelsOrDefault
public 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;
- Specified by:
getLabelsOrDefault
in interfaceInstanceOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels to apply to this instance. These can be later modified by the setLabels method.
map<string, string> labels = 21;
- Specified by:
getLabelsOrThrow
in interfaceInstanceOrBuilder
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:InstanceOrBuilder
Custom metadata to apply to this instance.
map<string, string> metadata = 22;
- Specified by:
getMetadataCount
in interfaceInstanceOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
Custom metadata to apply to this instance.
map<string, string> metadata = 22;
- Specified by:
containsMetadata
in interfaceInstanceOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceInstanceOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
Custom metadata to apply to this instance.
map<string, string> metadata = 22;
- Specified by:
getMetadataMap
in interfaceInstanceOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
Custom metadata to apply to this instance.
map<string, string> metadata = 22;
- Specified by:
getMetadataOrDefault
in interfaceInstanceOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
Custom metadata to apply to this instance.
map<string, string> metadata = 22;
- Specified by:
getMetadataOrThrow
in interfaceInstanceOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()
Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTagsList
in interfaceInstanceOrBuilder
- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()
Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTagsCount
in interfaceInstanceOrBuilder
- Returns:
- The count of tags.
-
getTags
public String getTags(int index)
Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTags
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index)
Optional. The Compute Engine tags to add to runtime (see [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTagsBytes
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getUpgradeHistoryList
public List<Instance.UpgradeHistoryEntry> getUpgradeHistoryList()
The upgrade history of this instance.
repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;
- Specified by:
getUpgradeHistoryList
in interfaceInstanceOrBuilder
-
getUpgradeHistoryOrBuilderList
public List<? extends Instance.UpgradeHistoryEntryOrBuilder> getUpgradeHistoryOrBuilderList()
The upgrade history of this instance.
repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;
- Specified by:
getUpgradeHistoryOrBuilderList
in interfaceInstanceOrBuilder
-
getUpgradeHistoryCount
public int getUpgradeHistoryCount()
The upgrade history of this instance.
repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;
- Specified by:
getUpgradeHistoryCount
in interfaceInstanceOrBuilder
-
getUpgradeHistory
public Instance.UpgradeHistoryEntry getUpgradeHistory(int index)
The upgrade history of this instance.
repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;
- Specified by:
getUpgradeHistory
in interfaceInstanceOrBuilder
-
getUpgradeHistoryOrBuilder
public Instance.UpgradeHistoryEntryOrBuilder getUpgradeHistoryOrBuilder(int index)
The upgrade history of this instance.
repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29;
- Specified by:
getUpgradeHistoryOrBuilder
in interfaceInstanceOrBuilder
-
getNicTypeValue
public int getNicTypeValue()
Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
.google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNicTypeValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for nicType.
-
getNicType
public Instance.NicType getNicType()
Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
.google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getNicType
in interfaceInstanceOrBuilder
- Returns:
- The nicType.
-
hasReservationAffinity
public boolean hasReservationAffinity()
Optional. The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this notebook instance.
.google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasReservationAffinity
in interfaceInstanceOrBuilder
- Returns:
- Whether the reservationAffinity field is set.
-
getReservationAffinity
public ReservationAffinity getReservationAffinity()
Optional. The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this notebook instance.
.google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReservationAffinity
in interfaceInstanceOrBuilder
- Returns:
- The reservationAffinity.
-
getReservationAffinityOrBuilder
public ReservationAffinityOrBuilder getReservationAffinityOrBuilder()
Optional. The optional reservation affinity. Setting this field will apply the specified [Zonal Compute Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) to this notebook instance.
.google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReservationAffinityOrBuilder
in interfaceInstanceOrBuilder
-
getCreator
public String getCreator()
Output only. Email address of entity that sent original CreateInstance request.
string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreator
in interfaceInstanceOrBuilder
- Returns:
- The creator.
-
getCreatorBytes
public com.google.protobuf.ByteString getCreatorBytes()
Output only. Email address of entity that sent original CreateInstance request.
string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreatorBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for creator.
-
getCanIpForward
public 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 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getCanIpForward
in interfaceInstanceOrBuilder
- Returns:
- The canIpForward.
-
hasCreateTime
public boolean hasCreateTime()
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceInstanceOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceInstanceOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Instance creation time.
.google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceInstanceOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasUpdateTime
in interfaceInstanceOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTime
in interfaceInstanceOrBuilder
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Instance update time.
.google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTimeOrBuilder
in interfaceInstanceOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Instance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Instance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Instance parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Instance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Instance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Instance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Instance.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Instance.Builder newBuilder()
-
newBuilder
public static Instance.Builder newBuilder(Instance prototype)
-
toBuilder
public Instance.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Instance.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Instance getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Instance> parser()
-
getParserForType
public com.google.protobuf.Parser<Instance> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Instance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-