Class AudioFormat.Builder (0.13.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
TypeDescription
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
NameDescription
valuesIterable<String>

The channelLayout to add.

Returns
TypeDescription
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
NameDescription
valueString

The channelLayout to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the channelLayout to add.

Returns
TypeDescription
AudioFormat.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AudioFormat build()
Returns
TypeDescription
AudioFormat

buildPartial()

public AudioFormat buildPartial()
Returns
TypeDescription
AudioFormat

clear()

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

clearChannelCount()

public AudioFormat.Builder clearChannelCount()

The number of audio channels.

int32 channel_count = 2;

Returns
TypeDescription
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
TypeDescription
AudioFormat.Builder

This builder for chaining.

clearCodec()

public AudioFormat.Builder clearCodec()

Audio codec used in this audio stream.

string codec = 1;

Returns
TypeDescription
AudioFormat.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getChannelCount()

public int getChannelCount()

The number of audio channels.

int32 channel_count = 2;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the channelLayout.

getCodec()

public String getCodec()

Audio codec used in this audio stream.

string codec = 1;

Returns
TypeDescription
String

The codec.

getCodecBytes()

public ByteString getCodecBytes()

Audio codec used in this audio stream.

string codec = 1;

Returns
TypeDescription
ByteString

The bytes for codec.

getDefaultInstanceForType()

public AudioFormat getDefaultInstanceForType()
Returns
TypeDescription
AudioFormat

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AudioFormat other)

public AudioFormat.Builder mergeFrom(AudioFormat other)
Parameter
NameDescription
otherAudioFormat
Returns
TypeDescription
AudioFormat.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setChannelCount(int value)

public AudioFormat.Builder setChannelCount(int value)

The number of audio channels.

int32 channel_count = 2;

Parameter
NameDescription
valueint

The channelCount to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The channelLayout to set.

Returns
TypeDescription
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
NameDescription
valueString

The codec to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for codec to set.

Returns
TypeDescription
AudioFormat.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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