Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::OutputConfig.
The desired output location and metadata.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#batch_size
defbatch_size()->::Integer
Returns
(::Integer) — 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.
#batch_size=
defbatch_size=(value)->::Integer
Parameter
value (::Integer) — 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.
Returns
(::Integer) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::OutputConfig (v1.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.1 (latest)](/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-OutputConfig)\n- [1.3.0](/ruby/docs/reference/google-cloud-vision-v1/1.3.0/Google-Cloud-Vision-V1-OutputConfig)\n- [1.2.1](/ruby/docs/reference/google-cloud-vision-v1/1.2.1/Google-Cloud-Vision-V1-OutputConfig)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision-v1/1.1.0/Google-Cloud-Vision-V1-OutputConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision-v1/1.0.1/Google-Cloud-Vision-V1-OutputConfig)\n- [0.15.0](/ruby/docs/reference/google-cloud-vision-v1/0.15.0/Google-Cloud-Vision-V1-OutputConfig)\n- [0.14.0](/ruby/docs/reference/google-cloud-vision-v1/0.14.0/Google-Cloud-Vision-V1-OutputConfig)\n- [0.13.2](/ruby/docs/reference/google-cloud-vision-v1/0.13.2/Google-Cloud-Vision-V1-OutputConfig)\n- [0.12.0](/ruby/docs/reference/google-cloud-vision-v1/0.12.0/Google-Cloud-Vision-V1-OutputConfig)\n- [0.11.1](/ruby/docs/reference/google-cloud-vision-v1/0.11.1/Google-Cloud-Vision-V1-OutputConfig)\n- [0.10.0](/ruby/docs/reference/google-cloud-vision-v1/0.10.0/Google-Cloud-Vision-V1-OutputConfig)\n- [0.9.0](/ruby/docs/reference/google-cloud-vision-v1/0.9.0/Google-Cloud-Vision-V1-OutputConfig)\n- [0.8.0](/ruby/docs/reference/google-cloud-vision-v1/0.8.0/Google-Cloud-Vision-V1-OutputConfig)\n- [0.7.0](/ruby/docs/reference/google-cloud-vision-v1/0.7.0/Google-Cloud-Vision-V1-OutputConfig)\n- [0.6.4](/ruby/docs/reference/google-cloud-vision-v1/0.6.4/Google-Cloud-Vision-V1-OutputConfig) \nReference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::OutputConfig.\n\nThe desired output location and metadata. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #batch_size\n\n def batch_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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.\n\n For example, for one pdf file with 100 pages, 100 response protos will\n be generated. If `batch_size` = 20, then 5 json files each\n containing 20 response protos will be written under the prefix\n `gcs_destination`.`uri`.\n\n Currently, batch_size only applies to GcsDestination, with potential future\n support for other output configurations.\n\n### #batch_size=\n\n def batch_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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.\n\n\n For example, for one pdf file with 100 pages, 100 response protos will\n be generated. If `batch_size` = 20, then 5 json files each\n containing 20 response protos will be written under the prefix\n `gcs_destination`.`uri`.\n\n Currently, batch_size only applies to GcsDestination, with potential future\nsupport for other output configurations. \n**Returns**\n\n- (::Integer) --- 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.\n\n For example, for one pdf file with 100 pages, 100 response protos will\n be generated. If `batch_size` = 20, then 5 json files each\n containing 20 response protos will be written under the prefix\n `gcs_destination`.`uri`.\n\n Currently, batch_size only applies to GcsDestination, with potential future\n support for other output configurations.\n\n### #gcs_destination\n\n def gcs_destination() -\u003e ::Google::Cloud::Vision::V1::GcsDestination\n\n**Returns**\n\n- ([::Google::Cloud::Vision::V1::GcsDestination](./Google-Cloud-Vision-V1-GcsDestination)) --- The Google Cloud Storage location to write the output(s) to.\n\n### #gcs_destination=\n\n def gcs_destination=(value) -\u003e ::Google::Cloud::Vision::V1::GcsDestination\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Vision::V1::GcsDestination](./Google-Cloud-Vision-V1-GcsDestination)) --- The Google Cloud Storage location to write the output(s) to. \n**Returns**\n\n- ([::Google::Cloud::Vision::V1::GcsDestination](./Google-Cloud-Vision-V1-GcsDestination)) --- The Google Cloud Storage location to write the output(s) to."]]