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
    Optional.
    com.google.protobuf.TimestampOrBuilder
    Optional.
    boolean
    Optional.
    com.google.protobuf.Duration
    Optional.
    com.google.protobuf.DurationOrBuilder
    Optional.
    boolean
    Optional.
    boolean
    Optional.

    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()
       Optional. Server-determined value that indicates the time from which
       policy was enforced and effective.
       
      .google.protobuf.Timestamp effective_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the effectiveTime field is set.
    • getEffectiveTime

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

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

      boolean getIsLocked()
       Optional. Once locked, an object retention policy cannot be modified.
       
      bool is_locked = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The isLocked.
    • hasRetentionDuration

      boolean hasRetentionDuration()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the retentionDuration field is set.
    • getRetentionDuration

      com.google.protobuf.Duration getRetentionDuration()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The retentionDuration.
    • getRetentionDurationOrBuilder

      com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];