Class ComputeInstanceBackupProperties.Builder (0.10.0)

public static final class ComputeInstanceBackupProperties.Builder extends GeneratedMessageV3.Builder<ComputeInstanceBackupProperties.Builder> implements ComputeInstanceBackupPropertiesOrBuilder

ComputeInstanceBackupProperties represents Compute Engine instance backup properties.

Protobuf type google.cloud.backupdr.v1.ComputeInstanceBackupProperties

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDisk(Iterable<? extends AttachedDisk> values)

public ComputeInstanceBackupProperties.Builder addAllDisk(Iterable<? extends AttachedDisk> values)

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
values Iterable<? extends com.google.cloud.backupdr.v1.AttachedDisk>
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addAllGuestAccelerator(Iterable<? extends AcceleratorConfig> values)

public ComputeInstanceBackupProperties.Builder addAllGuestAccelerator(Iterable<? extends AcceleratorConfig> values)

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
values Iterable<? extends com.google.cloud.backupdr.v1.AcceleratorConfig>
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addAllNetworkInterface(Iterable<? extends NetworkInterface> values)

public ComputeInstanceBackupProperties.Builder addAllNetworkInterface(Iterable<? extends NetworkInterface> values)

An array of network access configurations for this interface.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.backupdr.v1.NetworkInterface>
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addAllServiceAccount(Iterable<? extends ServiceAccount> values)

public ComputeInstanceBackupProperties.Builder addAllServiceAccount(Iterable<? extends ServiceAccount> values)

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
values Iterable<? extends com.google.cloud.backupdr.v1.ServiceAccount>
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addDisk(AttachedDisk value)

public ComputeInstanceBackupProperties.Builder addDisk(AttachedDisk value)

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
value AttachedDisk
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addDisk(AttachedDisk.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder addDisk(AttachedDisk.Builder builderForValue)

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
builderForValue AttachedDisk.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addDisk(int index, AttachedDisk value)

public ComputeInstanceBackupProperties.Builder addDisk(int index, AttachedDisk value)

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

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

Parameters
Name Description
index int
value AttachedDisk
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addDisk(int index, AttachedDisk.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder addDisk(int index, AttachedDisk.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue AttachedDisk.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addDiskBuilder()

public AttachedDisk.Builder addDiskBuilder()

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
AttachedDisk.Builder

addDiskBuilder(int index)

public AttachedDisk.Builder addDiskBuilder(int index)

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.Builder

addGuestAccelerator(AcceleratorConfig value)

public ComputeInstanceBackupProperties.Builder addGuestAccelerator(AcceleratorConfig value)

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
value AcceleratorConfig
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addGuestAccelerator(AcceleratorConfig.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder addGuestAccelerator(AcceleratorConfig.Builder builderForValue)

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
builderForValue AcceleratorConfig.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addGuestAccelerator(int index, AcceleratorConfig value)

public ComputeInstanceBackupProperties.Builder addGuestAccelerator(int index, AcceleratorConfig value)

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;

Parameters
Name Description
index int
value AcceleratorConfig
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addGuestAccelerator(int index, AcceleratorConfig.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder addGuestAccelerator(int index, AcceleratorConfig.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addGuestAcceleratorBuilder()

public AcceleratorConfig.Builder addGuestAcceleratorBuilder()

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
AcceleratorConfig.Builder

addGuestAcceleratorBuilder(int index)

public AcceleratorConfig.Builder addGuestAcceleratorBuilder(int index)

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.Builder

addNetworkInterface(NetworkInterface value)

public ComputeInstanceBackupProperties.Builder addNetworkInterface(NetworkInterface value)

An array of network access configurations for this interface.

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

Parameter
Name Description
value NetworkInterface
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addNetworkInterface(NetworkInterface.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder addNetworkInterface(NetworkInterface.Builder builderForValue)

An array of network access configurations for this interface.

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

Parameter
Name Description
builderForValue NetworkInterface.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addNetworkInterface(int index, NetworkInterface value)

public ComputeInstanceBackupProperties.Builder addNetworkInterface(int index, NetworkInterface value)

An array of network access configurations for this interface.

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

Parameters
Name Description
index int
value NetworkInterface
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addNetworkInterface(int index, NetworkInterface.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder addNetworkInterface(int index, NetworkInterface.Builder builderForValue)

An array of network access configurations for this interface.

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

Parameters
Name Description
index int
builderForValue NetworkInterface.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addNetworkInterfaceBuilder()

public NetworkInterface.Builder addNetworkInterfaceBuilder()

An array of network access configurations for this interface.

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

Returns
Type Description
NetworkInterface.Builder

addNetworkInterfaceBuilder(int index)

public NetworkInterface.Builder addNetworkInterfaceBuilder(int index)

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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeInstanceBackupProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides

addServiceAccount(ServiceAccount value)

public ComputeInstanceBackupProperties.Builder addServiceAccount(ServiceAccount value)

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
value ServiceAccount
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addServiceAccount(ServiceAccount.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder addServiceAccount(ServiceAccount.Builder builderForValue)

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
builderForValue ServiceAccount.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addServiceAccount(int index, ServiceAccount value)

public ComputeInstanceBackupProperties.Builder addServiceAccount(int index, ServiceAccount value)

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;

Parameters
Name Description
index int
value ServiceAccount
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addServiceAccount(int index, ServiceAccount.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder addServiceAccount(int index, ServiceAccount.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ServiceAccount.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

addServiceAccountBuilder()

public ServiceAccount.Builder addServiceAccountBuilder()

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
ServiceAccount.Builder

addServiceAccountBuilder(int index)

public ServiceAccount.Builder addServiceAccountBuilder(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 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.Builder

build()

public ComputeInstanceBackupProperties build()
Returns
Type Description
ComputeInstanceBackupProperties

buildPartial()

public ComputeInstanceBackupProperties buildPartial()
Returns
Type Description
ComputeInstanceBackupProperties

clear()

public ComputeInstanceBackupProperties.Builder clear()
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides

clearCanIpForward()

public ComputeInstanceBackupProperties.Builder clearCanIpForward()

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
ComputeInstanceBackupProperties.Builder

This builder for chaining.

clearDescription()

public ComputeInstanceBackupProperties.Builder clearDescription()

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

optional string description = 1;

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

clearDisk()

public ComputeInstanceBackupProperties.Builder clearDisk()

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
ComputeInstanceBackupProperties.Builder

clearField(Descriptors.FieldDescriptor field)

public ComputeInstanceBackupProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides

clearGuestAccelerator()

public ComputeInstanceBackupProperties.Builder clearGuestAccelerator()

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
ComputeInstanceBackupProperties.Builder

clearKeyRevocationActionType()

public ComputeInstanceBackupProperties.Builder clearKeyRevocationActionType()

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
ComputeInstanceBackupProperties.Builder

This builder for chaining.

clearLabels()

public ComputeInstanceBackupProperties.Builder clearLabels()
Returns
Type Description
ComputeInstanceBackupProperties.Builder

clearMachineType()

public ComputeInstanceBackupProperties.Builder clearMachineType()

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

optional string machine_type = 3;

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

clearMetadata()

public ComputeInstanceBackupProperties.Builder clearMetadata()

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
ComputeInstanceBackupProperties.Builder

clearMinCpuPlatform()

public ComputeInstanceBackupProperties.Builder clearMinCpuPlatform()

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
ComputeInstanceBackupProperties.Builder

This builder for chaining.

clearNetworkInterface()

public ComputeInstanceBackupProperties.Builder clearNetworkInterface()

An array of network access configurations for this interface.

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

Returns
Type Description
ComputeInstanceBackupProperties.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeInstanceBackupProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides

clearScheduling()

public ComputeInstanceBackupProperties.Builder clearScheduling()

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

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

Returns
Type Description
ComputeInstanceBackupProperties.Builder

clearServiceAccount()

public ComputeInstanceBackupProperties.Builder clearServiceAccount()

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
ComputeInstanceBackupProperties.Builder

clearSourceInstance()

public ComputeInstanceBackupProperties.Builder clearSourceInstance()

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
ComputeInstanceBackupProperties.Builder

This builder for chaining.

clearTags()

public ComputeInstanceBackupProperties.Builder clearTags()

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
ComputeInstanceBackupProperties.Builder

clone()

public ComputeInstanceBackupProperties.Builder clone()
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

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

public boolean getCanIpForward()

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.

getDefaultInstanceForType()

public ComputeInstanceBackupProperties getDefaultInstanceForType()
Returns
Type Description
ComputeInstanceBackupProperties

getDescription()

public String getDescription()

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

optional string description = 1;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisk(int index)

public AttachedDisk getDisk(int index)

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

getDiskBuilder(int index)

public AttachedDisk.Builder getDiskBuilder(int index)

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.Builder

getDiskBuilderList()

public List<AttachedDisk.Builder> getDiskBuilderList()

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<Builder>

getDiskCount()

public int getDiskCount()

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

public List<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)

public AttachedDiskOrBuilder getDiskOrBuilder(int index)

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

public List<? extends AttachedDiskOrBuilder> 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)

public AcceleratorConfig getGuestAccelerator(int index)

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

getGuestAcceleratorBuilder(int index)

public AcceleratorConfig.Builder getGuestAcceleratorBuilder(int index)

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.Builder

getGuestAcceleratorBuilderList()

public List<AcceleratorConfig.Builder> getGuestAcceleratorBuilderList()

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<Builder>

getGuestAcceleratorCount()

public int getGuestAcceleratorCount()

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

public List<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)

public AcceleratorConfigOrBuilder getGuestAcceleratorOrBuilder(int index)

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

public List<? extends AcceleratorConfigOrBuilder> 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()

public KeyRevocationActionType getKeyRevocationActionType()

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

public int getKeyRevocationActionTypeValue()

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)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

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

map<string, string> labels = 14;

Returns
Type Description
int

getLabelsMap()

public Map<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)

public String getLabelsOrDefault(String key, String defaultValue)

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)

public String getLabelsOrThrow(String key)

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

public String getMachineType()

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

public ByteString getMachineTypeBytes()

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

public Metadata getMetadata()

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.

getMetadataBuilder()

public Metadata.Builder getMetadataBuilder()

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.Builder

getMetadataOrBuilder()

public MetadataOrBuilder getMetadataOrBuilder()

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

public String getMinCpuPlatform()

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

public ByteString getMinCpuPlatformBytes()

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.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getNetworkInterface(int index)

public NetworkInterface getNetworkInterface(int index)

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

getNetworkInterfaceBuilder(int index)

public NetworkInterface.Builder getNetworkInterfaceBuilder(int index)

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.Builder

getNetworkInterfaceBuilderList()

public List<NetworkInterface.Builder> getNetworkInterfaceBuilderList()

An array of network access configurations for this interface.

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

Returns
Type Description
List<Builder>

getNetworkInterfaceCount()

public int getNetworkInterfaceCount()

An array of network access configurations for this interface.

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

Returns
Type Description
int

getNetworkInterfaceList()

public List<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)

public NetworkInterfaceOrBuilder getNetworkInterfaceOrBuilder(int index)

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

public List<? extends NetworkInterfaceOrBuilder> 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()

public Scheduling getScheduling()

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.

getSchedulingBuilder()

public Scheduling.Builder getSchedulingBuilder()

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.Builder

getSchedulingOrBuilder()

public SchedulingOrBuilder getSchedulingOrBuilder()

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)

public ServiceAccount getServiceAccount(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 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

getServiceAccountBuilder(int index)

public ServiceAccount.Builder getServiceAccountBuilder(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 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.Builder

getServiceAccountBuilderList()

public List<ServiceAccount.Builder> getServiceAccountBuilderList()

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<Builder>

getServiceAccountCount()

public int getServiceAccountCount()

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

public List<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)

public ServiceAccountOrBuilder getServiceAccountOrBuilder(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 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()

public List<? extends ServiceAccountOrBuilder> 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()

public String getSourceInstance()

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

public ByteString getSourceInstanceBytes()

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

public Tags getTags()

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.

getTagsBuilder()

public Tags.Builder getTagsBuilder()

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.Builder

getTagsOrBuilder()

public TagsOrBuilder getTagsOrBuilder()

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

public boolean hasCanIpForward()

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

public boolean hasDescription()

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

public boolean hasKeyRevocationActionType()

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

public boolean hasMachineType()

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

public boolean hasMetadata()

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

public boolean hasMinCpuPlatform()

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

public boolean hasScheduling()

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

public boolean hasSourceInstance()

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

public boolean hasTags()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeInstanceBackupProperties other)

public ComputeInstanceBackupProperties.Builder mergeFrom(ComputeInstanceBackupProperties other)
Parameter
Name Description
other ComputeInstanceBackupProperties
Returns
Type Description
ComputeInstanceBackupProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeInstanceBackupProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeInstanceBackupProperties.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides

mergeMetadata(Metadata value)

public ComputeInstanceBackupProperties.Builder mergeMetadata(Metadata value)

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;

Parameter
Name Description
value Metadata
Returns
Type Description
ComputeInstanceBackupProperties.Builder

mergeScheduling(Scheduling value)

public ComputeInstanceBackupProperties.Builder mergeScheduling(Scheduling value)

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

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

Parameter
Name Description
value Scheduling
Returns
Type Description
ComputeInstanceBackupProperties.Builder

mergeTags(Tags value)

public ComputeInstanceBackupProperties.Builder mergeTags(Tags value)

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;

Parameter
Name Description
value Tags
Returns
Type Description
ComputeInstanceBackupProperties.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeInstanceBackupProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides

putAllLabels(Map<String,String> values)

public ComputeInstanceBackupProperties.Builder putAllLabels(Map<String,String> values)

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

map<string, string> labels = 14;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ComputeInstanceBackupProperties.Builder

putLabels(String key, String value)

public ComputeInstanceBackupProperties.Builder putLabels(String key, String value)

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

map<string, string> labels = 14;

Parameters
Name Description
key String
value String
Returns
Type Description
ComputeInstanceBackupProperties.Builder

removeDisk(int index)

public ComputeInstanceBackupProperties.Builder removeDisk(int index)

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
ComputeInstanceBackupProperties.Builder

removeGuestAccelerator(int index)

public ComputeInstanceBackupProperties.Builder removeGuestAccelerator(int index)

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
ComputeInstanceBackupProperties.Builder

removeLabels(String key)

public ComputeInstanceBackupProperties.Builder removeLabels(String key)

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

map<string, string> labels = 14;

Parameter
Name Description
key String
Returns
Type Description
ComputeInstanceBackupProperties.Builder

removeNetworkInterface(int index)

public ComputeInstanceBackupProperties.Builder removeNetworkInterface(int index)

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
ComputeInstanceBackupProperties.Builder

removeServiceAccount(int index)

public ComputeInstanceBackupProperties.Builder removeServiceAccount(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 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
ComputeInstanceBackupProperties.Builder

setCanIpForward(boolean value)

public ComputeInstanceBackupProperties.Builder setCanIpForward(boolean value)

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;

Parameter
Name Description
value boolean

The canIpForward to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setDescription(String value)

public ComputeInstanceBackupProperties.Builder setDescription(String value)

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

optional string description = 1;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ComputeInstanceBackupProperties.Builder setDescriptionBytes(ByteString value)

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

optional string description = 1;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setDisk(int index, AttachedDisk value)

public ComputeInstanceBackupProperties.Builder setDisk(int index, AttachedDisk value)

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

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

Parameters
Name Description
index int
value AttachedDisk
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setDisk(int index, AttachedDisk.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder setDisk(int index, AttachedDisk.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue AttachedDisk.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeInstanceBackupProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides

setGuestAccelerator(int index, AcceleratorConfig value)

public ComputeInstanceBackupProperties.Builder setGuestAccelerator(int index, AcceleratorConfig value)

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;

Parameters
Name Description
index int
value AcceleratorConfig
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setGuestAccelerator(int index, AcceleratorConfig.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder setGuestAccelerator(int index, AcceleratorConfig.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setKeyRevocationActionType(KeyRevocationActionType value)

public ComputeInstanceBackupProperties.Builder setKeyRevocationActionType(KeyRevocationActionType value)

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;

Parameter
Name Description
value KeyRevocationActionType

The keyRevocationActionType to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setKeyRevocationActionTypeValue(int value)

public ComputeInstanceBackupProperties.Builder setKeyRevocationActionTypeValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for keyRevocationActionType to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setMachineType(String value)

public ComputeInstanceBackupProperties.Builder setMachineType(String value)

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

optional string machine_type = 3;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public ComputeInstanceBackupProperties.Builder setMachineTypeBytes(ByteString value)

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

optional string machine_type = 3;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setMetadata(Metadata value)

public ComputeInstanceBackupProperties.Builder setMetadata(Metadata value)

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;

Parameter
Name Description
value Metadata
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setMetadata(Metadata.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder setMetadata(Metadata.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Metadata.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setMinCpuPlatform(String value)

public ComputeInstanceBackupProperties.Builder setMinCpuPlatform(String value)

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;

Parameter
Name Description
value String

The minCpuPlatform to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setMinCpuPlatformBytes(ByteString value)

public ComputeInstanceBackupProperties.Builder setMinCpuPlatformBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for minCpuPlatform to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setNetworkInterface(int index, NetworkInterface value)

public ComputeInstanceBackupProperties.Builder setNetworkInterface(int index, NetworkInterface value)

An array of network access configurations for this interface.

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

Parameters
Name Description
index int
value NetworkInterface
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setNetworkInterface(int index, NetworkInterface.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder setNetworkInterface(int index, NetworkInterface.Builder builderForValue)

An array of network access configurations for this interface.

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

Parameters
Name Description
index int
builderForValue NetworkInterface.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ComputeInstanceBackupProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides

setScheduling(Scheduling value)

public ComputeInstanceBackupProperties.Builder setScheduling(Scheduling value)

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

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

Parameter
Name Description
value Scheduling
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setScheduling(Scheduling.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder setScheduling(Scheduling.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Scheduling.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setServiceAccount(int index, ServiceAccount value)

public ComputeInstanceBackupProperties.Builder setServiceAccount(int index, ServiceAccount value)

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;

Parameters
Name Description
index int
value ServiceAccount
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setServiceAccount(int index, ServiceAccount.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder setServiceAccount(int index, ServiceAccount.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ServiceAccount.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setSourceInstance(String value)

public ComputeInstanceBackupProperties.Builder setSourceInstance(String value)

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;

Parameter
Name Description
value String

The sourceInstance to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setSourceInstanceBytes(ByteString value)

public ComputeInstanceBackupProperties.Builder setSourceInstanceBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for sourceInstance to set.

Returns
Type Description
ComputeInstanceBackupProperties.Builder

This builder for chaining.

setTags(Tags value)

public ComputeInstanceBackupProperties.Builder setTags(Tags value)

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;

Parameter
Name Description
value Tags
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setTags(Tags.Builder builderForValue)

public ComputeInstanceBackupProperties.Builder setTags(Tags.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Tags.Builder
Returns
Type Description
ComputeInstanceBackupProperties.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeInstanceBackupProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeInstanceBackupProperties.Builder
Overrides