Class Manifest.Builder (1.2.5)

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

Manifest configuration.

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

Implements

ManifestOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllMuxStreams(Iterable<String> values)

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

Required. List of user given MuxStream.keys that should appear in this manifest. When Manifest.type is HLS, a media manifest with name MuxStream.key and .m3u8 extension is generated for each element of the Manifest.mux_streams.

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

Parameter
Name Description
values Iterable<String>

The muxStreams to add.

Returns
Type Description
Manifest.Builder

This builder for chaining.

addMuxStreams(String value)

public Manifest.Builder addMuxStreams(String value)

Required. List of user given MuxStream.keys that should appear in this manifest. When Manifest.type is HLS, a media manifest with name MuxStream.key and .m3u8 extension is generated for each element of the Manifest.mux_streams.

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

Parameter
Name Description
value String

The muxStreams to add.

Returns
Type Description
Manifest.Builder

This builder for chaining.

addMuxStreamsBytes(ByteString value)

public Manifest.Builder addMuxStreamsBytes(ByteString value)

Required. List of user given MuxStream.keys that should appear in this manifest. When Manifest.type is HLS, a media manifest with name MuxStream.key and .m3u8 extension is generated for each element of the Manifest.mux_streams.

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

Parameter
Name Description
value ByteString

The bytes of the muxStreams to add.

Returns
Type Description
Manifest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Manifest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Manifest.Builder
Overrides

build()

public Manifest build()
Returns
Type Description
Manifest

buildPartial()

public Manifest buildPartial()
Returns
Type Description
Manifest

clear()

public Manifest.Builder clear()
Returns
Type Description
Manifest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Manifest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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.

string file_name = 1;

Returns
Type Description
Manifest.Builder

This builder for chaining.

clearMuxStreams()

public Manifest.Builder clearMuxStreams()

Required. List of user given MuxStream.keys that should appear in this manifest. When Manifest.type is HLS, a media manifest with name MuxStream.key and .m3u8 extension is generated for each element of the Manifest.mux_streams.

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

Returns
Type Description
Manifest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Manifest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Manifest.Builder
Overrides

clearType()

public Manifest.Builder clearType()

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

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

Returns
Type Description
Manifest.Builder

This builder for chaining.

clone()

public Manifest.Builder clone()
Returns
Type Description
Manifest.Builder
Overrides

getDefaultInstanceForType()

public Manifest getDefaultInstanceForType()
Returns
Type Description
Manifest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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.

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.

string file_name = 1;

Returns
Type Description
ByteString

The bytes for fileName.

getMuxStreams(int index)

public String getMuxStreams(int index)

Required. List of user given MuxStream.keys that should appear in this manifest. When Manifest.type is HLS, a media manifest with name MuxStream.key and .m3u8 extension is generated for each element of the Manifest.mux_streams.

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 user given MuxStream.keys that should appear in this manifest. When Manifest.type is HLS, a media manifest with name MuxStream.key and .m3u8 extension is generated for each element of the Manifest.mux_streams.

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