UploadPart Class
- java.
lang. Object - com.
azure. ai. openai. models. UploadPart
- com.
Implements
public final class UploadPart
implements JsonSerializable<UploadPart>
The upload Part represents a chunk of bytes we can add to an Upload object.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Upload |
fromJson(JsonReader jsonReader)
Reads an instance of Upload |
String |
getAzureBlockId()
Get the azure |
Offset |
getCreatedAt()
Get the created |
String |
getId()
Get the id property: The upload Part unique identifier, which can be referenced in API endpoints. |
String |
getObject()
Get the object property: The object type, which is always `upload. |
String |
getUploadId()
Get the upload |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static UploadPart fromJson(JsonReader jsonReader)
Reads an instance of UploadPart from the JsonReader.
Parameters:
Returns:
Throws:
getAzureBlockId
public String getAzureBlockId()
Get the azureBlockId property: Azure only field.
Returns:
getCreatedAt
public OffsetDateTime getCreatedAt()
Get the createdAt property: The Unix timestamp (in seconds) for when the Part was created.
Returns:
getId
public String getId()
Get the id property: The upload Part unique identifier, which can be referenced in API endpoints.
Returns:
getObject
public String getObject()
Get the object property: The object type, which is always `upload.part`.
Returns:
getUploadId
public String getUploadId()
Get the uploadId property: The ID of the Upload object that this Part was added to.
Returns: