Share via


VectorStoreFileCount Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.models.VectorStoreFileCount

Implements

public final class VectorStoreFileCount
implements JsonSerializable<VectorStoreFileCount>

Counts of files processed or being processed by this vector store grouped by status.

Method Summary

Modifier and Type Method and Description
static VectorStoreFileCount fromJson(JsonReader jsonReader)

Reads an instance of VectorStoreFileCount from the JsonReader.

int getCancelled()

Get the cancelled property: The number of files that were cancelled.

int getCompleted()

Get the completed property: The number of files that have been successfully processed.

int getFailed()

Get the failed property: The number of files that have failed to process.

int getInProgress()

Get the inProgress property: The number of files that are currently being processed.

int getTotal()

Get the total property: The total number of files.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static VectorStoreFileCount fromJson(JsonReader jsonReader)

Reads an instance of VectorStoreFileCount from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VectorStoreFileCount if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCancelled

public int getCancelled()

Get the cancelled property: The number of files that were cancelled.

Returns:

the cancelled value.

getCompleted

public int getCompleted()

Get the completed property: The number of files that have been successfully processed.

Returns:

the completed value.

getFailed

public int getFailed()

Get the failed property: The number of files that have failed to process.

Returns:

the failed value.

getInProgress

public int getInProgress()

Get the inProgress property: The number of files that are currently being processed.

Returns:

the inProgress value.

getTotal

public int getTotal()

Get the total property: The total number of files.

Returns:

the total value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to