Class Registry.GetDefaultPolicyResponse.Builder

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

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

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

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

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

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

      public Registry.GetDefaultPolicyResponse.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.
    • hasDefaultExpiration

      public boolean hasDefaultExpiration()
       The default expiration duration that is applied to newly created images.
       After this duration the image becomes inaccessible and the underlying blobs are deleted.
       Not set means no default policy is configured.
      
       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 default_expiration = 2;
      Specified by:
      hasDefaultExpiration in interface Registry.GetDefaultPolicyResponseOrBuilder
      Returns:
      Whether the defaultExpiration field is set.
    • getDefaultExpiration

      public com.google.protobuf.Duration getDefaultExpiration()
       The default expiration duration that is applied to newly created images.
       After this duration the image becomes inaccessible and the underlying blobs are deleted.
       Not set means no default policy is configured.
      
       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 default_expiration = 2;
      Specified by:
      getDefaultExpiration in interface Registry.GetDefaultPolicyResponseOrBuilder
      Returns:
      The defaultExpiration.
    • setDefaultExpiration

      public Registry.GetDefaultPolicyResponse.Builder setDefaultExpiration(com.google.protobuf.Duration value)
       The default expiration duration that is applied to newly created images.
       After this duration the image becomes inaccessible and the underlying blobs are deleted.
       Not set means no default policy is configured.
      
       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 default_expiration = 2;
    • setDefaultExpiration

      public Registry.GetDefaultPolicyResponse.Builder setDefaultExpiration(com.google.protobuf.Duration.Builder builderForValue)
       The default expiration duration that is applied to newly created images.
       After this duration the image becomes inaccessible and the underlying blobs are deleted.
       Not set means no default policy is configured.
      
       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 default_expiration = 2;
    • mergeDefaultExpiration

      public Registry.GetDefaultPolicyResponse.Builder mergeDefaultExpiration(com.google.protobuf.Duration value)
       The default expiration duration that is applied to newly created images.
       After this duration the image becomes inaccessible and the underlying blobs are deleted.
       Not set means no default policy is configured.
      
       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 default_expiration = 2;
    • clearDefaultExpiration

      public Registry.GetDefaultPolicyResponse.Builder clearDefaultExpiration()
       The default expiration duration that is applied to newly created images.
       After this duration the image becomes inaccessible and the underlying blobs are deleted.
       Not set means no default policy is configured.
      
       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 default_expiration = 2;
    • getDefaultExpirationBuilder

      public com.google.protobuf.Duration.Builder getDefaultExpirationBuilder()
       The default expiration duration that is applied to newly created images.
       After this duration the image becomes inaccessible and the underlying blobs are deleted.
       Not set means no default policy is configured.
      
       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 default_expiration = 2;
    • getDefaultExpirationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDefaultExpirationOrBuilder()
       The default expiration duration that is applied to newly created images.
       After this duration the image becomes inaccessible and the underlying blobs are deleted.
       Not set means no default policy is configured.
      
       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 default_expiration = 2;
      Specified by:
      getDefaultExpirationOrBuilder in interface Registry.GetDefaultPolicyResponseOrBuilder
    • getExpirationEnforcementValue

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

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

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

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