public interface ObjectRetentionOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getRetainUntilTime()
public abstract String getRetainUntilTime()Required. The time when the object will be retained until. UNSET will clear the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
optional string retain_until_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The retainUntilTime. |
getRetainUntilTimeBytes()
public abstract ByteString getRetainUntilTimeBytes()Required. The time when the object will be retained until. UNSET will clear the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
optional string retain_until_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for retainUntilTime. |
getRetentionMode()
public abstract ObjectRetention.RetentionMode getRetentionMode()Required. The retention mode of the object.
optional .google.cloud.storagebatchoperations.v1.ObjectRetention.RetentionMode retention_mode = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObjectRetention.RetentionMode |
The retentionMode. |
getRetentionModeValue()
public abstract int getRetentionModeValue()Required. The retention mode of the object.
optional .google.cloud.storagebatchoperations.v1.ObjectRetention.RetentionMode retention_mode = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for retentionMode. |
hasRetainUntilTime()
public abstract boolean hasRetainUntilTime()Required. The time when the object will be retained until. UNSET will clear the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
optional string retain_until_time = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the retainUntilTime field is set. |
hasRetentionMode()
public abstract boolean hasRetentionMode()Required. The retention mode of the object.
optional .google.cloud.storagebatchoperations.v1.ObjectRetention.RetentionMode retention_mode = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the retentionMode field is set. |