Class AudioContent
java.lang.Object
com.google.genai.gaos.models.interactions.AudioContent
- All Implemented Interfaces:
DecisionInputContent,Content,FunctionResultSubcontent
public class AudioContent
extends Object
implements Content, FunctionResultSubcontent, DecisionInputContent
AudioContent
An audio content block.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAudioContent(Integer channels, String data, AudioContentMimeType mimeType, AudioProcessing processing, Integer sampleRate, String uri) AudioContent(Integer channels, String data, AudioContentMimeType mimeType, Integer sampleRate, String uri) Retained for source and binary compatibility with SDK versions that predateprocessing. -
Method Summary
Modifier and TypeMethodDescriptionstatic AudioContent.Builderbuilder()channels()The number of audio channels.data()The audio content.booleaninthashCode()mimeType()The mime type of the audio.How the model processes this audio for understanding.The sample rate of the audio.toString()type()uri()The URI of the audio.withChannels(Integer channels) The number of audio channels.The audio content.withMimeType(AudioContentMimeType mimeType) The mime type of the audio.withProcessing(AudioProcessing processing) How the model processes this audio for understanding.withSampleRate(Integer sampleRate) The sample rate of the audio.The URI of the audio.
-
Constructor Details
-
AudioContent
public AudioContent(@Nullable Integer channels, @Nullable String data, @Nullable AudioContentMimeType mimeType, @Nullable AudioProcessing processing, @Nullable Integer sampleRate, @Nullable String uri) -
AudioContent
public AudioContent() -
AudioContent
public AudioContent(@Nullable Integer channels, @Nullable String data, @Nullable AudioContentMimeType mimeType, @Nullable Integer sampleRate, @Nullable String uri) Retained for source and binary compatibility with SDK versions that predateprocessing. Preferbuilder().
-
-
Method Details
-
channels
The number of audio channels. -
data
The audio content. -
mimeType
The mime type of the audio. -
processing
How the model processes this audio for understanding. -
sampleRate
The sample rate of the audio. -
type
- Specified by:
typein interfaceContent- Specified by:
typein interfaceDecisionInputContent- Specified by:
typein interfaceFunctionResultSubcontent
-
uri
The URI of the audio. -
builder
-
withChannels
The number of audio channels. -
withData
The audio content. -
withMimeType
The mime type of the audio. -
withProcessing
How the model processes this audio for understanding. -
withSampleRate
The sample rate of the audio. -
withUri
The URI of the audio. -
equals
-
hashCode
public int hashCode() -
toString
-