Class PerInstanceConfig.Builder

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

public static final class PerInstanceConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PerInstanceConfig.Builder> implements PerInstanceConfigOrBuilder
 
Protobuf type google.cloud.compute.v1.PerInstanceConfig
  • 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<PerInstanceConfig.Builder>
    • clear

      public PerInstanceConfig.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<PerInstanceConfig.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<PerInstanceConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public PerInstanceConfig.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<PerInstanceConfig.Builder>
    • mergeFrom

      public PerInstanceConfig.Builder mergeFrom(PerInstanceConfig other)
    • isInitialized

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

      public PerInstanceConfig.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<PerInstanceConfig.Builder>
      Throws:
      IOException
    • hasFingerprint

      public boolean hasFingerprint()
       Fingerprint of this per-instance config. This field can be used in
       optimistic locking. It is ignored when inserting a per-instance
       config. An up-to-date fingerprint must be provided in order to update an
       existing per-instance configuration or the field needs to be unset.
       
      optional string fingerprint = 234678500;
      Specified by:
      hasFingerprint in interface PerInstanceConfigOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public String getFingerprint()
       Fingerprint of this per-instance config. This field can be used in
       optimistic locking. It is ignored when inserting a per-instance
       config. An up-to-date fingerprint must be provided in order to update an
       existing per-instance configuration or the field needs to be unset.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprint in interface PerInstanceConfigOrBuilder
      Returns:
      The fingerprint.
    • getFingerprintBytes

      public com.google.protobuf.ByteString getFingerprintBytes()
       Fingerprint of this per-instance config. This field can be used in
       optimistic locking. It is ignored when inserting a per-instance
       config. An up-to-date fingerprint must be provided in order to update an
       existing per-instance configuration or the field needs to be unset.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprintBytes in interface PerInstanceConfigOrBuilder
      Returns:
      The bytes for fingerprint.
    • setFingerprint

      public PerInstanceConfig.Builder setFingerprint(String value)
       Fingerprint of this per-instance config. This field can be used in
       optimistic locking. It is ignored when inserting a per-instance
       config. An up-to-date fingerprint must be provided in order to update an
       existing per-instance configuration or the field needs to be unset.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The fingerprint to set.
      Returns:
      This builder for chaining.
    • clearFingerprint

      public PerInstanceConfig.Builder clearFingerprint()
       Fingerprint of this per-instance config. This field can be used in
       optimistic locking. It is ignored when inserting a per-instance
       config. An up-to-date fingerprint must be provided in order to update an
       existing per-instance configuration or the field needs to be unset.
       
      optional string fingerprint = 234678500;
      Returns:
      This builder for chaining.
    • setFingerprintBytes

      public PerInstanceConfig.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
       Fingerprint of this per-instance config. This field can be used in
       optimistic locking. It is ignored when inserting a per-instance
       config. An up-to-date fingerprint must be provided in order to update an
       existing per-instance configuration or the field needs to be unset.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The bytes for fingerprint to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       The name of a per-instance configuration and its corresponding instance.
       Serves as a merge key during UpdatePerInstanceConfigs
       operations, that is, if a per-instance configuration with the same name
       exists then it will be updated, otherwise a new one will be created for the
       VM instance with the same name. An attempt to create a per-instance
       configuration for a VM instance that either doesn't exist or is not part
       of the group will result in an error.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface PerInstanceConfigOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of a per-instance configuration and its corresponding instance.
       Serves as a merge key during UpdatePerInstanceConfigs
       operations, that is, if a per-instance configuration with the same name
       exists then it will be updated, otherwise a new one will be created for the
       VM instance with the same name. An attempt to create a per-instance
       configuration for a VM instance that either doesn't exist or is not part
       of the group will result in an error.
       
      optional string name = 3373707;
      Specified by:
      getName in interface PerInstanceConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of a per-instance configuration and its corresponding instance.
       Serves as a merge key during UpdatePerInstanceConfigs
       operations, that is, if a per-instance configuration with the same name
       exists then it will be updated, otherwise a new one will be created for the
       VM instance with the same name. An attempt to create a per-instance
       configuration for a VM instance that either doesn't exist or is not part
       of the group will result in an error.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface PerInstanceConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PerInstanceConfig.Builder setName(String value)
       The name of a per-instance configuration and its corresponding instance.
       Serves as a merge key during UpdatePerInstanceConfigs
       operations, that is, if a per-instance configuration with the same name
       exists then it will be updated, otherwise a new one will be created for the
       VM instance with the same name. An attempt to create a per-instance
       configuration for a VM instance that either doesn't exist or is not part
       of the group will result in an error.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PerInstanceConfig.Builder clearName()
       The name of a per-instance configuration and its corresponding instance.
       Serves as a merge key during UpdatePerInstanceConfigs
       operations, that is, if a per-instance configuration with the same name
       exists then it will be updated, otherwise a new one will be created for the
       VM instance with the same name. An attempt to create a per-instance
       configuration for a VM instance that either doesn't exist or is not part
       of the group will result in an error.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public PerInstanceConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of a per-instance configuration and its corresponding instance.
       Serves as a merge key during UpdatePerInstanceConfigs
       operations, that is, if a per-instance configuration with the same name
       exists then it will be updated, otherwise a new one will be created for the
       VM instance with the same name. An attempt to create a per-instance
       configuration for a VM instance that either doesn't exist or is not part
       of the group will result in an error.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasPreservedState

      public boolean hasPreservedState()
       The intended preserved state for the given instance. Does not contain
       preserved state generated from a stateful policy.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;
      Specified by:
      hasPreservedState in interface PerInstanceConfigOrBuilder
      Returns:
      Whether the preservedState field is set.
    • getPreservedState

      public PreservedState getPreservedState()
       The intended preserved state for the given instance. Does not contain
       preserved state generated from a stateful policy.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;
      Specified by:
      getPreservedState in interface PerInstanceConfigOrBuilder
      Returns:
      The preservedState.
    • setPreservedState

      public PerInstanceConfig.Builder setPreservedState(PreservedState value)
       The intended preserved state for the given instance. Does not contain
       preserved state generated from a stateful policy.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;
    • setPreservedState

      public PerInstanceConfig.Builder setPreservedState(PreservedState.Builder builderForValue)
       The intended preserved state for the given instance. Does not contain
       preserved state generated from a stateful policy.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;
    • mergePreservedState

      public PerInstanceConfig.Builder mergePreservedState(PreservedState value)
       The intended preserved state for the given instance. Does not contain
       preserved state generated from a stateful policy.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;
    • clearPreservedState

      public PerInstanceConfig.Builder clearPreservedState()
       The intended preserved state for the given instance. Does not contain
       preserved state generated from a stateful policy.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;
    • getPreservedStateBuilder

      public PreservedState.Builder getPreservedStateBuilder()
       The intended preserved state for the given instance. Does not contain
       preserved state generated from a stateful policy.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;
    • getPreservedStateOrBuilder

      public PreservedStateOrBuilder getPreservedStateOrBuilder()
       The intended preserved state for the given instance. Does not contain
       preserved state generated from a stateful policy.
       
      optional .google.cloud.compute.v1.PreservedState preserved_state = 2634026;
      Specified by:
      getPreservedStateOrBuilder in interface PerInstanceConfigOrBuilder
    • hasStatus

      public boolean hasStatus()
       The status of applying this per-instance configuration on the corresponding
       managed instance.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface PerInstanceConfigOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       The status of applying this per-instance configuration on the corresponding
       managed instance.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface PerInstanceConfigOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       The status of applying this per-instance configuration on the corresponding
       managed instance.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface PerInstanceConfigOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public PerInstanceConfig.Builder setStatus(String value)
       The status of applying this per-instance configuration on the corresponding
       managed instance.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public PerInstanceConfig.Builder clearStatus()
       The status of applying this per-instance configuration on the corresponding
       managed instance.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public PerInstanceConfig.Builder setStatusBytes(com.google.protobuf.ByteString value)
       The status of applying this per-instance configuration on the corresponding
       managed instance.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.