Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1RawDocument
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1RawDocument
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1/classes.rb,
 lib/google/apis/documentai_v1/representations.rb,
 lib/google/apis/documentai_v1/representations.rb
Overview
Payload message of raw document content (bytes).
Instance Attribute Summary collapse
- 
  
    
      #content  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Inline document content. 
- 
  
    
      #mime_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An IANA MIME type (RFC6838) indicating the nature and format of the [content]. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudDocumentaiV1RawDocument 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GoogleCloudDocumentaiV1RawDocument. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1RawDocument
Returns a new instance of GoogleCloudDocumentaiV1RawDocument.
| 3300 3301 3302 | # File 'lib/google/apis/documentai_v1/classes.rb', line 3300 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#content ⇒ String
Inline document content.
Corresponds to the JSON property content
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 3293 3294 3295 | # File 'lib/google/apis/documentai_v1/classes.rb', line 3293 def content @content end | 
#mime_type ⇒ String
An IANA MIME type (RFC6838) indicating the nature and format of the [content].
Corresponds to the JSON property mimeType
| 3298 3299 3300 | # File 'lib/google/apis/documentai_v1/classes.rb', line 3298 def mime_type @mime_type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3305 3306 3307 3308 | # File 'lib/google/apis/documentai_v1/classes.rb', line 3305 def update!(**args) @content = args[:content] if args.key?(:content) @mime_type = args[:mime_type] if args.key?(:mime_type) end |