Class RetentionConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RetentionConfig.Builder>
com.google.cloud.video.livestream.v1.RetentionConfig.Builder
- All Implemented Interfaces:
RetentionConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RetentionConfig
public static final class RetentionConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RetentionConfig.Builder>
implements RetentionConfigOrBuilder
Configuration for retention of output files.Protobuf type
google.cloud.video.livestream.v1.RetentionConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The minimum duration for which the output files from the channel will remain in the output bucket.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationThe minimum duration for which the output files from the channel will remain in the output bucket.com.google.protobuf.Duration.BuilderThe minimum duration for which the output files from the channel will remain in the output bucket.com.google.protobuf.DurationOrBuilderThe minimum duration for which the output files from the channel will remain in the output bucket.booleanThe minimum duration for which the output files from the channel will remain in the output bucket.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RetentionConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRetentionWindowDuration(com.google.protobuf.Duration value) The minimum duration for which the output files from the channel will remain in the output bucket.setRetentionWindowDuration(com.google.protobuf.Duration value) The minimum duration for which the output files from the channel will remain in the output bucket.setRetentionWindowDuration(com.google.protobuf.Duration.Builder builderForValue) The minimum duration for which the output files from the channel will remain in the output bucket.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RetentionConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RetentionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RetentionConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RetentionConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RetentionConfig.Builder>
-
mergeFrom
public RetentionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RetentionConfig.Builder>- Throws:
IOException
-
hasRetentionWindowDuration
public boolean hasRetentionWindowDuration()The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously. When the channel is deleted, all output files are deleted from the output bucket asynchronously. If omitted or set to zero, output files will remain in the output bucket based on [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], which defaults to 60s. If both retention_window_duration and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] are set, retention_window_duration is used and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] is ignored.
.google.protobuf.Duration retention_window_duration = 1;- Specified by:
hasRetentionWindowDurationin interfaceRetentionConfigOrBuilder- Returns:
- Whether the retentionWindowDuration field is set.
-
getRetentionWindowDuration
public com.google.protobuf.Duration getRetentionWindowDuration()The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously. When the channel is deleted, all output files are deleted from the output bucket asynchronously. If omitted or set to zero, output files will remain in the output bucket based on [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], which defaults to 60s. If both retention_window_duration and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] are set, retention_window_duration is used and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] is ignored.
.google.protobuf.Duration retention_window_duration = 1;- Specified by:
getRetentionWindowDurationin interfaceRetentionConfigOrBuilder- Returns:
- The retentionWindowDuration.
-
setRetentionWindowDuration
The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously. When the channel is deleted, all output files are deleted from the output bucket asynchronously. If omitted or set to zero, output files will remain in the output bucket based on [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], which defaults to 60s. If both retention_window_duration and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] are set, retention_window_duration is used and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] is ignored.
.google.protobuf.Duration retention_window_duration = 1; -
setRetentionWindowDuration
public RetentionConfig.Builder setRetentionWindowDuration(com.google.protobuf.Duration.Builder builderForValue) The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously. When the channel is deleted, all output files are deleted from the output bucket asynchronously. If omitted or set to zero, output files will remain in the output bucket based on [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], which defaults to 60s. If both retention_window_duration and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] are set, retention_window_duration is used and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] is ignored.
.google.protobuf.Duration retention_window_duration = 1; -
mergeRetentionWindowDuration
The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously. When the channel is deleted, all output files are deleted from the output bucket asynchronously. If omitted or set to zero, output files will remain in the output bucket based on [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], which defaults to 60s. If both retention_window_duration and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] are set, retention_window_duration is used and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] is ignored.
.google.protobuf.Duration retention_window_duration = 1; -
clearRetentionWindowDuration
The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously. When the channel is deleted, all output files are deleted from the output bucket asynchronously. If omitted or set to zero, output files will remain in the output bucket based on [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], which defaults to 60s. If both retention_window_duration and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] are set, retention_window_duration is used and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] is ignored.
.google.protobuf.Duration retention_window_duration = 1; -
getRetentionWindowDurationBuilder
public com.google.protobuf.Duration.Builder getRetentionWindowDurationBuilder()The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously. When the channel is deleted, all output files are deleted from the output bucket asynchronously. If omitted or set to zero, output files will remain in the output bucket based on [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], which defaults to 60s. If both retention_window_duration and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] are set, retention_window_duration is used and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] is ignored.
.google.protobuf.Duration retention_window_duration = 1; -
getRetentionWindowDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getRetentionWindowDurationOrBuilder()The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously. When the channel is deleted, all output files are deleted from the output bucket asynchronously. If omitted or set to zero, output files will remain in the output bucket based on [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], which defaults to 60s. If both retention_window_duration and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] are set, retention_window_duration is used and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] is ignored.
.google.protobuf.Duration retention_window_duration = 1;- Specified by:
getRetentionWindowDurationOrBuilderin interfaceRetentionConfigOrBuilder
-