Interface SourceInstancePropertiesOrBuilder (1.37.0)

public interface SourceInstancePropertiesOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Labels to apply to instances that are created from this machine image.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCanIpForward()

public abstract boolean getCanIpForward()

Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.

optional bool can_ip_forward = 467731324;

Returns
TypeDescription
boolean

The canIpForward.

getDeletionProtection()

public abstract boolean getDeletionProtection()

Whether the instance created from this machine image should be protected against deletion.

optional bool deletion_protection = 458014698;

Returns
TypeDescription
boolean

The deletionProtection.

getDescription()

public abstract String getDescription()

An optional text description for the instances that are created from this machine image.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

An optional text description for the instances that are created from this machine image.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getDisks(int index)

public abstract SavedAttachedDisk getDisks(int index)

An array of disks that are associated with the instances that are created from this machine image.

repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;

Parameter
NameDescription
indexint
Returns
TypeDescription
SavedAttachedDisk

getDisksCount()

public abstract int getDisksCount()

An array of disks that are associated with the instances that are created from this machine image.

repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;

Returns
TypeDescription
int

getDisksList()

public abstract List<SavedAttachedDisk> getDisksList()

An array of disks that are associated with the instances that are created from this machine image.

repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;

Returns
TypeDescription
List<SavedAttachedDisk>

getDisksOrBuilder(int index)

public abstract SavedAttachedDiskOrBuilder getDisksOrBuilder(int index)

An array of disks that are associated with the instances that are created from this machine image.

repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;

Parameter
NameDescription
indexint
Returns
TypeDescription
SavedAttachedDiskOrBuilder

getDisksOrBuilderList()

public abstract List<? extends SavedAttachedDiskOrBuilder> getDisksOrBuilderList()

An array of disks that are associated with the instances that are created from this machine image.

repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.SavedAttachedDiskOrBuilder>

getGuestAccelerators(int index)

public abstract AcceleratorConfig getGuestAccelerators(int index)

A list of guest accelerator cards' type and count to use for instances created from this machine image.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig

getGuestAcceleratorsCount()

public abstract int getGuestAcceleratorsCount()

A list of guest accelerator cards' type and count to use for instances created from this machine image.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
int

getGuestAcceleratorsList()

public abstract List<AcceleratorConfig> getGuestAcceleratorsList()

A list of guest accelerator cards' type and count to use for instances created from this machine image.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
List<AcceleratorConfig>

getGuestAcceleratorsOrBuilder(int index)

public abstract AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)

A list of guest accelerator cards' type and count to use for instances created from this machine image.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfigOrBuilder

getGuestAcceleratorsOrBuilderList()

public abstract List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()

A list of guest accelerator cards' type and count to use for instances created from this machine image.

repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.AcceleratorConfigOrBuilder>

getKeyRevocationActionType()

public abstract String getKeyRevocationActionType()

KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.

optional string key_revocation_action_type = 235941474;

Returns
TypeDescription
String

The keyRevocationActionType.

getKeyRevocationActionTypeBytes()

public abstract ByteString getKeyRevocationActionTypeBytes()

KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.

optional string key_revocation_action_type = 235941474;

Returns
TypeDescription
ByteString

The bytes for keyRevocationActionType.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Labels to apply to instances that are created from this machine image.

map<string, string> labels = 500195327;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Labels to apply to instances that are created from this machine image.

map<string, string> labels = 500195327;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Labels to apply to instances that are created from this machine image.

map<string, string> labels = 500195327;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Labels to apply to instances that are created from this machine image.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMachineType()

public abstract String getMachineType()

The machine type to use for instances that are created from this machine image.

optional string machine_type = 227711026;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public abstract ByteString getMachineTypeBytes()

The machine type to use for instances that are created from this machine image.

optional string machine_type = 227711026;

Returns
TypeDescription
ByteString

The bytes for machineType.

getMetadata()

public abstract Metadata getMetadata()

The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.

optional .google.cloud.compute.v1.Metadata metadata = 86866735;

Returns
TypeDescription
Metadata

The metadata.

getMetadataOrBuilder()

public abstract MetadataOrBuilder getMetadataOrBuilder()

The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.

optional .google.cloud.compute.v1.Metadata metadata = 86866735;

Returns
TypeDescription
MetadataOrBuilder

getMinCpuPlatform()

public abstract String getMinCpuPlatform()

Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public abstract ByteString getMinCpuPlatformBytes()

Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
ByteString

The bytes for minCpuPlatform.

getNetworkInterfaces(int index)

public abstract NetworkInterface getNetworkInterfaces(int index)

An array of network access configurations for this interface.

repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkInterface

getNetworkInterfacesCount()

public abstract int getNetworkInterfacesCount()

An array of network access configurations for this interface.

repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;

Returns
TypeDescription
int

getNetworkInterfacesList()

public abstract List<NetworkInterface> getNetworkInterfacesList()

An array of network access configurations for this interface.

repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;

Returns
TypeDescription
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

public abstract NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

An array of network access configurations for this interface.

repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

public abstract List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()

An array of network access configurations for this interface.

repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.NetworkInterfaceOrBuilder>

getScheduling()

public abstract Scheduling getScheduling()

Specifies the scheduling options for the instances that are created from this machine image.

optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;

Returns
TypeDescription
Scheduling

The scheduling.

getSchedulingOrBuilder()

public abstract SchedulingOrBuilder getSchedulingOrBuilder()

Specifies the scheduling options for the instances that are created from this machine image.

optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;

Returns
TypeDescription
SchedulingOrBuilder

getServiceAccounts(int index)

public abstract ServiceAccount getServiceAccounts(int index)

A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.

repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAccount

getServiceAccountsCount()

public abstract int getServiceAccountsCount()

A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.

repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;

Returns
TypeDescription
int

getServiceAccountsList()

public abstract List<ServiceAccount> getServiceAccountsList()

A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.

repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;

Returns
TypeDescription
List<ServiceAccount>

getServiceAccountsOrBuilder(int index)

public abstract ServiceAccountOrBuilder getServiceAccountsOrBuilder(int index)

A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.

repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAccountOrBuilder

getServiceAccountsOrBuilderList()

public abstract List<? extends ServiceAccountOrBuilder> getServiceAccountsOrBuilderList()

A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances.

repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.ServiceAccountOrBuilder>

getTags()

public abstract Tags getTags()

A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.

optional .google.cloud.compute.v1.Tags tags = 3552281;

Returns
TypeDescription
Tags

The tags.

getTagsOrBuilder()

public abstract TagsOrBuilder getTagsOrBuilder()

A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.

optional .google.cloud.compute.v1.Tags tags = 3552281;

Returns
TypeDescription
TagsOrBuilder

hasCanIpForward()

public abstract boolean hasCanIpForward()

Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information.

optional bool can_ip_forward = 467731324;

Returns
TypeDescription
boolean

Whether the canIpForward field is set.

hasDeletionProtection()

public abstract boolean hasDeletionProtection()

Whether the instance created from this machine image should be protected against deletion.

optional bool deletion_protection = 458014698;

Returns
TypeDescription
boolean

Whether the deletionProtection field is set.

hasDescription()

public abstract boolean hasDescription()

An optional text description for the instances that are created from this machine image.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasKeyRevocationActionType()

public abstract boolean hasKeyRevocationActionType()

KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. Check the KeyRevocationActionType enum for the list of possible values.

optional string key_revocation_action_type = 235941474;

Returns
TypeDescription
boolean

Whether the keyRevocationActionType field is set.

hasMachineType()

public abstract boolean hasMachineType()

The machine type to use for instances that are created from this machine image.

optional string machine_type = 227711026;

Returns
TypeDescription
boolean

Whether the machineType field is set.

hasMetadata()

public abstract boolean hasMetadata()

The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information.

optional .google.cloud.compute.v1.Metadata metadata = 86866735;

Returns
TypeDescription
boolean

Whether the metadata field is set.

hasMinCpuPlatform()

public abstract boolean hasMinCpuPlatform()

Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform.

optional string min_cpu_platform = 242912759;

Returns
TypeDescription
boolean

Whether the minCpuPlatform field is set.

hasScheduling()

public abstract boolean hasScheduling()

Specifies the scheduling options for the instances that are created from this machine image.

optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;

Returns
TypeDescription
boolean

Whether the scheduling field is set.

hasTags()

public abstract boolean hasTags()

A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035.

optional .google.cloud.compute.v1.Tags tags = 3552281;

Returns
TypeDescription
boolean

Whether the tags field is set.