Reference documentation and code samples for the Google Cloud Asset V1 Client class GcsDestination.
A Cloud Storage location.
Generated from protobuf messagegoogle.cloud.asset.v1.GcsDestination
Namespace
Google \ Cloud \ Asset \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ uri
string
The URI of the Cloud Storage object. It's the same URI that is used by gsutil. Example: "gs://bucket_name/object_name". SeeViewing and Editing Object Metadatafor more information. If the specified Cloud Storage object already exists and there is nohold, it will be overwritten with the exported result.
↳ uri_prefix
string
The URI prefix of all generated Cloud Storage objects. Example: "gs://bucket_name/object_name_prefix". Each object URI is in format: "gs://bucket_name/object_name_prefix/
getUri
The URI of the Cloud Storage object. It's the same URI that is used by
gsutil. Example: "gs://bucket_name/object_name". SeeViewing and
Editing Object
Metadatafor more information.
If the specified Cloud Storage object already exists and there is nohold, it will be
overwritten with the exported result.
Returns
Type
Description
string
hasUri
setUri
The URI of the Cloud Storage object. It's the same URI that is used by
gsutil. Example: "gs://bucket_name/object_name". SeeViewing and
Editing Object
Metadatafor more information.
If the specified Cloud Storage object already exists and there is nohold, it will be
overwritten with the exported result.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getUriPrefix
The URI prefix of all generated Cloud Storage objects. Example:
"gs://bucket_name/object_name_prefix". Each object URI is in format:
"gs://bucket_name/object_name_prefix/
Returns
Type
Description
string
hasUriPrefix
setUriPrefix
The URI prefix of all generated Cloud Storage objects. Example:
"gs://bucket_name/object_name_prefix". Each object URI is in format:
"gs://bucket_name/object_name_prefix/
[[["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,["# Google Cloud Asset V1 Client - Class GcsDestination (2.2.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.3 (latest)](/php/docs/reference/cloud-asset/latest/V1.GcsDestination)\n- [2.2.2](/php/docs/reference/cloud-asset/2.2.2/V1.GcsDestination)\n- [2.1.3](/php/docs/reference/cloud-asset/2.1.3/V1.GcsDestination)\n- [2.0.1](/php/docs/reference/cloud-asset/2.0.1/V1.GcsDestination)\n- [1.16.4](/php/docs/reference/cloud-asset/1.16.4/V1.GcsDestination)\n- [1.14.1](/php/docs/reference/cloud-asset/1.14.1/V1.GcsDestination)\n- [1.13.2](/php/docs/reference/cloud-asset/1.13.2/V1.GcsDestination)\n- [1.12.2](/php/docs/reference/cloud-asset/1.12.2/V1.GcsDestination)\n- [1.11.3](/php/docs/reference/cloud-asset/1.11.3/V1.GcsDestination)\n- [1.10.2](/php/docs/reference/cloud-asset/1.10.2/V1.GcsDestination)\n- [1.9.2](/php/docs/reference/cloud-asset/1.9.2/V1.GcsDestination) \nReference documentation and code samples for the Google Cloud Asset V1 Client class GcsDestination.\n\nA Cloud Storage location.\n\nGenerated from protobuf message `google.cloud.asset.v1.GcsDestination`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Asset \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getUri\n\nThe URI of the Cloud Storage object. It's the same URI that is used by\ngsutil. Example: \"gs://bucket_name/object_name\". See [Viewing and\nEditing Object\nMetadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)\nfor more information.\n\nIf the specified Cloud Storage object already exists and there is no\n[hold](https://cloud.google.com/storage/docs/object-holds), it will be\noverwritten with the exported result.\n\n### hasUri\n\n### setUri\n\nThe URI of the Cloud Storage object. It's the same URI that is used by\ngsutil. Example: \"gs://bucket_name/object_name\". See [Viewing and\nEditing Object\nMetadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)\nfor more information.\n\nIf the specified Cloud Storage object already exists and there is no\n[hold](https://cloud.google.com/storage/docs/object-holds), it will be\noverwritten with the exported result.\n\n### getUriPrefix\n\nThe URI prefix of all generated Cloud Storage objects. Example:\n\"gs://bucket_name/object_name_prefix\". Each object URI is in format:\n\"gs://bucket_name/object_name_prefix/\n\n\n### hasUriPrefix\n\n### setUriPrefix\n\nThe URI prefix of all generated Cloud Storage objects. Example:\n\"gs://bucket_name/object_name_prefix\". Each object URI is in format:\n\"gs://bucket_name/object_name_prefix/\n\n\n### getObjectUri"]]