Class Registry.UpdateImageLifetimeRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Registry.UpdateImageLifetimeRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<Registry.UpdateImageLifetimeRequest.Builder>
namespace.cloud.registry.v1beta.Registry.UpdateImageLifetimeRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Registry.UpdateImageLifetimeRequestOrBuilder
Enclosing class:
Registry.UpdateImageLifetimeRequest

public static final class Registry.UpdateImageLifetimeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<Registry.UpdateImageLifetimeRequest.Builder> implements Registry.UpdateImageLifetimeRequestOrBuilder
Protobuf type namespace.cloud.registry.v1beta.UpdateImageLifetimeRequest
  • 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<Registry.UpdateImageLifetimeRequest.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<Registry.UpdateImageLifetimeRequest.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<Registry.UpdateImageLifetimeRequest.Builder>
    • getDefaultInstanceForType

      public Registry.UpdateImageLifetimeRequest 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 Registry.UpdateImageLifetimeRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public Registry.UpdateImageLifetimeRequest.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<Registry.UpdateImageLifetimeRequest.Builder>
      Throws:
      IOException
    • getRepository

      public String getRepository()
       The repository containing the image.
       
      string repository = 1;
      Specified by:
      getRepository in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       The repository containing the image.
       
      string repository = 1;
      Specified by:
      getRepositoryBytes in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      The bytes for repository.
    • setRepository

       The repository containing the image.
       
      string repository = 1;
      Parameters:
      value - The repository to set.
      Returns:
      This builder for chaining.
    • clearRepository

       The repository containing the image.
       
      string repository = 1;
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public Registry.UpdateImageLifetimeRequest.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       The repository containing the image.
       
      string repository = 1;
      Parameters:
      value - The bytes for repository to set.
      Returns:
      This builder for chaining.
    • getDigest

      public String getDigest()
       The digest of the image of the form sha256:<hash>.
       
      string digest = 2;
      Specified by:
      getDigest in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      The digest.
    • getDigestBytes

      public com.google.protobuf.ByteString getDigestBytes()
       The digest of the image of the form sha256:<hash>.
       
      string digest = 2;
      Specified by:
      getDigestBytes in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      The bytes for digest.
    • setDigest

       The digest of the image of the form sha256:<hash>.
       
      string digest = 2;
      Parameters:
      value - The digest to set.
      Returns:
      This builder for chaining.
    • clearDigest

       The digest of the image of the form sha256:<hash>.
       
      string digest = 2;
      Returns:
      This builder for chaining.
    • setDigestBytes

      public Registry.UpdateImageLifetimeRequest.Builder setDigestBytes(com.google.protobuf.ByteString value)
       The digest of the image of the form sha256:<hash>.
       
      string digest = 2;
      Parameters:
      value - The bytes for digest to set.
      Returns:
      This builder for chaining.
    • hasExtendBy

      public boolean hasExtendBy()
       The duration the lifetime of this image should be extended by.
       If the image currently has no expiration then providing extend_by is not supported.
       Can not be used in combination with new_expiry.
      
       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 = 3;
      Specified by:
      hasExtendBy in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      Whether the extendBy field is set.
    • getExtendBy

      public com.google.protobuf.Duration getExtendBy()
       The duration the lifetime of this image should be extended by.
       If the image currently has no expiration then providing extend_by is not supported.
       Can not be used in combination with new_expiry.
      
       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 = 3;
      Specified by:
      getExtendBy in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      The extendBy.
    • setExtendBy

      public Registry.UpdateImageLifetimeRequest.Builder setExtendBy(com.google.protobuf.Duration value)
       The duration the lifetime of this image should be extended by.
       If the image currently has no expiration then providing extend_by is not supported.
       Can not be used in combination with new_expiry.
      
       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 = 3;
    • setExtendBy

      public Registry.UpdateImageLifetimeRequest.Builder setExtendBy(com.google.protobuf.Duration.Builder builderForValue)
       The duration the lifetime of this image should be extended by.
       If the image currently has no expiration then providing extend_by is not supported.
       Can not be used in combination with new_expiry.
      
       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 = 3;
    • mergeExtendBy

      public Registry.UpdateImageLifetimeRequest.Builder mergeExtendBy(com.google.protobuf.Duration value)
       The duration the lifetime of this image should be extended by.
       If the image currently has no expiration then providing extend_by is not supported.
       Can not be used in combination with new_expiry.
      
       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 = 3;
    • clearExtendBy

       The duration the lifetime of this image should be extended by.
       If the image currently has no expiration then providing extend_by is not supported.
       Can not be used in combination with new_expiry.
      
       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 = 3;
    • getExtendByBuilder

      public com.google.protobuf.Duration.Builder getExtendByBuilder()
       The duration the lifetime of this image should be extended by.
       If the image currently has no expiration then providing extend_by is not supported.
       Can not be used in combination with new_expiry.
      
       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 = 3;
    • getExtendByOrBuilder

      public com.google.protobuf.DurationOrBuilder getExtendByOrBuilder()
       The duration the lifetime of this image should be extended by.
       If the image currently has no expiration then providing extend_by is not supported.
       Can not be used in combination with new_expiry.
      
       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 = 3;
      Specified by:
      getExtendByOrBuilder in interface Registry.UpdateImageLifetimeRequestOrBuilder
    • hasEnsureMinimumRemaining

      public boolean hasEnsureMinimumRemaining()
       The minimum remaining duration this image should be alive for.
      
       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_remaining = 4;
      Specified by:
      hasEnsureMinimumRemaining in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      Whether the ensureMinimumRemaining field is set.
    • getEnsureMinimumRemaining

      public com.google.protobuf.Duration getEnsureMinimumRemaining()
       The minimum remaining duration this image should be alive for.
      
       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_remaining = 4;
      Specified by:
      getEnsureMinimumRemaining in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      The ensureMinimumRemaining.
    • setEnsureMinimumRemaining

      public Registry.UpdateImageLifetimeRequest.Builder setEnsureMinimumRemaining(com.google.protobuf.Duration value)
       The minimum remaining duration this image should be alive for.
      
       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_remaining = 4;
    • setEnsureMinimumRemaining

      public Registry.UpdateImageLifetimeRequest.Builder setEnsureMinimumRemaining(com.google.protobuf.Duration.Builder builderForValue)
       The minimum remaining duration this image should be alive for.
      
       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_remaining = 4;
    • mergeEnsureMinimumRemaining

      public Registry.UpdateImageLifetimeRequest.Builder mergeEnsureMinimumRemaining(com.google.protobuf.Duration value)
       The minimum remaining duration this image should be alive for.
      
       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_remaining = 4;
    • clearEnsureMinimumRemaining

      public Registry.UpdateImageLifetimeRequest.Builder clearEnsureMinimumRemaining()
       The minimum remaining duration this image should be alive for.
      
       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_remaining = 4;
    • getEnsureMinimumRemainingBuilder

      public com.google.protobuf.Duration.Builder getEnsureMinimumRemainingBuilder()
       The minimum remaining duration this image should be alive for.
      
       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_remaining = 4;
    • getEnsureMinimumRemainingOrBuilder

      public com.google.protobuf.DurationOrBuilder getEnsureMinimumRemainingOrBuilder()
       The minimum remaining duration this image should be alive for.
      
       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_remaining = 4;
      Specified by:
      getEnsureMinimumRemainingOrBuilder in interface Registry.UpdateImageLifetimeRequestOrBuilder
    • hasNewExpiry

      public boolean hasNewExpiry()
       The new expiration timestamp (in UTC) at which the image expires.
       Can not be used in combination with extend_by.
      
       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_expiry = 5;
      Specified by:
      hasNewExpiry in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      Whether the newExpiry field is set.
    • getNewExpiry

      public com.google.protobuf.Timestamp getNewExpiry()
       The new expiration timestamp (in UTC) at which the image expires.
       Can not be used in combination with extend_by.
      
       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_expiry = 5;
      Specified by:
      getNewExpiry in interface Registry.UpdateImageLifetimeRequestOrBuilder
      Returns:
      The newExpiry.
    • setNewExpiry

      public Registry.UpdateImageLifetimeRequest.Builder setNewExpiry(com.google.protobuf.Timestamp value)
       The new expiration timestamp (in UTC) at which the image expires.
       Can not be used in combination with extend_by.
      
       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_expiry = 5;
    • setNewExpiry

      public Registry.UpdateImageLifetimeRequest.Builder setNewExpiry(com.google.protobuf.Timestamp.Builder builderForValue)
       The new expiration timestamp (in UTC) at which the image expires.
       Can not be used in combination with extend_by.
      
       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_expiry = 5;
    • mergeNewExpiry

      public Registry.UpdateImageLifetimeRequest.Builder mergeNewExpiry(com.google.protobuf.Timestamp value)
       The new expiration timestamp (in UTC) at which the image expires.
       Can not be used in combination with extend_by.
      
       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_expiry = 5;
    • clearNewExpiry

       The new expiration timestamp (in UTC) at which the image expires.
       Can not be used in combination with extend_by.
      
       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_expiry = 5;
    • getNewExpiryBuilder

      public com.google.protobuf.Timestamp.Builder getNewExpiryBuilder()
       The new expiration timestamp (in UTC) at which the image expires.
       Can not be used in combination with extend_by.
      
       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_expiry = 5;
    • getNewExpiryOrBuilder

      public com.google.protobuf.TimestampOrBuilder getNewExpiryOrBuilder()
       The new expiration timestamp (in UTC) at which the image expires.
       Can not be used in combination with extend_by.
      
       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_expiry = 5;
      Specified by:
      getNewExpiryOrBuilder in interface Registry.UpdateImageLifetimeRequestOrBuilder