Class Registry.GetRepositoryPolicyResponse.Builder

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

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

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

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

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

      public long getRevision()
       The current revision.
       
      int64 revision = 1;
      Specified by:
      getRevision in interface Registry.GetRepositoryPolicyResponseOrBuilder
      Returns:
      The revision.
    • setRevision

      public Registry.GetRepositoryPolicyResponse.Builder setRevision(long value)
       The current revision.
       
      int64 revision = 1;
      Parameters:
      value - The revision to set.
      Returns:
      This builder for chaining.
    • clearRevision

       The current revision.
       
      int64 revision = 1;
      Returns:
      This builder for chaining.
    • hasExpiration

      public boolean hasExpiration()
       The expiration duration that is applied to newly created images in this repository.
       Not set means 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 = 2;
      Specified by:
      hasExpiration in interface Registry.GetRepositoryPolicyResponseOrBuilder
      Returns:
      Whether the expiration field is set.
    • getExpiration

      public com.google.protobuf.Duration getExpiration()
       The expiration duration that is applied to newly created images in this repository.
       Not set means 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 = 2;
      Specified by:
      getExpiration in interface Registry.GetRepositoryPolicyResponseOrBuilder
      Returns:
      The expiration.
    • setExpiration

      public Registry.GetRepositoryPolicyResponse.Builder setExpiration(com.google.protobuf.Duration value)
       The expiration duration that is applied to newly created images in this repository.
       Not set means 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 = 2;
    • setExpiration

      public Registry.GetRepositoryPolicyResponse.Builder setExpiration(com.google.protobuf.Duration.Builder builderForValue)
       The expiration duration that is applied to newly created images in this repository.
       Not set means 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 = 2;
    • mergeExpiration

      public Registry.GetRepositoryPolicyResponse.Builder mergeExpiration(com.google.protobuf.Duration value)
       The expiration duration that is applied to newly created images in this repository.
       Not set means 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 = 2;
    • clearExpiration

       The expiration duration that is applied to newly created images in this repository.
       Not set means 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 = 2;
    • getExpirationBuilder

      public com.google.protobuf.Duration.Builder getExpirationBuilder()
       The expiration duration that is applied to newly created images in this repository.
       Not set means 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 = 2;
    • getExpirationOrBuilder

      public com.google.protobuf.DurationOrBuilder getExpirationOrBuilder()
       The expiration duration that is applied to newly created images in this repository.
       Not set means 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 = 2;
      Specified by:
      getExpirationOrBuilder in interface Registry.GetRepositoryPolicyResponseOrBuilder
    • getExpirationEnforcementValue

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

      public Registry.GetRepositoryPolicyResponse.Builder setExpirationEnforcementValue(int value)
       Controls whether expiration is enforced for this repository.
       
      .namespace.cloud.registry.v1beta.ExpirationEnforcement expiration_enforcement = 3;
      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 = 3;
      Specified by:
      getExpirationEnforcement in interface Registry.GetRepositoryPolicyResponseOrBuilder
      Returns:
      The expirationEnforcement.
    • setExpirationEnforcement

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

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