Class UnknownType

java.lang.Object
com.google.genai.gaos.utils.UnknownType
Direct Known Subclasses:
UnknownAgentTool, UnknownAnnotation, UnknownContent, UnknownCreateAgentInteractionAgentConfig, UnknownFunctionResultSubcontent, UnknownInteractionAgentConfig, UnknownInteractionSSEEvent, UnknownStep, UnknownStepDeltaData, UnknownThoughtSummaryContent, UnknownTool, UnknownTranscriptionMode

public class UnknownType extends Object
Generic unknown wrapper for handling polymorphic types that don't have specific implementations. Preserves the raw JSON data and extracts the discriminator value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    UnknownType(com.fasterxml.jackson.databind.JsonNode rawNode)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
    Get the raw JSON data for this unknown type.
    boolean
     
    int
     
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UnknownType

      public UnknownType(com.fasterxml.jackson.databind.JsonNode rawNode)
  • Method Details

    • asJson

      public com.fasterxml.jackson.databind.JsonNode asJson()
      Get the raw JSON data for this unknown type.
      Returns:
      the raw JSON node
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object