Class ManagedInstance.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ManagedInstance.Builder>
com.google.cloud.compute.v1.ManagedInstance.Builder
All Implemented Interfaces:
ManagedInstanceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ManagedInstance

public static final class ManagedInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<ManagedInstance.Builder> implements ManagedInstanceOrBuilder
 A Managed Instance resource.
 
Protobuf type google.cloud.compute.v1.ManagedInstance
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ManagedInstance.Builder>
    • clear

      public ManagedInstance.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ManagedInstance.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ManagedInstance.Builder>
    • getDefaultInstanceForType

      public ManagedInstance getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ManagedInstance build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ManagedInstance buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ManagedInstance.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ManagedInstance.Builder>
    • mergeFrom

      public ManagedInstance.Builder mergeFrom(ManagedInstance other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ManagedInstance.Builder>
    • mergeFrom

      public ManagedInstance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ManagedInstance.Builder>
      Throws:
      IOException
    • hasCurrentAction

      public boolean hasCurrentAction()
       Output only. [Output Only] The current action that the managed instance group has
       scheduled for the instance. Possible values:
      
       - NONE The instance is running, and the managed
       instance group does not have any scheduled actions for this instance.
       - CREATING The managed instance group is creating this
       instance. If the group fails to create this instance, it will try again
       until it is successful.
       - CREATING_WITHOUT_RETRIES The managed instance group
       is attempting to create this instance only once. If the group fails
       to create this instance, it does not try again and the group'stargetSize value is decreased instead.
       - RECREATING The managed instance group is recreating
       this instance.
       - DELETING The managed instance group is permanently
       deleting this instance.
       - ABANDONING The managed instance group is abandoning
       this instance. The instance will be removed from the instance group
       and from any target pools that are associated with this group.
       - RESTARTING The managed instance group is restarting
       the instance.
       - REFRESHING The managed instance group is applying
       configuration changes to the instance without stopping it. For example,
       the group can update the target pool list for an instance without
       stopping that instance.
       - VERIFYING The managed instance group has created the
       instance and it is in the process of being verified.
       Check the CurrentAction enum for the list of possible values.
       
      optional string current_action = 178475964;
      Specified by:
      hasCurrentAction in interface ManagedInstanceOrBuilder
      Returns:
      Whether the currentAction field is set.
    • getCurrentAction

      public String getCurrentAction()
       Output only. [Output Only] The current action that the managed instance group has
       scheduled for the instance. Possible values:
      
       - NONE The instance is running, and the managed
       instance group does not have any scheduled actions for this instance.
       - CREATING The managed instance group is creating this
       instance. If the group fails to create this instance, it will try again
       until it is successful.
       - CREATING_WITHOUT_RETRIES The managed instance group
       is attempting to create this instance only once. If the group fails
       to create this instance, it does not try again and the group'stargetSize value is decreased instead.
       - RECREATING The managed instance group is recreating
       this instance.
       - DELETING The managed instance group is permanently
       deleting this instance.
       - ABANDONING The managed instance group is abandoning
       this instance. The instance will be removed from the instance group
       and from any target pools that are associated with this group.
       - RESTARTING The managed instance group is restarting
       the instance.
       - REFRESHING The managed instance group is applying
       configuration changes to the instance without stopping it. For example,
       the group can update the target pool list for an instance without
       stopping that instance.
       - VERIFYING The managed instance group has created the
       instance and it is in the process of being verified.
       Check the CurrentAction enum for the list of possible values.
       
      optional string current_action = 178475964;
      Specified by:
      getCurrentAction in interface ManagedInstanceOrBuilder
      Returns:
      The currentAction.
    • getCurrentActionBytes

      public com.google.protobuf.ByteString getCurrentActionBytes()
       Output only. [Output Only] The current action that the managed instance group has
       scheduled for the instance. Possible values:
      
       - NONE The instance is running, and the managed
       instance group does not have any scheduled actions for this instance.
       - CREATING The managed instance group is creating this
       instance. If the group fails to create this instance, it will try again
       until it is successful.
       - CREATING_WITHOUT_RETRIES The managed instance group
       is attempting to create this instance only once. If the group fails
       to create this instance, it does not try again and the group'stargetSize value is decreased instead.
       - RECREATING The managed instance group is recreating
       this instance.
       - DELETING The managed instance group is permanently
       deleting this instance.
       - ABANDONING The managed instance group is abandoning
       this instance. The instance will be removed from the instance group
       and from any target pools that are associated with this group.
       - RESTARTING The managed instance group is restarting
       the instance.
       - REFRESHING The managed instance group is applying
       configuration changes to the instance without stopping it. For example,
       the group can update the target pool list for an instance without
       stopping that instance.
       - VERIFYING The managed instance group has created the
       instance and it is in the process of being verified.
       Check the CurrentAction enum for the list of possible values.
       
      optional string current_action = 178475964;
      Specified by:
      getCurrentActionBytes in interface ManagedInstanceOrBuilder
      Returns:
      The bytes for currentAction.
    • setCurrentAction

      public ManagedInstance.Builder setCurrentAction(String value)
       Output only. [Output Only] The current action that the managed instance group has
       scheduled for the instance. Possible values:
      
       - NONE The instance is running, and the managed
       instance group does not have any scheduled actions for this instance.
       - CREATING The managed instance group is creating this
       instance. If the group fails to create this instance, it will try again
       until it is successful.
       - CREATING_WITHOUT_RETRIES The managed instance group
       is attempting to create this instance only once. If the group fails
       to create this instance, it does not try again and the group'stargetSize value is decreased instead.
       - RECREATING The managed instance group is recreating
       this instance.
       - DELETING The managed instance group is permanently
       deleting this instance.
       - ABANDONING The managed instance group is abandoning
       this instance. The instance will be removed from the instance group
       and from any target pools that are associated with this group.
       - RESTARTING The managed instance group is restarting
       the instance.
       - REFRESHING The managed instance group is applying
       configuration changes to the instance without stopping it. For example,
       the group can update the target pool list for an instance without
       stopping that instance.
       - VERIFYING The managed instance group has created the
       instance and it is in the process of being verified.
       Check the CurrentAction enum for the list of possible values.
       
      optional string current_action = 178475964;
      Parameters:
      value - The currentAction to set.
      Returns:
      This builder for chaining.
    • clearCurrentAction

      public ManagedInstance.Builder clearCurrentAction()
       Output only. [Output Only] The current action that the managed instance group has
       scheduled for the instance. Possible values:
      
       - NONE The instance is running, and the managed
       instance group does not have any scheduled actions for this instance.
       - CREATING The managed instance group is creating this
       instance. If the group fails to create this instance, it will try again
       until it is successful.
       - CREATING_WITHOUT_RETRIES The managed instance group
       is attempting to create this instance only once. If the group fails
       to create this instance, it does not try again and the group'stargetSize value is decreased instead.
       - RECREATING The managed instance group is recreating
       this instance.
       - DELETING The managed instance group is permanently
       deleting this instance.
       - ABANDONING The managed instance group is abandoning
       this instance. The instance will be removed from the instance group
       and from any target pools that are associated with this group.
       - RESTARTING The managed instance group is restarting
       the instance.
       - REFRESHING The managed instance group is applying
       configuration changes to the instance without stopping it. For example,
       the group can update the target pool list for an instance without
       stopping that instance.
       - VERIFYING The managed instance group has created the
       instance and it is in the process of being verified.
       Check the CurrentAction enum for the list of possible values.
       
      optional string current_action = 178475964;
      Returns:
      This builder for chaining.
    • setCurrentActionBytes

      public ManagedInstance.Builder setCurrentActionBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The current action that the managed instance group has
       scheduled for the instance. Possible values:
      
       - NONE The instance is running, and the managed
       instance group does not have any scheduled actions for this instance.
       - CREATING The managed instance group is creating this
       instance. If the group fails to create this instance, it will try again
       until it is successful.
       - CREATING_WITHOUT_RETRIES The managed instance group
       is attempting to create this instance only once. If the group fails
       to create this instance, it does not try again and the group'stargetSize value is decreased instead.
       - RECREATING The managed instance group is recreating
       this instance.
       - DELETING The managed instance group is permanently
       deleting this instance.
       - ABANDONING The managed instance group is abandoning
       this instance. The instance will be removed from the instance group
       and from any target pools that are associated with this group.
       - RESTARTING The managed instance group is restarting
       the instance.
       - REFRESHING The managed instance group is applying
       configuration changes to the instance without stopping it. For example,
       the group can update the target pool list for an instance without
       stopping that instance.
       - VERIFYING The managed instance group has created the
       instance and it is in the process of being verified.
       Check the CurrentAction enum for the list of possible values.
       
      optional string current_action = 178475964;
      Parameters:
      value - The bytes for currentAction to set.
      Returns:
      This builder for chaining.
    • hasId

      public boolean hasId()
       Output only. [Output only] The unique identifier for this resource. This field is empty
       when instance does not exist.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface ManagedInstanceOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. [Output only] The unique identifier for this resource. This field is empty
       when instance does not exist.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface ManagedInstanceOrBuilder
      Returns:
      The id.
    • setId

      public ManagedInstance.Builder setId(long value)
       Output only. [Output only] The unique identifier for this resource. This field is empty
       when instance does not exist.
       
      optional uint64 id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ManagedInstance.Builder clearId()
       Output only. [Output only] The unique identifier for this resource. This field is empty
       when instance does not exist.
       
      optional uint64 id = 3355;
      Returns:
      This builder for chaining.
    • hasInstance

      public boolean hasInstance()
       Output only. [Output Only] The URL of the instance. The URL can exist even if the
       instance has not yet been created.
       
      optional string instance = 18257045;
      Specified by:
      hasInstance in interface ManagedInstanceOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      public String getInstance()
       Output only. [Output Only] The URL of the instance. The URL can exist even if the
       instance has not yet been created.
       
      optional string instance = 18257045;
      Specified by:
      getInstance in interface ManagedInstanceOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       Output only. [Output Only] The URL of the instance. The URL can exist even if the
       instance has not yet been created.
       
      optional string instance = 18257045;
      Specified by:
      getInstanceBytes in interface ManagedInstanceOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

      public ManagedInstance.Builder setInstance(String value)
       Output only. [Output Only] The URL of the instance. The URL can exist even if the
       instance has not yet been created.
       
      optional string instance = 18257045;
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

      public ManagedInstance.Builder clearInstance()
       Output only. [Output Only] The URL of the instance. The URL can exist even if the
       instance has not yet been created.
       
      optional string instance = 18257045;
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public ManagedInstance.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The URL of the instance. The URL can exist even if the
       instance has not yet been created.
       
      optional string instance = 18257045;
      Parameters:
      value - The bytes for instance to set.
      Returns:
      This builder for chaining.
    • getInstanceHealthList

      public List<ManagedInstanceInstanceHealth> getInstanceHealthList()
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
      Specified by:
      getInstanceHealthList in interface ManagedInstanceOrBuilder
    • getInstanceHealthCount

      public int getInstanceHealthCount()
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
      Specified by:
      getInstanceHealthCount in interface ManagedInstanceOrBuilder
    • getInstanceHealth

      public ManagedInstanceInstanceHealth getInstanceHealth(int index)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
      Specified by:
      getInstanceHealth in interface ManagedInstanceOrBuilder
    • setInstanceHealth

      public ManagedInstance.Builder setInstanceHealth(int index, ManagedInstanceInstanceHealth value)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • setInstanceHealth

      public ManagedInstance.Builder setInstanceHealth(int index, ManagedInstanceInstanceHealth.Builder builderForValue)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • addInstanceHealth

      public ManagedInstance.Builder addInstanceHealth(ManagedInstanceInstanceHealth value)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • addInstanceHealth

      public ManagedInstance.Builder addInstanceHealth(int index, ManagedInstanceInstanceHealth value)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • addInstanceHealth

      public ManagedInstance.Builder addInstanceHealth(ManagedInstanceInstanceHealth.Builder builderForValue)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • addInstanceHealth

      public ManagedInstance.Builder addInstanceHealth(int index, ManagedInstanceInstanceHealth.Builder builderForValue)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • addAllInstanceHealth

      public ManagedInstance.Builder addAllInstanceHealth(Iterable<? extends ManagedInstanceInstanceHealth> values)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • clearInstanceHealth

      public ManagedInstance.Builder clearInstanceHealth()
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • removeInstanceHealth

      public ManagedInstance.Builder removeInstanceHealth(int index)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • getInstanceHealthBuilder

      public ManagedInstanceInstanceHealth.Builder getInstanceHealthBuilder(int index)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • getInstanceHealthOrBuilder

      public ManagedInstanceInstanceHealthOrBuilder getInstanceHealthOrBuilder(int index)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
      Specified by:
      getInstanceHealthOrBuilder in interface ManagedInstanceOrBuilder
    • getInstanceHealthOrBuilderList

      public List<? extends ManagedInstanceInstanceHealthOrBuilder> getInstanceHealthOrBuilderList()
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
      Specified by:
      getInstanceHealthOrBuilderList in interface ManagedInstanceOrBuilder
    • addInstanceHealthBuilder

      public ManagedInstanceInstanceHealth.Builder addInstanceHealthBuilder()
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • addInstanceHealthBuilder

      public ManagedInstanceInstanceHealth.Builder addInstanceHealthBuilder(int index)
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • getInstanceHealthBuilderList

      public List<ManagedInstanceInstanceHealth.Builder> getInstanceHealthBuilderList()
       Output only. [Output Only] Health state of the instance per health-check.
       
      repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;
    • hasInstanceStatus

      public boolean hasInstanceStatus()
       Output only. [Output Only] The status of the instance. This field is empty when
       the instance does not exist.
       Check the InstanceStatus enum for the list of possible values.
       
      optional string instance_status = 174577372;
      Specified by:
      hasInstanceStatus in interface ManagedInstanceOrBuilder
      Returns:
      Whether the instanceStatus field is set.
    • getInstanceStatus

      public String getInstanceStatus()
       Output only. [Output Only] The status of the instance. This field is empty when
       the instance does not exist.
       Check the InstanceStatus enum for the list of possible values.
       
      optional string instance_status = 174577372;
      Specified by:
      getInstanceStatus in interface ManagedInstanceOrBuilder
      Returns:
      The instanceStatus.
    • getInstanceStatusBytes

      public com.google.protobuf.ByteString getInstanceStatusBytes()
       Output only. [Output Only] The status of the instance. This field is empty when
       the instance does not exist.
       Check the InstanceStatus enum for the list of possible values.
       
      optional string instance_status = 174577372;
      Specified by:
      getInstanceStatusBytes in interface ManagedInstanceOrBuilder
      Returns:
      The bytes for instanceStatus.
    • setInstanceStatus

      public ManagedInstance.Builder setInstanceStatus(String value)
       Output only. [Output Only] The status of the instance. This field is empty when
       the instance does not exist.
       Check the InstanceStatus enum for the list of possible values.
       
      optional string instance_status = 174577372;
      Parameters:
      value - The instanceStatus to set.
      Returns:
      This builder for chaining.
    • clearInstanceStatus

      public ManagedInstance.Builder clearInstanceStatus()
       Output only. [Output Only] The status of the instance. This field is empty when
       the instance does not exist.
       Check the InstanceStatus enum for the list of possible values.
       
      optional string instance_status = 174577372;
      Returns:
      This builder for chaining.
    • setInstanceStatusBytes

      public ManagedInstance.Builder setInstanceStatusBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The status of the instance. This field is empty when
       the instance does not exist.
       Check the InstanceStatus enum for the list of possible values.
       
      optional string instance_status = 174577372;
      Parameters:
      value - The bytes for instanceStatus to set.
      Returns:
      This builder for chaining.
    • hasLastAttempt

      public boolean hasLastAttempt()
       Output only. [Output Only] Information about the last attempt to create or delete
       the instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
      Specified by:
      hasLastAttempt in interface ManagedInstanceOrBuilder
      Returns:
      Whether the lastAttempt field is set.
    • getLastAttempt

      public ManagedInstanceLastAttempt getLastAttempt()
       Output only. [Output Only] Information about the last attempt to create or delete
       the instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
      Specified by:
      getLastAttempt in interface ManagedInstanceOrBuilder
      Returns:
      The lastAttempt.
    • setLastAttempt

      public ManagedInstance.Builder setLastAttempt(ManagedInstanceLastAttempt value)
       Output only. [Output Only] Information about the last attempt to create or delete
       the instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
    • setLastAttempt

      public ManagedInstance.Builder setLastAttempt(ManagedInstanceLastAttempt.Builder builderForValue)
       Output only. [Output Only] Information about the last attempt to create or delete
       the instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
    • mergeLastAttempt

      public ManagedInstance.Builder mergeLastAttempt(ManagedInstanceLastAttempt value)
       Output only. [Output Only] Information about the last attempt to create or delete
       the instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
    • clearLastAttempt

      public ManagedInstance.Builder clearLastAttempt()
       Output only. [Output Only] Information about the last attempt to create or delete
       the instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
    • getLastAttemptBuilder

      public ManagedInstanceLastAttempt.Builder getLastAttemptBuilder()
       Output only. [Output Only] Information about the last attempt to create or delete
       the instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
    • getLastAttemptOrBuilder

      public ManagedInstanceLastAttemptOrBuilder getLastAttemptOrBuilder()
       Output only. [Output Only] Information about the last attempt to create or delete
       the instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;
      Specified by:
      getLastAttemptOrBuilder in interface ManagedInstanceOrBuilder
    • hasName

      public boolean hasName()
       Output only. [Output Only] The name of the instance. The name always exists even if the
       instance has not yet been created.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface ManagedInstanceOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. [Output Only] The name of the instance. The name always exists even if the
       instance has not yet been created.
       
      optional string name = 3373707;
      Specified by:
      getName in interface ManagedInstanceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. [Output Only] The name of the instance. The name always exists even if the
       instance has not yet been created.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface ManagedInstanceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ManagedInstance.Builder setName(String value)
       Output only. [Output Only] The name of the instance. The name always exists even if the
       instance has not yet been created.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ManagedInstance.Builder clearName()
       Output only. [Output Only] The name of the instance. The name always exists even if the
       instance has not yet been created.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ManagedInstance.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The name of the instance. The name always exists even if the
       instance has not yet been created.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasPreservedStateFromConfig

      public boolean hasPreservedStateFromConfig()
       Output only. [Output Only] Preserved state applied from per-instance config
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
      Specified by:
      hasPreservedStateFromConfig in interface ManagedInstanceOrBuilder
      Returns:
      Whether the preservedStateFromConfig field is set.
    • getPreservedStateFromConfig

      public PreservedState getPreservedStateFromConfig()
       Output only. [Output Only] Preserved state applied from per-instance config
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
      Specified by:
      getPreservedStateFromConfig in interface ManagedInstanceOrBuilder
      Returns:
      The preservedStateFromConfig.
    • setPreservedStateFromConfig

      public ManagedInstance.Builder setPreservedStateFromConfig(PreservedState value)
       Output only. [Output Only] Preserved state applied from per-instance config
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
    • setPreservedStateFromConfig

      public ManagedInstance.Builder setPreservedStateFromConfig(PreservedState.Builder builderForValue)
       Output only. [Output Only] Preserved state applied from per-instance config
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
    • mergePreservedStateFromConfig

      public ManagedInstance.Builder mergePreservedStateFromConfig(PreservedState value)
       Output only. [Output Only] Preserved state applied from per-instance config
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
    • clearPreservedStateFromConfig

      public ManagedInstance.Builder clearPreservedStateFromConfig()
       Output only. [Output Only] Preserved state applied from per-instance config
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
    • getPreservedStateFromConfigBuilder

      public PreservedState.Builder getPreservedStateFromConfigBuilder()
       Output only. [Output Only] Preserved state applied from per-instance config
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
    • getPreservedStateFromConfigOrBuilder

      public PreservedStateOrBuilder getPreservedStateFromConfigOrBuilder()
       Output only. [Output Only] Preserved state applied from per-instance config
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;
      Specified by:
      getPreservedStateFromConfigOrBuilder in interface ManagedInstanceOrBuilder
    • hasPreservedStateFromPolicy

      public boolean hasPreservedStateFromPolicy()
       Output only. [Output Only] Preserved state generated based on stateful policy
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
      Specified by:
      hasPreservedStateFromPolicy in interface ManagedInstanceOrBuilder
      Returns:
      Whether the preservedStateFromPolicy field is set.
    • getPreservedStateFromPolicy

      public PreservedState getPreservedStateFromPolicy()
       Output only. [Output Only] Preserved state generated based on stateful policy
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
      Specified by:
      getPreservedStateFromPolicy in interface ManagedInstanceOrBuilder
      Returns:
      The preservedStateFromPolicy.
    • setPreservedStateFromPolicy

      public ManagedInstance.Builder setPreservedStateFromPolicy(PreservedState value)
       Output only. [Output Only] Preserved state generated based on stateful policy
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
    • setPreservedStateFromPolicy

      public ManagedInstance.Builder setPreservedStateFromPolicy(PreservedState.Builder builderForValue)
       Output only. [Output Only] Preserved state generated based on stateful policy
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
    • mergePreservedStateFromPolicy

      public ManagedInstance.Builder mergePreservedStateFromPolicy(PreservedState value)
       Output only. [Output Only] Preserved state generated based on stateful policy
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
    • clearPreservedStateFromPolicy

      public ManagedInstance.Builder clearPreservedStateFromPolicy()
       Output only. [Output Only] Preserved state generated based on stateful policy
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
    • getPreservedStateFromPolicyBuilder

      public PreservedState.Builder getPreservedStateFromPolicyBuilder()
       Output only. [Output Only] Preserved state generated based on stateful policy
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
    • getPreservedStateFromPolicyOrBuilder

      public PreservedStateOrBuilder getPreservedStateFromPolicyOrBuilder()
       Output only. [Output Only] Preserved state generated based on stateful policy
       for this instance.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;
      Specified by:
      getPreservedStateFromPolicyOrBuilder in interface ManagedInstanceOrBuilder
    • hasPropertiesFromFlexibilityPolicy

      public boolean hasPropertiesFromFlexibilityPolicy()
       Output only. [Output Only] Instance properties selected for this instance resulting from
       InstanceFlexibilityPolicy.
       
      optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
      Specified by:
      hasPropertiesFromFlexibilityPolicy in interface ManagedInstanceOrBuilder
      Returns:
      Whether the propertiesFromFlexibilityPolicy field is set.
    • getPropertiesFromFlexibilityPolicy

      public ManagedInstancePropertiesFromFlexibilityPolicy getPropertiesFromFlexibilityPolicy()
       Output only. [Output Only] Instance properties selected for this instance resulting from
       InstanceFlexibilityPolicy.
       
      optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
      Specified by:
      getPropertiesFromFlexibilityPolicy in interface ManagedInstanceOrBuilder
      Returns:
      The propertiesFromFlexibilityPolicy.
    • setPropertiesFromFlexibilityPolicy

      public ManagedInstance.Builder setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy value)
       Output only. [Output Only] Instance properties selected for this instance resulting from
       InstanceFlexibilityPolicy.
       
      optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
    • setPropertiesFromFlexibilityPolicy

      public ManagedInstance.Builder setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy.Builder builderForValue)
       Output only. [Output Only] Instance properties selected for this instance resulting from
       InstanceFlexibilityPolicy.
       
      optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
    • mergePropertiesFromFlexibilityPolicy

      public ManagedInstance.Builder mergePropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy value)
       Output only. [Output Only] Instance properties selected for this instance resulting from
       InstanceFlexibilityPolicy.
       
      optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
    • clearPropertiesFromFlexibilityPolicy

      public ManagedInstance.Builder clearPropertiesFromFlexibilityPolicy()
       Output only. [Output Only] Instance properties selected for this instance resulting from
       InstanceFlexibilityPolicy.
       
      optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
    • getPropertiesFromFlexibilityPolicyBuilder

      public ManagedInstancePropertiesFromFlexibilityPolicy.Builder getPropertiesFromFlexibilityPolicyBuilder()
       Output only. [Output Only] Instance properties selected for this instance resulting from
       InstanceFlexibilityPolicy.
       
      optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
    • getPropertiesFromFlexibilityPolicyOrBuilder

      public ManagedInstancePropertiesFromFlexibilityPolicyOrBuilder getPropertiesFromFlexibilityPolicyOrBuilder()
       Output only. [Output Only] Instance properties selected for this instance resulting from
       InstanceFlexibilityPolicy.
       
      optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
      Specified by:
      getPropertiesFromFlexibilityPolicyOrBuilder in interface ManagedInstanceOrBuilder
    • hasVersion

      public boolean hasVersion()
       Output only. [Output Only] Intended version of this instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;
      Specified by:
      hasVersion in interface ManagedInstanceOrBuilder
      Returns:
      Whether the version field is set.
    • getVersion

      public ManagedInstanceVersion getVersion()
       Output only. [Output Only] Intended version of this instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;
      Specified by:
      getVersion in interface ManagedInstanceOrBuilder
      Returns:
      The version.
    • setVersion

       Output only. [Output Only] Intended version of this instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;
    • setVersion

      public ManagedInstance.Builder setVersion(ManagedInstanceVersion.Builder builderForValue)
       Output only. [Output Only] Intended version of this instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;
    • mergeVersion

      public ManagedInstance.Builder mergeVersion(ManagedInstanceVersion value)
       Output only. [Output Only] Intended version of this instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;
    • clearVersion

      public ManagedInstance.Builder clearVersion()
       Output only. [Output Only] Intended version of this instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;
    • getVersionBuilder

      public ManagedInstanceVersion.Builder getVersionBuilder()
       Output only. [Output Only] Intended version of this instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;
    • getVersionOrBuilder

      public ManagedInstanceVersionOrBuilder getVersionOrBuilder()
       Output only. [Output Only] Intended version of this instance.
       
      optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;
      Specified by:
      getVersionOrBuilder in interface ManagedInstanceOrBuilder