The Google Cloud Storage location to write the output(s) to.
↳ batch_size
int
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.
getGcsDestination
The Google Cloud Storage location to write the output(s) to.
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
Type
Description
int
setBatchSize
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-04 UTC."],[],[],null,["# Cloud Vision V1 Client - Class OutputConfig (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-vision/latest/V1.OutputConfig)\n- [2.0.2](/php/docs/reference/cloud-vision/2.0.2/V1.OutputConfig)\n- [1.10.3](/php/docs/reference/cloud-vision/1.10.3/V1.OutputConfig)\n- [1.9.4](/php/docs/reference/cloud-vision/1.9.4/V1.OutputConfig)\n- [1.8.0](/php/docs/reference/cloud-vision/1.8.0/V1.OutputConfig)\n- [1.7.6](/php/docs/reference/cloud-vision/1.7.6/V1.OutputConfig)\n- [1.6.8](/php/docs/reference/cloud-vision/1.6.8/V1.OutputConfig) \nReference documentation and code samples for the Cloud Vision V1 Client class OutputConfig.\n\nThe desired output location and metadata.\n\nGenerated from protobuf message `google.cloud.vision.v1.OutputConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Vision \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getGcsDestination\n\nThe Google Cloud Storage location to write the output(s) to.\n\n### hasGcsDestination\n\n### clearGcsDestination\n\n### setGcsDestination\n\nThe Google Cloud Storage location to write the output(s) to.\n\n### getBatchSize\n\nThe max number of response protos to put into each output JSON file on\nGoogle Cloud Storage.\n\nThe valid range is \\[1, 100\\]. If not specified, the default value is 20.\nFor example, for one pdf file with 100 pages, 100 response protos will\nbe generated. If `batch_size` = 20, then 5 json files each\ncontaining 20 response protos will be written under the prefix\n`gcs_destination`.`uri`.\nCurrently, batch_size only applies to GcsDestination, with potential future\nsupport for other output configurations.\n\n### setBatchSize\n\nThe max number of response protos to put into each output JSON file on\nGoogle Cloud Storage.\n\nThe valid range is \\[1, 100\\]. If not specified, the default value is 20.\nFor example, for one pdf file with 100 pages, 100 response protos will\nbe generated. If `batch_size` = 20, then 5 json files each\ncontaining 20 response protos will be written under the prefix\n`gcs_destination`.`uri`.\nCurrently, batch_size only applies to GcsDestination, with potential future\nsupport for other output configurations."]]