Reference documentation and code samples for the Google Cloud Asset V1 Client class SavedQuery.
A saved query which can be shared with others or used later.
Generated from protobuf messagegoogle.cloud.asset.v1.SavedQuery
Namespace
Google \ Cloud \ Asset \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
The resource name of the saved query. The format must be: * * projects/project_number/savedQueries/saved_query_id * * folders/folder_number/savedQueries/saved_query_id * * organizations/organization_number/savedQueries/saved_query_id
↳ description
string
The description of this saved query. This value should be fewer than 255 characters.
Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
[[["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 SavedQuery (2.2.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.3 (latest)](/php/docs/reference/cloud-asset/latest/V1.SavedQuery)\n- [2.2.2](/php/docs/reference/cloud-asset/2.2.2/V1.SavedQuery)\n- [2.1.3](/php/docs/reference/cloud-asset/2.1.3/V1.SavedQuery)\n- [2.0.1](/php/docs/reference/cloud-asset/2.0.1/V1.SavedQuery)\n- [1.16.4](/php/docs/reference/cloud-asset/1.16.4/V1.SavedQuery)\n- [1.14.1](/php/docs/reference/cloud-asset/1.14.1/V1.SavedQuery)\n- [1.13.2](/php/docs/reference/cloud-asset/1.13.2/V1.SavedQuery)\n- [1.12.2](/php/docs/reference/cloud-asset/1.12.2/V1.SavedQuery)\n- [1.11.3](/php/docs/reference/cloud-asset/1.11.3/V1.SavedQuery)\n- [1.10.2](/php/docs/reference/cloud-asset/1.10.2/V1.SavedQuery)\n- [1.9.2](/php/docs/reference/cloud-asset/1.9.2/V1.SavedQuery) \nReference documentation and code samples for the Google Cloud Asset V1 Client class SavedQuery.\n\nA saved query which can be shared with others or used later.\n\nGenerated from protobuf message `google.cloud.asset.v1.SavedQuery`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Asset \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe resource name of the saved query. The format must be:\n\n- projects/project_number/savedQueries/saved_query_id\n- folders/folder_number/savedQueries/saved_query_id\n- organizations/organization_number/savedQueries/saved_query_id\n\n### setName\n\nThe resource name of the saved query. The format must be:\n\n- projects/project_number/savedQueries/saved_query_id\n- folders/folder_number/savedQueries/saved_query_id\n- organizations/organization_number/savedQueries/saved_query_id\n\n### getDescription\n\nThe description of this saved query. This value should be fewer than 255\ncharacters.\n\n### setDescription\n\nThe description of this saved query. This value should be fewer than 255\ncharacters.\n\n### getCreateTime\n\nOutput only. The create time of this saved query.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The create time of this saved query.\n\n### getCreator\n\nOutput only. The account's email address who has created this saved query.\n\n### setCreator\n\nOutput only. The account's email address who has created this saved query.\n\n### getLastUpdateTime\n\nOutput only. The last update time of this saved query.\n\n### hasLastUpdateTime\n\n### clearLastUpdateTime\n\n### setLastUpdateTime\n\nOutput only. The last update time of this saved query.\n\n### getLastUpdater\n\nOutput only. The account's email address who has updated this saved query\nmost recently.\n\n### setLastUpdater\n\nOutput only. The account's email address who has updated this saved query\nmost recently.\n\n### getLabels\n\nLabels applied on the resource.\n\nThis value should not contain more than 10 entries. The key and value of\neach entry must be non-empty and fewer than 64 characters.\n\n### setLabels\n\nLabels applied on the resource.\n\nThis value should not contain more than 10 entries. The key and value of\neach entry must be non-empty and fewer than 64 characters.\n\n### getContent\n\nThe query content.\n\n### hasContent\n\n### clearContent\n\n### setContent\n\nThe query content."]]