Class CompletionStats

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CompletionStats

public abstract class CompletionStats extends JsonSerializable
Success and error statistics of processing multiple entities (for example, DataItems or structured data rows) in batch. This data type is not supported in Gemini API.
  • Constructor Details

    • CompletionStats

      public CompletionStats()
  • Method Details

    • failedCount

      public abstract Optional<Long> failedCount()
      Output only. The number of entities for which any error was encountered.
    • incompleteCount

      public abstract Optional<Long> incompleteCount()
      Output only. In cases when enough errors are encountered a job, pipeline, or operation may be failed as a whole. Below is the number of entities for which the processing had not been finished (either in successful or failed state). Set to -1 if the number is unknown (for example, the operation failed before the total entity number could be collected).
    • successfulCount

      public abstract Optional<Long> successfulCount()
      Output only. The number of entities that had been processed successfully.
    • successfulForecastPointCount

      public abstract Optional<Long> successfulForecastPointCount()
      Output only. The number of the successful forecast points that are generated by the forecasting model. This is ONLY used by the forecasting batch prediction.
    • builder

      public static CompletionStats.Builder builder()
      Instantiates a builder for CompletionStats.
    • toBuilder

      public abstract CompletionStats.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static CompletionStats fromJson(String jsonString)
      Deserializes a JSON string to a CompletionStats object.