Interface Object.RetentionOrBuilder (2.53.0)

public static interface Object.RetentionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMode()

public abstract Object.Retention.Mode getMode()

Optional. The mode of the Retention.

.google.storage.v2.Object.Retention.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Object.Retention.Mode

The mode.

getModeValue()

public abstract int getModeValue()

Optional. The mode of the Retention.

.google.storage.v2.Object.Retention.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

getRetainUntilTime()

public abstract 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
Type Description
Timestamp

The retainUntilTime.

getRetainUntilTimeOrBuilder()

public abstract 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];

Returns
Type Description
TimestampOrBuilder

hasRetainUntilTime()

public abstract 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
Type Description
boolean

Whether the retainUntilTime field is set.