Package com.google.cloud.compute.v1
Interface SourceInstancePropertiesOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SourceInstanceProperties
,SourceInstanceProperties.Builder
public interface SourceInstancePropertiesOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels to apply to instances that are created from this machine image.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.boolean
getDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.String
getDescription()
An optional text description for the instances that are created from this machine image.com.google.protobuf.ByteString
getDescriptionBytes()
An optional text description for the instances that are created from this machine image.SavedAttachedDisk
getDisks(int index)
An array of disks that are associated with the instances that are created from this machine image.int
getDisksCount()
An array of disks that are associated with the instances that are created from this machine image.List<SavedAttachedDisk>
getDisksList()
An array of disks that are associated with the instances that are created from this machine image.SavedAttachedDiskOrBuilder
getDisksOrBuilder(int index)
An array of disks that are associated with the instances that are created from this machine image.List<? extends SavedAttachedDiskOrBuilder>
getDisksOrBuilderList()
An array of disks that are associated with the instances that are created from this machine image.AcceleratorConfig
getGuestAccelerators(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.int
getGuestAcceleratorsCount()
A list of guest accelerator cards' type and count to use for instances created from this machine image.List<AcceleratorConfig>
getGuestAcceleratorsList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.AcceleratorConfigOrBuilder
getGuestAcceleratorsOrBuilder(int index)
A list of guest accelerator cards' type and count to use for instances created from this machine image.List<? extends AcceleratorConfigOrBuilder>
getGuestAcceleratorsOrBuilderList()
A list of guest accelerator cards' type and count to use for instances created from this machine image.String
getKeyRevocationActionType()
KeyRevocationActionType of the instance.com.google.protobuf.ByteString
getKeyRevocationActionTypeBytes()
KeyRevocationActionType of the instance.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels to apply to instances that are created from this machine image.Map<String,String>
getLabelsMap()
Labels to apply to instances that are created from this machine image.String
getLabelsOrDefault(String key, String defaultValue)
Labels to apply to instances that are created from this machine image.String
getLabelsOrThrow(String key)
Labels to apply to instances that are created from this machine image.String
getMachineType()
The machine type to use for instances that are created from this machine image.com.google.protobuf.ByteString
getMachineTypeBytes()
The machine type to use for instances that are created from this machine image.Metadata
getMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image.MetadataOrBuilder
getMetadataOrBuilder()
The metadata key/value pairs to assign to instances that are created from this machine image.String
getMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image.com.google.protobuf.ByteString
getMinCpuPlatformBytes()
Minimum cpu/platform to be used by instances created from this machine image.NetworkInterface
getNetworkInterfaces(int index)
An array of network access configurations for this interface.int
getNetworkInterfacesCount()
An array of network access configurations for this interface.List<NetworkInterface>
getNetworkInterfacesList()
An array of network access configurations for this interface.NetworkInterfaceOrBuilder
getNetworkInterfacesOrBuilder(int index)
An array of network access configurations for this interface.List<? extends NetworkInterfaceOrBuilder>
getNetworkInterfacesOrBuilderList()
An array of network access configurations for this interface.Scheduling
getScheduling()
Specifies the scheduling options for the instances that are created from this machine image.SchedulingOrBuilder
getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from this machine image.ServiceAccount
getServiceAccounts(int index)
A list of service accounts with specified scopes.int
getServiceAccountsCount()
A list of service accounts with specified scopes.List<ServiceAccount>
getServiceAccountsList()
A list of service accounts with specified scopes.ServiceAccountOrBuilder
getServiceAccountsOrBuilder(int index)
A list of service accounts with specified scopes.List<? extends ServiceAccountOrBuilder>
getServiceAccountsOrBuilderList()
A list of service accounts with specified scopes.Tags
getTags()
A list of tags to apply to the instances that are created from this machine image.TagsOrBuilder
getTagsOrBuilder()
A list of tags to apply to the instances that are created from this machine image.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.boolean
hasDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.boolean
hasDescription()
An optional text description for the instances that are created from this machine image.boolean
hasKeyRevocationActionType()
KeyRevocationActionType of the instance.boolean
hasMachineType()
The machine type to use for instances that are created from this machine image.boolean
hasMetadata()
The metadata key/value pairs to assign to instances that are created from this machine image.boolean
hasMinCpuPlatform()
Minimum cpu/platform to be used by instances created from this machine image.boolean
hasScheduling()
Specifies the scheduling options for the instances that are created from this machine image.boolean
hasTags()
A list of tags to apply to the instances that are created from this machine image.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasCanIpForward
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:
- Whether the canIpForward field is set.
-
getCanIpForward
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:
- The canIpForward.
-
hasDeletionProtection
boolean hasDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.
optional bool deletion_protection = 458014698;
- Returns:
- Whether the deletionProtection field is set.
-
getDeletionProtection
boolean getDeletionProtection()
Whether the instance created from this machine image should be protected against deletion.
optional bool deletion_protection = 458014698;
- Returns:
- The deletionProtection.
-
hasDescription
boolean hasDescription()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
An optional text description for the instances that are created from this machine image.
optional string description = 422937596;
- Returns:
- The bytes for description.
-
getDisksList
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;
-
getDisks
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;
-
getDisksCount
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;
-
getDisksOrBuilderList
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;
-
getDisksOrBuilder
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;
-
getGuestAcceleratorsList
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;
-
getGuestAccelerators
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;
-
getGuestAcceleratorsCount
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;
-
getGuestAcceleratorsOrBuilderList
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;
-
getGuestAcceleratorsOrBuilder
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;
-
hasKeyRevocationActionType
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:
- Whether the keyRevocationActionType field is set.
-
getKeyRevocationActionType
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:
- The keyRevocationActionType.
-
getKeyRevocationActionTypeBytes
com.google.protobuf.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:
- The bytes for keyRevocationActionType.
-
getLabelsCount
int getLabelsCount()
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
-
containsLabels
boolean containsLabels(String key)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327;
-
hasMachineType
boolean hasMachineType()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Returns:
- Whether the machineType field is set.
-
getMachineType
String getMachineType()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Returns:
- The machineType.
-
getMachineTypeBytes
com.google.protobuf.ByteString getMachineTypeBytes()
The machine type to use for instances that are created from this machine image.
optional string machine_type = 227711026;
- Returns:
- The bytes for machineType.
-
hasMetadata
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:
- Whether the metadata field is set.
-
getMetadata
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:
- The metadata.
-
getMetadataOrBuilder
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;
-
hasMinCpuPlatform
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:
- Whether the minCpuPlatform field is set.
-
getMinCpuPlatform
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:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
com.google.protobuf.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:
- The bytes for minCpuPlatform.
-
getNetworkInterfacesList
List<NetworkInterface> getNetworkInterfacesList()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfaces
NetworkInterface getNetworkInterfaces(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfacesCount
int getNetworkInterfacesCount()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfacesOrBuilderList
List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
getNetworkInterfacesOrBuilder
NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
-
hasScheduling
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:
- Whether the scheduling field is set.
-
getScheduling
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:
- The scheduling.
-
getSchedulingOrBuilder
SchedulingOrBuilder getSchedulingOrBuilder()
Specifies the scheduling options for the instances that are created from this machine image.
optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
-
getServiceAccountsList
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;
-
getServiceAccounts
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;
-
getServiceAccountsCount
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;
-
getServiceAccountsOrBuilderList
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;
-
getServiceAccountsOrBuilder
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;
-
hasTags
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:
- Whether the tags field is set.
-
getTags
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:
- The tags.
-
getTagsOrBuilder
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;
-
-