Class RetentionConfig (0.57.0)

public final class RetentionConfig extends GeneratedMessageV3 implements RetentionConfigOrBuilder

Configuration for retention of output files.

Protobuf type google.cloud.video.livestream.v1.RetentionConfig

Static Fields

RETENTION_WINDOW_DURATION_FIELD_NUMBER

public static final int RETENTION_WINDOW_DURATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RetentionConfig getDefaultInstance()
Returns
Type Description
RetentionConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RetentionConfig.Builder newBuilder()
Returns
Type Description
RetentionConfig.Builder

newBuilder(RetentionConfig prototype)

public static RetentionConfig.Builder newBuilder(RetentionConfig prototype)
Parameter
Name Description
prototype RetentionConfig
Returns
Type Description
RetentionConfig.Builder

parseDelimitedFrom(InputStream input)

public static RetentionConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RetentionConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RetentionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetentionConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RetentionConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RetentionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RetentionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetentionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RetentionConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RetentionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RetentionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetentionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RetentionConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RetentionConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RetentionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetentionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RetentionConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RetentionConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RetentionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetentionConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RetentionConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RetentionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RetentionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RetentionConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RetentionConfig> parser()
Returns
Type Description
Parser<RetentionConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RetentionConfig getDefaultInstanceForType()
Returns
Type Description
RetentionConfig

getParserForType()

public Parser<RetentionConfig> getParserForType()
Returns
Type Description
Parser<RetentionConfig>
Overrides

getRetentionWindowDuration()

public 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, which defaults to 60s.

If both retention_window_duration and Manifest.segment_keep_duration are set, retention_window_duration is used and Manifest.segment_keep_duration is ignored.

.google.protobuf.Duration retention_window_duration = 1;

Returns
Type Description
Duration

The retentionWindowDuration.

getRetentionWindowDurationOrBuilder()

public 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, which defaults to 60s.

If both retention_window_duration and Manifest.segment_keep_duration are set, retention_window_duration is used and Manifest.segment_keep_duration is ignored.

.google.protobuf.Duration retention_window_duration = 1;

Returns
Type Description
DurationOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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, which defaults to 60s.

If both retention_window_duration and Manifest.segment_keep_duration are set, retention_window_duration is used and Manifest.segment_keep_duration is ignored.

.google.protobuf.Duration retention_window_duration = 1;

Returns
Type Description
boolean

Whether the retentionWindowDuration field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RetentionConfig.Builder newBuilderForType()
Returns
Type Description
RetentionConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RetentionConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RetentionConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RetentionConfig.Builder toBuilder()
Returns
Type Description
RetentionConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException