Class Registry.UpdateImageLifetimeRequest

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

public static final class Registry.UpdateImageLifetimeRequest extends com.google.protobuf.GeneratedMessage implements Registry.UpdateImageLifetimeRequestOrBuilder
Protobuf type namespace.cloud.registry.v1beta.UpdateImageLifetimeRequest
See Also:
  • Field Details

    • REPOSITORY_FIELD_NUMBER

      public static final int REPOSITORY_FIELD_NUMBER
      See Also:
    • DIGEST_FIELD_NUMBER

      public static final int DIGEST_FIELD_NUMBER
      See Also:
    • EXTEND_BY_FIELD_NUMBER

      public static final int EXTEND_BY_FIELD_NUMBER
      See Also:
    • ENSURE_MINIMUM_REMAINING_FIELD_NUMBER

      public static final int ENSURE_MINIMUM_REMAINING_FIELD_NUMBER
      See Also:
    • NEW_EXPIRY_FIELD_NUMBER

      public static final int NEW_EXPIRY_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

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

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

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

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

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

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

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

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

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

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

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

      public static Registry.UpdateImageLifetimeRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Registry.UpdateImageLifetimeRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Registry.UpdateImageLifetimeRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Registry.UpdateImageLifetimeRequest getDefaultInstance()
    • parser

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

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

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