Package ai.extend.types
Class ProcessorVersion
- java.lang.Object
-
- ai.extend.types.ProcessorVersion
-
public final class ProcessorVersion extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceProcessorVersion._FinalStagestatic classProcessorVersion.Builderstatic interfaceProcessorVersion.ConfigStagestatic interfaceProcessorVersion.CreatedAtStagestatic interfaceProcessorVersion.IdStagestatic interfaceProcessorVersion.ObjectStagestatic interfaceProcessorVersion.ProcessorIdStagestatic interfaceProcessorVersion.ProcessorTypeStagestatic interfaceProcessorVersion.UpdatedAtStagestatic interfaceProcessorVersion.VersionStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProcessorVersion.ObjectStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()ProcessorVersionConfiggetConfig()java.time.OffsetDateTimegetCreatedAt()java.util.Optional<java.lang.String>getDescription()java.lang.StringgetId()java.lang.StringgetObject()java.lang.StringgetProcessorId()java.util.Optional<java.lang.String>getProcessorName()ProcessorTypegetProcessorType()java.time.OffsetDateTimegetUpdatedAt()java.lang.StringgetVersion()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getObject
public java.lang.String getObject()
- Returns:
- The type of the object. In this case, it will always be
"document_processor_version".
-
getId
public java.lang.String getId()
- Returns:
- The unique identifier for this version of the document processor.
Example:
"dpv_xK9mLPqRtN3vS8wF5hB2cQ"
-
getProcessorId
public java.lang.String getProcessorId()
- Returns:
- The ID of the parent document processor.
Example:
"dp_Xj8mK2pL9nR4vT7qY5wZ"
-
getProcessorName
public java.util.Optional<java.lang.String> getProcessorName()
- Returns:
- The name of the parent document processor.
Example:
"Invoice Processor"
-
getProcessorType
public ProcessorType getProcessorType()
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
- Returns:
- An optional description of this version of the document processor.
Example:
"Updated extraction fields for new invoice format"
-
getVersion
public java.lang.String getVersion()
- Returns:
- The version number or identifier for this specific version of the document processor. The draft version will have version="draft".
Examples:
"1.0","2.1","draft"
-
getConfig
public ProcessorVersionConfig getConfig()
- Returns:
- The configuration settings for this version of the document processor. The structure of this object will vary depending on the processor type.
See the configuration section in the "Guides" tab, for yout specific processor type, for more details on the configuration settings.
-
getCreatedAt
public java.time.OffsetDateTime getCreatedAt()
- Returns:
- The time (in UTC) at which this version of the document processor was created. Will follow the RFC 3339 format.
Example:
"2024-03-21T15:30:00Z"
-
getUpdatedAt
public java.time.OffsetDateTime getUpdatedAt()
- Returns:
- The time (in UTC) at which this version of the document processor was last updated. Will follow the RFC 3339 format.
Example:
"2024-03-21T16:45:00Z"
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ProcessorVersion.ObjectStage builder()
-
-