Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2InputConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2InputConfig
 
- 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
The desired input location and metadata.
Instance Attribute Summary collapse
- 
  
    
      #contents  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Content in bytes, represented as a stream of bytes. 
- 
  
    
      #gcs_source  ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2GcsSource 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Google Cloud Storage location where the input file will be read from. 
- 
  
    
      #mime_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudDocumentaiV1beta2InputConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GoogleCloudDocumentaiV1beta2InputConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2InputConfig
Returns a new instance of GoogleCloudDocumentaiV1beta2InputConfig.
| 6992 6993 6994 | # File 'lib/google/apis/documentai_v1/classes.rb', line 6992 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#contents ⇒ String
Content in bytes, represented as a stream of bytes. Note: As with all bytes
fields, proto buffer messages use a pure binary representation, whereas JSON
representations use base64. This field only works for synchronous
ProcessDocument method.
Corresponds to the JSON property contents
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 6977 6978 6979 | # File 'lib/google/apis/documentai_v1/classes.rb', line 6977 def contents @contents end | 
#gcs_source ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2GcsSource
The Google Cloud Storage location where the input file will be read from.
Corresponds to the JSON property gcsSource
| 6982 6983 6984 | # File 'lib/google/apis/documentai_v1/classes.rb', line 6982 def gcs_source @gcs_source end | 
#mime_type ⇒ String
Required. Mimetype of the input. Current supported mimetypes are application/
pdf, image/tiff, and image/gif. In addition, application/json type is
supported for requests with ProcessDocumentRequest.automl_params field set.
The JSON file needs to be in Document format.
Corresponds to the JSON property mimeType
| 6990 6991 6992 | # File 'lib/google/apis/documentai_v1/classes.rb', line 6990 def mime_type @mime_type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 6997 6998 6999 7000 7001 | # File 'lib/google/apis/documentai_v1/classes.rb', line 6997 def update!(**args) @contents = args[:contents] if args.key?(:contents) @gcs_source = args[:gcs_source] if args.key?(:gcs_source) @mime_type = args[:mime_type] if args.key?(:mime_type) end |