Class Instance

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.Instance
All Implemented Interfaces:
InstanceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Instance extends com.google.protobuf.GeneratedMessage implements InstanceOrBuilder
 Represents an Instance resource.

 An instance is a virtual machine that is hosted on Google Cloud Platform.
 For more information, readVirtual Machine Instances.
 
Protobuf type google.cloud.compute.v1.Instance
See Also:
  • Field Details

    • ADVANCED_MACHINE_FEATURES_FIELD_NUMBER

      public static final int ADVANCED_MACHINE_FEATURES_FIELD_NUMBER
      See Also:
    • CAN_IP_FORWARD_FIELD_NUMBER

      public static final int CAN_IP_FORWARD_FIELD_NUMBER
      See Also:
    • CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER

      public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER
      See Also:
    • CPU_PLATFORM_FIELD_NUMBER

      public static final int CPU_PLATFORM_FIELD_NUMBER
      See Also:
    • CREATION_TIMESTAMP_FIELD_NUMBER

      public static final int CREATION_TIMESTAMP_FIELD_NUMBER
      See Also:
    • DELETION_PROTECTION_FIELD_NUMBER

      public static final int DELETION_PROTECTION_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • DISKS_FIELD_NUMBER

      public static final int DISKS_FIELD_NUMBER
      See Also:
    • DISPLAY_DEVICE_FIELD_NUMBER

      public static final int DISPLAY_DEVICE_FIELD_NUMBER
      See Also:
    • FINGERPRINT_FIELD_NUMBER

      public static final int FINGERPRINT_FIELD_NUMBER
      See Also:
    • GUEST_ACCELERATORS_FIELD_NUMBER

      public static final int GUEST_ACCELERATORS_FIELD_NUMBER
      See Also:
    • HOSTNAME_FIELD_NUMBER

      public static final int HOSTNAME_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • INSTANCE_ENCRYPTION_KEY_FIELD_NUMBER

      public static final int INSTANCE_ENCRYPTION_KEY_FIELD_NUMBER
      See Also:
    • KEY_REVOCATION_ACTION_TYPE_FIELD_NUMBER

      public static final int KEY_REVOCATION_ACTION_TYPE_FIELD_NUMBER
      See Also:
    • KIND_FIELD_NUMBER

      public static final int KIND_FIELD_NUMBER
      See Also:
    • LABEL_FINGERPRINT_FIELD_NUMBER

      public static final int LABEL_FINGERPRINT_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • LAST_START_TIMESTAMP_FIELD_NUMBER

      public static final int LAST_START_TIMESTAMP_FIELD_NUMBER
      See Also:
    • LAST_STOP_TIMESTAMP_FIELD_NUMBER

      public static final int LAST_STOP_TIMESTAMP_FIELD_NUMBER
      See Also:
    • LAST_SUSPENDED_TIMESTAMP_FIELD_NUMBER

      public static final int LAST_SUSPENDED_TIMESTAMP_FIELD_NUMBER
      See Also:
    • MACHINE_TYPE_FIELD_NUMBER

      public static final int MACHINE_TYPE_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
    • MIN_CPU_PLATFORM_FIELD_NUMBER

      public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • NETWORK_INTERFACES_FIELD_NUMBER

      public static final int NETWORK_INTERFACES_FIELD_NUMBER
      See Also:
    • NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER

      public static final int NETWORK_PERFORMANCE_CONFIG_FIELD_NUMBER
      See Also:
    • PARAMS_FIELD_NUMBER

      public static final int PARAMS_FIELD_NUMBER
      See Also:
    • PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER

      public static final int PRIVATE_IPV6_GOOGLE_ACCESS_FIELD_NUMBER
      See Also:
    • RESERVATION_AFFINITY_FIELD_NUMBER

      public static final int RESERVATION_AFFINITY_FIELD_NUMBER
      See Also:
    • RESOURCE_POLICIES_FIELD_NUMBER

      public static final int RESOURCE_POLICIES_FIELD_NUMBER
      See Also:
    • RESOURCE_STATUS_FIELD_NUMBER

      public static final int RESOURCE_STATUS_FIELD_NUMBER
      See Also:
    • SATISFIES_PZI_FIELD_NUMBER

      public static final int SATISFIES_PZI_FIELD_NUMBER
      See Also:
    • SATISFIES_PZS_FIELD_NUMBER

      public static final int SATISFIES_PZS_FIELD_NUMBER
      See Also:
    • SCHEDULING_FIELD_NUMBER

      public static final int SCHEDULING_FIELD_NUMBER
      See Also:
    • SERVICE_ACCOUNTS_FIELD_NUMBER

      public static final int SERVICE_ACCOUNTS_FIELD_NUMBER
      See Also:
    • SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER

      public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
      See Also:
    • SHIELDED_INSTANCE_INTEGRITY_POLICY_FIELD_NUMBER

      public static final int SHIELDED_INSTANCE_INTEGRITY_POLICY_FIELD_NUMBER
      See Also:
    • SOURCE_MACHINE_IMAGE_FIELD_NUMBER

      public static final int SOURCE_MACHINE_IMAGE_FIELD_NUMBER
      See Also:
    • SOURCE_MACHINE_IMAGE_ENCRYPTION_KEY_FIELD_NUMBER

      public static final int SOURCE_MACHINE_IMAGE_ENCRYPTION_KEY_FIELD_NUMBER
      See Also:
    • START_RESTRICTED_FIELD_NUMBER

      public static final int START_RESTRICTED_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • STATUS_MESSAGE_FIELD_NUMBER

      public static final int STATUS_MESSAGE_FIELD_NUMBER
      See Also:
    • TAGS_FIELD_NUMBER

      public static final int TAGS_FIELD_NUMBER
      See Also:
    • WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER

      public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER
      See Also:
    • ZONE_FIELD_NUMBER

      public static final int ZONE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasAdvancedMachineFeatures

      public boolean hasAdvancedMachineFeatures()
       Controls for advanced machine-related behavior features.
       
      optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
      Specified by:
      hasAdvancedMachineFeatures in interface InstanceOrBuilder
      Returns:
      Whether the advancedMachineFeatures field is set.
    • getAdvancedMachineFeatures

      public AdvancedMachineFeatures getAdvancedMachineFeatures()
       Controls for advanced machine-related behavior features.
       
      optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
      Specified by:
      getAdvancedMachineFeatures in interface InstanceOrBuilder
      Returns:
      The advancedMachineFeatures.
    • getAdvancedMachineFeaturesOrBuilder

      public AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder()
       Controls for advanced machine-related behavior features.
       
      optional .google.cloud.compute.v1.AdvancedMachineFeatures advanced_machine_features = 409646002;
      Specified by:
      getAdvancedMachineFeaturesOrBuilder in interface InstanceOrBuilder
    • hasCanIpForward

      public boolean hasCanIpForward()
       Allows this instance to send and receive packets with non-matching
       destination or source IPs. This is required if you plan to use this
       instance to forward routes. For more information, seeEnabling IP Forwarding.
       
      optional bool can_ip_forward = 467731324;
      Specified by:
      hasCanIpForward in interface InstanceOrBuilder
      Returns:
      Whether the canIpForward field is set.
    • getCanIpForward

      public boolean getCanIpForward()
       Allows this instance to send and receive packets with non-matching
       destination or source IPs. This is required if you plan to use this
       instance to forward routes. For more information, seeEnabling IP Forwarding.
       
      optional bool can_ip_forward = 467731324;
      Specified by:
      getCanIpForward in interface InstanceOrBuilder
      Returns:
      The canIpForward.
    • hasConfidentialInstanceConfig

      public boolean hasConfidentialInstanceConfig()
      optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
      Specified by:
      hasConfidentialInstanceConfig in interface InstanceOrBuilder
      Returns:
      Whether the confidentialInstanceConfig field is set.
    • getConfidentialInstanceConfig

      public ConfidentialInstanceConfig getConfidentialInstanceConfig()
      optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
      Specified by:
      getConfidentialInstanceConfig in interface InstanceOrBuilder
      Returns:
      The confidentialInstanceConfig.
    • getConfidentialInstanceConfigOrBuilder

      public ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder()
      optional .google.cloud.compute.v1.ConfidentialInstanceConfig confidential_instance_config = 490637685;
      Specified by:
      getConfidentialInstanceConfigOrBuilder in interface InstanceOrBuilder
    • hasCpuPlatform

      public boolean hasCpuPlatform()
       Output only. [Output Only] The CPU platform used by this instance.
       
      optional string cpu_platform = 410285354;
      Specified by:
      hasCpuPlatform in interface InstanceOrBuilder
      Returns:
      Whether the cpuPlatform field is set.
    • getCpuPlatform

      public String getCpuPlatform()
       Output only. [Output Only] The CPU platform used by this instance.
       
      optional string cpu_platform = 410285354;
      Specified by:
      getCpuPlatform in interface InstanceOrBuilder
      Returns:
      The cpuPlatform.
    • getCpuPlatformBytes

      public com.google.protobuf.ByteString getCpuPlatformBytes()
       Output only. [Output Only] The CPU platform used by this instance.
       
      optional string cpu_platform = 410285354;
      Specified by:
      getCpuPlatformBytes in interface InstanceOrBuilder
      Returns:
      The bytes for cpuPlatform.
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339 text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface InstanceOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339 text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface InstanceOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339 text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface InstanceOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • hasDeletionProtection

      public boolean hasDeletionProtection()
       Whether the resource should be protected against deletion.
       
      optional bool deletion_protection = 458014698;
      Specified by:
      hasDeletionProtection in interface InstanceOrBuilder
      Returns:
      Whether the deletionProtection field is set.
    • getDeletionProtection

      public boolean getDeletionProtection()
       Whether the resource should be protected against deletion.
       
      optional bool deletion_protection = 458014698;
      Specified by:
      getDeletionProtection in interface InstanceOrBuilder
      Returns:
      The deletionProtection.
    • hasDescription

      public boolean hasDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface InstanceOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface InstanceOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface InstanceOrBuilder
      Returns:
      The bytes for description.
    • getDisksList

      public List<AttachedDisk> getDisksList()
       Array of disks associated with this instance. Persistent disks must be
       created before you can assign them.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisksList in interface InstanceOrBuilder
    • getDisksOrBuilderList

      public List<? extends AttachedDiskOrBuilder> getDisksOrBuilderList()
       Array of disks associated with this instance. Persistent disks must be
       created before you can assign them.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisksOrBuilderList in interface InstanceOrBuilder
    • getDisksCount

      public int getDisksCount()
       Array of disks associated with this instance. Persistent disks must be
       created before you can assign them.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisksCount in interface InstanceOrBuilder
    • getDisks

      public AttachedDisk getDisks(int index)
       Array of disks associated with this instance. Persistent disks must be
       created before you can assign them.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisks in interface InstanceOrBuilder
    • getDisksOrBuilder

      public AttachedDiskOrBuilder getDisksOrBuilder(int index)
       Array of disks associated with this instance. Persistent disks must be
       created before you can assign them.
       
      repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102;
      Specified by:
      getDisksOrBuilder in interface InstanceOrBuilder
    • hasDisplayDevice

      public boolean hasDisplayDevice()
       Enables display device for the instance.
       
      optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;
      Specified by:
      hasDisplayDevice in interface InstanceOrBuilder
      Returns:
      Whether the displayDevice field is set.
    • getDisplayDevice

      public DisplayDevice getDisplayDevice()
       Enables display device for the instance.
       
      optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;
      Specified by:
      getDisplayDevice in interface InstanceOrBuilder
      Returns:
      The displayDevice.
    • getDisplayDeviceOrBuilder

      public DisplayDeviceOrBuilder getDisplayDeviceOrBuilder()
       Enables display device for the instance.
       
      optional .google.cloud.compute.v1.DisplayDevice display_device = 258933875;
      Specified by:
      getDisplayDeviceOrBuilder in interface InstanceOrBuilder
    • hasFingerprint

      public boolean hasFingerprint()
       Specifies a fingerprint for this resource, which is essentially a hash of
       the instance's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update the instance. You must always provide an
       up-to-date fingerprint hash in order to update the instance.
      
       To see the latest fingerprint, make get() request to the
       instance.
       
      optional string fingerprint = 234678500;
      Specified by:
      hasFingerprint in interface InstanceOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public String getFingerprint()
       Specifies a fingerprint for this resource, which is essentially a hash of
       the instance's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update the instance. You must always provide an
       up-to-date fingerprint hash in order to update the instance.
      
       To see the latest fingerprint, make get() request to the
       instance.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprint in interface InstanceOrBuilder
      Returns:
      The fingerprint.
    • getFingerprintBytes

      public com.google.protobuf.ByteString getFingerprintBytes()
       Specifies a fingerprint for this resource, which is essentially a hash of
       the instance's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update the instance. You must always provide an
       up-to-date fingerprint hash in order to update the instance.
      
       To see the latest fingerprint, make get() request to the
       instance.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprintBytes in interface InstanceOrBuilder
      Returns:
      The bytes for fingerprint.
    • getGuestAcceleratorsList

      public List<AcceleratorConfig> getGuestAcceleratorsList()
       A list of the type and count of accelerator cards attached to the instance.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAcceleratorsList in interface InstanceOrBuilder
    • getGuestAcceleratorsOrBuilderList

      public List<? extends AcceleratorConfigOrBuilder> getGuestAcceleratorsOrBuilderList()
       A list of the type and count of accelerator cards attached to the instance.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAcceleratorsOrBuilderList in interface InstanceOrBuilder
    • getGuestAcceleratorsCount

      public int getGuestAcceleratorsCount()
       A list of the type and count of accelerator cards attached to the instance.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAcceleratorsCount in interface InstanceOrBuilder
    • getGuestAccelerators

      public AcceleratorConfig getGuestAccelerators(int index)
       A list of the type and count of accelerator cards attached to the instance.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAccelerators in interface InstanceOrBuilder
    • getGuestAcceleratorsOrBuilder

      public AcceleratorConfigOrBuilder getGuestAcceleratorsOrBuilder(int index)
       A list of the type and count of accelerator cards attached to the instance.
       
      repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119;
      Specified by:
      getGuestAcceleratorsOrBuilder in interface InstanceOrBuilder
    • hasHostname

      public boolean hasHostname()
       Specifies the hostname of the instance. The specified hostname must be
       RFC1035 compliant. If hostname is not specified, the default hostname is
       [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and
       [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
       
      optional string hostname = 237067315;
      Specified by:
      hasHostname in interface InstanceOrBuilder
      Returns:
      Whether the hostname field is set.
    • getHostname

      public String getHostname()
       Specifies the hostname of the instance. The specified hostname must be
       RFC1035 compliant. If hostname is not specified, the default hostname is
       [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and
       [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
       
      optional string hostname = 237067315;
      Specified by:
      getHostname in interface InstanceOrBuilder
      Returns:
      The hostname.
    • getHostnameBytes

      public com.google.protobuf.ByteString getHostnameBytes()
       Specifies the hostname of the instance. The specified hostname must be
       RFC1035 compliant. If hostname is not specified, the default hostname is
       [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and
       [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
       
      optional string hostname = 237067315;
      Specified by:
      getHostnameBytes in interface InstanceOrBuilder
      Returns:
      The bytes for hostname.
    • hasId

      public boolean hasId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface InstanceOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface InstanceOrBuilder
      Returns:
      The id.
    • hasInstanceEncryptionKey

      public boolean hasInstanceEncryptionKey()
       Encrypts suspended data for an instance with acustomer-managed
       encryption key.
      
       If you are creating a new instance, this field will encrypt the local SSD
       and in-memory contents of the instance during the suspend operation.
      
       If you do not provide an encryption key when creating the instance, then
       the local SSD and in-memory contents will be encrypted using
       an automatically generated key during the suspend operation.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;
      Specified by:
      hasInstanceEncryptionKey in interface InstanceOrBuilder
      Returns:
      Whether the instanceEncryptionKey field is set.
    • getInstanceEncryptionKey

      public CustomerEncryptionKey getInstanceEncryptionKey()
       Encrypts suspended data for an instance with acustomer-managed
       encryption key.
      
       If you are creating a new instance, this field will encrypt the local SSD
       and in-memory contents of the instance during the suspend operation.
      
       If you do not provide an encryption key when creating the instance, then
       the local SSD and in-memory contents will be encrypted using
       an automatically generated key during the suspend operation.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;
      Specified by:
      getInstanceEncryptionKey in interface InstanceOrBuilder
      Returns:
      The instanceEncryptionKey.
    • getInstanceEncryptionKeyOrBuilder

      public CustomerEncryptionKeyOrBuilder getInstanceEncryptionKeyOrBuilder()
       Encrypts suspended data for an instance with acustomer-managed
       encryption key.
      
       If you are creating a new instance, this field will encrypt the local SSD
       and in-memory contents of the instance during the suspend operation.
      
       If you do not provide an encryption key when creating the instance, then
       the local SSD and in-memory contents will be encrypted using
       an automatically generated key during the suspend operation.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey instance_encryption_key = 64741517;
      Specified by:
      getInstanceEncryptionKeyOrBuilder in interface InstanceOrBuilder
    • 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;
      Specified by:
      hasKeyRevocationActionType in interface InstanceOrBuilder
      Returns:
      Whether the keyRevocationActionType field is set.
    • 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;
      Specified by:
      getKeyRevocationActionType in interface InstanceOrBuilder
      Returns:
      The keyRevocationActionType.
    • getKeyRevocationActionTypeBytes

      public 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;
      Specified by:
      getKeyRevocationActionTypeBytes in interface InstanceOrBuilder
      Returns:
      The bytes for keyRevocationActionType.
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of the resource. Always compute#instance
       for instances.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface InstanceOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Always compute#instance
       for instances.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface InstanceOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Always compute#instance
       for instances.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface InstanceOrBuilder
      Returns:
      The bytes for kind.
    • hasLabelFingerprint

      public boolean hasLabelFingerprint()
       A fingerprint for this request, which is essentially a hash of
       the label's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update labels. You must always provide an
       up-to-date fingerprint hash in order to update or change labels.
      
       To see the latest fingerprint, make get() request to the
       instance.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      hasLabelFingerprint in interface InstanceOrBuilder
      Returns:
      Whether the labelFingerprint field is set.
    • getLabelFingerprint

      public String getLabelFingerprint()
       A fingerprint for this request, which is essentially a hash of
       the label's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update labels. You must always provide an
       up-to-date fingerprint hash in order to update or change labels.
      
       To see the latest fingerprint, make get() request to the
       instance.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprint in interface InstanceOrBuilder
      Returns:
      The labelFingerprint.
    • getLabelFingerprintBytes

      public com.google.protobuf.ByteString getLabelFingerprintBytes()
       A fingerprint for this request, which is essentially a hash of
       the label's contents and used for optimistic locking. The
       fingerprint is initially generated by Compute Engine and changes after
       every request to modify or update labels. You must always provide an
       up-to-date fingerprint hash in order to update or change labels.
      
       To see the latest fingerprint, make get() request to the
       instance.
       
      optional string label_fingerprint = 178124825;
      Specified by:
      getLabelFingerprintBytes in interface InstanceOrBuilder
      Returns:
      The bytes for labelFingerprint.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: InstanceOrBuilder
       Labels to apply to this instance. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsCount in interface InstanceOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels to apply to this instance. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      containsLabels in interface InstanceOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface InstanceOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels to apply to this instance. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsMap in interface InstanceOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels to apply to this instance. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrDefault in interface InstanceOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels to apply to this instance. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrThrow in interface InstanceOrBuilder
    • hasLastStartTimestamp

      public boolean hasLastStartTimestamp()
       Output only. [Output Only] Last start timestamp inRFC3339 text format.
       
      optional string last_start_timestamp = 443830736;
      Specified by:
      hasLastStartTimestamp in interface InstanceOrBuilder
      Returns:
      Whether the lastStartTimestamp field is set.
    • getLastStartTimestamp

      public String getLastStartTimestamp()
       Output only. [Output Only] Last start timestamp inRFC3339 text format.
       
      optional string last_start_timestamp = 443830736;
      Specified by:
      getLastStartTimestamp in interface InstanceOrBuilder
      Returns:
      The lastStartTimestamp.
    • getLastStartTimestampBytes

      public com.google.protobuf.ByteString getLastStartTimestampBytes()
       Output only. [Output Only] Last start timestamp inRFC3339 text format.
       
      optional string last_start_timestamp = 443830736;
      Specified by:
      getLastStartTimestampBytes in interface InstanceOrBuilder
      Returns:
      The bytes for lastStartTimestamp.
    • hasLastStopTimestamp

      public boolean hasLastStopTimestamp()
       Output only. [Output Only] Last stop timestamp inRFC3339 text format.
       
      optional string last_stop_timestamp = 412823010;
      Specified by:
      hasLastStopTimestamp in interface InstanceOrBuilder
      Returns:
      Whether the lastStopTimestamp field is set.
    • getLastStopTimestamp

      public String getLastStopTimestamp()
       Output only. [Output Only] Last stop timestamp inRFC3339 text format.
       
      optional string last_stop_timestamp = 412823010;
      Specified by:
      getLastStopTimestamp in interface InstanceOrBuilder
      Returns:
      The lastStopTimestamp.
    • getLastStopTimestampBytes

      public com.google.protobuf.ByteString getLastStopTimestampBytes()
       Output only. [Output Only] Last stop timestamp inRFC3339 text format.
       
      optional string last_stop_timestamp = 412823010;
      Specified by:
      getLastStopTimestampBytes in interface InstanceOrBuilder
      Returns:
      The bytes for lastStopTimestamp.
    • hasLastSuspendedTimestamp

      public boolean hasLastSuspendedTimestamp()
       Output only. [Output Only] Last suspended timestamp inRFC3339 text format.
       
      optional string last_suspended_timestamp = 356275337;
      Specified by:
      hasLastSuspendedTimestamp in interface InstanceOrBuilder
      Returns:
      Whether the lastSuspendedTimestamp field is set.
    • getLastSuspendedTimestamp

      public String getLastSuspendedTimestamp()
       Output only. [Output Only] Last suspended timestamp inRFC3339 text format.
       
      optional string last_suspended_timestamp = 356275337;
      Specified by:
      getLastSuspendedTimestamp in interface InstanceOrBuilder
      Returns:
      The lastSuspendedTimestamp.
    • getLastSuspendedTimestampBytes

      public com.google.protobuf.ByteString getLastSuspendedTimestampBytes()
       Output only. [Output Only] Last suspended timestamp inRFC3339 text format.
       
      optional string last_suspended_timestamp = 356275337;
      Specified by:
      getLastSuspendedTimestampBytes in interface InstanceOrBuilder
      Returns:
      The bytes for lastSuspendedTimestamp.
    • hasMachineType

      public boolean hasMachineType()
       Full or partial URL of the machine type resource to use for this instance,
       in the format:zones/zone/machineTypes/machine-type. This is provided by the client
       when the instance is created. For example, the following is a valid partial
       url to a predefined
       machine type:
      
       zones/us-central1-f/machineTypes/n1-standard-1
      
      
       To create acustom
       machine type, provide a URL to a machine type in the following format,
       where CPUS is 1 or an even number up to 32 (2,
       4, 6, ... 24, etc), and MEMORY is the total
       memory for this instance. Memory must be a multiple of 256 MB and must
       be supplied in MB (e.g. 5 GB of memory is 5120 MB):
      
       zones/zone/machineTypes/custom-CPUS-MEMORY
      
      
       For example: zones/us-central1-f/machineTypes/custom-4-5120
       For a full list of restrictions, read theSpecifications
       for custom machine types.
       
      optional string machine_type = 227711026;
      Specified by:
      hasMachineType in interface InstanceOrBuilder
      Returns:
      Whether the machineType field is set.
    • getMachineType

      public String getMachineType()
       Full or partial URL of the machine type resource to use for this instance,
       in the format:zones/zone/machineTypes/machine-type. This is provided by the client
       when the instance is created. For example, the following is a valid partial
       url to a predefined
       machine type:
      
       zones/us-central1-f/machineTypes/n1-standard-1
      
      
       To create acustom
       machine type, provide a URL to a machine type in the following format,
       where CPUS is 1 or an even number up to 32 (2,
       4, 6, ... 24, etc), and MEMORY is the total
       memory for this instance. Memory must be a multiple of 256 MB and must
       be supplied in MB (e.g. 5 GB of memory is 5120 MB):
      
       zones/zone/machineTypes/custom-CPUS-MEMORY
      
      
       For example: zones/us-central1-f/machineTypes/custom-4-5120
       For a full list of restrictions, read theSpecifications
       for custom machine types.
       
      optional string machine_type = 227711026;
      Specified by:
      getMachineType in interface InstanceOrBuilder
      Returns:
      The machineType.
    • getMachineTypeBytes

      public com.google.protobuf.ByteString getMachineTypeBytes()
       Full or partial URL of the machine type resource to use for this instance,
       in the format:zones/zone/machineTypes/machine-type. This is provided by the client
       when the instance is created. For example, the following is a valid partial
       url to a predefined
       machine type:
      
       zones/us-central1-f/machineTypes/n1-standard-1
      
      
       To create acustom
       machine type, provide a URL to a machine type in the following format,
       where CPUS is 1 or an even number up to 32 (2,
       4, 6, ... 24, etc), and MEMORY is the total
       memory for this instance. Memory must be a multiple of 256 MB and must
       be supplied in MB (e.g. 5 GB of memory is 5120 MB):
      
       zones/zone/machineTypes/custom-CPUS-MEMORY
      
      
       For example: zones/us-central1-f/machineTypes/custom-4-5120
       For a full list of restrictions, read theSpecifications
       for custom machine types.
       
      optional string machine_type = 227711026;
      Specified by:
      getMachineTypeBytes in interface InstanceOrBuilder
      Returns:
      The bytes for machineType.
    • hasMetadata

      public boolean hasMetadata()
       The metadata key/value pairs assigned
       to this instance. This includes metadata keys that were explicitly defined
       for the instance.
       
      optional .google.cloud.compute.v1.Metadata metadata = 86866735;
      Specified by:
      hasMetadata in interface InstanceOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public Metadata getMetadata()
       The metadata key/value pairs assigned
       to this instance. This includes metadata keys that were explicitly defined
       for the instance.
       
      optional .google.cloud.compute.v1.Metadata metadata = 86866735;
      Specified by:
      getMetadata in interface InstanceOrBuilder
      Returns:
      The metadata.
    • getMetadataOrBuilder

      public MetadataOrBuilder getMetadataOrBuilder()
       The metadata key/value pairs assigned
       to this instance. This includes metadata keys that were explicitly defined
       for the instance.
       
      optional .google.cloud.compute.v1.Metadata metadata = 86866735;
      Specified by:
      getMetadataOrBuilder in interface InstanceOrBuilder
    • hasMinCpuPlatform

      public boolean hasMinCpuPlatform()
       Specifies aminimum CPU
       platform for the VM instance. Applicable values are the friendly names
       of CPU platforms, such as minCpuPlatform: "Intel
       Haswell" or minCpuPlatform: "Intel Sandy
       Bridge".
       
      optional string min_cpu_platform = 242912759;
      Specified by:
      hasMinCpuPlatform in interface InstanceOrBuilder
      Returns:
      Whether the minCpuPlatform field is set.
    • getMinCpuPlatform

      public String getMinCpuPlatform()
       Specifies aminimum CPU
       platform for the VM instance. Applicable values are the friendly names
       of CPU platforms, such as minCpuPlatform: "Intel
       Haswell" or minCpuPlatform: "Intel Sandy
       Bridge".
       
      optional string min_cpu_platform = 242912759;
      Specified by:
      getMinCpuPlatform in interface InstanceOrBuilder
      Returns:
      The minCpuPlatform.
    • getMinCpuPlatformBytes

      public com.google.protobuf.ByteString getMinCpuPlatformBytes()
       Specifies aminimum CPU
       platform for the VM instance. Applicable values are the friendly names
       of CPU platforms, such as minCpuPlatform: "Intel
       Haswell" or minCpuPlatform: "Intel Sandy
       Bridge".
       
      optional string min_cpu_platform = 242912759;
      Specified by:
      getMinCpuPlatformBytes in interface InstanceOrBuilder
      Returns:
      The bytes for minCpuPlatform.
    • hasName

      public boolean hasName()
       The name of the resource, provided by the client when initially creating
       the resource. The resource name must be 1-63 characters long, and comply
       withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must be
       a dash, lowercase letter, or digit, except the last character, which cannot
       be a dash.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface InstanceOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the resource, provided by the client when initially creating
       the resource. The resource name must be 1-63 characters long, and comply
       withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must be
       a dash, lowercase letter, or digit, except the last character, which cannot
       be a dash.
       
      optional string name = 3373707;
      Specified by:
      getName in interface InstanceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the resource, provided by the client when initially creating
       the resource. The resource name must be 1-63 characters long, and comply
       withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must be
       a dash, lowercase letter, or digit, except the last character, which cannot
       be a dash.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface InstanceOrBuilder
      Returns:
      The bytes for name.
    • getNetworkInterfacesList

      public List<NetworkInterface> getNetworkInterfacesList()
       An array of network configurations for this instance. These specify how
       interfaces are configured to interact with other network services, such as
       connecting to the internet. Multiple interfaces are supported
       per instance.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfacesList in interface InstanceOrBuilder
    • getNetworkInterfacesOrBuilderList

      public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
       An array of network configurations for this instance. These specify how
       interfaces are configured to interact with other network services, such as
       connecting to the internet. Multiple interfaces are supported
       per instance.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfacesOrBuilderList in interface InstanceOrBuilder
    • getNetworkInterfacesCount

      public int getNetworkInterfacesCount()
       An array of network configurations for this instance. These specify how
       interfaces are configured to interact with other network services, such as
       connecting to the internet. Multiple interfaces are supported
       per instance.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfacesCount in interface InstanceOrBuilder
    • getNetworkInterfaces

      public NetworkInterface getNetworkInterfaces(int index)
       An array of network configurations for this instance. These specify how
       interfaces are configured to interact with other network services, such as
       connecting to the internet. Multiple interfaces are supported
       per instance.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfaces in interface InstanceOrBuilder
    • getNetworkInterfacesOrBuilder

      public NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)
       An array of network configurations for this instance. These specify how
       interfaces are configured to interact with other network services, such as
       connecting to the internet. Multiple interfaces are supported
       per instance.
       
      repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243;
      Specified by:
      getNetworkInterfacesOrBuilder in interface InstanceOrBuilder
    • hasNetworkPerformanceConfig

      public boolean hasNetworkPerformanceConfig()
      optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
      Specified by:
      hasNetworkPerformanceConfig in interface InstanceOrBuilder
      Returns:
      Whether the networkPerformanceConfig field is set.
    • getNetworkPerformanceConfig

      public NetworkPerformanceConfig getNetworkPerformanceConfig()
      optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
      Specified by:
      getNetworkPerformanceConfig in interface InstanceOrBuilder
      Returns:
      The networkPerformanceConfig.
    • getNetworkPerformanceConfigOrBuilder

      public NetworkPerformanceConfigOrBuilder getNetworkPerformanceConfigOrBuilder()
      optional .google.cloud.compute.v1.NetworkPerformanceConfig network_performance_config = 398330850;
      Specified by:
      getNetworkPerformanceConfigOrBuilder in interface InstanceOrBuilder
    • hasParams

      public boolean hasParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.InstanceParams params = 78313862;
      Specified by:
      hasParams in interface InstanceOrBuilder
      Returns:
      Whether the params field is set.
    • getParams

      public InstanceParams getParams()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.InstanceParams params = 78313862;
      Specified by:
      getParams in interface InstanceOrBuilder
      Returns:
      The params.
    • getParamsOrBuilder

      public InstanceParamsOrBuilder getParamsOrBuilder()
       Input only. [Input Only] Additional params passed with the request, but not persisted
       as part of resource payload.
       
      optional .google.cloud.compute.v1.InstanceParams params = 78313862;
      Specified by:
      getParamsOrBuilder in interface InstanceOrBuilder
    • hasPrivateIpv6GoogleAccess

      public boolean hasPrivateIpv6GoogleAccess()
       The private IPv6 google access type for the VM.
       If not specified, use  INHERIT_FROM_SUBNETWORK as default.
       Check the PrivateIpv6GoogleAccess enum for the list of possible values.
       
      optional string private_ipv6_google_access = 48277006;
      Specified by:
      hasPrivateIpv6GoogleAccess in interface InstanceOrBuilder
      Returns:
      Whether the privateIpv6GoogleAccess field is set.
    • getPrivateIpv6GoogleAccess

      public String getPrivateIpv6GoogleAccess()
       The private IPv6 google access type for the VM.
       If not specified, use  INHERIT_FROM_SUBNETWORK as default.
       Check the PrivateIpv6GoogleAccess enum for the list of possible values.
       
      optional string private_ipv6_google_access = 48277006;
      Specified by:
      getPrivateIpv6GoogleAccess in interface InstanceOrBuilder
      Returns:
      The privateIpv6GoogleAccess.
    • getPrivateIpv6GoogleAccessBytes

      public com.google.protobuf.ByteString getPrivateIpv6GoogleAccessBytes()
       The private IPv6 google access type for the VM.
       If not specified, use  INHERIT_FROM_SUBNETWORK as default.
       Check the PrivateIpv6GoogleAccess enum for the list of possible values.
       
      optional string private_ipv6_google_access = 48277006;
      Specified by:
      getPrivateIpv6GoogleAccessBytes in interface InstanceOrBuilder
      Returns:
      The bytes for privateIpv6GoogleAccess.
    • hasReservationAffinity

      public boolean hasReservationAffinity()
       Specifies the reservations that this instance can consume from.
       
      optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
      Specified by:
      hasReservationAffinity in interface InstanceOrBuilder
      Returns:
      Whether the reservationAffinity field is set.
    • getReservationAffinity

      public ReservationAffinity getReservationAffinity()
       Specifies the reservations that this instance can consume from.
       
      optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
      Specified by:
      getReservationAffinity in interface InstanceOrBuilder
      Returns:
      The reservationAffinity.
    • getReservationAffinityOrBuilder

      public ReservationAffinityOrBuilder getReservationAffinityOrBuilder()
       Specifies the reservations that this instance can consume from.
       
      optional .google.cloud.compute.v1.ReservationAffinity reservation_affinity = 157850683;
      Specified by:
      getReservationAffinityOrBuilder in interface InstanceOrBuilder
    • getResourcePoliciesList

      public com.google.protobuf.ProtocolStringList getResourcePoliciesList()
       Resource policies applied to this instance.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePoliciesList in interface InstanceOrBuilder
      Returns:
      A list containing the resourcePolicies.
    • getResourcePoliciesCount

      public int getResourcePoliciesCount()
       Resource policies applied to this instance.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePoliciesCount in interface InstanceOrBuilder
      Returns:
      The count of resourcePolicies.
    • getResourcePolicies

      public String getResourcePolicies(int index)
       Resource policies applied to this instance.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePolicies in interface InstanceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The resourcePolicies at the given index.
    • getResourcePoliciesBytes

      public com.google.protobuf.ByteString getResourcePoliciesBytes(int index)
       Resource policies applied to this instance.
       
      repeated string resource_policies = 22220385;
      Specified by:
      getResourcePoliciesBytes in interface InstanceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resourcePolicies at the given index.
    • hasResourceStatus

      public boolean hasResourceStatus()
       Output only. [Output Only] Specifies values set for instance attributes as
       compared to the values requested by user in the corresponding input only
       field.
       
      optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;
      Specified by:
      hasResourceStatus in interface InstanceOrBuilder
      Returns:
      Whether the resourceStatus field is set.
    • getResourceStatus

      public ResourceStatus getResourceStatus()
       Output only. [Output Only] Specifies values set for instance attributes as
       compared to the values requested by user in the corresponding input only
       field.
       
      optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;
      Specified by:
      getResourceStatus in interface InstanceOrBuilder
      Returns:
      The resourceStatus.
    • getResourceStatusOrBuilder

      public ResourceStatusOrBuilder getResourceStatusOrBuilder()
       Output only. [Output Only] Specifies values set for instance attributes as
       compared to the values requested by user in the corresponding input only
       field.
       
      optional .google.cloud.compute.v1.ResourceStatus resource_status = 249429315;
      Specified by:
      getResourceStatusOrBuilder in interface InstanceOrBuilder
    • hasSatisfiesPzi

      public boolean hasSatisfiesPzi()
       Output only. [Output Only] Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Specified by:
      hasSatisfiesPzi in interface InstanceOrBuilder
      Returns:
      Whether the satisfiesPzi field is set.
    • getSatisfiesPzi

      public boolean getSatisfiesPzi()
       Output only. [Output Only] Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Specified by:
      getSatisfiesPzi in interface InstanceOrBuilder
      Returns:
      The satisfiesPzi.
    • hasSatisfiesPzs

      public boolean hasSatisfiesPzs()
       Output only. [Output Only] Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Specified by:
      hasSatisfiesPzs in interface InstanceOrBuilder
      Returns:
      Whether the satisfiesPzs field is set.
    • getSatisfiesPzs

      public boolean getSatisfiesPzs()
       Output only. [Output Only] Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Specified by:
      getSatisfiesPzs in interface InstanceOrBuilder
      Returns:
      The satisfiesPzs.
    • hasScheduling

      public boolean hasScheduling()
       Sets the scheduling options for this instance.
       
      optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
      Specified by:
      hasScheduling in interface InstanceOrBuilder
      Returns:
      Whether the scheduling field is set.
    • getScheduling

      public Scheduling getScheduling()
       Sets the scheduling options for this instance.
       
      optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
      Specified by:
      getScheduling in interface InstanceOrBuilder
      Returns:
      The scheduling.
    • getSchedulingOrBuilder

      public SchedulingOrBuilder getSchedulingOrBuilder()
       Sets the scheduling options for this instance.
       
      optional .google.cloud.compute.v1.Scheduling scheduling = 386688404;
      Specified by:
      getSchedulingOrBuilder in interface InstanceOrBuilder
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface InstanceOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface InstanceOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. [Output Only] Server-defined URL for this resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface InstanceOrBuilder
      Returns:
      The bytes for selfLink.
    • getServiceAccountsList

      public List<ServiceAccount> getServiceAccountsList()
       A list of service accounts, with their specified scopes, authorized for
       this instance. Only one service account per VM instance is supported.
      
       Service accounts generate access tokens that can be accessed
       through the metadata server and used to authenticate applications on the
       instance. SeeService Accounts
       for more information.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccountsList in interface InstanceOrBuilder
    • getServiceAccountsOrBuilderList

      public List<? extends ServiceAccountOrBuilder> getServiceAccountsOrBuilderList()
       A list of service accounts, with their specified scopes, authorized for
       this instance. Only one service account per VM instance is supported.
      
       Service accounts generate access tokens that can be accessed
       through the metadata server and used to authenticate applications on the
       instance. SeeService Accounts
       for more information.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccountsOrBuilderList in interface InstanceOrBuilder
    • getServiceAccountsCount

      public int getServiceAccountsCount()
       A list of service accounts, with their specified scopes, authorized for
       this instance. Only one service account per VM instance is supported.
      
       Service accounts generate access tokens that can be accessed
       through the metadata server and used to authenticate applications on the
       instance. SeeService Accounts
       for more information.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccountsCount in interface InstanceOrBuilder
    • getServiceAccounts

      public ServiceAccount getServiceAccounts(int index)
       A list of service accounts, with their specified scopes, authorized for
       this instance. Only one service account per VM instance is supported.
      
       Service accounts generate access tokens that can be accessed
       through the metadata server and used to authenticate applications on the
       instance. SeeService Accounts
       for more information.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccounts in interface InstanceOrBuilder
    • getServiceAccountsOrBuilder

      public ServiceAccountOrBuilder getServiceAccountsOrBuilder(int index)
       A list of service accounts, with their specified scopes, authorized for
       this instance. Only one service account per VM instance is supported.
      
       Service accounts generate access tokens that can be accessed
       through the metadata server and used to authenticate applications on the
       instance. SeeService Accounts
       for more information.
       
      repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328;
      Specified by:
      getServiceAccountsOrBuilder in interface InstanceOrBuilder
    • hasShieldedInstanceConfig

      public boolean hasShieldedInstanceConfig()
      optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
      Specified by:
      hasShieldedInstanceConfig in interface InstanceOrBuilder
      Returns:
      Whether the shieldedInstanceConfig field is set.
    • getShieldedInstanceConfig

      public ShieldedInstanceConfig getShieldedInstanceConfig()
      optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
      Specified by:
      getShieldedInstanceConfig in interface InstanceOrBuilder
      Returns:
      The shieldedInstanceConfig.
    • getShieldedInstanceConfigOrBuilder

      public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
      optional .google.cloud.compute.v1.ShieldedInstanceConfig shielded_instance_config = 12862901;
      Specified by:
      getShieldedInstanceConfigOrBuilder in interface InstanceOrBuilder
    • hasShieldedInstanceIntegrityPolicy

      public boolean hasShieldedInstanceIntegrityPolicy()
      optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;
      Specified by:
      hasShieldedInstanceIntegrityPolicy in interface InstanceOrBuilder
      Returns:
      Whether the shieldedInstanceIntegrityPolicy field is set.
    • getShieldedInstanceIntegrityPolicy

      public ShieldedInstanceIntegrityPolicy getShieldedInstanceIntegrityPolicy()
      optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;
      Specified by:
      getShieldedInstanceIntegrityPolicy in interface InstanceOrBuilder
      Returns:
      The shieldedInstanceIntegrityPolicy.
    • getShieldedInstanceIntegrityPolicyOrBuilder

      public ShieldedInstanceIntegrityPolicyOrBuilder getShieldedInstanceIntegrityPolicyOrBuilder()
      optional .google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919;
      Specified by:
      getShieldedInstanceIntegrityPolicyOrBuilder in interface InstanceOrBuilder
    • hasSourceMachineImage

      public boolean hasSourceMachineImage()
       Source machine image
       
      optional string source_machine_image = 21769791;
      Specified by:
      hasSourceMachineImage in interface InstanceOrBuilder
      Returns:
      Whether the sourceMachineImage field is set.
    • getSourceMachineImage

      public String getSourceMachineImage()
       Source machine image
       
      optional string source_machine_image = 21769791;
      Specified by:
      getSourceMachineImage in interface InstanceOrBuilder
      Returns:
      The sourceMachineImage.
    • getSourceMachineImageBytes

      public com.google.protobuf.ByteString getSourceMachineImageBytes()
       Source machine image
       
      optional string source_machine_image = 21769791;
      Specified by:
      getSourceMachineImageBytes in interface InstanceOrBuilder
      Returns:
      The bytes for sourceMachineImage.
    • hasSourceMachineImageEncryptionKey

      public boolean hasSourceMachineImageEncryptionKey()
       Source machine image encryption key when creating an instance from a
       machine image.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;
      Specified by:
      hasSourceMachineImageEncryptionKey in interface InstanceOrBuilder
      Returns:
      Whether the sourceMachineImageEncryptionKey field is set.
    • getSourceMachineImageEncryptionKey

      public CustomerEncryptionKey getSourceMachineImageEncryptionKey()
       Source machine image encryption key when creating an instance from a
       machine image.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;
      Specified by:
      getSourceMachineImageEncryptionKey in interface InstanceOrBuilder
      Returns:
      The sourceMachineImageEncryptionKey.
    • getSourceMachineImageEncryptionKeyOrBuilder

      public CustomerEncryptionKeyOrBuilder getSourceMachineImageEncryptionKeyOrBuilder()
       Source machine image encryption key when creating an instance from a
       machine image.
       
      optional .google.cloud.compute.v1.CustomerEncryptionKey source_machine_image_encryption_key = 192839075;
      Specified by:
      getSourceMachineImageEncryptionKeyOrBuilder in interface InstanceOrBuilder
    • hasStartRestricted

      public boolean hasStartRestricted()
       Output only. [Output Only] Whether a VM has been restricted for start because Compute
       Engine has detected suspicious activity.
       
      optional bool start_restricted = 123693144;
      Specified by:
      hasStartRestricted in interface InstanceOrBuilder
      Returns:
      Whether the startRestricted field is set.
    • getStartRestricted

      public boolean getStartRestricted()
       Output only. [Output Only] Whether a VM has been restricted for start because Compute
       Engine has detected suspicious activity.
       
      optional bool start_restricted = 123693144;
      Specified by:
      getStartRestricted in interface InstanceOrBuilder
      Returns:
      The startRestricted.
    • hasStatus

      public boolean hasStatus()
       Output only. [Output Only] The status of the instance. One of the
       following values: PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For more information about the status of the
       instance, see
       Instance life cycle.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface InstanceOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       Output only. [Output Only] The status of the instance. One of the
       following values: PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For more information about the status of the
       instance, see
       Instance life cycle.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface InstanceOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       Output only. [Output Only] The status of the instance. One of the
       following values: PROVISIONING, STAGING,RUNNING, STOPPING, SUSPENDING,SUSPENDED, REPAIRING, andTERMINATED. For more information about the status of the
       instance, see
       Instance life cycle.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface InstanceOrBuilder
      Returns:
      The bytes for status.
    • hasStatusMessage

      public boolean hasStatusMessage()
       Output only. [Output Only] An optional, human-readable explanation of the status.
       
      optional string status_message = 297428154;
      Specified by:
      hasStatusMessage in interface InstanceOrBuilder
      Returns:
      Whether the statusMessage field is set.
    • getStatusMessage

      public String getStatusMessage()
       Output only. [Output Only] An optional, human-readable explanation of the status.
       
      optional string status_message = 297428154;
      Specified by:
      getStatusMessage in interface InstanceOrBuilder
      Returns:
      The statusMessage.
    • getStatusMessageBytes

      public com.google.protobuf.ByteString getStatusMessageBytes()
       Output only. [Output Only] An optional, human-readable explanation of the status.
       
      optional string status_message = 297428154;
      Specified by:
      getStatusMessageBytes in interface InstanceOrBuilder
      Returns:
      The bytes for statusMessage.
    • hasTags

      public boolean hasTags()
       Tags to apply to this instance. Tags are used to identify valid
       sources or targets for network firewalls and are specified by the client
       during instance creation. The tags can be later modified by the setTags
       method. Each tag within the list must comply withRFC1035.
       Multiple tags can be specified via the 'tags.items' field.
       
      optional .google.cloud.compute.v1.Tags tags = 3552281;
      Specified by:
      hasTags in interface InstanceOrBuilder
      Returns:
      Whether the tags field is set.
    • getTags

      public Tags getTags()
       Tags to apply to this instance. Tags are used to identify valid
       sources or targets for network firewalls and are specified by the client
       during instance creation. The tags can be later modified by the setTags
       method. Each tag within the list must comply withRFC1035.
       Multiple tags can be specified via the 'tags.items' field.
       
      optional .google.cloud.compute.v1.Tags tags = 3552281;
      Specified by:
      getTags in interface InstanceOrBuilder
      Returns:
      The tags.
    • getTagsOrBuilder

      public TagsOrBuilder getTagsOrBuilder()
       Tags to apply to this instance. Tags are used to identify valid
       sources or targets for network firewalls and are specified by the client
       during instance creation. The tags can be later modified by the setTags
       method. Each tag within the list must comply withRFC1035.
       Multiple tags can be specified via the 'tags.items' field.
       
      optional .google.cloud.compute.v1.Tags tags = 3552281;
      Specified by:
      getTagsOrBuilder in interface InstanceOrBuilder
    • hasWorkloadIdentityConfig

      public boolean hasWorkloadIdentityConfig()
      optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;
      Specified by:
      hasWorkloadIdentityConfig in interface InstanceOrBuilder
      Returns:
      Whether the workloadIdentityConfig field is set.
    • getWorkloadIdentityConfig

      public WorkloadIdentityConfig getWorkloadIdentityConfig()
      optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;
      Specified by:
      getWorkloadIdentityConfig in interface InstanceOrBuilder
      Returns:
      The workloadIdentityConfig.
    • getWorkloadIdentityConfigOrBuilder

      public WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder()
      optional .google.cloud.compute.v1.WorkloadIdentityConfig workload_identity_config = 338198811;
      Specified by:
      getWorkloadIdentityConfigOrBuilder in interface InstanceOrBuilder
    • hasZone

      public boolean hasZone()
       Output only. [Output Only] URL of the zone where the instance resides.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string zone = 3744684;
      Specified by:
      hasZone in interface InstanceOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public String getZone()
       Output only. [Output Only] URL of the zone where the instance resides.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string zone = 3744684;
      Specified by:
      getZone in interface InstanceOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Output only. [Output Only] URL of the zone where the instance resides.
       You must specify this field as part of the HTTP request URL. It is
       not settable as a field in the request body.
       
      optional string zone = 3744684;
      Specified by:
      getZoneBytes in interface InstanceOrBuilder
      Returns:
      The bytes for zone.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Instance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Instance parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Instance parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Instance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Instance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Instance.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Instance.Builder newBuilder()
    • newBuilder

      public static Instance.Builder newBuilder(Instance prototype)
    • toBuilder

      public Instance.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Instance.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Instance getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Instance> parser()
    • getParserForType

      public com.google.protobuf.Parser<Instance> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Instance getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder