blob: 2672217a565908d5e80c7e4af0aca03e250d2b04 [file] [edit]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="discoveryengine_v1beta.html">Discovery Engine API</a> . <a href="discoveryengine_v1beta.projects.html">projects</a> . <a href="discoveryengine_v1beta.projects.locations.html">locations</a> . <a href="discoveryengine_v1beta.projects.locations.dataStores.html">dataStores</a> . <a href="discoveryengine_v1beta.projects.locations.dataStores.conversations.html">conversations</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#converse">converse(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Converses a conversation.</p>
<p class="toc_element">
<code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a Conversation. If the Conversation to create already exists, an ALREADY_EXISTS error is returned.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a Conversation. If the Conversation to delete does not exist, a NOT_FOUND error is returned.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets a Conversation.</p>
<p class="toc_element">
<code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists all Conversations by their parent DataStore.</p>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates a Conversation. Conversation action type cannot be changed. If the Conversation to update does not exist, a NOT_FOUND error is returned.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="converse">converse(name, body=None, x__xgafv=None)</code>
<pre>Converses a conversation.
Args:
name: string, Required. The resource name of the Conversation to get. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. Use `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-` to activate auto session mode, which automatically creates a new conversation inside a ConverseConversation session. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for ConversationalSearchService.ConverseConversation method.
&quot;conversation&quot;: { # External conversation proto definition. # The conversation to be used by auto session only. The name field will be ignored as we automatically assign new name for the conversation in auto session.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the conversation finished.
&quot;messages&quot;: [ # Conversation messages.
{ # Defines a conversation message.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Message creation timestamp.
&quot;reply&quot;: { # Defines a reply message to user. # Search reply.
&quot;references&quot;: [ # References in the reply.
{ # Defines reference in reply.
&quot;anchorText&quot;: &quot;A String&quot;, # Anchor text.
&quot;end&quot;: 42, # Anchor text end index.
&quot;start&quot;: 42, # Anchor text start index.
&quot;uri&quot;: &quot;A String&quot;, # URI link reference.
},
],
&quot;reply&quot;: &quot;A String&quot;, # DEPRECATED: use `summary` instead. Text reply.
&quot;summary&quot;: { # Summary of the top N search result specified by the summary spec. # Summary based on search results.
&quot;safetyAttributes&quot;: { # Safety Attribute categories and their associated confidence scores. # A collection of Safety Attribute categories and their associated confidence scores.
&quot;categories&quot;: [ # The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
&quot;A String&quot;,
],
&quot;scores&quot;: [ # The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
3.14,
],
},
&quot;summarySkippedReasons&quot;: [ # Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
&quot;A String&quot;,
],
&quot;summaryText&quot;: &quot;A String&quot;, # The summary content.
},
},
&quot;userInput&quot;: { # Defines text input. # User text input.
&quot;context&quot;: { # Defines context of the conversation # Conversation context of the input.
&quot;activeDocument&quot;: &quot;A String&quot;, # The current active document the user opened. It contains the document resource reference.
&quot;contextDocuments&quot;: [ # The current list of documents the user is seeing. It contains the document resource references.
&quot;A String&quot;,
],
},
&quot;input&quot;: &quot;A String&quot;, # Text input.
},
},
],
&quot;name&quot;: &quot;A String&quot;, # Immutable. Fully qualified name `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the conversation started.
&quot;state&quot;: &quot;A String&quot;, # The state of the Conversation.
&quot;userPseudoId&quot;: &quot;A String&quot;, # A unique identifier for tracking users.
},
&quot;query&quot;: { # Defines text input. # Required. Current user input.
&quot;context&quot;: { # Defines context of the conversation # Conversation context of the input.
&quot;activeDocument&quot;: &quot;A String&quot;, # The current active document the user opened. It contains the document resource reference.
&quot;contextDocuments&quot;: [ # The current list of documents the user is seeing. It contains the document resource references.
&quot;A String&quot;,
],
},
&quot;input&quot;: &quot;A String&quot;, # Text input.
},
&quot;safeSearch&quot;: True or False, # Whether to turn on safe search.
&quot;servingConfig&quot;: &quot;A String&quot;, # The resource name of the Serving Config to use. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` If this is not set, the default serving config will be used.
&quot;summarySpec&quot;: { # A specification for configuring a summary returned in a search response. # A specification for configuring the summary returned in the response.
&quot;ignoreAdversarialQuery&quot;: True or False, # Specifies whether to filter out adversarial queries. The default value is `false`. Google employs search-query classification to detect adversarial queries. No summary is returned if the search query is classified as an adversarial query. For example, a user might ask a question regarding negative comments about the company or submit a query designed to generate unsafe, policy-violating output. If this field is set to `true`, we skip generating summaries for adversarial queries and return fallback messages instead.
&quot;ignoreNonSummarySeekingQuery&quot;: True or False, # Specifies whether to filter out queries that are not summary-seeking. The default value is `false`. Google employs search-query classification to detect summary-seeking queries. No summary is returned if the search query is classified as a non-summary seeking query. For example, `why is the sky blue` and `Who is the best soccer player in the world?` are summary-seeking queries, but `SFO airport` and `world cup 2026` are not. They are most likely navigational queries. If this field is set to `true`, we skip generating summaries for non-summary seeking queries and return fallback messages instead.
&quot;includeCitations&quot;: True or False, # Specifies whether to include citations in the summary. The default value is `false`. When this field is set to `true`, summaries include in-line citation numbers. Example summary including citations: BigQuery is Google Cloud&#x27;s fully managed and completely serverless enterprise data warehouse [1]. BigQuery supports all data types, works across clouds, and has built-in machine learning and business intelligence, all within a unified platform [2, 3]. The citation numbers refer to the returned search results and are 1-indexed. For example, [1] means that the sentence is attributed to the first search result. [2, 3] means that the sentence is attributed to both the second and third search results.
&quot;languageCode&quot;: &quot;A String&quot;, # Language code for Summary. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature.
&quot;summaryResultCount&quot;: 42, # The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most five results can be used to generate a summary.
},
&quot;userLabels&quot;: { # The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
&quot;a_key&quot;: &quot;A String&quot;,
},
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for ConversationalSearchService.ConverseConversation method.
&quot;conversation&quot;: { # External conversation proto definition. # Updated conversation including the answer.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the conversation finished.
&quot;messages&quot;: [ # Conversation messages.
{ # Defines a conversation message.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Message creation timestamp.
&quot;reply&quot;: { # Defines a reply message to user. # Search reply.
&quot;references&quot;: [ # References in the reply.
{ # Defines reference in reply.
&quot;anchorText&quot;: &quot;A String&quot;, # Anchor text.
&quot;end&quot;: 42, # Anchor text end index.
&quot;start&quot;: 42, # Anchor text start index.
&quot;uri&quot;: &quot;A String&quot;, # URI link reference.
},
],
&quot;reply&quot;: &quot;A String&quot;, # DEPRECATED: use `summary` instead. Text reply.
&quot;summary&quot;: { # Summary of the top N search result specified by the summary spec. # Summary based on search results.
&quot;safetyAttributes&quot;: { # Safety Attribute categories and their associated confidence scores. # A collection of Safety Attribute categories and their associated confidence scores.
&quot;categories&quot;: [ # The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
&quot;A String&quot;,
],
&quot;scores&quot;: [ # The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
3.14,
],
},
&quot;summarySkippedReasons&quot;: [ # Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
&quot;A String&quot;,
],
&quot;summaryText&quot;: &quot;A String&quot;, # The summary content.
},
},
&quot;userInput&quot;: { # Defines text input. # User text input.
&quot;context&quot;: { # Defines context of the conversation # Conversation context of the input.
&quot;activeDocument&quot;: &quot;A String&quot;, # The current active document the user opened. It contains the document resource reference.
&quot;contextDocuments&quot;: [ # The current list of documents the user is seeing. It contains the document resource references.
&quot;A String&quot;,
],
},
&quot;input&quot;: &quot;A String&quot;, # Text input.
},
},
],
&quot;name&quot;: &quot;A String&quot;, # Immutable. Fully qualified name `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the conversation started.
&quot;state&quot;: &quot;A String&quot;, # The state of the Conversation.
&quot;userPseudoId&quot;: &quot;A String&quot;, # A unique identifier for tracking users.
},
&quot;relatedQuestions&quot;: [ # Suggested related questions.
&quot;A String&quot;,
],
&quot;reply&quot;: { # Defines a reply message to user. # Answer to the current query.
&quot;references&quot;: [ # References in the reply.
{ # Defines reference in reply.
&quot;anchorText&quot;: &quot;A String&quot;, # Anchor text.
&quot;end&quot;: 42, # Anchor text end index.
&quot;start&quot;: 42, # Anchor text start index.
&quot;uri&quot;: &quot;A String&quot;, # URI link reference.
},
],
&quot;reply&quot;: &quot;A String&quot;, # DEPRECATED: use `summary` instead. Text reply.
&quot;summary&quot;: { # Summary of the top N search result specified by the summary spec. # Summary based on search results.
&quot;safetyAttributes&quot;: { # Safety Attribute categories and their associated confidence scores. # A collection of Safety Attribute categories and their associated confidence scores.
&quot;categories&quot;: [ # The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
&quot;A String&quot;,
],
&quot;scores&quot;: [ # The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
3.14,
],
},
&quot;summarySkippedReasons&quot;: [ # Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
&quot;A String&quot;,
],
&quot;summaryText&quot;: &quot;A String&quot;, # The summary content.
},
},
&quot;searchResults&quot;: [ # Search Results.
{ # Represents the search results.
&quot;document&quot;: { # Document captures all raw metadata information of items to be recommended or searched. # The document data snippet in the search response. Only fields that are marked as retrievable are populated.
&quot;content&quot;: { # Unstructured data linked to this document. # The unstructured data linked to this document. Content must be set if this document is under a `CONTENT_REQUIRED` data store.
&quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `text/plain` (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
&quot;rawBytes&quot;: &quot;A String&quot;, # The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, `abc123!?$*&amp;()&#x27;-=@~` should be represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
&quot;uri&quot;: &quot;A String&quot;, # The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/to/file`) are supported. The maximum file size is 100 MB.
},
&quot;derivedStructData&quot;: { # Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;id&quot;: &quot;A String&quot;, # Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
&quot;jsonData&quot;: &quot;A String&quot;, # The JSON string representation of the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown.
&quot;name&quot;: &quot;A String&quot;, # Immutable. The full resource name of the document. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
&quot;parentDocumentId&quot;: &quot;A String&quot;, # The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
&quot;schemaId&quot;: &quot;A String&quot;, # The identifier of the schema located in the same data store.
&quot;structData&quot;: { # The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
},
&quot;id&quot;: &quot;A String&quot;, # Document.id of the searched Document.
&quot;modelScores&quot;: { # Google provided available scores.
&quot;a_key&quot;: { # Double list.
&quot;values&quot;: [ # Double values.
3.14,
],
},
},
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
<pre>Creates a Conversation. If the Conversation to create already exists, an ALREADY_EXISTS error is returned.
Args:
parent: string, Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` (required)
body: object, The request body.
The object takes the form of:
{ # External conversation proto definition.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the conversation finished.
&quot;messages&quot;: [ # Conversation messages.
{ # Defines a conversation message.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Message creation timestamp.
&quot;reply&quot;: { # Defines a reply message to user. # Search reply.
&quot;references&quot;: [ # References in the reply.
{ # Defines reference in reply.
&quot;anchorText&quot;: &quot;A String&quot;, # Anchor text.
&quot;end&quot;: 42, # Anchor text end index.
&quot;start&quot;: 42, # Anchor text start index.
&quot;uri&quot;: &quot;A String&quot;, # URI link reference.
},
],
&quot;reply&quot;: &quot;A String&quot;, # DEPRECATED: use `summary` instead. Text reply.
&quot;summary&quot;: { # Summary of the top N search result specified by the summary spec. # Summary based on search results.
&quot;safetyAttributes&quot;: { # Safety Attribute categories and their associated confidence scores. # A collection of Safety Attribute categories and their associated confidence scores.
&quot;categories&quot;: [ # The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
&quot;A String&quot;,
],
&quot;scores&quot;: [ # The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
3.14,
],
},
&quot;summarySkippedReasons&quot;: [ # Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
&quot;A String&quot;,
],
&quot;summaryText&quot;: &quot;A String&quot;, # The summary content.
},
},
&quot;userInput&quot;: { # Defines text input. # User text input.
&quot;context&quot;: { # Defines context of the conversation # Conversation context of the input.
&quot;activeDocument&quot;: &quot;A String&quot;, # The current active document the user opened. It contains the document resource reference.
&quot;contextDocuments&quot;: [ # The current list of documents the user is seeing. It contains the document resource references.
&quot;A String&quot;,
],
},
&quot;input&quot;: &quot;A String&quot;, # Text input.
},
},
],
&quot;name&quot;: &quot;A String&quot;, # Immutable. Fully qualified name `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the conversation started.
&quot;state&quot;: &quot;A String&quot;, # The state of the Conversation.
&quot;userPseudoId&quot;: &quot;A String&quot;, # A unique identifier for tracking users.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # External conversation proto definition.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the conversation finished.
&quot;messages&quot;: [ # Conversation messages.
{ # Defines a conversation message.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Message creation timestamp.
&quot;reply&quot;: { # Defines a reply message to user. # Search reply.
&quot;references&quot;: [ # References in the reply.
{ # Defines reference in reply.
&quot;anchorText&quot;: &quot;A String&quot;, # Anchor text.
&quot;end&quot;: 42, # Anchor text end index.
&quot;start&quot;: 42, # Anchor text start index.
&quot;uri&quot;: &quot;A String&quot;, # URI link reference.
},
],
&quot;reply&quot;: &quot;A String&quot;, # DEPRECATED: use `summary` instead. Text reply.
&quot;summary&quot;: { # Summary of the top N search result specified by the summary spec. # Summary based on search results.
&quot;safetyAttributes&quot;: { # Safety Attribute categories and their associated confidence scores. # A collection of Safety Attribute categories and their associated confidence scores.
&quot;categories&quot;: [ # The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
&quot;A String&quot;,
],
&quot;scores&quot;: [ # The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
3.14,
],
},
&quot;summarySkippedReasons&quot;: [ # Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
&quot;A String&quot;,
],
&quot;summaryText&quot;: &quot;A String&quot;, # The summary content.
},
},
&quot;userInput&quot;: { # Defines text input. # User text input.
&quot;context&quot;: { # Defines context of the conversation # Conversation context of the input.
&quot;activeDocument&quot;: &quot;A String&quot;, # The current active document the user opened. It contains the document resource reference.
&quot;contextDocuments&quot;: [ # The current list of documents the user is seeing. It contains the document resource references.
&quot;A String&quot;,
],
},
&quot;input&quot;: &quot;A String&quot;, # Text input.
},
},
],
&quot;name&quot;: &quot;A String&quot;, # Immutable. Fully qualified name `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the conversation started.
&quot;state&quot;: &quot;A String&quot;, # The state of the Conversation.
&quot;userPseudoId&quot;: &quot;A String&quot;, # A unique identifier for tracking users.
}</pre>
</div>
<div class="method">
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
<pre>Deletes a Conversation. If the Conversation to delete does not exist, a NOT_FOUND error is returned.
Args:
name: string, Required. The resource name of the Conversation to delete. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Gets a Conversation.
Args:
name: string, Required. The resource name of the Conversation to get. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # External conversation proto definition.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the conversation finished.
&quot;messages&quot;: [ # Conversation messages.
{ # Defines a conversation message.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Message creation timestamp.
&quot;reply&quot;: { # Defines a reply message to user. # Search reply.
&quot;references&quot;: [ # References in the reply.
{ # Defines reference in reply.
&quot;anchorText&quot;: &quot;A String&quot;, # Anchor text.
&quot;end&quot;: 42, # Anchor text end index.
&quot;start&quot;: 42, # Anchor text start index.
&quot;uri&quot;: &quot;A String&quot;, # URI link reference.
},
],
&quot;reply&quot;: &quot;A String&quot;, # DEPRECATED: use `summary` instead. Text reply.
&quot;summary&quot;: { # Summary of the top N search result specified by the summary spec. # Summary based on search results.
&quot;safetyAttributes&quot;: { # Safety Attribute categories and their associated confidence scores. # A collection of Safety Attribute categories and their associated confidence scores.
&quot;categories&quot;: [ # The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
&quot;A String&quot;,
],
&quot;scores&quot;: [ # The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
3.14,
],
},
&quot;summarySkippedReasons&quot;: [ # Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
&quot;A String&quot;,
],
&quot;summaryText&quot;: &quot;A String&quot;, # The summary content.
},
},
&quot;userInput&quot;: { # Defines text input. # User text input.
&quot;context&quot;: { # Defines context of the conversation # Conversation context of the input.
&quot;activeDocument&quot;: &quot;A String&quot;, # The current active document the user opened. It contains the document resource reference.
&quot;contextDocuments&quot;: [ # The current list of documents the user is seeing. It contains the document resource references.
&quot;A String&quot;,
],
},
&quot;input&quot;: &quot;A String&quot;, # Text input.
},
},
],
&quot;name&quot;: &quot;A String&quot;, # Immutable. Fully qualified name `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the conversation started.
&quot;state&quot;: &quot;A String&quot;, # The state of the Conversation.
&quot;userPseudoId&quot;: &quot;A String&quot;, # A unique identifier for tracking users.
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>Lists all Conversations by their parent DataStore.
Args:
parent: string, Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}` (required)
filter: string, A filter to apply on the list results. The supported features are: user_pseudo_id, state. Example: &quot;user_pseudo_id = some_id&quot;
orderBy: string, A comma-separated list of fields to order by, sorted in ascending order. Use &quot;desc&quot; after a field name for descending. Supported fields: * `update_time` * `create_time` * `conversation_name` Example: &quot;update_time desc&quot; &quot;create_time&quot;
pageSize: integer, Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000.
pageToken: string, A page token, received from a previous `ListConversations` call. Provide this to retrieve the subsequent page.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response for ListConversations method.
&quot;conversations&quot;: [ # All the Conversations for a given data store.
{ # External conversation proto definition.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the conversation finished.
&quot;messages&quot;: [ # Conversation messages.
{ # Defines a conversation message.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Message creation timestamp.
&quot;reply&quot;: { # Defines a reply message to user. # Search reply.
&quot;references&quot;: [ # References in the reply.
{ # Defines reference in reply.
&quot;anchorText&quot;: &quot;A String&quot;, # Anchor text.
&quot;end&quot;: 42, # Anchor text end index.
&quot;start&quot;: 42, # Anchor text start index.
&quot;uri&quot;: &quot;A String&quot;, # URI link reference.
},
],
&quot;reply&quot;: &quot;A String&quot;, # DEPRECATED: use `summary` instead. Text reply.
&quot;summary&quot;: { # Summary of the top N search result specified by the summary spec. # Summary based on search results.
&quot;safetyAttributes&quot;: { # Safety Attribute categories and their associated confidence scores. # A collection of Safety Attribute categories and their associated confidence scores.
&quot;categories&quot;: [ # The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
&quot;A String&quot;,
],
&quot;scores&quot;: [ # The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
3.14,
],
},
&quot;summarySkippedReasons&quot;: [ # Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
&quot;A String&quot;,
],
&quot;summaryText&quot;: &quot;A String&quot;, # The summary content.
},
},
&quot;userInput&quot;: { # Defines text input. # User text input.
&quot;context&quot;: { # Defines context of the conversation # Conversation context of the input.
&quot;activeDocument&quot;: &quot;A String&quot;, # The current active document the user opened. It contains the document resource reference.
&quot;contextDocuments&quot;: [ # The current list of documents the user is seeing. It contains the document resource references.
&quot;A String&quot;,
],
},
&quot;input&quot;: &quot;A String&quot;, # Text input.
},
},
],
&quot;name&quot;: &quot;A String&quot;, # Immutable. Fully qualified name `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the conversation started.
&quot;state&quot;: &quot;A String&quot;, # The state of the Conversation.
&quot;userPseudoId&quot;: &quot;A String&quot;, # A unique identifier for tracking users.
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token, if not returned indicates the last page.
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next()</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
<div class="method">
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
<pre>Updates a Conversation. Conversation action type cannot be changed. If the Conversation to update does not exist, a NOT_FOUND error is returned.
Args:
name: string, Immutable. Fully qualified name `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*` (required)
body: object, The request body.
The object takes the form of:
{ # External conversation proto definition.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the conversation finished.
&quot;messages&quot;: [ # Conversation messages.
{ # Defines a conversation message.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Message creation timestamp.
&quot;reply&quot;: { # Defines a reply message to user. # Search reply.
&quot;references&quot;: [ # References in the reply.
{ # Defines reference in reply.
&quot;anchorText&quot;: &quot;A String&quot;, # Anchor text.
&quot;end&quot;: 42, # Anchor text end index.
&quot;start&quot;: 42, # Anchor text start index.
&quot;uri&quot;: &quot;A String&quot;, # URI link reference.
},
],
&quot;reply&quot;: &quot;A String&quot;, # DEPRECATED: use `summary` instead. Text reply.
&quot;summary&quot;: { # Summary of the top N search result specified by the summary spec. # Summary based on search results.
&quot;safetyAttributes&quot;: { # Safety Attribute categories and their associated confidence scores. # A collection of Safety Attribute categories and their associated confidence scores.
&quot;categories&quot;: [ # The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
&quot;A String&quot;,
],
&quot;scores&quot;: [ # The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
3.14,
],
},
&quot;summarySkippedReasons&quot;: [ # Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
&quot;A String&quot;,
],
&quot;summaryText&quot;: &quot;A String&quot;, # The summary content.
},
},
&quot;userInput&quot;: { # Defines text input. # User text input.
&quot;context&quot;: { # Defines context of the conversation # Conversation context of the input.
&quot;activeDocument&quot;: &quot;A String&quot;, # The current active document the user opened. It contains the document resource reference.
&quot;contextDocuments&quot;: [ # The current list of documents the user is seeing. It contains the document resource references.
&quot;A String&quot;,
],
},
&quot;input&quot;: &quot;A String&quot;, # Text input.
},
},
],
&quot;name&quot;: &quot;A String&quot;, # Immutable. Fully qualified name `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the conversation started.
&quot;state&quot;: &quot;A String&quot;, # The state of the Conversation.
&quot;userPseudoId&quot;: &quot;A String&quot;, # A unique identifier for tracking users.
}
updateMask: string, Indicates which fields in the provided Conversation to update. The following are NOT supported: * conversation.name If not set or empty, all supported fields are updated.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # External conversation proto definition.
&quot;endTime&quot;: &quot;A String&quot;, # Output only. The time the conversation finished.
&quot;messages&quot;: [ # Conversation messages.
{ # Defines a conversation message.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Message creation timestamp.
&quot;reply&quot;: { # Defines a reply message to user. # Search reply.
&quot;references&quot;: [ # References in the reply.
{ # Defines reference in reply.
&quot;anchorText&quot;: &quot;A String&quot;, # Anchor text.
&quot;end&quot;: 42, # Anchor text end index.
&quot;start&quot;: 42, # Anchor text start index.
&quot;uri&quot;: &quot;A String&quot;, # URI link reference.
},
],
&quot;reply&quot;: &quot;A String&quot;, # DEPRECATED: use `summary` instead. Text reply.
&quot;summary&quot;: { # Summary of the top N search result specified by the summary spec. # Summary based on search results.
&quot;safetyAttributes&quot;: { # Safety Attribute categories and their associated confidence scores. # A collection of Safety Attribute categories and their associated confidence scores.
&quot;categories&quot;: [ # The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
&quot;A String&quot;,
],
&quot;scores&quot;: [ # The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
3.14,
],
},
&quot;summarySkippedReasons&quot;: [ # Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
&quot;A String&quot;,
],
&quot;summaryText&quot;: &quot;A String&quot;, # The summary content.
},
},
&quot;userInput&quot;: { # Defines text input. # User text input.
&quot;context&quot;: { # Defines context of the conversation # Conversation context of the input.
&quot;activeDocument&quot;: &quot;A String&quot;, # The current active document the user opened. It contains the document resource reference.
&quot;contextDocuments&quot;: [ # The current list of documents the user is seeing. It contains the document resource references.
&quot;A String&quot;,
],
},
&quot;input&quot;: &quot;A String&quot;, # Text input.
},
},
],
&quot;name&quot;: &quot;A String&quot;, # Immutable. Fully qualified name `project/*/locations/global/collections/{collection}/dataStore/*/conversations/*`
&quot;startTime&quot;: &quot;A String&quot;, # Output only. The time the conversation started.
&quot;state&quot;: &quot;A String&quot;, # The state of the Conversation.
&quot;userPseudoId&quot;: &quot;A String&quot;, # A unique identifier for tracking users.
}</pre>
</div>
</body></html>