Class CompletionStats
-
- All Implemented Interfaces:
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classCompletionStats.BuilderBuilder for CompletionStats.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description CompletionStats()
-
Method Summary
Modifier and Type Method Description abstract Optional<Long>failedCount()Output only. abstract Optional<Long>incompleteCount()Output only. abstract Optional<Long>successfulCount()Output only. abstract Optional<Long>successfulForecastPointCount()Output only. static CompletionStats.Builderbuilder()Instantiates a builder for CompletionStats. abstract CompletionStats.BuildertoBuilder()Creates a builder with the same values as this instance. static CompletionStatsfromJson(String jsonString)Deserializes a JSON string to a CompletionStats object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
failedCount
abstract Optional<Long> failedCount()
Output only. The number of entities for which any error was encountered.
-
incompleteCount
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
abstract Optional<Long> successfulCount()
Output only. The number of entities that had been processed successfully.
-
successfulForecastPointCount
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
static CompletionStats.Builder builder()
Instantiates a builder for CompletionStats.
-
toBuilder
abstract CompletionStats.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static CompletionStats fromJson(String jsonString)
Deserializes a JSON string to a CompletionStats object.
-
-
-
-