Class AudioStream.AudioMapping.Builder (0.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AudioStream.AudioMapping build()
Returns
TypeDescription
AudioStream.AudioMapping

buildPartial()

public AudioStream.AudioMapping buildPartial()
Returns
TypeDescription
AudioStream.AudioMapping

clear()

public AudioStream.AudioMapping.Builder clear()
Returns
TypeDescription
AudioStream.AudioMapping.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AudioStream.AudioMapping.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AudioStream.AudioMapping.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AudioStream.AudioMapping.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AudioStream.AudioMapping.Builder

This builder for chaining.

clone()

public AudioStream.AudioMapping.Builder clone()
Returns
TypeDescription
AudioStream.AudioMapping.Builder
Overrides

getDefaultInstanceForType()

public AudioStream.AudioMapping getDefaultInstanceForType()
Returns
TypeDescription
AudioStream.AudioMapping

getDescriptorForType()

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

The outputChannel.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AudioStream.AudioMapping other)

public AudioStream.AudioMapping.Builder mergeFrom(AudioStream.AudioMapping other)
Parameter
NameDescription
otherAudioStream.AudioMapping
Returns
TypeDescription
AudioStream.AudioMapping.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public AudioStream.AudioMapping.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuedouble

The gainDb to set.

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

The inputChannel to set.

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

The inputKey to set.

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

The bytes for inputKey to set.

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

The inputTrack to set.

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

The outputChannel to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AudioStream.AudioMapping.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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