Class DistributionStream.Builder (0.85.0)

public static final class DistributionStream.Builder extends GeneratedMessage.Builder<DistributionStream.Builder> implements DistributionStreamOrBuilder

Multiplexing settings for output streams used in Distribution.

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

Static Methods

getDescriptor()

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

Methods

addAllElementaryStreams(Iterable<String> values)

public DistributionStream.Builder addAllElementaryStreams(Iterable<String> values)

Required. List of ElementaryStream keys multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

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

Parameter
Name Description
values Iterable<String>

The elementaryStreams to add.

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

addElementaryStreams(String value)

public DistributionStream.Builder addElementaryStreams(String value)

Required. List of ElementaryStream keys multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

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

Parameter
Name Description
value String

The elementaryStreams to add.

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

addElementaryStreamsBytes(ByteString value)

public DistributionStream.Builder addElementaryStreamsBytes(ByteString value)

Required. List of ElementaryStream keys multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

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

Parameter
Name Description
value ByteString

The bytes of the elementaryStreams to add.

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

build()

public DistributionStream build()
Returns
Type Description
DistributionStream

buildPartial()

public DistributionStream buildPartial()
Returns
Type Description
DistributionStream

clear()

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

clearContainer()

public DistributionStream.Builder clearContainer()

Required. The container format.

Supported container formats:

  • ts, must contain exactly one audio stream and up to one video stream.
  • flv, must contain at most one audio stream and at most one video stream.

string container = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

clearElementaryStreams()

public DistributionStream.Builder clearElementaryStreams()

Required. List of ElementaryStream keys multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

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

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

clearKey()

public DistributionStream.Builder clearKey()

Required. A unique key for this distribution stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

getContainer()

public String getContainer()

Required. The container format.

Supported container formats:

  • ts, must contain exactly one audio stream and up to one video stream.
  • flv, must contain at most one audio stream and at most one video stream.

string container = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The container.

getContainerBytes()

public ByteString getContainerBytes()

Required. The container format.

Supported container formats:

  • ts, must contain exactly one audio stream and up to one video stream.
  • flv, must contain at most one audio stream and at most one video stream.

string container = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for container.

getDefaultInstanceForType()

public DistributionStream getDefaultInstanceForType()
Returns
Type Description
DistributionStream

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getElementaryStreams(int index)

public String getElementaryStreams(int index)

Required. List of ElementaryStream keys multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The elementaryStreams at the given index.

getElementaryStreamsBytes(int index)

public ByteString getElementaryStreamsBytes(int index)

Required. List of ElementaryStream keys multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

repeated string elementary_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 elementaryStreams at the given index.

getElementaryStreamsCount()

public int getElementaryStreamsCount()

Required. List of ElementaryStream keys multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

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

Returns
Type Description
int

The count of elementaryStreams.

getElementaryStreamsList()

public ProtocolStringList getElementaryStreamsList()

Required. List of ElementaryStream keys multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

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

Returns
Type Description
ProtocolStringList

A list containing the elementaryStreams.

getKey()

public String getKey()

Required. A unique key for this distribution stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. A unique key for this distribution stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for key.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DistributionStream other)

public DistributionStream.Builder mergeFrom(DistributionStream other)
Parameter
Name Description
other DistributionStream
Returns
Type Description
DistributionStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DistributionStream.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DistributionStream.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DistributionStream.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DistributionStream.Builder
Overrides

setContainer(String value)

public DistributionStream.Builder setContainer(String value)

Required. The container format.

Supported container formats:

  • ts, must contain exactly one audio stream and up to one video stream.
  • flv, must contain at most one audio stream and at most one video stream.

string container = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The container to set.

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

setContainerBytes(ByteString value)

public DistributionStream.Builder setContainerBytes(ByteString value)

Required. The container format.

Supported container formats:

  • ts, must contain exactly one audio stream and up to one video stream.
  • flv, must contain at most one audio stream and at most one video stream.

string container = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for container to set.

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

setElementaryStreams(int index, String value)

public DistributionStream.Builder setElementaryStreams(int index, String value)

Required. List of ElementaryStream keys multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The elementaryStreams to set.

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

setKey(String value)

public DistributionStream.Builder setKey(String value)

Required. A unique key for this distribution stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
DistributionStream.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public DistributionStream.Builder setKeyBytes(ByteString value)

Required. A unique key for this distribution stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
DistributionStream.Builder

This builder for chaining.