Interface Bucket.RetentionPolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Bucket.RetentionPolicy, Bucket.RetentionPolicy.Builder
Enclosing class:
Bucket

public static interface Bucket.RetentionPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.Timestamp
    Server-determined value that indicates the time from which policy was enforced and effective.
    com.google.protobuf.TimestampOrBuilder
    Server-determined value that indicates the time from which policy was enforced and effective.
    boolean
    Once locked, an object retention policy cannot be modified.
    com.google.protobuf.Duration
    The duration that objects need to be retained.
    com.google.protobuf.DurationOrBuilder
    The duration that objects need to be retained.
    boolean
    Server-determined value that indicates the time from which policy was enforced and effective.
    boolean
    The duration that objects need to be retained.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasEffectiveTime

      boolean hasEffectiveTime()
       Server-determined value that indicates the time from which policy was
       enforced and effective.
       
      .google.protobuf.Timestamp effective_time = 1;
      Returns:
      Whether the effectiveTime field is set.
    • getEffectiveTime

      com.google.protobuf.Timestamp getEffectiveTime()
       Server-determined value that indicates the time from which policy was
       enforced and effective.
       
      .google.protobuf.Timestamp effective_time = 1;
      Returns:
      The effectiveTime.
    • getEffectiveTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder()
       Server-determined value that indicates the time from which policy was
       enforced and effective.
       
      .google.protobuf.Timestamp effective_time = 1;
    • getIsLocked

      boolean getIsLocked()
       Once locked, an object retention policy cannot be modified.
       
      bool is_locked = 2;
      Returns:
      The isLocked.
    • hasRetentionDuration

      boolean hasRetentionDuration()
       The duration that objects need to be retained. Retention duration must be
       greater than zero and less than 100 years. Note that enforcement of
       retention periods less than a day is not guaranteed. Such periods should
       only be used for testing purposes. Any `nanos` value specified will be
       rounded down to the nearest second.
       
      .google.protobuf.Duration retention_duration = 4;
      Returns:
      Whether the retentionDuration field is set.
    • getRetentionDuration

      com.google.protobuf.Duration getRetentionDuration()
       The duration that objects need to be retained. Retention duration must be
       greater than zero and less than 100 years. Note that enforcement of
       retention periods less than a day is not guaranteed. Such periods should
       only be used for testing purposes. Any `nanos` value specified will be
       rounded down to the nearest second.
       
      .google.protobuf.Duration retention_duration = 4;
      Returns:
      The retentionDuration.
    • getRetentionDurationOrBuilder

      com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder()
       The duration that objects need to be retained. Retention duration must be
       greater than zero and less than 100 years. Note that enforcement of
       retention periods less than a day is not guaranteed. Such periods should
       only be used for testing purposes. Any `nanos` value specified will be
       rounded down to the nearest second.
       
      .google.protobuf.Duration retention_duration = 4;