Reference documentation and code samples for the Cloud Vision V1 Client class GcsDestination.
The Google Cloud Storage location where the output will be written to.
Generated from protobuf message google.cloud.vision.v1.GcsDestination
Namespace
Google \ Cloud \ Vision \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ uri
string
Google Cloud Storage URI prefix where the results will be stored. Results will be in JSON format and preceded by its corresponding input URI prefix. This field can either represent a gcs file prefix or gcs directory. In either case, the uri should be unique because in order to get all of the output files, you will need to do a wildcard gcs search on the uri prefix you provide. Examples: * * File Prefix: gs://bucket-name/here/filenameprefix The output files will be created in gs://bucket-name/here/ and the names of the output files will begin with "filenameprefix". * * Directory Prefix: gs://bucket-name/some/location/ The output files will be created in gs://bucket-name/some/location/ and the names of the output files could be anything because there was no filename prefix specified. If multiple outputs, each response is still AnnotateFileResponse, each of which contains some subset of the full list of AnnotateImageResponse. Multiple outputs can happen if, for example, the output JSON is too large and overflows into multiple sharded files.
getUri
Google Cloud Storage URI prefix where the results will be stored. Results
will be in JSON format and preceded by its corresponding input URI prefix.
This field can either represent a gcs file prefix or gcs directory. In
either case, the uri should be unique because in order to get all of the
output files, you will need to do a wildcard gcs search on the uri prefix
you provide.
Examples:
File Prefix: gs://bucket-name/here/filenameprefix The output files
will be created in gs://bucket-name/here/ and the names of the
output files will begin with "filenameprefix".
Directory Prefix: gs://bucket-name/some/location/ The output files
will be created in gs://bucket-name/some/location/ and the names of the
output files could be anything because there was no filename prefix
specified.
If multiple outputs, each response is still AnnotateFileResponse, each of
which contains some subset of the full list of AnnotateImageResponse.
Multiple outputs can happen if, for example, the output JSON is too large
and overflows into multiple sharded files.
Returns
Type
Description
string
setUri
Google Cloud Storage URI prefix where the results will be stored. Results
will be in JSON format and preceded by its corresponding input URI prefix.
This field can either represent a gcs file prefix or gcs directory. In
either case, the uri should be unique because in order to get all of the
output files, you will need to do a wildcard gcs search on the uri prefix
you provide.
Examples:
File Prefix: gs://bucket-name/here/filenameprefix The output files
will be created in gs://bucket-name/here/ and the names of the
output files will begin with "filenameprefix".
Directory Prefix: gs://bucket-name/some/location/ The output files
will be created in gs://bucket-name/some/location/ and the names of the
output files could be anything because there was no filename prefix
specified.
If multiple outputs, each response is still AnnotateFileResponse, each of
which contains some subset of the full list of AnnotateImageResponse.
Multiple outputs can happen if, for example, the output JSON is too large
and overflows into multiple sharded files.
[[["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 GcsDestination (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-vision/latest/V1.GcsDestination)\n- [2.0.2](/php/docs/reference/cloud-vision/2.0.2/V1.GcsDestination)\n- [1.10.3](/php/docs/reference/cloud-vision/1.10.3/V1.GcsDestination)\n- [1.9.4](/php/docs/reference/cloud-vision/1.9.4/V1.GcsDestination)\n- [1.8.0](/php/docs/reference/cloud-vision/1.8.0/V1.GcsDestination)\n- [1.7.6](/php/docs/reference/cloud-vision/1.7.6/V1.GcsDestination)\n- [1.6.8](/php/docs/reference/cloud-vision/1.6.8/V1.GcsDestination) \nReference documentation and code samples for the Cloud Vision V1 Client class GcsDestination.\n\nThe Google Cloud Storage location where the output will be written to.\n\nGenerated from protobuf message `google.cloud.vision.v1.GcsDestination`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Vision \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUri\n\nGoogle Cloud Storage URI prefix where the results will be stored. Results\nwill be in JSON format and preceded by its corresponding input URI prefix.\n\nThis field can either represent a gcs file prefix or gcs directory. In\neither case, the uri should be unique because in order to get all of the\noutput files, you will need to do a wildcard gcs search on the uri prefix\nyou provide.\nExamples:\n\n- File Prefix: gs://bucket-name/here/filenameprefix The output files will be created in gs://bucket-name/here/ and the names of the output files will begin with \"filenameprefix\".\n- Directory Prefix: gs://bucket-name/some/location/ The output files will be created in gs://bucket-name/some/location/ and the names of the output files could be anything because there was no filename prefix specified. If multiple outputs, each response is still AnnotateFileResponse, each of which contains some subset of the full list of AnnotateImageResponse. Multiple outputs can happen if, for example, the output JSON is too large and overflows into multiple sharded files.\n\n### setUri\n\nGoogle Cloud Storage URI prefix where the results will be stored. Results\nwill be in JSON format and preceded by its corresponding input URI prefix.\n\nThis field can either represent a gcs file prefix or gcs directory. In\neither case, the uri should be unique because in order to get all of the\noutput files, you will need to do a wildcard gcs search on the uri prefix\nyou provide.\nExamples:\n\n- File Prefix: gs://bucket-name/here/filenameprefix The output files will be created in gs://bucket-name/here/ and the names of the output files will begin with \"filenameprefix\".\n- Directory Prefix: gs://bucket-name/some/location/ The output files will be created in gs://bucket-name/some/location/ and the names of the output files could be anything because there was no filename prefix specified. If multiple outputs, each response is still AnnotateFileResponse, each of which contains some subset of the full list of AnnotateImageResponse. Multiple outputs can happen if, for example, the output JSON is too large and overflows into multiple sharded files."]]