Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1 Client class ListMessagesRequest.
Request for listing chat messages based on parent and conversation_id.
Generated from protobuf message google.cloud.geminidataanalytics.v1.ListMessagesRequest
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1Methods
__construct
Constructor.
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 appropriate default.
↳ page_token
string
Optional. A token identifying a page of results the server should return.
↳ filter
string
Optional. Filtering results. See AIP-160
for syntax. ListMessages allows filtering by: * * create_time (e.g., createTime > "2025-01-28T06:51:56-08:00"
) * * update_time
getParent
Required. The conversation to list messages under.
Format: projects/{project}/locations/{location}/conversations/{conversation_id}
string
setParent
Required. The conversation to list messages under.
Format: projects/{project}/locations/{location}/conversations/{conversation_id}
var
string
$this
getPageSize
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 appropriate
default.
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 appropriate
default.
var
int
$this
getPageToken
Optional. A token identifying a page of results the server should return.
string
setPageToken
Optional. A token identifying a page of results the server should return.
var
string
$this
getFilter
Optional. Filtering results. See AIP-160 for syntax.
ListMessages allows filtering by:
- create_time (e.g.,
createTime > "2025-01-28T06:51:56-08:00") - update_time
string
setFilter
Optional. Filtering results. See AIP-160 for syntax.
ListMessages allows filtering by:
- create_time (e.g.,
createTime > "2025-01-28T06:51:56-08:00") - update_time
var
string
$this
static::build
parent
string
Required. The conversation to list messages under.
Format: projects/{project}/locations/{location}/conversations/{conversation_id}
Please see DataChatServiceClient::conversationName()
for help formatting this field.

