Class Manifest (0.25.0)

public final class Manifest extends GeneratedMessageV3 implements ManifestOrBuilder

Manifest configuration.

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

Implements

ManifestOrBuilder

Static Fields

FILE_NAME_FIELD_NUMBER

public static final int FILE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_SEGMENT_COUNT_FIELD_NUMBER

public static final int MAX_SEGMENT_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MUX_STREAMS_FIELD_NUMBER

public static final int MUX_STREAMS_FIELD_NUMBER
Field Value
TypeDescription
int

SEGMENT_KEEP_DURATION_FIELD_NUMBER

public static final int SEGMENT_KEEP_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

USE_TIMECODE_AS_TIMELINE_FIELD_NUMBER

public static final int USE_TIMECODE_AS_TIMELINE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Manifest getDefaultInstance()
Returns
TypeDescription
Manifest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Manifest.Builder newBuilder()
Returns
TypeDescription
Manifest.Builder

newBuilder(Manifest prototype)

public static Manifest.Builder newBuilder(Manifest prototype)
Parameter
NameDescription
prototypeManifest
Returns
TypeDescription
Manifest.Builder

parseDelimitedFrom(InputStream input)

public static Manifest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Manifest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Manifest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Manifest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Manifest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Manifest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Manifest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Manifest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Manifest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Manifest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Manifest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Manifest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Manifest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Manifest> parser()
Returns
TypeDescription
Parser<Manifest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Manifest getDefaultInstanceForType()
Returns
TypeDescription
Manifest

getFileName()

public String getFileName()

The name of the generated file. The default is manifest with the extension suffix corresponding to the Manifest type. If multiple manifests are added to the channel, each must have a unique file name.

string file_name = 1;

Returns
TypeDescription
String

The fileName.

getFileNameBytes()

public ByteString getFileNameBytes()

The name of the generated file. The default is manifest with the extension suffix corresponding to the Manifest type. If multiple manifests are added to the channel, each must have a unique file name.

string file_name = 1;

Returns
TypeDescription
ByteString

The bytes for fileName.

getMaxSegmentCount()

public int getMaxSegmentCount()

Maximum number of segments that this manifest holds. Once the manifest reaches this maximum number of segments, whenever a new segment is added to the manifest, the oldest segment will be removed from the manifest. The minimum value is 3 and the default value is 5.

int32 max_segment_count = 4;

Returns
TypeDescription
int

The maxSegmentCount.

getMuxStreams(int index)

public String getMuxStreams(int index)

Required. List of MuxStream keys that should appear in this manifest.

  • For HLS, either fmp4 or ts mux streams can be specified but not mixed.
  • For DASH, only fmp4 mux streams can be specified.

repeated string mux_streams = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The muxStreams at the given index.

getMuxStreamsBytes(int index)

public ByteString getMuxStreamsBytes(int index)

Required. List of MuxStream keys that should appear in this manifest.

  • For HLS, either fmp4 or ts mux streams can be specified but not mixed.
  • For DASH, only fmp4 mux streams can be specified.

repeated string mux_streams = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the muxStreams at the given index.

getMuxStreamsCount()

public int getMuxStreamsCount()

Required. List of MuxStream keys that should appear in this manifest.

  • For HLS, either fmp4 or ts mux streams can be specified but not mixed.
  • For DASH, only fmp4 mux streams can be specified.

repeated string mux_streams = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of muxStreams.

getMuxStreamsList()

public ProtocolStringList getMuxStreamsList()

Required. List of MuxStream keys that should appear in this manifest.

  • For HLS, either fmp4 or ts mux streams can be specified but not mixed.
  • For DASH, only fmp4 mux streams can be specified.

repeated string mux_streams = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the muxStreams.

getParserForType()

public Parser<Manifest> getParserForType()
Returns
TypeDescription
Parser<Manifest>
Overrides

getSegmentKeepDuration()

public Duration getSegmentKeepDuration()

How long to keep a segment on the output Google Cloud Storage bucket after it is removed from the manifest. This field should be large enough to cover the manifest propagation delay. Otherwise, a player could receive 404 errors while accessing segments which are listed in the manifest that the player has, but were already deleted from the output Google Cloud Storage bucket. Default value is 60s.

.google.protobuf.Duration segment_keep_duration = 5;

Returns
TypeDescription
Duration

The segmentKeepDuration.

getSegmentKeepDurationOrBuilder()

public DurationOrBuilder getSegmentKeepDurationOrBuilder()

How long to keep a segment on the output Google Cloud Storage bucket after it is removed from the manifest. This field should be large enough to cover the manifest propagation delay. Otherwise, a player could receive 404 errors while accessing segments which are listed in the manifest that the player has, but were already deleted from the output Google Cloud Storage bucket. Default value is 60s.

.google.protobuf.Duration segment_keep_duration = 5;

Returns
TypeDescription
DurationOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public Manifest.ManifestType getType()

Required. Type of the manifest, can be HLS or DASH.

.google.cloud.video.livestream.v1.Manifest.ManifestType type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Manifest.ManifestType

The type.

getTypeValue()

public int getTypeValue()

Required. Type of the manifest, can be HLS or DASH.

.google.cloud.video.livestream.v1.Manifest.ManifestType type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUseTimecodeAsTimeline()

public boolean getUseTimecodeAsTimeline()

Whether to use the timecode, as specified in timecode config, when setting:

  • availabilityStartTime attribute in DASH manifests.
  • #EXT-X-PROGRAM-DATE-TIME tag in HLS manifests.

    If false, ignore the input timecode and use the time from system clock when the manifest is first generated. This is the default behavior.

bool use_timecode_as_timeline = 6;

Returns
TypeDescription
boolean

The useTimecodeAsTimeline.

hasSegmentKeepDuration()

public boolean hasSegmentKeepDuration()

How long to keep a segment on the output Google Cloud Storage bucket after it is removed from the manifest. This field should be large enough to cover the manifest propagation delay. Otherwise, a player could receive 404 errors while accessing segments which are listed in the manifest that the player has, but were already deleted from the output Google Cloud Storage bucket. Default value is 60s.

.google.protobuf.Duration segment_keep_duration = 5;

Returns
TypeDescription
boolean

Whether the segmentKeepDuration field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Manifest.Builder newBuilderForType()
Returns
TypeDescription
Manifest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Manifest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Manifest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Manifest.Builder toBuilder()
Returns
TypeDescription
Manifest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException