Class: Google::Apis::VisionV1::OutputConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/representations.rb

Overview

The desired output location and metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OutputConfig

Returns a new instance of OutputConfig



7416
7417
7418
# File 'generated/google/apis/vision_v1/classes.rb', line 7416

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#batch_sizeFixnum

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

Returns:

  • (Fixnum)


7409
7410
7411
# File 'generated/google/apis/vision_v1/classes.rb', line 7409

def batch_size
  @batch_size
end

#gcs_destinationGoogle::Apis::VisionV1::GcsDestination

The Google Cloud Storage location where the output will be written to. Corresponds to the JSON property gcsDestination



7414
7415
7416
# File 'generated/google/apis/vision_v1/classes.rb', line 7414

def gcs_destination
  @gcs_destination
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7421
7422
7423
7424
# File 'generated/google/apis/vision_v1/classes.rb', line 7421

def update!(**args)
  @batch_size = args[:batch_size] if args.key?(:batch_size)
  @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
end