Reference documentation and code samples for the Google Cloud Support V2 Client class ListAttachmentsRequest.
The request message for the ListAttachments endpoint.
Generated from protobuf messagegoogle.cloud.support.v2.ListAttachmentsRequest
Namespace
Google \ Cloud \ Support \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The name of the case for which attachments should be listed.
↳ page_size
int
The maximum number of attachments fetched with each request. If not provided, the default is 10. The maximum page size that will be returned is 100. The size of each page can be smaller than the requested page size and can include zero. For example, you could request 100 attachments on one page, receive 0, and then on the next page, receive 90.
↳ page_token
string
A token identifying the page of results to return. If unspecified, the first page is retrieved.
getParent
Required. The name of the case for which attachments should be listed.
Returns
Type
Description
string
setParent
Required. The name of the case for which attachments should be listed.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPageSize
The maximum number of attachments fetched with each request.
If not provided, the default is 10. The maximum page size that will be
returned is 100.
The size of each page can be smaller than the requested page size and can
include zero. For example, you could request 100 attachments on one page,
receive 0, and then on the next page, receive 90.
Returns
Type
Description
int
setPageSize
The maximum number of attachments fetched with each request.
If not provided, the default is 10. The maximum page size that will be
returned is 100.
The size of each page can be smaller than the requested page size and can
include zero. For example, you could request 100 attachments on one page,
receive 0, and then on the next page, receive 90.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
A token identifying the page of results to return. If unspecified, the
first page is retrieved.
Returns
Type
Description
string
setPageToken
A token identifying the page of results to return. If unspecified, the
first page is retrieved.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
parent
string
Required. The name of the case for which attachments should be listed. Please seeCaseAttachmentServiceClient::caseName()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 Support V2 Client - Class ListAttachmentsRequest (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-support/latest/V2.ListAttachmentsRequest)\n- [1.2.0](/php/docs/reference/cloud-support/1.2.0/V2.ListAttachmentsRequest)\n- [1.1.0](/php/docs/reference/cloud-support/1.1.0/V2.ListAttachmentsRequest)\n- [1.0.3](/php/docs/reference/cloud-support/1.0.3/V2.ListAttachmentsRequest)\n- [0.2.5](/php/docs/reference/cloud-support/0.2.5/V2.ListAttachmentsRequest)\n- [0.1.2](/php/docs/reference/cloud-support/0.1.2/V2.ListAttachmentsRequest) \nReference documentation and code samples for the Google Cloud Support V2 Client class ListAttachmentsRequest.\n\nThe request message for the ListAttachments endpoint.\n\nGenerated from protobuf message `google.cloud.support.v2.ListAttachmentsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Support \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The name of the case for which attachments should be listed.\n\n### setParent\n\nRequired. The name of the case for which attachments should be listed.\n\n### getPageSize\n\nThe maximum number of attachments fetched with each request.\n\nIf not provided, the default is 10. The maximum page size that will be\nreturned is 100.\nThe size of each page can be smaller than the requested page size and can\ninclude zero. For example, you could request 100 attachments on one page,\nreceive 0, and then on the next page, receive 90.\n\n### setPageSize\n\nThe maximum number of attachments fetched with each request.\n\nIf not provided, the default is 10. The maximum page size that will be\nreturned is 100.\nThe size of each page can be smaller than the requested page size and can\ninclude zero. For example, you could request 100 attachments on one page,\nreceive 0, and then on the next page, receive 90.\n\n### getPageToken\n\nA token identifying the page of results to return. If unspecified, the\nfirst page is retrieved.\n\n### setPageToken\n\nA token identifying the page of results to return. If unspecified, the\nfirst page is retrieved.\n\n### static::build"]]