Reference documentation and code samples for the Google Cloud Deploy V1 Client class ListTargetsRequest.
The request object for ListTargets.
Generated from protobuf message google.cloud.deploy.v1.ListTargetsRequest
Namespace
Google \ Cloud \ Deploy \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent, which owns this collection of targets. Format must be projects/{project_id}/locations/{location_name}.
↳ page_size
int
Optional. The maximum number of Target objects to return. The service may return fewer than this value. If unspecified, at most 50 Target objects will be returned. The maximum value is 1000; values above 1000 will be set to 1000.
↳ page_token
string
Optional. A page token, received from a previous ListTargets call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters match the call that provided the page token.
Required. The parent, which owns this collection of targets. Format must be
projects/{project_id}/locations/{location_name}.
Returns
Type
Description
string
setParent
Required. The parent, which owns this collection of targets. Format must be
projects/{project_id}/locations/{location_name}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPageSize
Optional. The maximum number of Target objects to return. The service may
return fewer than this value. If unspecified, at most 50 Target objects
will be returned. The maximum value is 1000; values above 1000 will be set
to 1000.
Returns
Type
Description
int
setPageSize
Optional. The maximum number of Target objects to return. The service may
return fewer than this value. If unspecified, at most 50 Target objects
will be returned. The maximum value is 1000; values above 1000 will be set
to 1000.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
Optional. A page token, received from a previous ListTargets call.
Provide this to retrieve the subsequent page.
When paginating, all other provided parameters match
the call that provided the page token.
Returns
Type
Description
string
setPageToken
Optional. A page token, received from a previous ListTargets call.
Provide this to retrieve the subsequent page.
When paginating, all other provided parameters match
the call that provided the page token.
Required. The parent, which owns this collection of targets. Format must be
projects/{project_id}/locations/{location_name}. Please see
Google\Cloud\Deploy\V1\CloudDeployClient::locationName() for help formatting this field.
[[["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 Deploy V1 Client - Class ListTargetsRequest (2.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0 (latest)](/php/docs/reference/cloud-deploy/latest/V1.ListTargetsRequest)\n- [1.5.7](/php/docs/reference/cloud-deploy/1.5.7/V1.ListTargetsRequest)\n- [1.4.0](/php/docs/reference/cloud-deploy/1.4.0/V1.ListTargetsRequest)\n- [1.3.0](/php/docs/reference/cloud-deploy/1.3.0/V1.ListTargetsRequest)\n- [1.2.0](/php/docs/reference/cloud-deploy/1.2.0/V1.ListTargetsRequest)\n- [1.1.1](/php/docs/reference/cloud-deploy/1.1.1/V1.ListTargetsRequest)\n- [1.0.0](/php/docs/reference/cloud-deploy/1.0.0/V1.ListTargetsRequest)\n- [0.19.1](/php/docs/reference/cloud-deploy/0.19.1/V1.ListTargetsRequest)\n- [0.18.1](/php/docs/reference/cloud-deploy/0.18.1/V1.ListTargetsRequest)\n- [0.17.0](/php/docs/reference/cloud-deploy/0.17.0/V1.ListTargetsRequest)\n- [0.16.0](/php/docs/reference/cloud-deploy/0.16.0/V1.ListTargetsRequest)\n- [0.15.0](/php/docs/reference/cloud-deploy/0.15.0/V1.ListTargetsRequest)\n- [0.14.0](/php/docs/reference/cloud-deploy/0.14.0/V1.ListTargetsRequest)\n- [0.13.1](/php/docs/reference/cloud-deploy/0.13.1/V1.ListTargetsRequest)\n- [0.12.1](/php/docs/reference/cloud-deploy/0.12.1/V1.ListTargetsRequest)\n- [0.11.1](/php/docs/reference/cloud-deploy/0.11.1/V1.ListTargetsRequest)\n- [0.10.0](/php/docs/reference/cloud-deploy/0.10.0/V1.ListTargetsRequest)\n- [0.9.0](/php/docs/reference/cloud-deploy/0.9.0/V1.ListTargetsRequest)\n- [0.8.0](/php/docs/reference/cloud-deploy/0.8.0/V1.ListTargetsRequest)\n- [0.7.0](/php/docs/reference/cloud-deploy/0.7.0/V1.ListTargetsRequest)\n- [0.6.0](/php/docs/reference/cloud-deploy/0.6.0/V1.ListTargetsRequest)\n- [0.5.0](/php/docs/reference/cloud-deploy/0.5.0/V1.ListTargetsRequest)\n- [0.4.1](/php/docs/reference/cloud-deploy/0.4.1/V1.ListTargetsRequest)\n- [0.3.4](/php/docs/reference/cloud-deploy/0.3.4/V1.ListTargetsRequest) \nReference documentation and code samples for the Google Cloud Deploy V1 Client class ListTargetsRequest.\n\nThe request object for `ListTargets`.\n\nGenerated from protobuf message `google.cloud.deploy.v1.ListTargetsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Deploy \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent, which owns this collection of targets. Format must be\n`projects/{project_id}/locations/{location_name}`.\n\n### setParent\n\nRequired. The parent, which owns this collection of targets. Format must be\n`projects/{project_id}/locations/{location_name}`.\n\n### getPageSize\n\nOptional. The maximum number of `Target` objects to return. The service may\nreturn fewer than this value. If unspecified, at most 50 `Target` objects\nwill be returned. The maximum value is 1000; values above 1000 will be set\nto 1000.\n\n### setPageSize\n\nOptional. The maximum number of `Target` objects to return. The service may\nreturn fewer than this value. If unspecified, at most 50 `Target` objects\nwill be returned. The maximum value is 1000; values above 1000 will be set\nto 1000.\n\n### getPageToken\n\nOptional. A page token, received from a previous `ListTargets` call.\n\nProvide this to retrieve the subsequent page.\nWhen paginating, all other provided parameters match\nthe call that provided the page token.\n\n### setPageToken\n\nOptional. A page token, received from a previous `ListTargets` call.\n\nProvide this to retrieve the subsequent page.\nWhen paginating, all other provided parameters match\nthe call that provided the page token.\n\n### getFilter\n\nOptional. Filter targets to be returned. See \u003chttps://google.aip.dev/160\u003e for\nmore details.\n\n### setFilter\n\nOptional. Filter targets to be returned. See \u003chttps://google.aip.dev/160\u003e for\nmore details.\n\n### getOrderBy\n\nOptional. Field to sort by. See \u003chttps://google.aip.dev/132#ordering\u003e for\nmore details.\n\n### setOrderBy\n\nOptional. Field to sort by. See \u003chttps://google.aip.dev/132#ordering\u003e for\nmore details.\n\n### static::build"]]