public static final class Bucket.RetentionPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder> implements Bucket.RetentionPolicyOrBuilder
Retention policy properties of a bucket.Protobuf type
google.storage.v2.Bucket.RetentionPolicy
Modifier and Type | Method and Description |
---|---|
Bucket.RetentionPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Bucket.RetentionPolicy |
build() |
Bucket.RetentionPolicy |
buildPartial() |
Bucket.RetentionPolicy.Builder |
clear() |
Bucket.RetentionPolicy.Builder |
clearEffectiveTime()
Server-determined value that indicates the time from which policy was
enforced and effective.
|
Bucket.RetentionPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Bucket.RetentionPolicy.Builder |
clearIsLocked()
Once locked, an object retention policy cannot be modified.
|
Bucket.RetentionPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Bucket.RetentionPolicy.Builder |
clearRetentionDuration()
The duration that objects need to be retained.
|
Bucket.RetentionPolicy.Builder |
clone() |
Bucket.RetentionPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Timestamp |
getEffectiveTime()
Server-determined value that indicates the time from which policy was
enforced and effective.
|
com.google.protobuf.Timestamp.Builder |
getEffectiveTimeBuilder()
Server-determined value that indicates the time from which policy was
enforced and effective.
|
com.google.protobuf.TimestampOrBuilder |
getEffectiveTimeOrBuilder()
Server-determined value that indicates the time from which policy was
enforced and effective.
|
boolean |
getIsLocked()
Once locked, an object retention policy cannot be modified.
|
com.google.protobuf.Duration |
getRetentionDuration()
The duration that objects need to be retained.
|
com.google.protobuf.Duration.Builder |
getRetentionDurationBuilder()
The duration that objects need to be retained.
|
com.google.protobuf.DurationOrBuilder |
getRetentionDurationOrBuilder()
The duration that objects need to be retained.
|
boolean |
hasEffectiveTime()
Server-determined value that indicates the time from which policy was
enforced and effective.
|
boolean |
hasRetentionDuration()
The duration that objects need to be retained.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Bucket.RetentionPolicy.Builder |
mergeEffectiveTime(com.google.protobuf.Timestamp value)
Server-determined value that indicates the time from which policy was
enforced and effective.
|
Bucket.RetentionPolicy.Builder |
mergeFrom(Bucket.RetentionPolicy other) |
Bucket.RetentionPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Bucket.RetentionPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
Bucket.RetentionPolicy.Builder |
mergeRetentionDuration(com.google.protobuf.Duration value)
The duration that objects need to be retained.
|
Bucket.RetentionPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Bucket.RetentionPolicy.Builder |
setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue)
Server-determined value that indicates the time from which policy was
enforced and effective.
|
Bucket.RetentionPolicy.Builder |
setEffectiveTime(com.google.protobuf.Timestamp value)
Server-determined value that indicates the time from which policy was
enforced and effective.
|
Bucket.RetentionPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Bucket.RetentionPolicy.Builder |
setIsLocked(boolean value)
Once locked, an object retention policy cannot be modified.
|
Bucket.RetentionPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Bucket.RetentionPolicy.Builder |
setRetentionDuration(com.google.protobuf.Duration.Builder builderForValue)
The duration that objects need to be retained.
|
Bucket.RetentionPolicy.Builder |
setRetentionDuration(com.google.protobuf.Duration value)
The duration that objects need to be retained.
|
Bucket.RetentionPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Bucket.RetentionPolicy build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Bucket.RetentionPolicy buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Bucket.RetentionPolicy.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy.Builder mergeFrom(Bucket.RetentionPolicy other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public Bucket.RetentionPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Bucket.RetentionPolicy.Builder>
IOException
public boolean hasEffectiveTime()
Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;
hasEffectiveTime
in interface Bucket.RetentionPolicyOrBuilder
public com.google.protobuf.Timestamp getEffectiveTime()
Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;
getEffectiveTime
in interface Bucket.RetentionPolicyOrBuilder
public Bucket.RetentionPolicy.Builder setEffectiveTime(com.google.protobuf.Timestamp value)
Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;
public Bucket.RetentionPolicy.Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue)
Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;
public Bucket.RetentionPolicy.Builder mergeEffectiveTime(com.google.protobuf.Timestamp value)
Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;
public Bucket.RetentionPolicy.Builder clearEffectiveTime()
Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;
public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder()
Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;
public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder()
Server-determined value that indicates the time from which policy was enforced and effective.
.google.protobuf.Timestamp effective_time = 1;
getEffectiveTimeOrBuilder
in interface Bucket.RetentionPolicyOrBuilder
public boolean getIsLocked()
Once locked, an object retention policy cannot be modified.
bool is_locked = 2;
getIsLocked
in interface Bucket.RetentionPolicyOrBuilder
public Bucket.RetentionPolicy.Builder setIsLocked(boolean value)
Once locked, an object retention policy cannot be modified.
bool is_locked = 2;
value
- The isLocked to set.public Bucket.RetentionPolicy.Builder clearIsLocked()
Once locked, an object retention policy cannot be modified.
bool is_locked = 2;
public boolean hasRetentionDuration()
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;
hasRetentionDuration
in interface Bucket.RetentionPolicyOrBuilder
public com.google.protobuf.Duration getRetentionDuration()
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;
getRetentionDuration
in interface Bucket.RetentionPolicyOrBuilder
public Bucket.RetentionPolicy.Builder setRetentionDuration(com.google.protobuf.Duration value)
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;
public Bucket.RetentionPolicy.Builder setRetentionDuration(com.google.protobuf.Duration.Builder builderForValue)
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;
public Bucket.RetentionPolicy.Builder mergeRetentionDuration(com.google.protobuf.Duration value)
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;
public Bucket.RetentionPolicy.Builder clearRetentionDuration()
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;
public com.google.protobuf.Duration.Builder getRetentionDurationBuilder()
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;
public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder()
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;
getRetentionDurationOrBuilder
in interface Bucket.RetentionPolicyOrBuilder
public final Bucket.RetentionPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
public final Bucket.RetentionPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Bucket.RetentionPolicy.Builder>
Copyright © 2023 Google LLC. All rights reserved.