func GetDimensionsUnitEnumStringValues() []string
GetDimensionsUnitEnumStringValues Enumerates the set of values in String for DimensionsUnitEnum
func GetDocumentFeatureFeatureTypeEnumStringValues() []string
GetDocumentFeatureFeatureTypeEnumStringValues Enumerates the set of values in String for DocumentFeatureFeatureTypeEnum
func GetDocumentFieldFieldTypeEnumStringValues() []string
GetDocumentFieldFieldTypeEnumStringValues Enumerates the set of values in String for DocumentFieldFieldTypeEnum
func GetDocumentTypeEnumStringValues() []string
GetDocumentTypeEnumStringValues Enumerates the set of values in String for DocumentTypeEnum
func GetFieldValueValueTypeEnumStringValues() []string
GetFieldValueValueTypeEnumStringValues Enumerates the set of values in String for FieldValueValueTypeEnum
func GetInputLocationSourceTypeEnumStringValues() []string
GetInputLocationSourceTypeEnumStringValues Enumerates the set of values in String for InputLocationSourceTypeEnum
func GetProcessorJobLifecycleDetailsEnumStringValues() []string
GetProcessorJobLifecycleDetailsEnumStringValues Enumerates the set of values in String for ProcessorJobLifecycleDetailsEnum
func GetProcessorJobLifecycleStateEnumStringValues() []string
GetProcessorJobLifecycleStateEnumStringValues Enumerates the set of values in String for ProcessorJobLifecycleStateEnum
func GetProcessorTypeEnumStringValues() []string
GetProcessorTypeEnumStringValues Enumerates the set of values in String for ProcessorTypeEnum
AIServiceDocumentClient a client for AIServiceDocument
type AIServiceDocumentClient struct { common.BaseClient // contains filtered or unexported fields }
func NewAIServiceDocumentClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client AIServiceDocumentClient, err error)
NewAIServiceDocumentClientWithConfigurationProvider Creates a new default AIServiceDocument client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewAIServiceDocumentClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AIServiceDocumentClient, err error)
NewAIServiceDocumentClientWithOboToken Creates a new default AIServiceDocument client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client AIServiceDocumentClient) CancelProcessorJob(ctx context.Context, request CancelProcessorJobRequest) (response CancelProcessorJobResponse, err error)
CancelProcessorJob Cancel a processor job.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.30.0/aidocument/CancelProcessorJob.go.html to see an example of how to use CancelProcessorJob API.
func (client *AIServiceDocumentClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client AIServiceDocumentClient) CreateProcessorJob(ctx context.Context, request CreateProcessorJobRequest) (response CreateProcessorJobResponse, err error)
CreateProcessorJob Create a processor job for document analysis.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.30.0/aidocument/CreateProcessorJob.go.html to see an example of how to use CreateProcessorJob API. A default retry strategy applies to this operation CreateProcessorJob()
func (client AIServiceDocumentClient) GetProcessorJob(ctx context.Context, request GetProcessorJobRequest) (response GetProcessorJobResponse, err error)
GetProcessorJob Get the details of a processor job.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.30.0/aidocument/GetProcessorJob.go.html to see an example of how to use GetProcessorJob API. A default retry strategy applies to this operation GetProcessorJob()
func (client *AIServiceDocumentClient) SetRegion(region string)
SetRegion overrides the region of this client.
AnalyzeDocumentResult The document analysis results.
type AnalyzeDocumentResult struct { DocumentMetadata *DocumentMetadata `mandatory:"true" json:"documentMetadata"` // The array of a Page. Pages []Page `mandatory:"true" json:"pages"` // An array of detected document types. DetectedDocumentTypes []DetectedDocumentType `mandatory:"false" json:"detectedDocumentTypes"` // An array of detected languages. DetectedLanguages []DetectedLanguage `mandatory:"false" json:"detectedLanguages"` // The document classification model version. DocumentClassificationModelVersion *string `mandatory:"false" json:"documentClassificationModelVersion"` // The document language classification model version. LanguageClassificationModelVersion *string `mandatory:"false" json:"languageClassificationModelVersion"` // The document text extraction model version. TextExtractionModelVersion *string `mandatory:"false" json:"textExtractionModelVersion"` // The document keyValue extraction model version. KeyValueExtractionModelVersion *string `mandatory:"false" json:"keyValueExtractionModelVersion"` // The document table extraction model version. TableExtractionModelVersion *string `mandatory:"false" json:"tableExtractionModelVersion"` // The errors encountered during document analysis. Errors []ProcessingError `mandatory:"false" json:"errors"` // The searchable PDF file that was generated. SearchablePdf []byte `mandatory:"false" json:"searchablePdf"` }
func (m AnalyzeDocumentResult) String() string
func (m AnalyzeDocumentResult) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BoundingPolygon The object-bounding polygon box.
type BoundingPolygon struct { // An array of normalized points defining the polygon's perimeter, with an implicit segment between subsequent points and between the first and last point. // Rectangles are defined with four points. For example, `[{"x": 0, "y": 0}, {"x": 1, "y": 0}, {"x": 1, "y": 0.5}, {"x": 0, "y": 0.5}]` represents the top half of an image. NormalizedVertices []NormalizedVertex `mandatory:"true" json:"normalizedVertices"` }
func (m BoundingPolygon) String() string
func (m BoundingPolygon) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CancelProcessorJobRequest wrapper for the CancelProcessorJob operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.30.0/aidocument/CancelProcessorJob.go.html to see an example of how to use CancelProcessorJobRequest.
type CancelProcessorJobRequest struct { // Processor job id. ProcessorJobId *string `mandatory:"true" contributesTo:"path" name:"processorJobId"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CancelProcessorJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CancelProcessorJobRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CancelProcessorJobRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CancelProcessorJobRequest) String() string
func (request CancelProcessorJobRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CancelProcessorJobResponse wrapper for the CancelProcessorJob operation
type CancelProcessorJobResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response CancelProcessorJobResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CancelProcessorJobResponse) String() string
Cell A single cell in a table.
type Cell struct { // The text recognized in the cell. Text *string `mandatory:"true" json:"text"` // The index of the cell inside the row. RowIndex *int `mandatory:"true" json:"rowIndex"` // The index of the cell inside the column. ColumnIndex *int `mandatory:"true" json:"columnIndex"` // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` // The words detected in the cell. WordIndexes []int `mandatory:"true" json:"wordIndexes"` }
func (m Cell) String() string
func (m Cell) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateProcessorJobDetails The details used to create a processor job.
type CreateProcessorJobDetails struct { InputLocation InputLocation `mandatory:"true" json:"inputLocation"` OutputLocation *OutputLocation `mandatory:"true" json:"outputLocation"` // The compartment identifier. CompartmentId *string `mandatory:"true" json:"compartmentId"` ProcessorConfig ProcessorConfig `mandatory:"true" json:"processorConfig"` // The display name of the processor job. DisplayName *string `mandatory:"false" json:"displayName"` }
func (m CreateProcessorJobDetails) String() string
func (m *CreateProcessorJobDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m CreateProcessorJobDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateProcessorJobRequest wrapper for the CreateProcessorJob operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.30.0/aidocument/CreateProcessorJob.go.html to see an example of how to use CreateProcessorJobRequest.
type CreateProcessorJobRequest struct { // The details for creating the processor job. CreateProcessorJobDetails `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without the risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateProcessorJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateProcessorJobRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateProcessorJobRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateProcessorJobRequest) String() string
func (request CreateProcessorJobRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateProcessorJobResponse wrapper for the CreateProcessorJob operation
type CreateProcessorJobResponse struct { // The underlying http response RawResponse *http.Response // The ProcessorJob instance ProcessorJob `presentIn:"body"` // A unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` }
func (response CreateProcessorJobResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateProcessorJobResponse) String() string
DetectedDocumentType The detected document type.
type DetectedDocumentType struct { // The document type. DocumentType *string `mandatory:"true" json:"documentType"` // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` }
func (m DetectedDocumentType) String() string
func (m DetectedDocumentType) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DetectedLanguage The language detected in a document.
type DetectedLanguage struct { // The document language, abbreviated according to the BCP 47 syntax. Language *string `mandatory:"true" json:"language"` // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` }
func (m DetectedLanguage) String() string
func (m DetectedLanguage) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Dimensions The width and height of a page.
type Dimensions struct { // the width of a page. Width *float64 `mandatory:"true" json:"width"` // The height of a page. Height *float64 `mandatory:"true" json:"height"` // The unit of length. Unit DimensionsUnitEnum `mandatory:"true" json:"unit"` }
func (m Dimensions) String() string
func (m Dimensions) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DimensionsUnitEnum Enum with underlying type: string
type DimensionsUnitEnum string
Set of constants representing the allowable values for DimensionsUnitEnum
const ( DimensionsUnitPixel DimensionsUnitEnum = "PIXEL" DimensionsUnitInch DimensionsUnitEnum = "INCH" )
func GetDimensionsUnitEnumValues() []DimensionsUnitEnum
GetDimensionsUnitEnumValues Enumerates the set of values for DimensionsUnitEnum
func GetMappingDimensionsUnitEnum(val string) (DimensionsUnitEnum, bool)
GetMappingDimensionsUnitEnum performs case Insensitive comparison on enum value and return the desired enum
DocumentClassificationFeature Identifying the document type.
type DocumentClassificationFeature struct { // The maximum number of results to return. MaxResults *int `mandatory:"false" json:"maxResults"` }
func (m DocumentClassificationFeature) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m DocumentClassificationFeature) String() string
func (m DocumentClassificationFeature) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DocumentFeature The type of document analysis.
type DocumentFeature interface { }
DocumentFeatureFeatureTypeEnum Enum with underlying type: string
type DocumentFeatureFeatureTypeEnum string
Set of constants representing the allowable values for DocumentFeatureFeatureTypeEnum
const ( DocumentFeatureFeatureTypeLanguageClassification DocumentFeatureFeatureTypeEnum = "LANGUAGE_CLASSIFICATION" DocumentFeatureFeatureTypeTextExtraction DocumentFeatureFeatureTypeEnum = "TEXT_EXTRACTION" DocumentFeatureFeatureTypeTableExtraction DocumentFeatureFeatureTypeEnum = "TABLE_EXTRACTION" DocumentFeatureFeatureTypeKeyValueExtraction DocumentFeatureFeatureTypeEnum = "KEY_VALUE_EXTRACTION" DocumentFeatureFeatureTypeDocumentClassification DocumentFeatureFeatureTypeEnum = "DOCUMENT_CLASSIFICATION" )
func GetDocumentFeatureFeatureTypeEnumValues() []DocumentFeatureFeatureTypeEnum
GetDocumentFeatureFeatureTypeEnumValues Enumerates the set of values for DocumentFeatureFeatureTypeEnum
func GetMappingDocumentFeatureFeatureTypeEnum(val string) (DocumentFeatureFeatureTypeEnum, bool)
GetMappingDocumentFeatureFeatureTypeEnum performs case Insensitive comparison on enum value and return the desired enum
DocumentField Form field.
type DocumentField struct { // The field type. FieldType DocumentFieldFieldTypeEnum `mandatory:"true" json:"fieldType"` FieldValue FieldValue `mandatory:"true" json:"fieldValue"` FieldLabel *FieldLabel `mandatory:"false" json:"fieldLabel"` FieldName *FieldName `mandatory:"false" json:"fieldName"` }
func (m DocumentField) String() string
func (m *DocumentField) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m DocumentField) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DocumentFieldFieldTypeEnum Enum with underlying type: string
type DocumentFieldFieldTypeEnum string
Set of constants representing the allowable values for DocumentFieldFieldTypeEnum
const ( DocumentFieldFieldTypeLineItemGroup DocumentFieldFieldTypeEnum = "LINE_ITEM_GROUP" DocumentFieldFieldTypeLineItem DocumentFieldFieldTypeEnum = "LINE_ITEM" DocumentFieldFieldTypeLineItemField DocumentFieldFieldTypeEnum = "LINE_ITEM_FIELD" DocumentFieldFieldTypeKeyValue DocumentFieldFieldTypeEnum = "KEY_VALUE" )
func GetDocumentFieldFieldTypeEnumValues() []DocumentFieldFieldTypeEnum
GetDocumentFieldFieldTypeEnumValues Enumerates the set of values for DocumentFieldFieldTypeEnum
func GetMappingDocumentFieldFieldTypeEnum(val string) (DocumentFieldFieldTypeEnum, bool)
GetMappingDocumentFieldFieldTypeEnum performs case Insensitive comparison on enum value and return the desired enum
DocumentKeyValueExtractionFeature Extracting form fields.
type DocumentKeyValueExtractionFeature struct { }
func (m DocumentKeyValueExtractionFeature) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m DocumentKeyValueExtractionFeature) String() string
func (m DocumentKeyValueExtractionFeature) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DocumentLanguageClassificationFeature Detecting the language of the document.
type DocumentLanguageClassificationFeature struct { // The maximum number of results to return. MaxResults *int `mandatory:"false" json:"maxResults"` }
func (m DocumentLanguageClassificationFeature) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m DocumentLanguageClassificationFeature) String() string
func (m DocumentLanguageClassificationFeature) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DocumentMetadata The document information.
type DocumentMetadata struct { // Teh number of pages in the document. PageCount *int `mandatory:"true" json:"pageCount"` // The result data format. MimeType *string `mandatory:"true" json:"mimeType"` }
func (m DocumentMetadata) String() string
func (m DocumentMetadata) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DocumentTableExtractionFeature Detecting and extracting data in tables.
type DocumentTableExtractionFeature struct { }
func (m DocumentTableExtractionFeature) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m DocumentTableExtractionFeature) String() string
func (m DocumentTableExtractionFeature) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DocumentTextExtractionFeature Text recognition
type DocumentTextExtractionFeature struct { // Whether or not to generate a searchable PDF file. GenerateSearchablePdf *bool `mandatory:"false" json:"generateSearchablePdf"` }
func (m DocumentTextExtractionFeature) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m DocumentTextExtractionFeature) String() string
func (m DocumentTextExtractionFeature) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DocumentTypeEnum Enum with underlying type: string
type DocumentTypeEnum string
Set of constants representing the allowable values for DocumentTypeEnum
const ( DocumentTypeInvoice DocumentTypeEnum = "INVOICE" DocumentTypeReceipt DocumentTypeEnum = "RECEIPT" DocumentTypeResume DocumentTypeEnum = "RESUME" DocumentTypeTaxForm DocumentTypeEnum = "TAX_FORM" DocumentTypeDriverLicense DocumentTypeEnum = "DRIVER_LICENSE" DocumentTypePassport DocumentTypeEnum = "PASSPORT" DocumentTypeBankStatement DocumentTypeEnum = "BANK_STATEMENT" DocumentTypeCheck DocumentTypeEnum = "CHECK" DocumentTypePayslip DocumentTypeEnum = "PAYSLIP" DocumentTypeOthers DocumentTypeEnum = "OTHERS" )
func GetDocumentTypeEnumValues() []DocumentTypeEnum
GetDocumentTypeEnumValues Enumerates the set of values for DocumentTypeEnum
func GetMappingDocumentTypeEnum(val string) (DocumentTypeEnum, bool)
GetMappingDocumentTypeEnum performs case Insensitive comparison on enum value and return the desired enum
FieldLabel The label in a field.
type FieldLabel struct { // The name of the field label. Name *string `mandatory:"true" json:"name"` // The confidence score between 0 and 1. Confidence *float32 `mandatory:"false" json:"confidence"` }
func (m FieldLabel) String() string
func (m FieldLabel) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
FieldName The name of a form field.
type FieldName struct { // The name of the field. Name *string `mandatory:"true" json:"name"` // The confidence score between 0 and 1. Confidence *float32 `mandatory:"false" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"false" json:"boundingPolygon"` // The indexes of the words in the field name. WordIndexes []int `mandatory:"false" json:"wordIndexes"` }
func (m FieldName) String() string
func (m FieldName) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
FieldValue The value of a form field.
type FieldValue interface { // The confidence score between 0 and 1. GetConfidence() *float32 GetBoundingPolygon() *BoundingPolygon // The indexes of the words in the field value. GetWordIndexes() []int // The detected text of a field. GetText() *string }
FieldValueValueTypeEnum Enum with underlying type: string
type FieldValueValueTypeEnum string
Set of constants representing the allowable values for FieldValueValueTypeEnum
const ( FieldValueValueTypeString FieldValueValueTypeEnum = "STRING" FieldValueValueTypeDate FieldValueValueTypeEnum = "DATE" FieldValueValueTypeTime FieldValueValueTypeEnum = "TIME" FieldValueValueTypePhoneNumber FieldValueValueTypeEnum = "PHONE_NUMBER" FieldValueValueTypeNumber FieldValueValueTypeEnum = "NUMBER" FieldValueValueTypeInteger FieldValueValueTypeEnum = "INTEGER" FieldValueValueTypeArray FieldValueValueTypeEnum = "ARRAY" )
func GetFieldValueValueTypeEnumValues() []FieldValueValueTypeEnum
GetFieldValueValueTypeEnumValues Enumerates the set of values for FieldValueValueTypeEnum
func GetMappingFieldValueValueTypeEnum(val string) (FieldValueValueTypeEnum, bool)
GetMappingFieldValueValueTypeEnum performs case Insensitive comparison on enum value and return the desired enum
GeneralProcessorConfig The configuration of a general processor.
type GeneralProcessorConfig struct { // The types of document analysis requested. Features []DocumentFeature `mandatory:"true" json:"features"` // Whether or not to generate a ZIP file containing the results. IsZipOutputEnabled *bool `mandatory:"false" json:"isZipOutputEnabled"` // The document language, abbreviated according to the BCP 47 Language-Tag syntax. Language *string `mandatory:"false" json:"language"` // The document type. DocumentType DocumentTypeEnum `mandatory:"false" json:"documentType,omitempty"` }
func (m GeneralProcessorConfig) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m GeneralProcessorConfig) String() string
func (m *GeneralProcessorConfig) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m GeneralProcessorConfig) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetProcessorJobRequest wrapper for the GetProcessorJob operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.30.0/aidocument/GetProcessorJob.go.html to see an example of how to use GetProcessorJobRequest.
type GetProcessorJobRequest struct { // Processor job id. ProcessorJobId *string `mandatory:"true" contributesTo:"path" name:"processorJobId"` // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetProcessorJobRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetProcessorJobRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetProcessorJobRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetProcessorJobRequest) String() string
func (request GetProcessorJobRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetProcessorJobResponse wrapper for the GetProcessorJob operation
type GetProcessorJobResponse struct { // The underlying http response RawResponse *http.Response // The ProcessorJob instance ProcessorJob `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetProcessorJobResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetProcessorJobResponse) String() string
InlineDocumentContent The content of an inline document.
type InlineDocumentContent struct { // Raw document data with Base64 encoding. Data []byte `mandatory:"true" json:"data"` }
func (m InlineDocumentContent) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m InlineDocumentContent) String() string
func (m InlineDocumentContent) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InputLocation The location of the inputs.
type InputLocation interface { }
InputLocationSourceTypeEnum Enum with underlying type: string
type InputLocationSourceTypeEnum string
Set of constants representing the allowable values for InputLocationSourceTypeEnum
const ( InputLocationSourceTypeObjectStorageLocations InputLocationSourceTypeEnum = "OBJECT_STORAGE_LOCATIONS" InputLocationSourceTypeInlineDocumentContent InputLocationSourceTypeEnum = "INLINE_DOCUMENT_CONTENT" )
func GetInputLocationSourceTypeEnumValues() []InputLocationSourceTypeEnum
GetInputLocationSourceTypeEnumValues Enumerates the set of values for InputLocationSourceTypeEnum
func GetMappingInputLocationSourceTypeEnum(val string) (InputLocationSourceTypeEnum, bool)
GetMappingInputLocationSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
Line The line of text.
type Line struct { // The text recognized. Text *string `mandatory:"true" json:"text"` // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` // The array of words. WordIndexes []int `mandatory:"true" json:"wordIndexes"` }
func (m Line) String() string
func (m Line) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
NormalizedVertex An (x, y) coordinate in the image with dimensions normalized from zero to one. The origin is at top left, with the positive x-axis pointing right and the positive y-axis pointing down. The bottom right corner is at (1, 1).
type NormalizedVertex struct { // The X-axis normalized coordinate. X *float64 `mandatory:"true" json:"x"` // The Y-axis normalized coordinate. Y *float64 `mandatory:"true" json:"y"` }
func (m NormalizedVertex) String() string
func (m NormalizedVertex) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ObjectLocation A location in Object Storage that is uniquely identified by namespace name, bucket name and object name.
type ObjectLocation struct { // The Object Storage namespace name. NamespaceName *string `mandatory:"true" json:"namespaceName"` // The Object Storage bucket name. BucketName *string `mandatory:"true" json:"bucketName"` // The Object Storage object name. ObjectName *string `mandatory:"true" json:"objectName"` }
func (m ObjectLocation) String() string
func (m ObjectLocation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ObjectStorageLocations A list of object locations in Object Storage.
type ObjectStorageLocations struct { // The list of ObjectLocations. ObjectLocations []ObjectLocation `mandatory:"true" json:"objectLocations"` }
func (m ObjectStorageLocations) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ObjectStorageLocations) String() string
func (m ObjectStorageLocations) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OutputLocation The Object Storage Location.
type OutputLocation struct { // The Object Storage namespace. NamespaceName *string `mandatory:"true" json:"namespaceName"` // The Object Storage bucket name. BucketName *string `mandatory:"true" json:"bucketName"` // The Object Storage folder name. Prefix *string `mandatory:"true" json:"prefix"` }
func (m OutputLocation) String() string
func (m OutputLocation) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Page One page document analysis result.
type Page struct { // The document page number. PageNumber *int `mandatory:"true" json:"pageNumber"` Dimensions *Dimensions `mandatory:"false" json:"dimensions"` // An array of detected document types. DetectedDocumentTypes []DetectedDocumentType `mandatory:"false" json:"detectedDocumentTypes"` // An array of detected languages. DetectedLanguages []DetectedLanguage `mandatory:"false" json:"detectedLanguages"` // The words detected on the page. Words []Word `mandatory:"false" json:"words"` // The lines of text detected on the page. Lines []Line `mandatory:"false" json:"lines"` // The tables detected on the page. Tables []Table `mandatory:"false" json:"tables"` // The form fields detected on the page. DocumentFields []DocumentField `mandatory:"false" json:"documentFields"` }
func (m Page) String() string
func (m Page) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ProcessingError The error in document processing.
type ProcessingError struct { // The error code. Code *string `mandatory:"true" json:"code"` // The error message. Message *string `mandatory:"true" json:"message"` }
func (m ProcessingError) String() string
func (m ProcessingError) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ProcessorConfig The configuration of a processor.
type ProcessorConfig interface { }
ProcessorJob Details of a processor job.
type ProcessorJob struct { // The id of the processor job. Id *string `mandatory:"true" json:"id"` // The compartment identifier. CompartmentId *string `mandatory:"true" json:"compartmentId"` ProcessorConfig ProcessorConfig `mandatory:"true" json:"processorConfig"` // The job acceptance time. TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` OutputLocation *OutputLocation `mandatory:"true" json:"outputLocation"` // The current state of the processor job. LifecycleState ProcessorJobLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The display name of the processor job. DisplayName *string `mandatory:"false" json:"displayName"` InputLocation InputLocation `mandatory:"false" json:"inputLocation"` // The job start time. TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` // The job finish time. TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` // How much progress the operation has made, compared to the total amount of work to be performed. PercentComplete *float32 `mandatory:"false" json:"percentComplete"` // The detailed status of FAILED state. LifecycleDetails ProcessorJobLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` }
func (m ProcessorJob) String() string
func (m *ProcessorJob) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m ProcessorJob) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ProcessorJobLifecycleDetailsEnum Enum with underlying type: string
type ProcessorJobLifecycleDetailsEnum string
Set of constants representing the allowable values for ProcessorJobLifecycleDetailsEnum
const ( ProcessorJobLifecycleDetailsPartiallySucceeded ProcessorJobLifecycleDetailsEnum = "PARTIALLY_SUCCEEDED" ProcessorJobLifecycleDetailsCompletelyFailed ProcessorJobLifecycleDetailsEnum = "COMPLETELY_FAILED" )
func GetMappingProcessorJobLifecycleDetailsEnum(val string) (ProcessorJobLifecycleDetailsEnum, bool)
GetMappingProcessorJobLifecycleDetailsEnum performs case Insensitive comparison on enum value and return the desired enum
func GetProcessorJobLifecycleDetailsEnumValues() []ProcessorJobLifecycleDetailsEnum
GetProcessorJobLifecycleDetailsEnumValues Enumerates the set of values for ProcessorJobLifecycleDetailsEnum
ProcessorJobLifecycleStateEnum Enum with underlying type: string
type ProcessorJobLifecycleStateEnum string
Set of constants representing the allowable values for ProcessorJobLifecycleStateEnum
const ( ProcessorJobLifecycleStateSucceeded ProcessorJobLifecycleStateEnum = "SUCCEEDED" ProcessorJobLifecycleStateFailed ProcessorJobLifecycleStateEnum = "FAILED" ProcessorJobLifecycleStateAccepted ProcessorJobLifecycleStateEnum = "ACCEPTED" ProcessorJobLifecycleStateCanceled ProcessorJobLifecycleStateEnum = "CANCELED" ProcessorJobLifecycleStateInProgress ProcessorJobLifecycleStateEnum = "IN_PROGRESS" ProcessorJobLifecycleStateCanceling ProcessorJobLifecycleStateEnum = "CANCELING" )
func GetMappingProcessorJobLifecycleStateEnum(val string) (ProcessorJobLifecycleStateEnum, bool)
GetMappingProcessorJobLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetProcessorJobLifecycleStateEnumValues() []ProcessorJobLifecycleStateEnum
GetProcessorJobLifecycleStateEnumValues Enumerates the set of values for ProcessorJobLifecycleStateEnum
ProcessorTypeEnum Enum with underlying type: string
type ProcessorTypeEnum string
Set of constants representing the allowable values for ProcessorTypeEnum
const ( ProcessorTypeGeneral ProcessorTypeEnum = "GENERAL" )
func GetMappingProcessorTypeEnum(val string) (ProcessorTypeEnum, bool)
GetMappingProcessorTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetProcessorTypeEnumValues() []ProcessorTypeEnum
GetProcessorTypeEnumValues Enumerates the set of values for ProcessorTypeEnum
Table The table extracted from a document.
type Table struct { // The number of rows. RowCount *int `mandatory:"true" json:"rowCount"` // The number of columns. ColumnCount *int `mandatory:"true" json:"columnCount"` // The header rows. HeaderRows []TableRow `mandatory:"true" json:"headerRows"` // The body rows. BodyRows []TableRow `mandatory:"true" json:"bodyRows"` // the footer rows. FooterRows []TableRow `mandatory:"true" json:"footerRows"` // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` }
func (m Table) String() string
func (m Table) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
TableRow A single row in a table.
type TableRow struct { // The cells in the row. Cells []Cell `mandatory:"true" json:"cells"` }
func (m TableRow) String() string
func (m TableRow) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ValueArray The array of field values.
type ValueArray struct { // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` // The indexes of the words in the field value. WordIndexes []int `mandatory:"true" json:"wordIndexes"` Items []DocumentField `mandatory:"true" json:"items"` // The detected text of a field. Text *string `mandatory:"false" json:"text"` }
func (m ValueArray) GetBoundingPolygon() *BoundingPolygon
GetBoundingPolygon returns BoundingPolygon
func (m ValueArray) GetConfidence() *float32
GetConfidence returns Confidence
func (m ValueArray) GetText() *string
GetText returns Text
func (m ValueArray) GetWordIndexes() []int
GetWordIndexes returns WordIndexes
func (m ValueArray) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ValueArray) String() string
func (m ValueArray) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ValueDate The date field value.
type ValueDate struct { // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` // The indexes of the words in the field value. WordIndexes []int `mandatory:"true" json:"wordIndexes"` // The date field value as yyyy-mm-dd. Value *common.SDKTime `mandatory:"true" json:"value"` // The detected text of a field. Text *string `mandatory:"false" json:"text"` }
func (m ValueDate) GetBoundingPolygon() *BoundingPolygon
GetBoundingPolygon returns BoundingPolygon
func (m ValueDate) GetConfidence() *float32
GetConfidence returns Confidence
func (m ValueDate) GetText() *string
GetText returns Text
func (m ValueDate) GetWordIndexes() []int
GetWordIndexes returns WordIndexes
func (m ValueDate) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ValueDate) String() string
func (m ValueDate) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ValueInteger The integer field value.
type ValueInteger struct { // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` // The indexes of the words in the field value. WordIndexes []int `mandatory:"true" json:"wordIndexes"` // The integer value. Value *int `mandatory:"true" json:"value"` // The detected text of a field. Text *string `mandatory:"false" json:"text"` }
func (m ValueInteger) GetBoundingPolygon() *BoundingPolygon
GetBoundingPolygon returns BoundingPolygon
func (m ValueInteger) GetConfidence() *float32
GetConfidence returns Confidence
func (m ValueInteger) GetText() *string
GetText returns Text
func (m ValueInteger) GetWordIndexes() []int
GetWordIndexes returns WordIndexes
func (m ValueInteger) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ValueInteger) String() string
func (m ValueInteger) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ValueNumber The floating point number field value.
type ValueNumber struct { // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` // The indexes of the words in the field value. WordIndexes []int `mandatory:"true" json:"wordIndexes"` // The number value. Value *float32 `mandatory:"true" json:"value"` // The detected text of a field. Text *string `mandatory:"false" json:"text"` }
func (m ValueNumber) GetBoundingPolygon() *BoundingPolygon
GetBoundingPolygon returns BoundingPolygon
func (m ValueNumber) GetConfidence() *float32
GetConfidence returns Confidence
func (m ValueNumber) GetText() *string
GetText returns Text
func (m ValueNumber) GetWordIndexes() []int
GetWordIndexes returns WordIndexes
func (m ValueNumber) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ValueNumber) String() string
func (m ValueNumber) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ValuePhoneNumber The phone number field value.
type ValuePhoneNumber struct { // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` // The indexes of the words in the field value. WordIndexes []int `mandatory:"true" json:"wordIndexes"` // The phone number field value. Value *string `mandatory:"true" json:"value"` // The detected text of a field. Text *string `mandatory:"false" json:"text"` }
func (m ValuePhoneNumber) GetBoundingPolygon() *BoundingPolygon
GetBoundingPolygon returns BoundingPolygon
func (m ValuePhoneNumber) GetConfidence() *float32
GetConfidence returns Confidence
func (m ValuePhoneNumber) GetText() *string
GetText returns Text
func (m ValuePhoneNumber) GetWordIndexes() []int
GetWordIndexes returns WordIndexes
func (m ValuePhoneNumber) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ValuePhoneNumber) String() string
func (m ValuePhoneNumber) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ValueString The string field value.
type ValueString struct { // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` // The indexes of the words in the field value. WordIndexes []int `mandatory:"true" json:"wordIndexes"` // The string text. Value *string `mandatory:"true" json:"value"` // The detected text of a field. Text *string `mandatory:"false" json:"text"` }
func (m ValueString) GetBoundingPolygon() *BoundingPolygon
GetBoundingPolygon returns BoundingPolygon
func (m ValueString) GetConfidence() *float32
GetConfidence returns Confidence
func (m ValueString) GetText() *string
GetText returns Text
func (m ValueString) GetWordIndexes() []int
GetWordIndexes returns WordIndexes
func (m ValueString) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ValueString) String() string
func (m ValueString) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ValueTime The time field value.
type ValueTime struct { // The confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` // The indexes of the words in the field value. WordIndexes []int `mandatory:"true" json:"wordIndexes"` // The time field value as yyyy-mm-dd hh-mm-ss. Value *common.SDKTime `mandatory:"true" json:"value"` // The detected text of a field. Text *string `mandatory:"false" json:"text"` }
func (m ValueTime) GetBoundingPolygon() *BoundingPolygon
GetBoundingPolygon returns BoundingPolygon
func (m ValueTime) GetConfidence() *float32
GetConfidence returns Confidence
func (m ValueTime) GetText() *string
GetText returns Text
func (m ValueTime) GetWordIndexes() []int
GetWordIndexes returns WordIndexes
func (m ValueTime) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ValueTime) String() string
func (m ValueTime) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Word A single word.
type Word struct { // The string of text characters in the word. Text *string `mandatory:"true" json:"text"` // the confidence score between 0 and 1. Confidence *float32 `mandatory:"true" json:"confidence"` BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` }
func (m Word) String() string
func (m Word) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly