public final class Manifest extends GeneratedMessageV3 implements ManifestOrBuilder
Manifest configuration.
Protobuf type google.cloud.video.livestream.v1.Manifest
Static Fields
FILE_NAME_FIELD_NUMBER
public static final int FILE_NAME_FIELD_NUMBER
Field Value
MAX_SEGMENT_COUNT_FIELD_NUMBER
public static final int MAX_SEGMENT_COUNT_FIELD_NUMBER
Field Value
MUX_STREAMS_FIELD_NUMBER
public static final int MUX_STREAMS_FIELD_NUMBER
Field Value
SEGMENT_KEEP_DURATION_FIELD_NUMBER
public static final int SEGMENT_KEEP_DURATION_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Manifest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Manifest.Builder newBuilder()
Returns
newBuilder(Manifest prototype)
public static Manifest.Builder newBuilder(Manifest prototype)
Parameter
Returns
public static Manifest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Manifest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Manifest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Manifest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Manifest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Manifest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Manifest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Manifest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Manifest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Manifest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Manifest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Manifest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Manifest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Manifest getDefaultInstanceForType()
Returns
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
Type | Description |
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
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
Type | Description |
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
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
getParserForType()
public Parser<Manifest> getParserForType()
Returns
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
Type | Description |
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
getSerializedSize()
public int getSerializedSize()
Returns
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
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
Type | Description |
int | The enum numeric value on the wire for type.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Type | Description |
boolean | Whether the segmentKeepDuration field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Manifest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Manifest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Manifest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions