OcrDocumentResponse
OcrDocumentResponse documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| DetectedFormat | OcrInputFormat | ||
| PageCount | int32 | Number of pages processed after applying the range | |
| Pages | []OcrPageResult | Ordered per-page OCR results | |
| Timings | DocumentTimings |
Methods
NewOcrDocumentResponse
func NewOcrDocumentResponse(detectedFormat OcrInputFormat, pageCount int32, pages []OcrPageResult, timings DocumentTimings, ) *OcrDocumentResponse
NewOcrDocumentResponse instantiates a new OcrDocumentResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewOcrDocumentResponseWithDefaults
func NewOcrDocumentResponseWithDefaults() *OcrDocumentResponse
NewOcrDocumentResponseWithDefaults instantiates a new OcrDocumentResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetDetectedFormat
func (o *OcrDocumentResponse) GetDetectedFormat() OcrInputFormat
GetDetectedFormat returns the DetectedFormat field if non-nil, zero value otherwise.
GetDetectedFormatOk
func (o *OcrDocumentResponse) GetDetectedFormatOk() (*OcrInputFormat, bool)
GetDetectedFormatOk returns a tuple with the DetectedFormat field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetDetectedFormat
func (o *OcrDocumentResponse) SetDetectedFormat(v OcrInputFormat)
SetDetectedFormat sets DetectedFormat field to given value.
GetPageCount
func (o *OcrDocumentResponse) GetPageCount() int32
GetPageCount returns the PageCount field if non-nil, zero value otherwise.
GetPageCountOk
func (o *OcrDocumentResponse) GetPageCountOk() (*int32, bool)
GetPageCountOk returns a tuple with the PageCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPageCount
func (o *OcrDocumentResponse) SetPageCount(v int32)
SetPageCount sets PageCount field to given value.
GetPages
func (o *OcrDocumentResponse) GetPages() []OcrPageResult
GetPages returns the Pages field if non-nil, zero value otherwise.
GetPagesOk
func (o *OcrDocumentResponse) GetPagesOk() (*[]OcrPageResult, bool)
GetPagesOk returns a tuple with the Pages field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPages
func (o *OcrDocumentResponse) SetPages(v []OcrPageResult)
SetPages sets Pages field to given value.
GetTimings
func (o *OcrDocumentResponse) GetTimings() DocumentTimings
GetTimings returns the Timings field if non-nil, zero value otherwise.
GetTimingsOk
func (o *OcrDocumentResponse) GetTimingsOk() (*DocumentTimings, bool)
GetTimingsOk returns a tuple with the Timings field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTimings
func (o *OcrDocumentResponse) SetTimings(v DocumentTimings)
SetTimings sets Timings field to given value.