Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class ListMessagesRequest.
Request for listing chat messages based on parent and conversation_id.
Generated from protobuf message google.cloud.geminidataanalytics.v1beta.ListMessagesRequest
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The conversation to list messages under. Format: projects/{project}/locations/{location}/conversations/{conversation_id}
↳ page_size
int
Optional. Requested page size. Server may return fewer items than requested. The max page size is 100. All larger page sizes will be coerced to 100. If unspecified, server will pick 50 as an approperiate default.
↳ page_token
string
Optional. A token identifying a page of results the server should return.
Optional. Requested page size. Server may return fewer items than
requested. The max page size is 100. All larger page sizes will be coerced
to 100. If unspecified, server will pick 50 as an approperiate default.
Returns
Type
Description
int
setPageSize
Optional. Requested page size. Server may return fewer items than
requested. The max page size is 100. All larger page sizes will be coerced
to 100. If unspecified, server will pick 50 as an approperiate default.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
Optional. A token identifying a page of results the server should return.
Returns
Type
Description
string
setPageToken
Optional. A token identifying a page of results the server should return.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFilter
Optional. Filtering results. See AIP-160 for
syntax.
Required. The conversation to list messages under.
Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
Please see DataChatServiceClient::conversationName() 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 Gemini Data Analytics V1beta Client - Class ListMessagesRequest (0.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.1 (latest)](/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.ListMessagesRequest)\n- [0.1.0](/php/docs/reference/cloud-geminidataanalytics/0.1.0/V1beta.ListMessagesRequest) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class ListMessagesRequest.\n\nRequest for listing chat messages based on parent and conversation_id.\n\nGenerated from protobuf message `google.cloud.geminidataanalytics.v1beta.ListMessagesRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GeminiDataAnalytics \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The conversation to list messages under.\n\nFormat:\n`projects/{project}/locations/{location}/conversations/{conversation_id}`\n\n### setParent\n\nRequired. The conversation to list messages under.\n\nFormat:\n`projects/{project}/locations/{location}/conversations/{conversation_id}`\n\n### getPageSize\n\nOptional. Requested page size. Server may return fewer items than\nrequested. The max page size is 100. All larger page sizes will be coerced\nto 100. If unspecified, server will pick 50 as an approperiate default.\n\n### setPageSize\n\nOptional. Requested page size. Server may return fewer items than\nrequested. The max page size is 100. All larger page sizes will be coerced\nto 100. If unspecified, server will pick 50 as an approperiate default.\n\n### getPageToken\n\nOptional. A token identifying a page of results the server should return.\n\n### setPageToken\n\nOptional. A token identifying a page of results the server should return.\n\n### getFilter\n\nOptional. Filtering results. See [AIP-160](https://google.aip.dev/160) for\nsyntax.\n\nListMessages allows filtering by:\n\n- create_time (e.g., `createTime \u003e \"2025-01-28T06:51:56-08:00\"`)\n- update_time\n\n### setFilter\n\nOptional. Filtering results. See [AIP-160](https://google.aip.dev/160) for\nsyntax.\n\nListMessages allows filtering by:\n\n- create_time (e.g., `createTime \u003e \"2025-01-28T06:51:56-08:00\"`)\n- update_time\n\n### static::build"]]