Class AudioFormat.Builder (0.54.0)

public static final class AudioFormat.Builder extends GeneratedMessageV3.Builder<AudioFormat.Builder> implements AudioFormatOrBuilder

Properties of the audio format.

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

Static Methods

getDescriptor()

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

Methods

addAllChannelLayout(Iterable<String> values)

public AudioFormat.Builder addAllChannelLayout(Iterable<String> values)

A list of channel names specifying the layout of the audio channels.

repeated string channel_layout = 3;

Parameter
Name Description
values Iterable<String>

The channelLayout to add.

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

addChannelLayout(String value)

public AudioFormat.Builder addChannelLayout(String value)

A list of channel names specifying the layout of the audio channels.

repeated string channel_layout = 3;

Parameter
Name Description
value String

The channelLayout to add.

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

addChannelLayoutBytes(ByteString value)

public AudioFormat.Builder addChannelLayoutBytes(ByteString value)

A list of channel names specifying the layout of the audio channels.

repeated string channel_layout = 3;

Parameter
Name Description
value ByteString

The bytes of the channelLayout to add.

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AudioFormat build()
Returns
Type Description
AudioFormat

buildPartial()

public AudioFormat buildPartial()
Returns
Type Description
AudioFormat

clear()

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

clearChannelCount()

public AudioFormat.Builder clearChannelCount()

The number of audio channels.

int32 channel_count = 2;

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

clearChannelLayout()

public AudioFormat.Builder clearChannelLayout()

A list of channel names specifying the layout of the audio channels.

repeated string channel_layout = 3;

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

clearCodec()

public AudioFormat.Builder clearCodec()

Audio codec used in this audio stream.

string codec = 1;

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AudioFormat.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AudioFormat.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getChannelCount()

public int getChannelCount()

The number of audio channels.

int32 channel_count = 2;

Returns
Type Description
int

The channelCount.

getChannelLayout(int index)

public String getChannelLayout(int index)

A list of channel names specifying the layout of the audio channels.

repeated string channel_layout = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The channelLayout at the given index.

getChannelLayoutBytes(int index)

public ByteString getChannelLayoutBytes(int index)

A list of channel names specifying the layout of the audio channels.

repeated string channel_layout = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the channelLayout at the given index.

getChannelLayoutCount()

public int getChannelLayoutCount()

A list of channel names specifying the layout of the audio channels.

repeated string channel_layout = 3;

Returns
Type Description
int

The count of channelLayout.

getChannelLayoutList()

public ProtocolStringList getChannelLayoutList()

A list of channel names specifying the layout of the audio channels.

repeated string channel_layout = 3;

Returns
Type Description
ProtocolStringList

A list containing the channelLayout.

getCodec()

public String getCodec()

Audio codec used in this audio stream.

string codec = 1;

Returns
Type Description
String

The codec.

getCodecBytes()

public ByteString getCodecBytes()

Audio codec used in this audio stream.

string codec = 1;

Returns
Type Description
ByteString

The bytes for codec.

getDefaultInstanceForType()

public AudioFormat getDefaultInstanceForType()
Returns
Type Description
AudioFormat

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AudioFormat other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AudioFormat.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AudioFormat.Builder
Overrides

setChannelCount(int value)

public AudioFormat.Builder setChannelCount(int value)

The number of audio channels.

int32 channel_count = 2;

Parameter
Name Description
value int

The channelCount to set.

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

setChannelLayout(int index, String value)

public AudioFormat.Builder setChannelLayout(int index, String value)

A list of channel names specifying the layout of the audio channels.

repeated string channel_layout = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The channelLayout to set.

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

setCodec(String value)

public AudioFormat.Builder setCodec(String value)

Audio codec used in this audio stream.

string codec = 1;

Parameter
Name Description
value String

The codec to set.

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

setCodecBytes(ByteString value)

public AudioFormat.Builder setCodecBytes(ByteString value)

Audio codec used in this audio stream.

string codec = 1;

Parameter
Name Description
value ByteString

The bytes for codec to set.

Returns
Type Description
AudioFormat.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public AudioFormat.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AudioFormat.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AudioFormat.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AudioFormat.Builder
Overrides