public sealed class ListMessagesRequest : IMessage<ListMessagesRequest>, IEquatable<ListMessagesRequest>, IDeepCloneable<ListMessagesRequest>, IBufferMessage, IMessage, IPageRequestReference documentation and code samples for the Data Analytics API with Gemini v1 API class ListMessagesRequest.
Request for listing chat messages based on parent and conversation_id.
Implements
IMessageListMessagesRequest, IEquatableListMessagesRequest, IDeepCloneableListMessagesRequest, IBufferMessage, IMessage, IPageRequestNamespace
Google.Cloud.GeminiDataAnalytics.V1Assembly
Google.Cloud.GeminiDataAnalytics.V1.dll
Constructors
ListMessagesRequest()
public ListMessagesRequest()ListMessagesRequest(ListMessagesRequest)
public ListMessagesRequest(ListMessagesRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ListMessagesRequest |
Properties
Filter
public string Filter { get; set; }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
| Property Value | |
|---|---|
| Type | Description |
string |
|
PageSize
public int PageSize { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
int |
|
PageToken
public string PageToken { get; set; }Optional. A token identifying a page of results the server should return.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Parent
public string Parent { get; set; }Required. The conversation to list messages under.
Format:
projects/{project}/locations/{location}/conversations/{conversation_id}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ParentAsConversationName
public ConversationName ParentAsConversationName { get; set; }ConversationName-typed view over the Parent resource name property.
| Property Value | |
|---|---|
| Type | Description |
ConversationName |
|