Interface Object.RetentionOrBuilder

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

public static interface Object.RetentionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional.
    int
    Optional.
    com.google.protobuf.Timestamp
    Optional.
    com.google.protobuf.TimestampOrBuilder
    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

    • getModeValue

      int getModeValue()
       Optional. The mode of the Retention.
       
      .google.storage.v2.Object.Retention.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The enum numeric value on the wire for mode.
    • getMode

       Optional. The mode of the Retention.
       
      .google.storage.v2.Object.Retention.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The mode.
    • hasRetainUntilTime

      boolean hasRetainUntilTime()
       Optional. The timestamp that the object needs to be retained until.
       Value cannot be set in the past or more than 100 years in the future.
       
      .google.protobuf.Timestamp retain_until_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the retainUntilTime field is set.
    • getRetainUntilTime

      com.google.protobuf.Timestamp getRetainUntilTime()
       Optional. The timestamp that the object needs to be retained until.
       Value cannot be set in the past or more than 100 years in the future.
       
      .google.protobuf.Timestamp retain_until_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The retainUntilTime.
    • getRetainUntilTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getRetainUntilTimeOrBuilder()
       Optional. The timestamp that the object needs to be retained until.
       Value cannot be set in the past or more than 100 years in the future.
       
      .google.protobuf.Timestamp retain_until_time = 2 [(.google.api.field_behavior) = OPTIONAL];