Class AudioStream.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AudioStream.Builder>
com.google.cloud.video.livestream.v1.AudioStream.Builder
- All Implemented Interfaces:
AudioStreamOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AudioStream
public static final class AudioStream.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AudioStream.Builder>
implements AudioStreamOrBuilder
Audio stream resource.Protobuf type
google.cloud.video.livestream.v1.AudioStream-
Method Summary
Modifier and TypeMethodDescriptionaddAllChannelLayout(Iterable<String> values) A list of channel names specifying layout of the audio channels.addAllMapping(Iterable<? extends AudioStream.AudioMapping> values) The mapping for the input streams and audio channels.addChannelLayout(String value) A list of channel names specifying layout of the audio channels.addChannelLayoutBytes(com.google.protobuf.ByteString value) A list of channel names specifying layout of the audio channels.addMapping(int index, AudioStream.AudioMapping value) The mapping for the input streams and audio channels.addMapping(int index, AudioStream.AudioMapping.Builder builderForValue) The mapping for the input streams and audio channels.The mapping for the input streams and audio channels.addMapping(AudioStream.AudioMapping.Builder builderForValue) The mapping for the input streams and audio channels.The mapping for the input streams and audio channels.addMappingBuilder(int index) The mapping for the input streams and audio channels.build()clear()Required.Number of audio channels.A list of channel names specifying layout of the audio channels.The codec for this audio stream.The mapping for the input streams and audio channels.The audio sample rate in Hertz.Specifies whether pass through (transmuxing) is enabled or not.intRequired.intNumber of audio channels.getChannelLayout(int index) A list of channel names specifying layout of the audio channels.com.google.protobuf.ByteStringgetChannelLayoutBytes(int index) A list of channel names specifying layout of the audio channels.intA list of channel names specifying layout of the audio channels.com.google.protobuf.ProtocolStringListA list of channel names specifying layout of the audio channels.getCodec()The codec for this audio stream.com.google.protobuf.ByteStringThe codec for this audio stream.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMapping(int index) The mapping for the input streams and audio channels.getMappingBuilder(int index) The mapping for the input streams and audio channels.The mapping for the input streams and audio channels.intThe mapping for the input streams and audio channels.The mapping for the input streams and audio channels.getMappingOrBuilder(int index) The mapping for the input streams and audio channels.List<? extends AudioStream.AudioMappingOrBuilder>The mapping for the input streams and audio channels.intThe audio sample rate in Hertz.booleanSpecifies whether pass through (transmuxing) is enabled or not.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AudioStream other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeMapping(int index) The mapping for the input streams and audio channels.setBitrateBps(int value) Required.setChannelCount(int value) Number of audio channels.setChannelLayout(int index, String value) A list of channel names specifying layout of the audio channels.The codec for this audio stream.setCodecBytes(com.google.protobuf.ByteString value) The codec for this audio stream.setMapping(int index, AudioStream.AudioMapping value) The mapping for the input streams and audio channels.setMapping(int index, AudioStream.AudioMapping.Builder builderForValue) The mapping for the input streams and audio channels.setSampleRateHertz(int value) The audio sample rate in Hertz.setTransmux(boolean value) Specifies whether pass through (transmuxing) is enabled or not.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AudioStream.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AudioStream.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AudioStream.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AudioStream.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AudioStream.Builder>
-
mergeFrom
public AudioStream.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AudioStream.Builder>- Throws:
IOException
-
getTransmux
public boolean getTransmux()Specifies whether pass through (transmuxing) is enabled or not. If set to `true`, the rest of the settings, other than `mapping`, will be ignored. The default is `false`.
bool transmux = 8;- Specified by:
getTransmuxin interfaceAudioStreamOrBuilder- Returns:
- The transmux.
-
setTransmux
Specifies whether pass through (transmuxing) is enabled or not. If set to `true`, the rest of the settings, other than `mapping`, will be ignored. The default is `false`.
bool transmux = 8;- Parameters:
value- The transmux to set.- Returns:
- This builder for chaining.
-
clearTransmux
Specifies whether pass through (transmuxing) is enabled or not. If set to `true`, the rest of the settings, other than `mapping`, will be ignored. The default is `false`.
bool transmux = 8;- Returns:
- This builder for chaining.
-
getCodec
The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac`
string codec = 1;- Specified by:
getCodecin interfaceAudioStreamOrBuilder- Returns:
- The codec.
-
getCodecBytes
public com.google.protobuf.ByteString getCodecBytes()The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac`
string codec = 1;- Specified by:
getCodecBytesin interfaceAudioStreamOrBuilder- Returns:
- The bytes for codec.
-
setCodec
The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac`
string codec = 1;- Parameters:
value- The codec to set.- Returns:
- This builder for chaining.
-
clearCodec
The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac`
string codec = 1;- Returns:
- This builder for chaining.
-
setCodecBytes
The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac`
string codec = 1;- Parameters:
value- The bytes for codec to set.- Returns:
- This builder for chaining.
-
getBitrateBps
public int getBitrateBps()Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBitrateBpsin interfaceAudioStreamOrBuilder- Returns:
- The bitrateBps.
-
setBitrateBps
Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bitrateBps to set.- Returns:
- This builder for chaining.
-
clearBitrateBps
Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
int32 bitrate_bps = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getChannelCount
public int getChannelCount()Number of audio channels. Must be between 1 and 6. The default is 2.
int32 channel_count = 3;- Specified by:
getChannelCountin interfaceAudioStreamOrBuilder- Returns:
- The channelCount.
-
setChannelCount
Number of audio channels. Must be between 1 and 6. The default is 2.
int32 channel_count = 3;- Parameters:
value- The channelCount to set.- Returns:
- This builder for chaining.
-
clearChannelCount
Number of audio channels. Must be between 1 and 6. The default is 2.
int32 channel_count = 3;- Returns:
- This builder for chaining.
-
getChannelLayoutList
public com.google.protobuf.ProtocolStringList getChannelLayoutList()A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[fl, fr]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
repeated string channel_layout = 4;- Specified by:
getChannelLayoutListin interfaceAudioStreamOrBuilder- Returns:
- A list containing the channelLayout.
-
getChannelLayoutCount
public int getChannelLayoutCount()A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[fl, fr]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
repeated string channel_layout = 4;- Specified by:
getChannelLayoutCountin interfaceAudioStreamOrBuilder- Returns:
- The count of channelLayout.
-
getChannelLayout
A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[fl, fr]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
repeated string channel_layout = 4;- Specified by:
getChannelLayoutin interfaceAudioStreamOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The channelLayout at the given index.
-
getChannelLayoutBytes
public com.google.protobuf.ByteString getChannelLayoutBytes(int index) A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[fl, fr]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
repeated string channel_layout = 4;- Specified by:
getChannelLayoutBytesin interfaceAudioStreamOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the channelLayout at the given index.
-
setChannelLayout
A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[fl, fr]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
repeated string channel_layout = 4;- Parameters:
index- The index to set the value at.value- The channelLayout to set.- Returns:
- This builder for chaining.
-
addChannelLayout
A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[fl, fr]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
repeated string channel_layout = 4;- Parameters:
value- The channelLayout to add.- Returns:
- This builder for chaining.
-
addAllChannelLayout
A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[fl, fr]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
repeated string channel_layout = 4;- Parameters:
values- The channelLayout to add.- Returns:
- This builder for chaining.
-
clearChannelLayout
A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[fl, fr]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
repeated string channel_layout = 4;- Returns:
- This builder for chaining.
-
addChannelLayoutBytes
A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `[fl, fr]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
repeated string channel_layout = 4;- Parameters:
value- The bytes of the channelLayout to add.- Returns:
- This builder for chaining.
-
getMappingList
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5;- Specified by:
getMappingListin interfaceAudioStreamOrBuilder
-
getMappingCount
public int getMappingCount()The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5;- Specified by:
getMappingCountin interfaceAudioStreamOrBuilder
-
getMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5;- Specified by:
getMappingin interfaceAudioStreamOrBuilder
-
setMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
setMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
addMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
addMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
addMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
addMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
addAllMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
clearMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
removeMapping
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
getMappingBuilder
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
getMappingOrBuilder
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5;- Specified by:
getMappingOrBuilderin interfaceAudioStreamOrBuilder
-
getMappingOrBuilderList
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5;- Specified by:
getMappingOrBuilderListin interfaceAudioStreamOrBuilder
-
addMappingBuilder
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
addMappingBuilder
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
getMappingBuilderList
The mapping for the input streams and audio channels.
repeated .google.cloud.video.livestream.v1.AudioStream.AudioMapping mapping = 5; -
getSampleRateHertz
public int getSampleRateHertz()The audio sample rate in Hertz. The default is 48000 Hertz.
int32 sample_rate_hertz = 6;- Specified by:
getSampleRateHertzin interfaceAudioStreamOrBuilder- Returns:
- The sampleRateHertz.
-
setSampleRateHertz
The audio sample rate in Hertz. The default is 48000 Hertz.
int32 sample_rate_hertz = 6;- Parameters:
value- The sampleRateHertz to set.- Returns:
- This builder for chaining.
-
clearSampleRateHertz
The audio sample rate in Hertz. The default is 48000 Hertz.
int32 sample_rate_hertz = 6;- Returns:
- This builder for chaining.
-