Class SourceInstanceProperties.Builder (1.54.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.SavedAttachedDisk>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.AcceleratorConfig>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.NetworkInterface>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.compute.v1.ServiceAccount>
Returns
Type Description
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
Name Description
value SavedAttachedDisk
Returns
Type Description
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
Name Description
builderForValue SavedAttachedDisk.Builder
Returns
Type Description
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
Name Description
index int
value SavedAttachedDisk
Returns
Type Description
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
Name Description
index int
builderForValue SavedAttachedDisk.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value AcceleratorConfig
Returns
Type Description
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
Name Description
builderForValue AcceleratorConfig.Builder
Returns
Type Description
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
Name Description
index int
value AcceleratorConfig
Returns
Type Description
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
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value NetworkInterface
Returns
Type Description
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
Name Description
builderForValue NetworkInterface.Builder
Returns
Type Description
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
Name Description
index int
value NetworkInterface
Returns
Type Description
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
Name Description
index int
builderForValue NetworkInterface.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
NetworkInterface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SourceInstanceProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value ServiceAccount
Returns
Type Description
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
Name Description
builderForValue ServiceAccount.Builder
Returns
Type Description
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
Name Description
index int
value ServiceAccount
Returns
Type Description
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
Name Description
index int
builderForValue ServiceAccount.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
ServiceAccount.Builder

build()

public SourceInstanceProperties build()
Returns
Type Description
SourceInstanceProperties

buildPartial()

public SourceInstanceProperties buildPartial()
Returns
Type Description
SourceInstanceProperties

clear()

public SourceInstanceProperties.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
SourceInstanceProperties.Builder

clearField(Descriptors.FieldDescriptor field)

public SourceInstanceProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
SourceInstanceProperties.Builder

This builder for chaining.

clearLabels()

public SourceInstanceProperties.Builder clearLabels()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
SourceInstanceProperties.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SourceInstanceProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
SourceInstanceProperties.Builder

clone()

public SourceInstanceProperties.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Type Description
boolean

The canIpForward.

getDefaultInstanceForType()

public SourceInstanceProperties getDefaultInstanceForType()
Returns
Type Description
SourceInstanceProperties

getDeletionProtection()

public boolean getDeletionProtection()

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

optional bool deletion_protection = 458014698;

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes 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 this machine image.

map<string, string> labels = 500195327;

Returns
Type Description
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
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 this machine image.

map<string, string> labels = 500195327;

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 this machine image.

map<string, string> labels = 500195327;

Parameter
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
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>

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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
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. Check the KeyRevocationActionType enum for the list of possible values.

optional string key_revocation_action_type = 235941474;

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 this machine image.

optional string machine_type = 227711026;

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 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
Type Description
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
Type Description
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
Type Description
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
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(SourceInstanceProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SourceInstanceProperties.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Metadata
Returns
Type Description
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
Name Description
value Scheduling
Returns
Type Description
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
Name Description
value Tags
Returns
Type Description
SourceInstanceProperties.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SourceInstanceProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
value boolean

The canIpForward to set.

Returns
Type Description
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
Name Description
value boolean

The deletionProtection to set.

Returns
Type Description
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
Name Description
value String

The description to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
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
Name Description
index int
value SavedAttachedDisk
Returns
Type Description
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
Name Description
index int
builderForValue SavedAttachedDisk.Builder
Returns
Type Description
SourceInstanceProperties.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SourceInstanceProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value AcceleratorConfig
Returns
Type Description
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
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
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
Name Description
value String

The keyRevocationActionType to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for keyRevocationActionType to set.

Returns
Type Description
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
Name Description
value String

The machineType to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
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
Name Description
value Metadata
Returns
Type Description
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
Name Description
builderForValue Metadata.Builder
Returns
Type Description
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
Name Description
value String

The minCpuPlatform to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for minCpuPlatform to set.

Returns
Type Description
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
Name Description
index int
value NetworkInterface
Returns
Type Description
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
Name Description
index int
builderForValue NetworkInterface.Builder
Returns
Type Description
SourceInstanceProperties.Builder

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

public SourceInstanceProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Scheduling
Returns
Type Description
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
Name Description
builderForValue Scheduling.Builder
Returns
Type Description
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
Name Description
index int
value ServiceAccount
Returns
Type Description
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
Name Description
index int
builderForValue ServiceAccount.Builder
Returns
Type Description
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
Name Description
value Tags
Returns
Type Description
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
Name Description
builderForValue Tags.Builder
Returns
Type Description
SourceInstanceProperties.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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