Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1OutputConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1OutputConfig
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1p1beta1/classes.rb,
 generated/google/apis/vision_v1p1beta1/representations.rb,
 generated/google/apis/vision_v1p1beta1/representations.rb
Overview
The desired output location and metadata.
Instance Attribute Summary collapse
- 
  
    
      #batch_size  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The max number of response protos to put into each output JSON file on Google Cloud Storage. 
- 
  
    
      #gcs_destination  ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsDestination 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Google Cloud Storage location where the output will be written to. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudVisionV1p2beta1OutputConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GoogleCloudVisionV1p2beta1OutputConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p2beta1OutputConfig
Returns a new instance of GoogleCloudVisionV1p2beta1OutputConfig
| 2613 2614 2615 | # File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 2613 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#batch_size ⇒ Fixnum
The max number of response protos to put into each output JSON file 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 response protos will
be generated. If batch_size = 20, then 5 json files each
containing 20 response protos will be written under the prefix
gcs_destination.uri.
Currently, batch_size only applies to GcsDestination, with potential future
support for other output configurations.
Corresponds to the JSON property batchSize
| 2606 2607 2608 | # File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 2606 def batch_size @batch_size end | 
#gcs_destination ⇒ Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsDestination
The Google Cloud Storage location where the output will be written to.
Corresponds to the JSON property gcsDestination
| 2611 2612 2613 | # File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 2611 def gcs_destination @gcs_destination end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2618 2619 2620 2621 | # File 'generated/google/apis/vision_v1p1beta1/classes.rb', line 2618 def update!(**args) @batch_size = args[:batch_size] if args.key?(:batch_size) @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) end |