Class ServerSentEventsInner

java.lang.Object
ai.reveng.model.AbstractOpenApiSchema
ai.reveng.model.ServerSentEventsInner

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ServerSentEventsInner extends AbstractOpenApiSchema
  • Field Details

  • Constructor Details

    • ServerSentEventsInner

      public ServerSentEventsInner()
    • ServerSentEventsInner

      public ServerSentEventsInner(Object o)
  • Method Details

    • getSchemas

      public Map<String,Class<?>> getSchemas()
      Description copied from class: AbstractOpenApiSchema
      Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
      Specified by:
      getSchemas in class AbstractOpenApiSchema
      Returns:
      an instance of the actual schema/object
    • setActualInstance

      public void setActualInstance(Object instance)
      Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: EventCONTEXTCOMPACTED, EventRUNCANCELLED, EventRUNERROR, EventRUNFINISHED, EventRUNSTARTED, EventSTEPFINISHED, EventSTEPSTARTED, EventTEXTMESSAGECONTENT, EventTEXTMESSAGEEND, EventTEXTMESSAGESTART, EventTITLEUPDATED, EventTOOLCALLARGSDELTA, EventTOOLCALLEND, EventTOOLCALLPROGRESS, EventTOOLCALLRESULT, EventTOOLCALLSTART, EventTOOLCONFIRMATIONREQUIRED It could be an instance of the 'oneOf' schemas.
      Overrides:
      setActualInstance in class AbstractOpenApiSchema
      Parameters:
      instance - the actual instance of the schema/object
    • getActualInstance

      public Object getActualInstance()
      Get the actual instance, which can be the following: EventCONTEXTCOMPACTED, EventRUNCANCELLED, EventRUNERROR, EventRUNFINISHED, EventRUNSTARTED, EventSTEPFINISHED, EventSTEPSTARTED, EventTEXTMESSAGECONTENT, EventTEXTMESSAGEEND, EventTEXTMESSAGESTART, EventTITLEUPDATED, EventTOOLCALLARGSDELTA, EventTOOLCALLEND, EventTOOLCALLPROGRESS, EventTOOLCALLRESULT, EventTOOLCALLSTART, EventTOOLCONFIRMATIONREQUIRED
      Overrides:
      getActualInstance in class AbstractOpenApiSchema
      Returns:
      The actual instance (EventCONTEXTCOMPACTED, EventRUNCANCELLED, EventRUNERROR, EventRUNFINISHED, EventRUNSTARTED, EventSTEPFINISHED, EventSTEPSTARTED, EventTEXTMESSAGECONTENT, EventTEXTMESSAGEEND, EventTEXTMESSAGESTART, EventTITLEUPDATED, EventTOOLCALLARGSDELTA, EventTOOLCALLEND, EventTOOLCALLPROGRESS, EventTOOLCALLRESULT, EventTOOLCALLSTART, EventTOOLCONFIRMATIONREQUIRED)
    • getEventCONTEXTCOMPACTED

      public EventCONTEXTCOMPACTED getEventCONTEXTCOMPACTED() throws ClassCastException
      Get the actual instance of `EventCONTEXTCOMPACTED`. If the actual instance is not `EventCONTEXTCOMPACTED`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventCONTEXTCOMPACTED`
      Throws:
      ClassCastException - if the instance is not `EventCONTEXTCOMPACTED`
    • getEventRUNCANCELLED

      public EventRUNCANCELLED getEventRUNCANCELLED() throws ClassCastException
      Get the actual instance of `EventRUNCANCELLED`. If the actual instance is not `EventRUNCANCELLED`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventRUNCANCELLED`
      Throws:
      ClassCastException - if the instance is not `EventRUNCANCELLED`
    • getEventRUNERROR

      public EventRUNERROR getEventRUNERROR() throws ClassCastException
      Get the actual instance of `EventRUNERROR`. If the actual instance is not `EventRUNERROR`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventRUNERROR`
      Throws:
      ClassCastException - if the instance is not `EventRUNERROR`
    • getEventRUNFINISHED

      public EventRUNFINISHED getEventRUNFINISHED() throws ClassCastException
      Get the actual instance of `EventRUNFINISHED`. If the actual instance is not `EventRUNFINISHED`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventRUNFINISHED`
      Throws:
      ClassCastException - if the instance is not `EventRUNFINISHED`
    • getEventRUNSTARTED

      public EventRUNSTARTED getEventRUNSTARTED() throws ClassCastException
      Get the actual instance of `EventRUNSTARTED`. If the actual instance is not `EventRUNSTARTED`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventRUNSTARTED`
      Throws:
      ClassCastException - if the instance is not `EventRUNSTARTED`
    • getEventSTEPFINISHED

      public EventSTEPFINISHED getEventSTEPFINISHED() throws ClassCastException
      Get the actual instance of `EventSTEPFINISHED`. If the actual instance is not `EventSTEPFINISHED`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventSTEPFINISHED`
      Throws:
      ClassCastException - if the instance is not `EventSTEPFINISHED`
    • getEventSTEPSTARTED

      public EventSTEPSTARTED getEventSTEPSTARTED() throws ClassCastException
      Get the actual instance of `EventSTEPSTARTED`. If the actual instance is not `EventSTEPSTARTED`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventSTEPSTARTED`
      Throws:
      ClassCastException - if the instance is not `EventSTEPSTARTED`
    • getEventTEXTMESSAGECONTENT

      public EventTEXTMESSAGECONTENT getEventTEXTMESSAGECONTENT() throws ClassCastException
      Get the actual instance of `EventTEXTMESSAGECONTENT`. If the actual instance is not `EventTEXTMESSAGECONTENT`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTEXTMESSAGECONTENT`
      Throws:
      ClassCastException - if the instance is not `EventTEXTMESSAGECONTENT`
    • getEventTEXTMESSAGEEND

      public EventTEXTMESSAGEEND getEventTEXTMESSAGEEND() throws ClassCastException
      Get the actual instance of `EventTEXTMESSAGEEND`. If the actual instance is not `EventTEXTMESSAGEEND`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTEXTMESSAGEEND`
      Throws:
      ClassCastException - if the instance is not `EventTEXTMESSAGEEND`
    • getEventTEXTMESSAGESTART

      public EventTEXTMESSAGESTART getEventTEXTMESSAGESTART() throws ClassCastException
      Get the actual instance of `EventTEXTMESSAGESTART`. If the actual instance is not `EventTEXTMESSAGESTART`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTEXTMESSAGESTART`
      Throws:
      ClassCastException - if the instance is not `EventTEXTMESSAGESTART`
    • getEventTITLEUPDATED

      public EventTITLEUPDATED getEventTITLEUPDATED() throws ClassCastException
      Get the actual instance of `EventTITLEUPDATED`. If the actual instance is not `EventTITLEUPDATED`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTITLEUPDATED`
      Throws:
      ClassCastException - if the instance is not `EventTITLEUPDATED`
    • getEventTOOLCALLARGSDELTA

      public EventTOOLCALLARGSDELTA getEventTOOLCALLARGSDELTA() throws ClassCastException
      Get the actual instance of `EventTOOLCALLARGSDELTA`. If the actual instance is not `EventTOOLCALLARGSDELTA`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTOOLCALLARGSDELTA`
      Throws:
      ClassCastException - if the instance is not `EventTOOLCALLARGSDELTA`
    • getEventTOOLCALLEND

      public EventTOOLCALLEND getEventTOOLCALLEND() throws ClassCastException
      Get the actual instance of `EventTOOLCALLEND`. If the actual instance is not `EventTOOLCALLEND`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTOOLCALLEND`
      Throws:
      ClassCastException - if the instance is not `EventTOOLCALLEND`
    • getEventTOOLCALLPROGRESS

      public EventTOOLCALLPROGRESS getEventTOOLCALLPROGRESS() throws ClassCastException
      Get the actual instance of `EventTOOLCALLPROGRESS`. If the actual instance is not `EventTOOLCALLPROGRESS`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTOOLCALLPROGRESS`
      Throws:
      ClassCastException - if the instance is not `EventTOOLCALLPROGRESS`
    • getEventTOOLCALLRESULT

      public EventTOOLCALLRESULT getEventTOOLCALLRESULT() throws ClassCastException
      Get the actual instance of `EventTOOLCALLRESULT`. If the actual instance is not `EventTOOLCALLRESULT`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTOOLCALLRESULT`
      Throws:
      ClassCastException - if the instance is not `EventTOOLCALLRESULT`
    • getEventTOOLCALLSTART

      public EventTOOLCALLSTART getEventTOOLCALLSTART() throws ClassCastException
      Get the actual instance of `EventTOOLCALLSTART`. If the actual instance is not `EventTOOLCALLSTART`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTOOLCALLSTART`
      Throws:
      ClassCastException - if the instance is not `EventTOOLCALLSTART`
    • getEventTOOLCONFIRMATIONREQUIRED

      public EventTOOLCONFIRMATIONREQUIRED getEventTOOLCONFIRMATIONREQUIRED() throws ClassCastException
      Get the actual instance of `EventTOOLCONFIRMATIONREQUIRED`. If the actual instance is not `EventTOOLCONFIRMATIONREQUIRED`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventTOOLCONFIRMATIONREQUIRED`
      Throws:
      ClassCastException - if the instance is not `EventTOOLCONFIRMATIONREQUIRED`
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to ServerSentEventsInner
    • fromJson

      public static ServerSentEventsInner fromJson(String jsonString) throws IOException
      Create an instance of ServerSentEventsInner given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ServerSentEventsInner
      Throws:
      IOException - if the JSON string is invalid with respect to ServerSentEventsInner
    • toJson

      public String toJson()
      Convert an instance of ServerSentEventsInner to an JSON string
      Returns:
      JSON string