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
@Generated
public interface SourceInstancePropertiesOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Labels to apply to instances that are created from this machine image.booleanEnables 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.booleanWhether the instance created from this machine image should be protected against deletion.An optional text description for the instances that are created from this machine image.com.google.protobuf.ByteStringAn optional text description for the instances that are created from this machine image.getDisks(int index) An array of disks that are associated with the instances that are created from this machine image.intAn array of disks that are associated with the instances that are created from this machine image.An array of disks that are associated with the instances that are created from this machine image.getDisksOrBuilder(int index) An array of disks that are associated with the instances that are created from this machine image.List<? extends SavedAttachedDiskOrBuilder>An array of disks that are associated with the instances that are created from this machine image.getGuestAccelerators(int index) A list of guest accelerator cards' type and count to use for instances created from this machine image.intA list of guest accelerator cards' type and count to use for instances created from this machine image.A list of guest accelerator cards' type and count to use for instances created from this machine image.getGuestAcceleratorsOrBuilder(int index) A list of guest accelerator cards' type and count to use for instances created from this machine image.List<? extends AcceleratorConfigOrBuilder>A list of guest accelerator cards' type and count to use for instances created from this machine image.KeyRevocationActionType of the instance.com.google.protobuf.ByteStringKeyRevocationActionType of the instance.Deprecated.intLabels to apply to instances that are created from this machine image.Labels to apply to instances that are created from this machine image.getLabelsOrDefault(String key, String defaultValue) Labels to apply to instances that are created from this machine image.getLabelsOrThrow(String key) Labels to apply to instances that are created from this machine image.The machine type to use for instances that are created from this machine image.com.google.protobuf.ByteStringThe machine type to use for instances that are created from this machine image.The metadata key/value pairs to assign to instances that are created from this machine image.The metadata key/value pairs to assign to instances that are created from this machine image.Minimum cpu/platform to be used by instances created from this machine image.com.google.protobuf.ByteStringMinimum cpu/platform to be used by instances created from this machine image.getNetworkInterfaces(int index) An array of network access configurations for this interface.intAn array of network access configurations for this interface.An array of network access configurations for this interface.getNetworkInterfacesOrBuilder(int index) An array of network access configurations for this interface.List<? extends NetworkInterfaceOrBuilder>An array of network access configurations for this interface.PostKeyRevocationActionType of the instance.com.google.protobuf.ByteStringPostKeyRevocationActionType of the instance.Specifies the scheduling options for the instances that are created from this machine image.Specifies the scheduling options for the instances that are created from this machine image.getServiceAccounts(int index) A list of service accounts with specified scopes.intA list of service accounts with specified scopes.A list of service accounts with specified scopes.getServiceAccountsOrBuilder(int index) A list of service accounts with specified scopes.List<? extends ServiceAccountOrBuilder>A list of service accounts with specified scopes.getTags()A list of tags to apply to the instances that are created from this machine image.A list of tags to apply to the instances that are created from this machine image.booleanEnables 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.booleanWhether the instance created from this machine image should be protected against deletion.booleanAn optional text description for the instances that are created from this machine image.booleanKeyRevocationActionType of the instance.booleanThe machine type to use for instances that are created from this machine image.booleanThe metadata key/value pairs to assign to instances that are created from this machine image.booleanMinimum cpu/platform to be used by instances created from this machine image.booleanPostKeyRevocationActionType of the instance.booleanSpecifies the scheduling options for the instances that are created from this machine image.booleanhasTags()A list of tags to apply to the instances that are created from this machine image.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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 tofalse. See theEnable 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 tofalse. See theEnable 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
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
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
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
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
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
getLabelsMap
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327; -
getLabelsOrDefault
Labels to apply to instances that are created from this machine image.
map<string, string> labels = 500195327; -
getLabelsOrThrow
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. SeeProject 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. SeeProject 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. SeeProject 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" orminCpuPlatform: "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" orminCpuPlatform: "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" orminCpuPlatform: "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
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
An array of network access configurations for this interface.
repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243; -
hasPostKeyRevocationActionType
boolean hasPostKeyRevocationActionType()PostKeyRevocationActionType of the instance. Check the PostKeyRevocationActionType enum for the list of possible values.
optional string post_key_revocation_action_type = 292972897;- Returns:
- Whether the postKeyRevocationActionType field is set.
-
getPostKeyRevocationActionType
String getPostKeyRevocationActionType()PostKeyRevocationActionType of the instance. Check the PostKeyRevocationActionType enum for the list of possible values.
optional string post_key_revocation_action_type = 292972897;- Returns:
- The postKeyRevocationActionType.
-
getPostKeyRevocationActionTypeBytes
com.google.protobuf.ByteString getPostKeyRevocationActionTypeBytes()PostKeyRevocationActionType of the instance. Check the PostKeyRevocationActionType enum for the list of possible values.
optional string post_key_revocation_action_type = 292972897;- Returns:
- The bytes for postKeyRevocationActionType.
-
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
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
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 withRFC1035.
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 withRFC1035.
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 withRFC1035.
optional .google.cloud.compute.v1.Tags tags = 3552281;
-