OcrDocumentRequest
OcrDocumentRequest documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Content | NullableString | Base64-encoded document bytes | |
| Format | Pointer to OcrInputFormat | [optional] | |
| IncludeRawJson | Pointer to NullableBool | Include raw OCR JSON payload in the response | [optional] |
| IncludeMarkdown | Pointer to NullableBool | Include markdown rendering in the response | [optional] |
| StartPage | Pointer to NullableInt32 | 0-based inclusive start page | [optional] |
| EndPage | Pointer to NullableInt32 | 0-based inclusive end page | [optional] |
Methods
NewOcrDocumentRequest
func NewOcrDocumentRequest(content NullableString, ) *OcrDocumentRequest
NewOcrDocumentRequest instantiates a new OcrDocumentRequest 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
NewOcrDocumentRequestWithDefaults
func NewOcrDocumentRequestWithDefaults() *OcrDocumentRequest
NewOcrDocumentRequestWithDefaults instantiates a new OcrDocumentRequest 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
GetContent
func (o *OcrDocumentRequest) GetContent() string
GetContent returns the Content field if non-nil, zero value otherwise.
GetContentOk
func (o *OcrDocumentRequest) GetContentOk() (*string, bool)
GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetContent
func (o *OcrDocumentRequest) SetContent(v string)
SetContent sets Content field to given value.
SetContentNil
func (o *OcrDocumentRequest) SetContentNil(b bool)
SetContentNil sets the value for Content to be an explicit nil
UnsetContent
func (o *OcrDocumentRequest) UnsetContent()
UnsetContent ensures that no value is present for Content, not even an explicit nil
GetFormat
func (o *OcrDocumentRequest) GetFormat() OcrInputFormat
GetFormat returns the Format field if non-nil, zero value otherwise.
GetFormatOk
func (o *OcrDocumentRequest) GetFormatOk() (*OcrInputFormat, bool)
GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFormat
func (o *OcrDocumentRequest) SetFormat(v OcrInputFormat)
SetFormat sets Format field to given value.
HasFormat
func (o *OcrDocumentRequest) HasFormat() bool
HasFormat returns a boolean if a field has been set.
GetIncludeRawJson
func (o *OcrDocumentRequest) GetIncludeRawJson() bool
GetIncludeRawJson returns the IncludeRawJson field if non-nil, zero value otherwise.
GetIncludeRawJsonOk
func (o *OcrDocumentRequest) GetIncludeRawJsonOk() (*bool, bool)
GetIncludeRawJsonOk returns a tuple with the IncludeRawJson field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetIncludeRawJson
func (o *OcrDocumentRequest) SetIncludeRawJson(v bool)
SetIncludeRawJson sets IncludeRawJson field to given value.
HasIncludeRawJson
func (o *OcrDocumentRequest) HasIncludeRawJson() bool
HasIncludeRawJson returns a boolean if a field has been set.
SetIncludeRawJsonNil
func (o *OcrDocumentRequest) SetIncludeRawJsonNil(b bool)
SetIncludeRawJsonNil sets the value for IncludeRawJson to be an explicit nil
UnsetIncludeRawJson
func (o *OcrDocumentRequest) UnsetIncludeRawJson()
UnsetIncludeRawJson ensures that no value is present for IncludeRawJson, not even an explicit nil
GetIncludeMarkdown
func (o *OcrDocumentRequest) GetIncludeMarkdown() bool
GetIncludeMarkdown returns the IncludeMarkdown field if non-nil, zero value otherwise.
GetIncludeMarkdownOk
func (o *OcrDocumentRequest) GetIncludeMarkdownOk() (*bool, bool)
GetIncludeMarkdownOk returns a tuple with the IncludeMarkdown field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetIncludeMarkdown
func (o *OcrDocumentRequest) SetIncludeMarkdown(v bool)
SetIncludeMarkdown sets IncludeMarkdown field to given value.
HasIncludeMarkdown
func (o *OcrDocumentRequest) HasIncludeMarkdown() bool
HasIncludeMarkdown returns a boolean if a field has been set.
SetIncludeMarkdownNil
func (o *OcrDocumentRequest) SetIncludeMarkdownNil(b bool)
SetIncludeMarkdownNil sets the value for IncludeMarkdown to be an explicit nil
UnsetIncludeMarkdown
func (o *OcrDocumentRequest) UnsetIncludeMarkdown()
UnsetIncludeMarkdown ensures that no value is present for IncludeMarkdown, not even an explicit nil
GetStartPage
func (o *OcrDocumentRequest) GetStartPage() int32
GetStartPage returns the StartPage field if non-nil, zero value otherwise.
GetStartPageOk
func (o *OcrDocumentRequest) GetStartPageOk() (*int32, bool)
GetStartPageOk returns a tuple with the StartPage field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetStartPage
func (o *OcrDocumentRequest) SetStartPage(v int32)
SetStartPage sets StartPage field to given value.
HasStartPage
func (o *OcrDocumentRequest) HasStartPage() bool
HasStartPage returns a boolean if a field has been set.
SetStartPageNil
func (o *OcrDocumentRequest) SetStartPageNil(b bool)
SetStartPageNil sets the value for StartPage to be an explicit nil
UnsetStartPage
func (o *OcrDocumentRequest) UnsetStartPage()
UnsetStartPage ensures that no value is present for StartPage, not even an explicit nil
GetEndPage
func (o *OcrDocumentRequest) GetEndPage() int32
GetEndPage returns the EndPage field if non-nil, zero value otherwise.
GetEndPageOk
func (o *OcrDocumentRequest) GetEndPageOk() (*int32, bool)
GetEndPageOk returns a tuple with the EndPage field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetEndPage
func (o *OcrDocumentRequest) SetEndPage(v int32)
SetEndPage sets EndPage field to given value.
HasEndPage
func (o *OcrDocumentRequest) HasEndPage() bool
HasEndPage returns a boolean if a field has been set.
SetEndPageNil
func (o *OcrDocumentRequest) SetEndPageNil(b bool)
SetEndPageNil sets the value for EndPage to be an explicit nil
UnsetEndPage
func (o *OcrDocumentRequest) UnsetEndPage()
UnsetEndPage ensures that no value is present for EndPage, not even an explicit nil