Class SourceInstanceProperties.Builder (1.24.0)

public static final class SourceInstanceProperties.Builder extends GeneratedMessageV3.Builder<SourceInstanceProperties.Builder> implements SourceInstancePropertiesOrBuilder

DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to this field.

Protobuf type google.cloud.compute.v1.SourceInstanceProperties

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllDisks(Iterable<? extends SavedAttachedDisk> values)

public SourceInstanceProperties.Builder addAllDisks(Iterable<? extends SavedAttachedDisk> values)

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
valuesIterable<? extends com.google.cloud.compute.v1.SavedAttachedDisk>
Returns
TypeDescription
SourceInstanceProperties.Builder

addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)

public SourceInstanceProperties.Builder addAllGuestAccelerators(Iterable<? extends AcceleratorConfig> values)

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
valuesIterable<? extends com.google.cloud.compute.v1.AcceleratorConfig>
Returns
TypeDescription
SourceInstanceProperties.Builder

addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)

public SourceInstanceProperties.Builder addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)

An array of network access configurations for this interface.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.NetworkInterface>
Returns
TypeDescription
SourceInstanceProperties.Builder

addAllServiceAccounts(Iterable<? extends ServiceAccount> values)

public SourceInstanceProperties.Builder addAllServiceAccounts(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 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
valuesIterable<? extends com.google.cloud.compute.v1.ServiceAccount>
Returns
TypeDescription
SourceInstanceProperties.Builder

addDisks(SavedAttachedDisk value)

public SourceInstanceProperties.Builder addDisks(SavedAttachedDisk value)

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
valueSavedAttachedDisk
Returns
TypeDescription
SourceInstanceProperties.Builder

addDisks(SavedAttachedDisk.Builder builderForValue)

public SourceInstanceProperties.Builder addDisks(SavedAttachedDisk.Builder builderForValue)

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
builderForValueSavedAttachedDisk.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

addDisks(int index, SavedAttachedDisk value)

public SourceInstanceProperties.Builder addDisks(int index, SavedAttachedDisk value)

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;

Parameters
NameDescription
indexint
valueSavedAttachedDisk
Returns
TypeDescription
SourceInstanceProperties.Builder

addDisks(int index, SavedAttachedDisk.Builder builderForValue)

public SourceInstanceProperties.Builder addDisks(int index, SavedAttachedDisk.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueSavedAttachedDisk.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

addDisksBuilder()

public SavedAttachedDisk.Builder addDisksBuilder()

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

addDisksBuilder(int index)

public SavedAttachedDisk.Builder addDisksBuilder(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.Builder

addGuestAccelerators(AcceleratorConfig value)

public SourceInstanceProperties.Builder addGuestAccelerators(AcceleratorConfig value)

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
valueAcceleratorConfig
Returns
TypeDescription
SourceInstanceProperties.Builder

addGuestAccelerators(AcceleratorConfig.Builder builderForValue)

public SourceInstanceProperties.Builder addGuestAccelerators(AcceleratorConfig.Builder builderForValue)

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
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

addGuestAccelerators(int index, AcceleratorConfig value)

public SourceInstanceProperties.Builder addGuestAccelerators(int index, AcceleratorConfig value)

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;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
SourceInstanceProperties.Builder

addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public SourceInstanceProperties.Builder addGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

addGuestAcceleratorsBuilder()

public AcceleratorConfig.Builder addGuestAcceleratorsBuilder()

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

addGuestAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder addGuestAcceleratorsBuilder(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.Builder

addNetworkInterfaces(NetworkInterface value)

public SourceInstanceProperties.Builder addNetworkInterfaces(NetworkInterface value)

An array of network access configurations for this interface.

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

Parameter
NameDescription
valueNetworkInterface
Returns
TypeDescription
SourceInstanceProperties.Builder

addNetworkInterfaces(NetworkInterface.Builder builderForValue)

public SourceInstanceProperties.Builder addNetworkInterfaces(NetworkInterface.Builder builderForValue)

An array of network access configurations for this interface.

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

Parameter
NameDescription
builderForValueNetworkInterface.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

addNetworkInterfaces(int index, NetworkInterface value)

public SourceInstanceProperties.Builder addNetworkInterfaces(int index, NetworkInterface value)

An array of network access configurations for this interface.

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

Parameters
NameDescription
indexint
valueNetworkInterface
Returns
TypeDescription
SourceInstanceProperties.Builder

addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

public SourceInstanceProperties.Builder addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

An array of network access configurations for this interface.

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

Parameters
NameDescription
indexint
builderForValueNetworkInterface.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

addNetworkInterfacesBuilder()

public NetworkInterface.Builder addNetworkInterfacesBuilder()

An array of network access configurations for this interface.

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

Returns
TypeDescription
NetworkInterface.Builder

addNetworkInterfacesBuilder(int index)

public NetworkInterface.Builder addNetworkInterfacesBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SourceInstanceProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides

addServiceAccounts(ServiceAccount value)

public SourceInstanceProperties.Builder addServiceAccounts(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 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
valueServiceAccount
Returns
TypeDescription
SourceInstanceProperties.Builder

addServiceAccounts(ServiceAccount.Builder builderForValue)

public SourceInstanceProperties.Builder addServiceAccounts(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 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
builderForValueServiceAccount.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

addServiceAccounts(int index, ServiceAccount value)

public SourceInstanceProperties.Builder addServiceAccounts(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 this machine image. Use metadata queries to obtain the access tokens for these instances.

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

Parameters
NameDescription
indexint
valueServiceAccount
Returns
TypeDescription
SourceInstanceProperties.Builder

addServiceAccounts(int index, ServiceAccount.Builder builderForValue)

public SourceInstanceProperties.Builder addServiceAccounts(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 this machine image. Use metadata queries to obtain the access tokens for these instances.

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

Parameters
NameDescription
indexint
builderForValueServiceAccount.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

addServiceAccountsBuilder()

public ServiceAccount.Builder addServiceAccountsBuilder()

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

addServiceAccountsBuilder(int index)

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

build()

public SourceInstanceProperties build()
Returns
TypeDescription
SourceInstanceProperties

buildPartial()

public SourceInstanceProperties buildPartial()
Returns
TypeDescription
SourceInstanceProperties

clear()

public SourceInstanceProperties.Builder clear()
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides

clearCanIpForward()

public SourceInstanceProperties.Builder clearCanIpForward()

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

This builder for chaining.

clearDeletionProtection()

public SourceInstanceProperties.Builder clearDeletionProtection()

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

optional bool deletion_protection = 458014698;

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

clearDescription()

public SourceInstanceProperties.Builder clearDescription()

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

optional string description = 422937596;

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

clearDisks()

public SourceInstanceProperties.Builder clearDisks()

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

clearField(Descriptors.FieldDescriptor field)

public SourceInstanceProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides

clearGuestAccelerators()

public SourceInstanceProperties.Builder clearGuestAccelerators()

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

clearKeyRevocationActionType()

public SourceInstanceProperties.Builder clearKeyRevocationActionType()

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

This builder for chaining.

clearLabels()

public SourceInstanceProperties.Builder clearLabels()
Returns
TypeDescription
SourceInstanceProperties.Builder

clearMachineType()

public SourceInstanceProperties.Builder clearMachineType()

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

optional string machine_type = 227711026;

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

clearMetadata()

public SourceInstanceProperties.Builder clearMetadata()

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

clearMinCpuPlatform()

public SourceInstanceProperties.Builder clearMinCpuPlatform()

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

This builder for chaining.

clearNetworkInterfaces()

public SourceInstanceProperties.Builder clearNetworkInterfaces()

An array of network access configurations for this interface.

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

Returns
TypeDescription
SourceInstanceProperties.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SourceInstanceProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides

clearScheduling()

public SourceInstanceProperties.Builder clearScheduling()

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

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

Returns
TypeDescription
SourceInstanceProperties.Builder

clearServiceAccounts()

public SourceInstanceProperties.Builder clearServiceAccounts()

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

clearTags()

public SourceInstanceProperties.Builder clearTags()

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

clone()

public SourceInstanceProperties.Builder clone()
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides

containsLabels(String key)

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

getDefaultInstanceForType()

public SourceInstanceProperties getDefaultInstanceForType()
Returns
TypeDescription
SourceInstanceProperties

getDeletionProtection()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisks(int index)

public 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

getDisksBuilder(int index)

public SavedAttachedDisk.Builder getDisksBuilder(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.Builder

getDisksBuilderList()

public List<SavedAttachedDisk.Builder> getDisksBuilderList()

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

getDisksCount()

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

getGuestAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder getGuestAcceleratorsBuilder(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.Builder

getGuestAcceleratorsBuilderList()

public List<AcceleratorConfig.Builder> getGuestAcceleratorsBuilderList()

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

getGuestAcceleratorsCount()

public 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 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 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 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 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 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 Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

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

map<string, string> labels = 500195327;

Returns
TypeDescription
int

getLabelsMap()

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

getMetadataBuilder()

public Metadata.Builder getMetadataBuilder()

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

getMetadataOrBuilder()

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

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getNetworkInterfaces(int index)

public 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

getNetworkInterfacesBuilder(int index)

public NetworkInterface.Builder getNetworkInterfacesBuilder(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.Builder

getNetworkInterfacesBuilderList()

public List<NetworkInterface.Builder> getNetworkInterfacesBuilderList()

An array of network access configurations for this interface.

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

Returns
TypeDescription
List<Builder>

getNetworkInterfacesCount()

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

getSchedulingBuilder()

public Scheduling.Builder getSchedulingBuilder()

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

getSchedulingOrBuilder()

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

getServiceAccountsBuilder(int index)

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

getServiceAccountsBuilderList()

public List<ServiceAccount.Builder> getServiceAccountsBuilderList()

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

getServiceAccountsCount()

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

getTagsBuilder()

public Tags.Builder getTagsBuilder()

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

getTagsOrBuilder()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SourceInstanceProperties other)

public SourceInstanceProperties.Builder mergeFrom(SourceInstanceProperties other)
Parameter
NameDescription
otherSourceInstanceProperties
Returns
TypeDescription
SourceInstanceProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SourceInstanceProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SourceInstanceProperties.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides

mergeMetadata(Metadata value)

public SourceInstanceProperties.Builder mergeMetadata(Metadata value)

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;

Parameter
NameDescription
valueMetadata
Returns
TypeDescription
SourceInstanceProperties.Builder

mergeScheduling(Scheduling value)

public SourceInstanceProperties.Builder mergeScheduling(Scheduling value)

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

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

Parameter
NameDescription
valueScheduling
Returns
TypeDescription
SourceInstanceProperties.Builder

mergeTags(Tags value)

public SourceInstanceProperties.Builder mergeTags(Tags value)

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;

Parameter
NameDescription
valueTags
Returns
TypeDescription
SourceInstanceProperties.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SourceInstanceProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides

putAllLabels(Map<String,String> values)

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

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

map<string, string> labels = 500195327;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
SourceInstanceProperties.Builder

putLabels(String key, String value)

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

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

map<string, string> labels = 500195327;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
SourceInstanceProperties.Builder

removeDisks(int index)

public SourceInstanceProperties.Builder removeDisks(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
SourceInstanceProperties.Builder

removeGuestAccelerators(int index)

public SourceInstanceProperties.Builder removeGuestAccelerators(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
SourceInstanceProperties.Builder

removeLabels(String key)

public SourceInstanceProperties.Builder removeLabels(String key)

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

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
SourceInstanceProperties.Builder

removeNetworkInterfaces(int index)

public SourceInstanceProperties.Builder removeNetworkInterfaces(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
SourceInstanceProperties.Builder

removeServiceAccounts(int index)

public SourceInstanceProperties.Builder removeServiceAccounts(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
SourceInstanceProperties.Builder

setCanIpForward(boolean value)

public SourceInstanceProperties.Builder setCanIpForward(boolean value)

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;

Parameter
NameDescription
valueboolean

The canIpForward to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setDeletionProtection(boolean value)

public SourceInstanceProperties.Builder setDeletionProtection(boolean value)

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

optional bool deletion_protection = 458014698;

Parameter
NameDescription
valueboolean

The deletionProtection to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setDescription(String value)

public SourceInstanceProperties.Builder setDescription(String value)

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

optional string description = 422937596;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public SourceInstanceProperties.Builder setDescriptionBytes(ByteString value)

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

optional string description = 422937596;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setDisks(int index, SavedAttachedDisk value)

public SourceInstanceProperties.Builder setDisks(int index, SavedAttachedDisk value)

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;

Parameters
NameDescription
indexint
valueSavedAttachedDisk
Returns
TypeDescription
SourceInstanceProperties.Builder

setDisks(int index, SavedAttachedDisk.Builder builderForValue)

public SourceInstanceProperties.Builder setDisks(int index, SavedAttachedDisk.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueSavedAttachedDisk.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SourceInstanceProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides

setGuestAccelerators(int index, AcceleratorConfig value)

public SourceInstanceProperties.Builder setGuestAccelerators(int index, AcceleratorConfig value)

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;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
SourceInstanceProperties.Builder

setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public SourceInstanceProperties.Builder setGuestAccelerators(int index, AcceleratorConfig.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

setKeyRevocationActionType(String value)

public SourceInstanceProperties.Builder setKeyRevocationActionType(String value)

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;

Parameter
NameDescription
valueString

The keyRevocationActionType to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setKeyRevocationActionTypeBytes(ByteString value)

public SourceInstanceProperties.Builder setKeyRevocationActionTypeBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for keyRevocationActionType to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setMachineType(String value)

public SourceInstanceProperties.Builder setMachineType(String value)

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

optional string machine_type = 227711026;

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public SourceInstanceProperties.Builder setMachineTypeBytes(ByteString value)

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

optional string machine_type = 227711026;

Parameter
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setMetadata(Metadata value)

public SourceInstanceProperties.Builder setMetadata(Metadata value)

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;

Parameter
NameDescription
valueMetadata
Returns
TypeDescription
SourceInstanceProperties.Builder

setMetadata(Metadata.Builder builderForValue)

public SourceInstanceProperties.Builder setMetadata(Metadata.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueMetadata.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

setMinCpuPlatform(String value)

public SourceInstanceProperties.Builder setMinCpuPlatform(String value)

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;

Parameter
NameDescription
valueString

The minCpuPlatform to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setMinCpuPlatformBytes(ByteString value)

public SourceInstanceProperties.Builder setMinCpuPlatformBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for minCpuPlatform to set.

Returns
TypeDescription
SourceInstanceProperties.Builder

This builder for chaining.

setNetworkInterfaces(int index, NetworkInterface value)

public SourceInstanceProperties.Builder setNetworkInterfaces(int index, NetworkInterface value)

An array of network access configurations for this interface.

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

Parameters
NameDescription
indexint
valueNetworkInterface
Returns
TypeDescription
SourceInstanceProperties.Builder

setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

public SourceInstanceProperties.Builder setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

An array of network access configurations for this interface.

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

Parameters
NameDescription
indexint
builderForValueNetworkInterface.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

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

public SourceInstanceProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides

setScheduling(Scheduling value)

public SourceInstanceProperties.Builder setScheduling(Scheduling value)

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

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

Parameter
NameDescription
valueScheduling
Returns
TypeDescription
SourceInstanceProperties.Builder

setScheduling(Scheduling.Builder builderForValue)

public SourceInstanceProperties.Builder setScheduling(Scheduling.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueScheduling.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

setServiceAccounts(int index, ServiceAccount value)

public SourceInstanceProperties.Builder setServiceAccounts(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 this machine image. Use metadata queries to obtain the access tokens for these instances.

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

Parameters
NameDescription
indexint
valueServiceAccount
Returns
TypeDescription
SourceInstanceProperties.Builder

setServiceAccounts(int index, ServiceAccount.Builder builderForValue)

public SourceInstanceProperties.Builder setServiceAccounts(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 this machine image. Use metadata queries to obtain the access tokens for these instances.

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

Parameters
NameDescription
indexint
builderForValueServiceAccount.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

setTags(Tags value)

public SourceInstanceProperties.Builder setTags(Tags value)

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;

Parameter
NameDescription
valueTags
Returns
TypeDescription
SourceInstanceProperties.Builder

setTags(Tags.Builder builderForValue)

public SourceInstanceProperties.Builder setTags(Tags.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueTags.Builder
Returns
TypeDescription
SourceInstanceProperties.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SourceInstanceProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SourceInstanceProperties.Builder
Overrides