Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2OutputConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2OutputConfig
 
- 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 output location and metadata.
Instance Attribute Summary collapse
- 
  
    
      #gcs_destination  ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2GcsDestination 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Google Cloud Storage location where the output file will be written to. 
- 
  
    
      #pages_per_shard  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The max number of pages to include into each output Document shard JSON on Google Cloud Storage. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudDocumentaiV1beta2OutputConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GoogleCloudDocumentaiV1beta2OutputConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2OutputConfig
Returns a new instance of GoogleCloudDocumentaiV1beta2OutputConfig.
| 7089 7090 7091 | # File 'lib/google/apis/documentai_v1/classes.rb', line 7089 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#gcs_destination ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2GcsDestination
The Google Cloud Storage location where the output file will be written to.
Corresponds to the JSON property gcsDestination
| 7074 7075 7076 | # File 'lib/google/apis/documentai_v1/classes.rb', line 7074 def gcs_destination @gcs_destination end | 
#pages_per_shard ⇒ Fixnum
The max number of pages to include into each output Document shard JSON on
Google Cloud Storage. The valid range is [1, 100]. If not specified, the
default value is 20. For example, for one pdf file with 100 pages, 100 parsed
pages will be produced. If pages_per_shard = 20, then 5 Document shard JSON
files each containing 20 parsed pages will be written under the prefix
OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y
are 1-indexed page numbers. Example GCS outputs with 157 pages and
pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to-
150.json pages-151-to-157.json
Corresponds to the JSON property pagesPerShard
| 7087 7088 7089 | # File 'lib/google/apis/documentai_v1/classes.rb', line 7087 def pages_per_shard @pages_per_shard end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 7094 7095 7096 7097 | # File 'lib/google/apis/documentai_v1/classes.rb', line 7094 def update!(**args) @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) @pages_per_shard = args[:pages_per_shard] if args.key?(:pages_per_shard) end |