Record Class ClassifierInput.Content
java.lang.Object
java.lang.Record
com.google.adk.classifiers.ClassifierInput.Content
- All Implemented Interfaces:
ClassifierInput
- Enclosing interface:
ClassifierInput
public static record ClassifierInput.Content(com.google.genai.types.Content content)
extends Record
implements ClassifierInput
Content input. Every classifier accepts text parts; a classifier
whose model supports them also accepts other parts, such as images or files.-
Nested Class Summary
Nested classes/interfaces inherited from interface ClassifierInput
ClassifierInput.Content -
Constructor Summary
ConstructorsConstructorDescriptionContent(com.google.genai.types.Content content) Creates an instance of aContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.genai.types.Contentcontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Content
public Content(com.google.genai.types.Content content) Creates an instance of aContentrecord class.- Parameters:
content- the value for thecontentrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
content
public com.google.genai.types.Content content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-