Class ResponsesFileSearchCallItemResult

java.lang.Object
com.azure.ai.openai.responses.models.ResponsesFileSearchCallItemResult
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesFileSearchCallItemResult>

public final class ResponsesFileSearchCallItemResult extends Object implements com.azure.json.JsonSerializable<ResponsesFileSearchCallItemResult>
The ResponsesFileSearchCallItemResult model.
  • Constructor Details

    • ResponsesFileSearchCallItemResult

      public ResponsesFileSearchCallItemResult()
      Creates an instance of ResponsesFileSearchCallItemResult class.
  • Method Details

    • getFileId

      public String getFileId()
      Get the fileId property: The file_id property.
      Returns:
      the fileId value.
    • setFileId

      public ResponsesFileSearchCallItemResult setFileId(String fileId)
      Set the fileId property: The file_id property.
      Parameters:
      fileId - the fileId value to set.
      Returns:
      the ResponsesFileSearchCallItemResult object itself.
    • getText

      public String getText()
      Get the text property: The text property.
      Returns:
      the text value.
    • setText

      Set the text property: The text property.
      Parameters:
      text - the text value to set.
      Returns:
      the ResponsesFileSearchCallItemResult object itself.
    • getFilename

      public String getFilename()
      Get the filename property: The filename property.
      Returns:
      the filename value.
    • setFilename

      public ResponsesFileSearchCallItemResult setFilename(String filename)
      Set the filename property: The filename property.
      Parameters:
      filename - the filename value to set.
      Returns:
      the ResponsesFileSearchCallItemResult object itself.
    • getAttributes

      public Map<String,com.azure.core.util.BinaryData> getAttributes()
      Get the attributes property: The attributes property.
      Returns:
      the attributes value.
    • setAttributes

      public ResponsesFileSearchCallItemResult setAttributes(Map<String,com.azure.core.util.BinaryData> attributes)
      Set the attributes property: The attributes property.
      Parameters:
      attributes - the attributes value to set.
      Returns:
      the ResponsesFileSearchCallItemResult object itself.
    • getScore

      public Double getScore()
      Get the score property: The score property.
      Returns:
      the score value.
    • setScore

      public ResponsesFileSearchCallItemResult setScore(Double score)
      Set the score property: The score property.
      Parameters:
      score - the score value to set.
      Returns:
      the ResponsesFileSearchCallItemResult object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResponsesFileSearchCallItemResult>
      Throws:
      IOException
    • fromJson

      public static ResponsesFileSearchCallItemResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResponsesFileSearchCallItemResult from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResponsesFileSearchCallItemResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ResponsesFileSearchCallItemResult.