Interface Bucket.SoftDeletePolicyOrBuilder

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

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

    Modifier and Type
    Method
    Description
    com.google.protobuf.Timestamp
    Time from which the policy was effective.
    com.google.protobuf.TimestampOrBuilder
    Time from which the policy was effective.
    com.google.protobuf.Duration
    The period of time that soft-deleted objects in the bucket must be retained and cannot be permanently deleted.
    com.google.protobuf.DurationOrBuilder
    The period of time that soft-deleted objects in the bucket must be retained and cannot be permanently deleted.
    boolean
    Time from which the policy was effective.
    boolean
    The period of time that soft-deleted objects in the bucket must be retained and cannot be permanently deleted.

    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

    • hasRetentionDuration

      boolean hasRetentionDuration()
       The period of time that soft-deleted objects in the bucket must be
       retained and cannot be permanently deleted. The duration must be greater
       than or equal to 7 days and less than 1 year.
       
      optional .google.protobuf.Duration retention_duration = 1;
      Returns:
      Whether the retentionDuration field is set.
    • getRetentionDuration

      com.google.protobuf.Duration getRetentionDuration()
       The period of time that soft-deleted objects in the bucket must be
       retained and cannot be permanently deleted. The duration must be greater
       than or equal to 7 days and less than 1 year.
       
      optional .google.protobuf.Duration retention_duration = 1;
      Returns:
      The retentionDuration.
    • getRetentionDurationOrBuilder

      com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder()
       The period of time that soft-deleted objects in the bucket must be
       retained and cannot be permanently deleted. The duration must be greater
       than or equal to 7 days and less than 1 year.
       
      optional .google.protobuf.Duration retention_duration = 1;
    • hasEffectiveTime

      boolean hasEffectiveTime()
       Time from which the policy was effective. This is service-provided.
       
      optional .google.protobuf.Timestamp effective_time = 2;
      Returns:
      Whether the effectiveTime field is set.
    • getEffectiveTime

      com.google.protobuf.Timestamp getEffectiveTime()
       Time from which the policy was effective. This is service-provided.
       
      optional .google.protobuf.Timestamp effective_time = 2;
      Returns:
      The effectiveTime.
    • getEffectiveTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder()
       Time from which the policy was effective. This is service-provided.
       
      optional .google.protobuf.Timestamp effective_time = 2;