Interface ComputeInstanceBackupPropertiesOrBuilder (0.29.0)

publicinterface ComputeInstanceBackupPropertiesOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

publicabstractbooleancontainsLabels(Stringkey)

Labels to apply to instances that are created from these properties.

map<string, string> labels = 14;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCanIpForward()

publicabstractbooleangetCanIpForward()

Enables instances created based on these properties 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 https://cloud.google.com/vpc/docs/using-routes#canipforward documentation for more information.

optional bool can_ip_forward = 4;

Returns
Type Description
boolean

The canIpForward.

getDescription()

publicabstractStringgetDescription()

An optional text description for the instances that are created from these properties.

optional string description = 1;

Returns
Type Description
String

The description.

getDescriptionBytes()

publicabstractByteStringgetDescriptionBytes()

An optional text description for the instances that are created from these properties.

optional string description = 1;

Returns
Type Description
ByteString

The bytes for description.

getDisk(int index)

publicabstractAttachedDiskgetDisk(intindex)

An array of disks that are associated with the instances that are created from these properties.

repeated .google.cloud.backupdr.v1.AttachedDisk disk = 6;

Parameter
Name Description
index int
Returns
Type Description
AttachedDisk

getDiskCount()

publicabstractintgetDiskCount()

An array of disks that are associated with the instances that are created from these properties.

repeated .google.cloud.backupdr.v1.AttachedDisk disk = 6;

Returns
Type Description
int

getDiskList()

publicabstractList<AttachedDisk>getDiskList()

An array of disks that are associated with the instances that are created from these properties.

repeated .google.cloud.backupdr.v1.AttachedDisk disk = 6;

Returns
Type Description
List<AttachedDisk>

getDiskOrBuilder(int index)

publicabstractAttachedDiskOrBuildergetDiskOrBuilder(intindex)

An array of disks that are associated with the instances that are created from these properties.

repeated .google.cloud.backupdr.v1.AttachedDisk disk = 6;

Parameter
Name Description
index int
Returns
Type Description
AttachedDiskOrBuilder

getDiskOrBuilderList()

publicabstractList<?extendsAttachedDiskOrBuilder>getDiskOrBuilderList()

An array of disks that are associated with the instances that are created from these properties.

repeated .google.cloud.backupdr.v1.AttachedDisk disk = 6;

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.AttachedDiskOrBuilder>

getGuestAccelerator(int index)

publicabstractAcceleratorConfiggetGuestAccelerator(intindex)

A list of guest accelerator cards' type and count to use for instances created from these properties.

repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerator = 10;

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfig

getGuestAcceleratorCount()

publicabstractintgetGuestAcceleratorCount()

A list of guest accelerator cards' type and count to use for instances created from these properties.

repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerator = 10;

Returns
Type Description
int

getGuestAcceleratorList()

publicabstractList<AcceleratorConfig>getGuestAcceleratorList()

A list of guest accelerator cards' type and count to use for instances created from these properties.

repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerator = 10;

Returns
Type Description
List<AcceleratorConfig>

getGuestAcceleratorOrBuilder(int index)

publicabstractAcceleratorConfigOrBuildergetGuestAcceleratorOrBuilder(intindex)

A list of guest accelerator cards' type and count to use for instances created from these properties.

repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerator = 10;

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfigOrBuilder

getGuestAcceleratorOrBuilderList()

publicabstractList<?extendsAcceleratorConfigOrBuilder>getGuestAcceleratorOrBuilderList()

A list of guest accelerator cards' type and count to use for instances created from these properties.

repeated .google.cloud.backupdr.v1.AcceleratorConfig guest_accelerator = 10;

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.AcceleratorConfigOrBuilder>

getKeyRevocationActionType()

publicabstractKeyRevocationActionTypegetKeyRevocationActionType()

KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.

optional .google.cloud.backupdr.v1.KeyRevocationActionType key_revocation_action_type = 12;

Returns
Type Description
KeyRevocationActionType

The keyRevocationActionType.

getKeyRevocationActionTypeValue()

publicabstractintgetKeyRevocationActionTypeValue()

KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.

optional .google.cloud.backupdr.v1.KeyRevocationActionType key_revocation_action_type = 12;

Returns
Type Description
int

The enum numeric value on the wire for keyRevocationActionType.

getLabels() (deprecated)

publicabstractMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicabstractintgetLabelsCount()

Labels to apply to instances that are created from these properties.

