Class Compute.ExtendInstanceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.ExtendInstanceRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.ExtendInstanceRequest.Builder>
namespace.cloud.compute.v1beta.Compute.ExtendInstanceRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Compute.ExtendInstanceRequestOrBuilder
Enclosing class:
Compute.ExtendInstanceRequest

public static final class Compute.ExtendInstanceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<Compute.ExtendInstanceRequest.Builder> implements Compute.ExtendInstanceRequestOrBuilder
Protobuf type namespace.cloud.compute.v1beta.ExtendInstanceRequest
  • 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<Compute.ExtendInstanceRequest.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<Compute.ExtendInstanceRequest.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<Compute.ExtendInstanceRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public Compute.ExtendInstanceRequest.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<Compute.ExtendInstanceRequest.Builder>
      Throws:
      IOException
    • getInstanceId

      public String getInstanceId()
       The ID of the instance which should be extended.
       
      string instance_id = 1;
      Specified by:
      getInstanceId in interface Compute.ExtendInstanceRequestOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
       The ID of the instance which should be extended.
       
      string instance_id = 1;
      Specified by:
      getInstanceIdBytes in interface Compute.ExtendInstanceRequestOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public Compute.ExtendInstanceRequest.Builder setInstanceId(String value)
       The ID of the instance which should be extended.
       
      string instance_id = 1;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public Compute.ExtendInstanceRequest.Builder clearInstanceId()
       The ID of the instance which should be extended.
       
      string instance_id = 1;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public Compute.ExtendInstanceRequest.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
       The ID of the instance which should be extended.
       
      string instance_id = 1;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • hasExtendBy

      public boolean hasExtendBy()
       The duration this instance should be extended by.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration extend_by = 2;
      Specified by:
      hasExtendBy in interface Compute.ExtendInstanceRequestOrBuilder
      Returns:
      Whether the extendBy field is set.
    • getExtendBy

      public com.google.protobuf.Duration getExtendBy()
       The duration this instance should be extended by.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration extend_by = 2;
      Specified by:
      getExtendBy in interface Compute.ExtendInstanceRequestOrBuilder
      Returns:
      The extendBy.
    • setExtendBy

      public Compute.ExtendInstanceRequest.Builder setExtendBy(com.google.protobuf.Duration value)
       The duration this instance should be extended by.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration extend_by = 2;
    • setExtendBy

      public Compute.ExtendInstanceRequest.Builder setExtendBy(com.google.protobuf.Duration.Builder builderForValue)
       The duration this instance should be extended by.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration extend_by = 2;
    • mergeExtendBy

      public Compute.ExtendInstanceRequest.Builder mergeExtendBy(com.google.protobuf.Duration value)
       The duration this instance should be extended by.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration extend_by = 2;
    • clearExtendBy

      public Compute.ExtendInstanceRequest.Builder clearExtendBy()
       The duration this instance should be extended by.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration extend_by = 2;
    • getExtendByBuilder

      public com.google.protobuf.Duration.Builder getExtendByBuilder()
       The duration this instance should be extended by.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration extend_by = 2;
    • getExtendByOrBuilder

      public com.google.protobuf.DurationOrBuilder getExtendByOrBuilder()
       The duration this instance should be extended by.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration extend_by = 2;
      Specified by:
      getExtendByOrBuilder in interface Compute.ExtendInstanceRequestOrBuilder
    • hasEnsureMinimum

      public boolean hasEnsureMinimum()
       The minimum duration this instance should be running.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration ensure_minimum = 3;
      Specified by:
      hasEnsureMinimum in interface Compute.ExtendInstanceRequestOrBuilder
      Returns:
      Whether the ensureMinimum field is set.
    • getEnsureMinimum

      public com.google.protobuf.Duration getEnsureMinimum()
       The minimum duration this instance should be running.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration ensure_minimum = 3;
      Specified by:
      getEnsureMinimum in interface Compute.ExtendInstanceRequestOrBuilder
      Returns:
      The ensureMinimum.
    • setEnsureMinimum

      public Compute.ExtendInstanceRequest.Builder setEnsureMinimum(com.google.protobuf.Duration value)
       The minimum duration this instance should be running.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration ensure_minimum = 3;
    • setEnsureMinimum

      public Compute.ExtendInstanceRequest.Builder setEnsureMinimum(com.google.protobuf.Duration.Builder builderForValue)
       The minimum duration this instance should be running.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration ensure_minimum = 3;
    • mergeEnsureMinimum

      public Compute.ExtendInstanceRequest.Builder mergeEnsureMinimum(com.google.protobuf.Duration value)
       The minimum duration this instance should be running.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration ensure_minimum = 3;
    • clearEnsureMinimum

      public Compute.ExtendInstanceRequest.Builder clearEnsureMinimum()
       The minimum duration this instance should be running.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration ensure_minimum = 3;
    • getEnsureMinimumBuilder

      public com.google.protobuf.Duration.Builder getEnsureMinimumBuilder()
       The minimum duration this instance should be running.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration ensure_minimum = 3;
    • getEnsureMinimumOrBuilder

      public com.google.protobuf.DurationOrBuilder getEnsureMinimumOrBuilder()
       The minimum duration this instance should be running.
      
       Note: In JSON format, the Duration type is encoded as a string rather than an
       object, where the string ends in the suffix "s" (indicating seconds) and
       is preceded by the number of seconds, with nanoseconds expressed as
       fractional seconds.
       
      .google.protobuf.Duration ensure_minimum = 3;
      Specified by:
      getEnsureMinimumOrBuilder in interface Compute.ExtendInstanceRequestOrBuilder
    • hasNewDeadline

      public boolean hasNewDeadline()
       The new deadline (in UTC) at which the instance is destroyed.
      
       Note: In JSON format, the Timestamp type is encoded as a string in the
       [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
       
      .google.protobuf.Timestamp new_deadline = 4;
      Specified by:
      hasNewDeadline in interface Compute.ExtendInstanceRequestOrBuilder
      Returns:
      Whether the newDeadline field is set.
    • getNewDeadline

      public com.google.protobuf.Timestamp getNewDeadline()
       The new deadline (in UTC) at which the instance is destroyed.
      
       Note: In JSON format, the Timestamp type is encoded as a string in the
       [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
       
      .google.protobuf.Timestamp new_deadline = 4;
      Specified by:
      getNewDeadline in interface Compute.ExtendInstanceRequestOrBuilder
      Returns:
      The newDeadline.
    • setNewDeadline

      public Compute.ExtendInstanceRequest.Builder setNewDeadline(com.google.protobuf.Timestamp value)
       The new deadline (in UTC) at which the instance is destroyed.
      
       Note: In JSON format, the Timestamp type is encoded as a string in the
       [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
       
      .google.protobuf.Timestamp new_deadline = 4;
    • setNewDeadline

      public Compute.ExtendInstanceRequest.Builder setNewDeadline(com.google.protobuf.Timestamp.Builder builderForValue)
       The new deadline (in UTC) at which the instance is destroyed.
      
       Note: In JSON format, the Timestamp type is encoded as a string in the
       [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
       
      .google.protobuf.Timestamp new_deadline = 4;
    • mergeNewDeadline

      public Compute.ExtendInstanceRequest.Builder mergeNewDeadline(com.google.protobuf.Timestamp value)
       The new deadline (in UTC) at which the instance is destroyed.
      
       Note: In JSON format, the Timestamp type is encoded as a string in the
       [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
       
      .google.protobuf.Timestamp new_deadline = 4;
    • clearNewDeadline

      public Compute.ExtendInstanceRequest.Builder clearNewDeadline()
       The new deadline (in UTC) at which the instance is destroyed.
      
       Note: In JSON format, the Timestamp type is encoded as a string in the
       [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
       
      .google.protobuf.Timestamp new_deadline = 4;
    • getNewDeadlineBuilder

      public com.google.protobuf.Timestamp.Builder getNewDeadlineBuilder()
       The new deadline (in UTC) at which the instance is destroyed.
      
       Note: In JSON format, the Timestamp type is encoded as a string in the
       [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
       
      .google.protobuf.Timestamp new_deadline = 4;
    • getNewDeadlineOrBuilder

      public com.google.protobuf.TimestampOrBuilder getNewDeadlineOrBuilder()
       The new deadline (in UTC) at which the instance is destroyed.
      
       Note: In JSON format, the Timestamp type is encoded as a string in the
       [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format.
       
      .google.protobuf.Timestamp new_deadline = 4;
      Specified by:
      getNewDeadlineOrBuilder in interface Compute.ExtendInstanceRequestOrBuilder