Class AudioFormat.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AudioFormat.Builder>
com.google.cloud.video.livestream.v1.AudioFormat.Builder
- All Implemented Interfaces:
AudioFormatOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AudioFormat
public static final class AudioFormat.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AudioFormat.Builder>
implements AudioFormatOrBuilder
Properties of the audio format.Protobuf type
google.cloud.video.livestream.v1.AudioFormat-
Method Summary
Modifier and TypeMethodDescriptionaddAllChannelLayout(Iterable<String> values) A list of channel names specifying the layout of the audio channels.addChannelLayout(String value) A list of channel names specifying the layout of the audio channels.addChannelLayoutBytes(com.google.protobuf.ByteString value) A list of channel names specifying the layout of the audio channels.build()clear()The number of audio channels.A list of channel names specifying the layout of the audio channels.Audio codec used in this audio stream.intThe number of audio channels.getChannelLayout(int index) A list of channel names specifying the layout of the audio channels.com.google.protobuf.ByteStringgetChannelLayoutBytes(int index) A list of channel names specifying the layout of the audio channels.intA list of channel names specifying the layout of the audio channels.com.google.protobuf.ProtocolStringListA list of channel names specifying the layout of the audio channels.getCodec()Audio codec used in this audio stream.com.google.protobuf.ByteStringAudio codec used in this audio stream.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AudioFormat other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setChannelCount(int value) The number of audio channels.setChannelLayout(int index, String value) A list of channel names specifying the layout of the audio channels.Audio codec used in this audio stream.setCodecBytes(com.google.protobuf.ByteString value) Audio codec used in this audio stream.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<AudioFormat.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<AudioFormat.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<AudioFormat.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<AudioFormat.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AudioFormat.Builder>
-
mergeFrom
public AudioFormat.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<AudioFormat.Builder>- Throws:
IOException
-
getCodec
Audio codec used in this audio stream.
string codec = 1;- Specified by:
getCodecin interfaceAudioFormatOrBuilder- Returns:
- The codec.
-
getCodecBytes
public com.google.protobuf.ByteString getCodecBytes()Audio codec used in this audio stream.
string codec = 1;- Specified by:
getCodecBytesin interfaceAudioFormatOrBuilder- Returns:
- The bytes for codec.
-
setCodec
Audio codec used in this audio stream.
string codec = 1;- Parameters:
value- The codec to set.- Returns:
- This builder for chaining.
-
clearCodec
Audio codec used in this audio stream.
string codec = 1;- Returns:
- This builder for chaining.
-
setCodecBytes
Audio codec used in this audio stream.
string codec = 1;- Parameters:
value- The bytes for codec to set.- Returns:
- This builder for chaining.
-
getChannelCount
public int getChannelCount()The number of audio channels.
int32 channel_count = 2;- Specified by:
getChannelCountin interfaceAudioFormatOrBuilder- Returns:
- The channelCount.
-
setChannelCount
The number of audio channels.
int32 channel_count = 2;- Parameters:
value- The channelCount to set.- Returns:
- This builder for chaining.
-
clearChannelCount
The number of audio channels.
int32 channel_count = 2;- Returns:
- This builder for chaining.
-
getChannelLayoutList
public com.google.protobuf.ProtocolStringList getChannelLayoutList()A list of channel names specifying the layout of the audio channels.
repeated string channel_layout = 3;- Specified by:
getChannelLayoutListin interfaceAudioFormatOrBuilder- Returns:
- A list containing the channelLayout.
-
getChannelLayoutCount
public int getChannelLayoutCount()A list of channel names specifying the layout of the audio channels.
repeated string channel_layout = 3;- Specified by:
getChannelLayoutCountin interfaceAudioFormatOrBuilder- Returns:
- The count of channelLayout.
-
getChannelLayout
A list of channel names specifying the layout of the audio channels.
repeated string channel_layout = 3;- Specified by:
getChannelLayoutin interfaceAudioFormatOrBuilder- 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 the layout of the audio channels.
repeated string channel_layout = 3;- Specified by:
getChannelLayoutBytesin interfaceAudioFormatOrBuilder- 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 the layout of the audio channels.
repeated string channel_layout = 3;- 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 the layout of the audio channels.
repeated string channel_layout = 3;- Parameters:
value- The channelLayout to add.- Returns:
- This builder for chaining.
-
addAllChannelLayout
A list of channel names specifying the layout of the audio channels.
repeated string channel_layout = 3;- Parameters:
values- The channelLayout to add.- Returns:
- This builder for chaining.
-
clearChannelLayout
A list of channel names specifying the layout of the audio channels.
repeated string channel_layout = 3;- Returns:
- This builder for chaining.
-
addChannelLayoutBytes
A list of channel names specifying the layout of the audio channels.
repeated string channel_layout = 3;- Parameters:
value- The bytes of the channelLayout to add.- Returns:
- This builder for chaining.
-