Class Registry.UpdateRepositoryPolicyRequest.Builder

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

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

      public Registry.UpdateRepositoryPolicyRequest 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

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

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

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

      public String getRepository()
       The repository to configure.
       
      string repository = 1;
      Specified by:
      getRepository in interface Registry.UpdateRepositoryPolicyRequestOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       The repository to configure.
       
      string repository = 1;
      Specified by:
      getRepositoryBytes in interface Registry.UpdateRepositoryPolicyRequestOrBuilder
      Returns:
      The bytes for repository.
    • setRepository

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

       The repository to configure.
       
      string repository = 1;
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public Registry.UpdateRepositoryPolicyRequest.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       The repository to configure.
       
      string repository = 1;
      Parameters:
      value - The bytes for repository to set.
      Returns:
      This builder for chaining.
    • getRevision

      public long getRevision()
       Only update if revision matches.
       
      int64 revision = 2;
      Specified by:
      getRevision in interface Registry.UpdateRepositoryPolicyRequestOrBuilder
      Returns:
      The revision.
    • setRevision

      public Registry.UpdateRepositoryPolicyRequest.Builder setRevision(long value)
       Only update if revision matches.
       
      int64 revision = 2;
      Parameters:
      value - The revision to set.
      Returns:
      This builder for chaining.
    • clearRevision

       Only update if revision matches.
       
      int64 revision = 2;
      Returns:
      This builder for chaining.
    • hasExpiration

      public boolean hasExpiration()
       The expiration duration for newly created images in this repository.
       A duration of at least 4h (=14400s) is required.
       If set, this overrides the default policy for images pushed to this repository.
       If not set, the default policy is used.
      
       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 expiration = 3;
      Specified by:
      hasExpiration in interface Registry.UpdateRepositoryPolicyRequestOrBuilder
      Returns:
      Whether the expiration field is set.
    • getExpiration

      public com.google.protobuf.Duration getExpiration()
       The expiration duration for newly created images in this repository.
       A duration of at least 4h (=14400s) is required.
       If set, this overrides the default policy for images pushed to this repository.
       If not set, the default policy is used.
      
       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 expiration = 3;
      Specified by:
      getExpiration in interface Registry.UpdateRepositoryPolicyRequestOrBuilder
      Returns:
      The expiration.
    • setExpiration

      public Registry.UpdateRepositoryPolicyRequest.Builder setExpiration(com.google.protobuf.Duration value)
       The expiration duration for newly created images in this repository.
       A duration of at least 4h (=14400s) is required.
       If set, this overrides the default policy for images pushed to this repository.
       If not set, the default policy is used.
      
       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 expiration = 3;
    • setExpiration

      public Registry.UpdateRepositoryPolicyRequest.Builder setExpiration(com.google.protobuf.Duration.Builder builderForValue)
       The expiration duration for newly created images in this repository.
       A duration of at least 4h (=14400s) is required.
       If set, this overrides the default policy for images pushed to this repository.
       If not set, the default policy is used.
      
       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 expiration = 3;
    • mergeExpiration

      public Registry.UpdateRepositoryPolicyRequest.Builder mergeExpiration(com.google.protobuf.Duration value)
       The expiration duration for newly created images in this repository.
       A duration of at least 4h (=14400s) is required.
       If set, this overrides the default policy for images pushed to this repository.
       If not set, the default policy is used.
      
       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 expiration = 3;
    • clearExpiration

       The expiration duration for newly created images in this repository.
       A duration of at least 4h (=14400s) is required.
       If set, this overrides the default policy for images pushed to this repository.
       If not set, the default policy is used.
      
       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 expiration = 3;
    • getExpirationBuilder

      public com.google.protobuf.Duration.Builder getExpirationBuilder()
       The expiration duration for newly created images in this repository.
       A duration of at least 4h (=14400s) is required.
       If set, this overrides the default policy for images pushed to this repository.
       If not set, the default policy is used.
      
       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 expiration = 3;
    • getExpirationOrBuilder

      public com.google.protobuf.DurationOrBuilder getExpirationOrBuilder()
       The expiration duration for newly created images in this repository.
       A duration of at least 4h (=14400s) is required.
       If set, this overrides the default policy for images pushed to this repository.
       If not set, the default policy is used.
      
       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 expiration = 3;
      Specified by:
      getExpirationOrBuilder in interface Registry.UpdateRepositoryPolicyRequestOrBuilder
    • getExpirationEnforcementValue

      public int getExpirationEnforcementValue()
       Controls whether expiration is enforced for this repository.
       
      .namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;
      Specified by:
      getExpirationEnforcementValue in interface Registry.UpdateRepositoryPolicyRequestOrBuilder
      Returns:
      The enum numeric value on the wire for expirationEnforcement.
    • setExpirationEnforcementValue

      public Registry.UpdateRepositoryPolicyRequest.Builder setExpirationEnforcementValue(int value)
       Controls whether expiration is enforced for this repository.
       
      .namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;
      Parameters:
      value - The enum numeric value on the wire for expirationEnforcement to set.
      Returns:
      This builder for chaining.
    • getExpirationEnforcement

      public Registry.ExpirationEnforcement getExpirationEnforcement()
       Controls whether expiration is enforced for this repository.
       
      .namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;
      Specified by:
      getExpirationEnforcement in interface Registry.UpdateRepositoryPolicyRequestOrBuilder
      Returns:
      The expirationEnforcement.
    • setExpirationEnforcement

       Controls whether expiration is enforced for this repository.
       
      .namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;
      Parameters:
      value - The expirationEnforcement to set.
      Returns:
      This builder for chaining.
    • clearExpirationEnforcement

      public Registry.UpdateRepositoryPolicyRequest.Builder clearExpirationEnforcement()
       Controls whether expiration is enforced for this repository.
       
      .namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 4;
      Returns:
      This builder for chaining.