Package com.google.cloud.notebooks.v1
Class VirtualMachineConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.notebooks.v1.VirtualMachineConfig
-
- All Implemented Interfaces:
VirtualMachineConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class VirtualMachineConfig extends com.google.protobuf.GeneratedMessageV3 implements VirtualMachineConfigOrBuilder
The config settings for virtual machine.
Protobuf typegoogle.cloud.notebooks.v1.VirtualMachineConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVirtualMachineConfig.BootImageDefinition of the boot image used by the Runtime.static interfaceVirtualMachineConfig.BootImageOrBuilderstatic classVirtualMachineConfig.BuilderThe config settings for virtual machine.static classVirtualMachineConfig.NicTypeThe type of vNIC driver.-
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
Fields Modifier and Type Field Description static intACCELERATOR_CONFIG_FIELD_NUMBERstatic intBOOT_IMAGE_FIELD_NUMBERstatic intCONTAINER_IMAGES_FIELD_NUMBERstatic intDATA_DISK_FIELD_NUMBERstatic intENCRYPTION_CONFIG_FIELD_NUMBERstatic intGUEST_ATTRIBUTES_FIELD_NUMBERstatic intINTERNAL_IP_ONLY_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intMACHINE_TYPE_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intNETWORK_FIELD_NUMBERstatic intNIC_TYPE_FIELD_NUMBERstatic intRESERVED_IP_RANGE_FIELD_NUMBERstatic intSHIELDED_INSTANCE_CONFIG_FIELD_NUMBERstatic intSUBNET_FIELD_NUMBERstatic intTAGS_FIELD_NUMBERstatic intZONE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsGuestAttributes(String key)Output only.booleancontainsLabels(String key)Optional.booleancontainsMetadata(String key)Optional.booleanequals(Object obj)RuntimeAcceleratorConfiggetAcceleratorConfig()Optional.RuntimeAcceleratorConfigOrBuildergetAcceleratorConfigOrBuilder()Optional.VirtualMachineConfig.BootImagegetBootImage()Optional.VirtualMachineConfig.BootImageOrBuildergetBootImageOrBuilder()Optional.ContainerImagegetContainerImages(int index)Optional.intgetContainerImagesCount()Optional.List<ContainerImage>getContainerImagesList()Optional.ContainerImageOrBuildergetContainerImagesOrBuilder(int index)Optional.List<? extends ContainerImageOrBuilder>getContainerImagesOrBuilderList()Optional.LocalDiskgetDataDisk()Required.LocalDiskOrBuildergetDataDiskOrBuilder()Required.static VirtualMachineConfiggetDefaultInstance()VirtualMachineConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()EncryptionConfiggetEncryptionConfig()Optional.EncryptionConfigOrBuildergetEncryptionConfigOrBuilder()Optional.Map<String,String>getGuestAttributes()Deprecated.intgetGuestAttributesCount()Output only.Map<String,String>getGuestAttributesMap()Output only.StringgetGuestAttributesOrDefault(String key, String defaultValue)Output only.StringgetGuestAttributesOrThrow(String key)Output only.booleangetInternalIpOnly()Optional.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Optional.Map<String,String>getLabelsMap()Optional.StringgetLabelsOrDefault(String key, String defaultValue)Optional.StringgetLabelsOrThrow(String key)Optional.StringgetMachineType()Required.com.google.protobuf.ByteStringgetMachineTypeBytes()Required.Map<String,String>getMetadata()Deprecated.intgetMetadataCount()Optional.Map<String,String>getMetadataMap()Optional.StringgetMetadataOrDefault(String key, String defaultValue)Optional.StringgetMetadataOrThrow(String key)Optional.StringgetNetwork()Optional.com.google.protobuf.ByteStringgetNetworkBytes()Optional.VirtualMachineConfig.NicTypegetNicType()Optional.intgetNicTypeValue()Optional.com.google.protobuf.Parser<VirtualMachineConfig>getParserForType()StringgetReservedIpRange()Optional.com.google.protobuf.ByteStringgetReservedIpRangeBytes()Optional.intgetSerializedSize()RuntimeShieldedInstanceConfiggetShieldedInstanceConfig()Optional.RuntimeShieldedInstanceConfigOrBuildergetShieldedInstanceConfigOrBuilder()Optional.StringgetSubnet()Optional.com.google.protobuf.ByteStringgetSubnetBytes()Optional.StringgetTags(int index)Optional.com.google.protobuf.ByteStringgetTagsBytes(int index)Optional.intgetTagsCount()Optional.com.google.protobuf.ProtocolStringListgetTagsList()Optional.StringgetZone()Output only.com.google.protobuf.ByteStringgetZoneBytes()Output only.booleanhasAcceleratorConfig()Optional.booleanhasBootImage()Optional.booleanhasDataDisk()Required.booleanhasEncryptionConfig()Optional.inthashCode()booleanhasShieldedInstanceConfig()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static VirtualMachineConfig.BuildernewBuilder()static VirtualMachineConfig.BuildernewBuilder(VirtualMachineConfig prototype)VirtualMachineConfig.BuildernewBuilderForType()protected VirtualMachineConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static VirtualMachineConfigparseDelimitedFrom(InputStream input)static VirtualMachineConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineConfigparseFrom(byte[] data)static VirtualMachineConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineConfigparseFrom(com.google.protobuf.ByteString data)static VirtualMachineConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineConfigparseFrom(com.google.protobuf.CodedInputStream input)static VirtualMachineConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineConfigparseFrom(InputStream input)static VirtualMachineConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineConfigparseFrom(ByteBuffer data)static VirtualMachineConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<VirtualMachineConfig>parser()VirtualMachineConfig.BuildertoBuilder()voidwriteTo(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
-
ZONE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTAINER_IMAGES_FIELD_NUMBER
public static final int CONTAINER_IMAGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_DISK_FIELD_NUMBER
public static final int DATA_DISK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENCRYPTION_CONFIG_FIELD_NUMBER
public static final int ENCRYPTION_CONFIG_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
-
ACCELERATOR_CONFIG_FIELD_NUMBER
public static final int ACCELERATOR_CONFIG_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
-
INTERNAL_IP_ONLY_FIELD_NUMBER
public static final int INTERNAL_IP_ONLY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GUEST_ATTRIBUTES_FIELD_NUMBER
public static final int GUEST_ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NIC_TYPE_FIELD_NUMBER
public static final int NIC_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVED_IP_RANGE_FIELD_NUMBER
public static final int RESERVED_IP_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_IMAGE_FIELD_NUMBER
public static final int BOOT_IMAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getZone
public String getZone()
Output only. The zone where the virtual machine is located. If using regional request, the notebooks service will pick a location in the corresponding runtime region. On a get request, zone will always be present. Example: * `us-central1-b`
string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getZonein interfaceVirtualMachineConfigOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()
Output only. The zone where the virtual machine is located. If using regional request, the notebooks service will pick a location in the corresponding runtime region. On a get request, zone will always be present. Example: * `us-central1-b`
string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getZoneBytesin interfaceVirtualMachineConfigOrBuilder- Returns:
- The bytes for zone.
-
getMachineType
public String getMachineType()
Required. The Compute Engine machine type used for runtimes. Short name is valid. Examples: * `n1-standard-2` * `e2-standard-8`
string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMachineTypein interfaceVirtualMachineConfigOrBuilder- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
Required. The Compute Engine machine type used for runtimes. Short name is valid. Examples: * `n1-standard-2` * `e2-standard-8`
string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMachineTypeBytesin interfaceVirtualMachineConfigOrBuilder- Returns:
- The bytes for machineType.
-
getContainerImagesList
public List<ContainerImage> getContainerImagesList()
Optional. Use a list of container images to use as Kernels in the notebook instance.
repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContainerImagesListin interfaceVirtualMachineConfigOrBuilder
-
getContainerImagesOrBuilderList
public List<? extends ContainerImageOrBuilder> getContainerImagesOrBuilderList()
Optional. Use a list of container images to use as Kernels in the notebook instance.
repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContainerImagesOrBuilderListin interfaceVirtualMachineConfigOrBuilder
-
getContainerImagesCount
public int getContainerImagesCount()
Optional. Use a list of container images to use as Kernels in the notebook instance.
repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContainerImagesCountin interfaceVirtualMachineConfigOrBuilder
-
getContainerImages
public ContainerImage getContainerImages(int index)
Optional. Use a list of container images to use as Kernels in the notebook instance.
repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContainerImagesin interfaceVirtualMachineConfigOrBuilder
-
getContainerImagesOrBuilder
public ContainerImageOrBuilder getContainerImagesOrBuilder(int index)
Optional. Use a list of container images to use as Kernels in the notebook instance.
repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getContainerImagesOrBuilderin interfaceVirtualMachineConfigOrBuilder
-
hasDataDisk
public boolean hasDataDisk()
Required. Data disk option configuration settings.
.google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasDataDiskin interfaceVirtualMachineConfigOrBuilder- Returns:
- Whether the dataDisk field is set.
-
getDataDisk
public LocalDisk getDataDisk()
Required. Data disk option configuration settings.
.google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDataDiskin interfaceVirtualMachineConfigOrBuilder- Returns:
- The dataDisk.
-
getDataDiskOrBuilder
public LocalDiskOrBuilder getDataDiskOrBuilder()
Required. Data disk option configuration settings.
.google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDataDiskOrBuilderin interfaceVirtualMachineConfigOrBuilder
-
hasEncryptionConfig
public boolean hasEncryptionConfig()
Optional. Encryption settings for virtual machine data disk.
.google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEncryptionConfigin interfaceVirtualMachineConfigOrBuilder- Returns:
- Whether the encryptionConfig field is set.
-
getEncryptionConfig
public EncryptionConfig getEncryptionConfig()
Optional. Encryption settings for virtual machine data disk.
.google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigin interfaceVirtualMachineConfigOrBuilder- Returns:
- The encryptionConfig.
-
getEncryptionConfigOrBuilder
public EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Optional. Encryption settings for virtual machine data disk.
.google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigOrBuilderin interfaceVirtualMachineConfigOrBuilder
-
hasShieldedInstanceConfig
public boolean hasShieldedInstanceConfig()
Optional. Shielded VM Instance configuration settings.
.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasShieldedInstanceConfigin interfaceVirtualMachineConfigOrBuilder- Returns:
- Whether the shieldedInstanceConfig field is set.
-
getShieldedInstanceConfig
public RuntimeShieldedInstanceConfig getShieldedInstanceConfig()
Optional. Shielded VM Instance configuration settings.
.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getShieldedInstanceConfigin interfaceVirtualMachineConfigOrBuilder- Returns:
- The shieldedInstanceConfig.
-
getShieldedInstanceConfigOrBuilder
public RuntimeShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
Optional. Shielded VM Instance configuration settings.
.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getShieldedInstanceConfigOrBuilderin interfaceVirtualMachineConfigOrBuilder
-
hasAcceleratorConfig
public boolean hasAcceleratorConfig()
Optional. The Compute Engine accelerator configuration for this runtime.
.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAcceleratorConfigin interfaceVirtualMachineConfigOrBuilder- Returns:
- Whether the acceleratorConfig field is set.
-
getAcceleratorConfig
public RuntimeAcceleratorConfig getAcceleratorConfig()
Optional. The Compute Engine accelerator configuration for this runtime.
.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceleratorConfigin interfaceVirtualMachineConfigOrBuilder- Returns:
- The acceleratorConfig.
-
getAcceleratorConfigOrBuilder
public RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder()
Optional. The Compute Engine accelerator configuration for this runtime.
.google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAcceleratorConfigOrBuilderin interfaceVirtualMachineConfigOrBuilder
-
getNetwork
public String getNetwork()
Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither `network` nor `subnet` is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default` * `projects/[project_id]/global/networks/default` Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations: * Google Managed Network (Network & subnet are empty) * Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access. * Shared VPC (network & subnet are required). Requires configuring Private Service Access.
string network = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNetworkin interfaceVirtualMachineConfigOrBuilder- Returns:
- The network.
-
getNetworkBytes
public com.google.protobuf.ByteString getNetworkBytes()
Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork. If neither `network` nor `subnet` is specified, the "default" network of the project is used, if it exists. A full URL or partial URI. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/global/networks/default` * `projects/[project_id]/global/networks/default` Runtimes are managed resources inside Google Infrastructure. Runtimes support the following network configurations: * Google Managed Network (Network & subnet are empty) * Consumer Project VPC (network & subnet are required). Requires configuring Private Service Access. * Shared VPC (network & subnet are required). Requires configuring Private Service Access.
string network = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNetworkBytesin interfaceVirtualMachineConfigOrBuilder- Returns:
- The bytes for network.
-
getSubnet
public String getSubnet()
Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network. A full URL or partial URI are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
string subnet = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubnetin interfaceVirtualMachineConfigOrBuilder- Returns:
- The subnet.
-
getSubnetBytes
public com.google.protobuf.ByteString getSubnetBytes()
Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network. A full URL or partial URI are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0` * `projects/[project_id]/regions/us-east1/subnetworks/sub0`
string subnet = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSubnetBytesin interfaceVirtualMachineConfigOrBuilder- Returns:
- The bytes for subnet.
-
getInternalIpOnly
public boolean getInternalIpOnly()
Optional. If true, runtime will only have internal IP addresses. By default, runtimes are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each vm. This `internal_ip_only` restriction can only be enabled for subnetwork enabled networks, and all dependencies must be configured to be accessible without external IP addresses.
bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInternalIpOnlyin interfaceVirtualMachineConfigOrBuilder- Returns:
- The internalIpOnly.
-
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 = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsListin interfaceVirtualMachineConfigOrBuilder- 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 = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsCountin interfaceVirtualMachineConfigOrBuilder- 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 = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsin interfaceVirtualMachineConfigOrBuilder- 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 = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTagsBytesin interfaceVirtualMachineConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getGuestAttributesCount
public int getGuestAttributesCount()
Description copied from interface:VirtualMachineConfigOrBuilderOutput only. The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGuestAttributesCountin interfaceVirtualMachineConfigOrBuilder
-
containsGuestAttributes
public boolean containsGuestAttributes(String key)
Output only. The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
containsGuestAttributesin interfaceVirtualMachineConfigOrBuilder
-
getGuestAttributes
@Deprecated public Map<String,String> getGuestAttributes()
Deprecated.UsegetGuestAttributesMap()instead.- Specified by:
getGuestAttributesin interfaceVirtualMachineConfigOrBuilder
-
getGuestAttributesMap
public Map<String,String> getGuestAttributesMap()
Output only. The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGuestAttributesMapin interfaceVirtualMachineConfigOrBuilder
-
getGuestAttributesOrDefault
public String getGuestAttributesOrDefault(String key, String defaultValue)
Output only. The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGuestAttributesOrDefaultin interfaceVirtualMachineConfigOrBuilder
-
getGuestAttributesOrThrow
public String getGuestAttributesOrThrow(String key)
Output only. The Compute Engine guest attributes. (see [Project and instance guest attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGuestAttributesOrThrowin interfaceVirtualMachineConfigOrBuilder
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:VirtualMachineConfigOrBuilderOptional. The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataCountin interfaceVirtualMachineConfigOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
Optional. The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsMetadatain interfaceVirtualMachineConfigOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceVirtualMachineConfigOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
Optional. The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataMapin interfaceVirtualMachineConfigOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
Optional. The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataOrDefaultin interfaceVirtualMachineConfigOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
Optional. The Compute Engine metadata entries to add to virtual machine. (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataOrThrowin interfaceVirtualMachineConfigOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:VirtualMachineConfigOrBuilderOptional. The labels to associate with this runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceVirtualMachineConfigOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Optional. The labels to associate with this runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceVirtualMachineConfigOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceVirtualMachineConfigOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Optional. The labels to associate with this runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceVirtualMachineConfigOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Optional. The labels to associate with this runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceVirtualMachineConfigOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Optional. The labels to associate with this runtime. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceVirtualMachineConfigOrBuilder
-
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.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNicTypeValuein interfaceVirtualMachineConfigOrBuilder- Returns:
- The enum numeric value on the wire for nicType.
-
getNicType
public VirtualMachineConfig.NicType getNicType()
Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
.google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNicTypein interfaceVirtualMachineConfigOrBuilder- Returns:
- The nicType.
-
getReservedIpRange
public String getReservedIpRange()
Optional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range *name* if it's assigned. Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be: `managed-notebooks-range-c`string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReservedIpRangein interfaceVirtualMachineConfigOrBuilder- Returns:
- The reservedIpRange.
-
getReservedIpRangeBytes
public com.google.protobuf.ByteString getReservedIpRangeBytes()
Optional. Reserved IP Range name is used for VPC Peering. The subnetwork allocation will use the range *name* if it's assigned. Example: managed-notebooks-range-c PEERING_RANGE_NAME_3=managed-notebooks-range-c gcloud compute addresses create $PEERING_RANGE_NAME_3 \ --global \ --prefix-length=24 \ --description="Google Cloud Managed Notebooks Range 24 c" \ --network=$NETWORK \ --addresses=192.168.0.0 \ --purpose=VPC_PEERING Field value will be: `managed-notebooks-range-c`string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReservedIpRangeBytesin interfaceVirtualMachineConfigOrBuilder- Returns:
- The bytes for reservedIpRange.
-
hasBootImage
public boolean hasBootImage()
Optional. Boot image metadata used for runtime upgradeability.
.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasBootImagein interfaceVirtualMachineConfigOrBuilder- Returns:
- Whether the bootImage field is set.
-
getBootImage
public VirtualMachineConfig.BootImage getBootImage()
Optional. Boot image metadata used for runtime upgradeability.
.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBootImagein interfaceVirtualMachineConfigOrBuilder- Returns:
- The bootImage.
-
getBootImageOrBuilder
public VirtualMachineConfig.BootImageOrBuilder getBootImageOrBuilder()
Optional. Boot image metadata used for runtime upgradeability.
.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBootImageOrBuilderin interfaceVirtualMachineConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VirtualMachineConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachineConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachineConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachineConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachineConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachineConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachineConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static VirtualMachineConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static VirtualMachineConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static VirtualMachineConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static VirtualMachineConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static VirtualMachineConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public VirtualMachineConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static VirtualMachineConfig.Builder newBuilder()
-
newBuilder
public static VirtualMachineConfig.Builder newBuilder(VirtualMachineConfig prototype)
-
toBuilder
public VirtualMachineConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VirtualMachineConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static VirtualMachineConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<VirtualMachineConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<VirtualMachineConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public VirtualMachineConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-