Class Manifest.Builder (0.41.0)

public static final class Manifest.Builder extends GeneratedMessageV3.Builder<Manifest.Builder> implements ManifestOrBuilder

Manifest configuration.

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

Implements

ManifestOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllMuxStreams(Iterable<String> values)

public Manifest.Builder addAllMuxStreams(Iterable<String> values)

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
valuesIterable<String>

The muxStreams to add.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.

addMuxStreams(String value)

public Manifest.Builder addMuxStreams(String value)

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
valueString

The muxStreams to add.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.

addMuxStreamsBytes(ByteString value)

public Manifest.Builder addMuxStreamsBytes(ByteString value)

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
valueByteString

The bytes of the muxStreams to add.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Manifest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Manifest.Builder
Overrides

build()

public Manifest build()
Returns
TypeDescription
Manifest

buildPartial()

public Manifest buildPartial()
Returns
TypeDescription
Manifest

clear()

public Manifest.Builder clear()
Returns
TypeDescription
Manifest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Manifest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Manifest.Builder
Overrides

clearFileName()

public Manifest.Builder clearFileName()

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
Manifest.Builder

This builder for chaining.

clearMaxSegmentCount()

public Manifest.Builder clearMaxSegmentCount()

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
Manifest.Builder

This builder for chaining.

clearMuxStreams()

public Manifest.Builder clearMuxStreams()

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
Manifest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Manifest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Manifest.Builder
Overrides

clearSegmentKeepDuration()

public Manifest.Builder clearSegmentKeepDuration()

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
Manifest.Builder

clearType()

public Manifest.Builder clearType()

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.Builder

This builder for chaining.

clearUseTimecodeAsTimeline()

public Manifest.Builder clearUseTimecodeAsTimeline()

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
Manifest.Builder

This builder for chaining.

clone()

public Manifest.Builder clone()
Returns
TypeDescription
Manifest.Builder
Overrides

getDefaultInstanceForType()

public Manifest getDefaultInstanceForType()
Returns
TypeDescription
Manifest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

getSegmentKeepDurationBuilder()

public Duration.Builder getSegmentKeepDurationBuilder()

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
Builder

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Manifest other)

public Manifest.Builder mergeFrom(Manifest other)
Parameter
NameDescription
otherManifest
Returns
TypeDescription
Manifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Manifest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Manifest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Manifest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Manifest.Builder
Overrides

mergeSegmentKeepDuration(Duration value)

public Manifest.Builder mergeSegmentKeepDuration(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Manifest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Manifest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Manifest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Manifest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Manifest.Builder
Overrides

setFileName(String value)

public Manifest.Builder setFileName(String value)

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;

Parameter
NameDescription
valueString

The fileName to set.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.

setFileNameBytes(ByteString value)

public Manifest.Builder setFileNameBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for fileName to set.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.

setMaxSegmentCount(int value)

public Manifest.Builder setMaxSegmentCount(int value)

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;

Parameter
NameDescription
valueint

The maxSegmentCount to set.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.

setMuxStreams(int index, String value)

public Manifest.Builder setMuxStreams(int index, String value)

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];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The muxStreams to set.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Manifest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Manifest.Builder
Overrides

setSegmentKeepDuration(Duration value)

public Manifest.Builder setSegmentKeepDuration(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Manifest.Builder

setSegmentKeepDuration(Duration.Builder builderForValue)

public Manifest.Builder setSegmentKeepDuration(Duration.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Manifest.Builder

setType(Manifest.ManifestType value)

public Manifest.Builder setType(Manifest.ManifestType value)

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

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

Parameter
NameDescription
valueManifest.ManifestType

The type to set.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.

setTypeValue(int value)

public Manifest.Builder setTypeValue(int value)

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

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Manifest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Manifest.Builder
Overrides

setUseTimecodeAsTimeline(boolean value)

public Manifest.Builder setUseTimecodeAsTimeline(boolean value)

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;

Parameter
NameDescription
valueboolean

The useTimecodeAsTimeline to set.

Returns
TypeDescription
Manifest.Builder

This builder for chaining.