map<string, string> labels = 14;

Returns
Type Description
int

getLabelsMap()

publicabstractMap<String,String>getLabelsMap()

Labels to apply to instances that are created from these properties.

map<string, string> labels = 14;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicabstractStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

Labels to apply to instances that are created from these properties.

map<string, string> labels = 14;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

publicabstractStringgetLabelsOrThrow(Stringkey)

Labels to apply to instances that are created from these properties.

map<string, string> labels = 14;

Parameter
Name Description
key String
Returns
Type Description
String

getMachineType()

publicabstractStringgetMachineType()

The machine type to use for instances that are created from these properties.

optional string machine_type = 3;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

publicabstractByteStringgetMachineTypeBytes()

The machine type to use for instances that are created from these properties.

optional string machine_type = 3;

Returns
Type Description
ByteString

The bytes for machineType.

getMetadata()

publicabstractMetadatagetMetadata()

The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See https://cloud.google.com/compute/docs/metadata/overview for more information.

optional .google.cloud.backupdr.v1.Metadata metadata = 7;

Returns
Type Description
Metadata

The metadata.

getMetadataOrBuilder()

publicabstractMetadataOrBuildergetMetadataOrBuilder()

The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See https://cloud.google.com/compute/docs/metadata/overview for more information.

optional .google.cloud.backupdr.v1.Metadata metadata = 7;

Returns
Type Description
MetadataOrBuilder

getMinCpuPlatform()

publicabstractStringgetMinCpuPlatform()

Minimum cpu/platform to be used by instances. 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 https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.

optional string min_cpu_platform = 11;

Returns
Type Description
String

The minCpuPlatform.

getMinCpuPlatformBytes()

publicabstractByteStringgetMinCpuPlatformBytes()

Minimum cpu/platform to be used by instances. 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 https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.

optional string min_cpu_platform = 11;

Returns
Type Description
ByteString

The bytes for minCpuPlatform.

getNetworkInterface(int index)

publicabstractNetworkInterfacegetNetworkInterface(intindex)

An array of network access configurations for this interface.

repeated .google.cloud.backupdr.v1.NetworkInterface network_interface = 5;

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface

getNetworkInterfaceCount()

publicabstractintgetNetworkInterfaceCount()

An array of network access configurations for this interface.

repeated .google.cloud.backupdr.v1.NetworkInterface network_interface = 5;

Returns
Type Description
int

getNetworkInterfaceList()

publicabstractList<NetworkInterface>getNetworkInterfaceList()

An array of network access configurations for this interface.

repeated .google.cloud.backupdr.v1.NetworkInterface network_interface = 5;

Returns
Type Description
List<NetworkInterface>

getNetworkInterfaceOrBuilder(int index)

publicabstractNetworkInterfaceOrBuildergetNetworkInterfaceOrBuilder(intindex)

An array of network access configurations for this interface.

repeated .google.cloud.backupdr.v1.NetworkInterface network_interface = 5;

Parameter
Name Description
index int
Returns
Type Description
NetworkInterfaceOrBuilder

getNetworkInterfaceOrBuilderList()

publicabstractList<?extendsNetworkInterfaceOrBuilder>getNetworkInterfaceOrBuilderList()

An array of network access configurations for this interface.

repeated .google.cloud.backupdr.v1.NetworkInterface network_interface = 5;

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.NetworkInterfaceOrBuilder>

getScheduling()

publicabstractSchedulinggetScheduling()

Specifies the scheduling options for the instances that are created from these properties.

optional .google.cloud.backupdr.v1.Scheduling scheduling = 9;

Returns
Type Description
Scheduling

The scheduling.

getSchedulingOrBuilder()

publicabstractSchedulingOrBuildergetSchedulingOrBuilder()

Specifies the scheduling options for the instances that are created from these properties.

optional .google.cloud.backupdr.v1.Scheduling scheduling = 9;

Returns
Type Description
SchedulingOrBuilder

getServiceAccount(int index)

publicabstractServiceAccountgetServiceAccount(intindex)

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

repeated .google.cloud.backupdr.v1.ServiceAccount service_account = 8;

Parameter
Name Description
index int
Returns
Type Description
ServiceAccount

getServiceAccountCount()

publicabstractintgetServiceAccountCount()

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

repeated .google.cloud.backupdr.v1.ServiceAccount service_account = 8;

Returns
Type Description
int

getServiceAccountList()

publicabstractList<ServiceAccount>getServiceAccountList()

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

repeated .google.cloud.backupdr.v1.ServiceAccount service_account = 8;

Returns
Type Description
List<ServiceAccount>

getServiceAccountOrBuilder(int index)

publicabstractServiceAccountOrBuildergetServiceAccountOrBuilder(intindex)

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

repeated .google.cloud.backupdr.v1.ServiceAccount service_account = 8;

Parameter
Name Description
index int
Returns
Type Description
ServiceAccountOrBuilder

getServiceAccountOrBuilderList()

publicabstractList<?extendsServiceAccountOrBuilder>getServiceAccountOrBuilderList()

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

repeated .google.cloud.backupdr.v1.ServiceAccount service_account = 8;

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.ServiceAccountOrBuilder>

getSourceInstance()

publicabstractStringgetSourceInstance()

The source instance used to create this backup. This can be a partial or full URL to the resource. For example, the following are valid values: -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance -projects/project/zones/zone/instances/instance

optional string source_instance = 13;

Returns
Type Description
String

The sourceInstance.

getSourceInstanceBytes()

publicabstractByteStringgetSourceInstanceBytes()

The source instance used to create this backup. This can be a partial or full URL to the resource. For example, the following are valid values: -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance -projects/project/zones/zone/instances/instance

optional string source_instance = 13;

Returns
Type Description
ByteString

The bytes for sourceInstance.

getTags()

publicabstractTagsgetTags()

A list of tags to apply to the instances that are created from these properties. 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 (https://www.ietf.org/rfc/rfc1035.txt).

optional .google.cloud.backupdr.v1.Tags tags = 2;

Returns
Type Description
Tags

The tags.

getTagsOrBuilder()

publicabstractTagsOrBuildergetTagsOrBuilder()

A list of tags to apply to the instances that are created from these properties. 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 (https://www.ietf.org/rfc/rfc1035.txt).

optional .google.cloud.backupdr.v1.Tags tags = 2;

Returns
Type Description
TagsOrBuilder

hasCanIpForward()

publicabstractbooleanhasCanIpForward()

Enables instances created based on these properties 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 https://cloud.google.com/vpc/docs/using-routes#canipforward documentation for more information.

optional bool can_ip_forward = 4;

Returns
Type Description
boolean

Whether the canIpForward field is set.

hasDescription()

publicabstractbooleanhasDescription()

An optional text description for the instances that are created from these properties.

optional string description = 1;

Returns
Type Description
boolean

Whether the description field is set.

hasKeyRevocationActionType()

publicabstractbooleanhasKeyRevocationActionType()

KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.

optional .google.cloud.backupdr.v1.KeyRevocationActionType key_revocation_action_type = 12;

Returns
Type Description
boolean

Whether the keyRevocationActionType field is set.

hasMachineType()

publicabstractbooleanhasMachineType()

The machine type to use for instances that are created from these properties.

optional string machine_type = 3;

Returns
Type Description
boolean

Whether the machineType field is set.

hasMetadata()

publicabstractbooleanhasMetadata()

The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See https://cloud.google.com/compute/docs/metadata/overview for more information.

optional .google.cloud.backupdr.v1.Metadata metadata = 7;

Returns
Type Description
boolean

Whether the metadata field is set.

hasMinCpuPlatform()

publicabstractbooleanhasMinCpuPlatform()

Minimum cpu/platform to be used by instances. 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 https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.

optional string min_cpu_platform = 11;

Returns
Type Description
boolean

Whether the minCpuPlatform field is set.

hasScheduling()

publicabstractbooleanhasScheduling()

Specifies the scheduling options for the instances that are created from these properties.

optional .google.cloud.backupdr.v1.Scheduling scheduling = 9;

Returns
Type Description
boolean

Whether the scheduling field is set.

hasSourceInstance()

publicabstractbooleanhasSourceInstance()

The source instance used to create this backup. This can be a partial or full URL to the resource. For example, the following are valid values: -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance -projects/project/zones/zone/instances/instance

optional string source_instance = 13;

Returns
Type Description
boolean

Whether the sourceInstance field is set.

hasTags()

publicabstractbooleanhasTags()

A list of tags to apply to the instances that are created from these properties. 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 (https://www.ietf.org/rfc/rfc1035.txt).

optional .google.cloud.backupdr.v1.Tags tags = 2;

Returns
Type Description
boolean

Whether the tags field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.