Class AudioStream.AudioMapping.Builder (0.56.0)

public static final class AudioStream.AudioMapping.Builder extends GeneratedMessageV3.Builder<AudioStream.AudioMapping.Builder> implements AudioStream.AudioMappingOrBuilder

The mapping for the input streams and audio channels.

Protobuf type google.cloud.video.livestream.v1.AudioStream.AudioMapping

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AudioStream.AudioMapping build()
Returns
Type Description
AudioStream.AudioMapping

buildPartial()

public AudioStream.AudioMapping buildPartial()
Returns
Type Description
AudioStream.AudioMapping

clear()

public AudioStream.AudioMapping.Builder clear()
Returns
Type Description
AudioStream.AudioMapping.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearGainDb()

public AudioStream.AudioMapping.Builder clearGainDb()

Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.

double gain_db = 5;

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

clearInputChannel()

public AudioStream.AudioMapping.Builder clearInputChannel()

Required. The zero-based index of the channel in the input stream.

int32 input_channel = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

clearInputKey()

public AudioStream.AudioMapping.Builder clearInputKey()

Required. The Channel InputAttachment.key that identifies the input that this audio mapping applies to. If an active input doesn't have an audio mapping, the primary audio track in the input stream will be selected.

string input_key = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

clearInputTrack()

public AudioStream.AudioMapping.Builder clearInputTrack()

Required. The zero-based index of the track in the input stream. All mappings in the same AudioStream must have the same input track.

int32 input_track = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputChannel()

public AudioStream.AudioMapping.Builder clearOutputChannel()

Required. The zero-based index of the channel in the output audio stream. Must be consistent with the input_channel.

int32 output_channel = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

clone()

public AudioStream.AudioMapping.Builder clone()
Returns
Type Description
AudioStream.AudioMapping.Builder
Overrides

getDefaultInstanceForType()

public AudioStream.AudioMapping getDefaultInstanceForType()
Returns
Type Description
AudioStream.AudioMapping

getDescriptorForType()

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

getGainDb()

public double getGainDb()

Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.

double gain_db = 5;

Returns
Type Description
double

The gainDb.

getInputChannel()

public int getInputChannel()

Required. The zero-based index of the channel in the input stream.

int32 input_channel = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The inputChannel.

getInputKey()

public String getInputKey()

Required. The Channel InputAttachment.key that identifies the input that this audio mapping applies to. If an active input doesn't have an audio mapping, the primary audio track in the input stream will be selected.

string input_key = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The inputKey.

getInputKeyBytes()

public ByteString getInputKeyBytes()

Required. The Channel InputAttachment.key that identifies the input that this audio mapping applies to. If an active input doesn't have an audio mapping, the primary audio track in the input stream will be selected.

string input_key = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for inputKey.

getInputTrack()

public int getInputTrack()

Required. The zero-based index of the track in the input stream. All mappings in the same AudioStream must have the same input track.

int32 input_track = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The inputTrack.

getOutputChannel()

public int getOutputChannel()

Required. The zero-based index of the channel in the output audio stream. Must be consistent with the input_channel.

int32 output_channel = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The outputChannel.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AudioStream.AudioMapping other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGainDb(double value)

public AudioStream.AudioMapping.Builder setGainDb(double value)

Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.

double gain_db = 5;

Parameter
Name Description
value double

The gainDb to set.

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

setInputChannel(int value)

public AudioStream.AudioMapping.Builder setInputChannel(int value)

Required. The zero-based index of the channel in the input stream.

int32 input_channel = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The inputChannel to set.

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

setInputKey(String value)

public AudioStream.AudioMapping.Builder setInputKey(String value)

Required. The Channel InputAttachment.key that identifies the input that this audio mapping applies to. If an active input doesn't have an audio mapping, the primary audio track in the input stream will be selected.

string input_key = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The inputKey to set.

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

setInputKeyBytes(ByteString value)

public AudioStream.AudioMapping.Builder setInputKeyBytes(ByteString value)

Required. The Channel InputAttachment.key that identifies the input that this audio mapping applies to. If an active input doesn't have an audio mapping, the primary audio track in the input stream will be selected.

string input_key = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for inputKey to set.

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

setInputTrack(int value)

public AudioStream.AudioMapping.Builder setInputTrack(int value)

Required. The zero-based index of the track in the input stream. All mappings in the same AudioStream must have the same input track.

int32 input_track = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The inputTrack to set.

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

setOutputChannel(int value)

public AudioStream.AudioMapping.Builder setOutputChannel(int value)

Required. The zero-based index of the channel in the output audio stream. Must be consistent with the input_channel.

int32 output_channel = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The outputChannel to set.

Returns
Type Description
AudioStream.AudioMapping.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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