Skip to content

Commit f596360

Browse files
feat(dialogflow): update the api
#### dialogflow:v2 The following keys were added: - resources.projects.resources.conversationDatasets.methods.get (Total Keys: 11) - resources.projects.resources.conversationDatasets.methods.importConversationData (Total Keys: 12) - resources.projects.resources.conversationDatasets.methods.list (Total Keys: 16) - resources.projects.resources.conversationModels.methods.create (Total Keys: 12) - resources.projects.resources.conversationModels.methods.delete (Total Keys: 11) - resources.projects.resources.conversationModels.methods.deploy (Total Keys: 12) - resources.projects.resources.conversationModels.methods.get (Total Keys: 11) - resources.projects.resources.conversationModels.methods.list (Total Keys: 16) - resources.projects.resources.conversationModels.methods.undeploy (Total Keys: 12) - resources.projects.resources.conversationModels.resources.evaluations.methods.get (Total Keys: 11) - resources.projects.resources.conversationModels.resources.evaluations.methods.list (Total Keys: 16) - resources.projects.resources.conversationProfiles.methods.clearSuggestionFeatureConfig (Total Keys: 12) - resources.projects.resources.conversationProfiles.methods.setSuggestionFeatureConfig (Total Keys: 12) - resources.projects.resources.locations.resources.conversationDatasets.methods.create (Total Keys: 12) - resources.projects.resources.locations.resources.conversationDatasets.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.conversationDatasets.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.conversationDatasets.methods.importConversationData (Total Keys: 12) - resources.projects.resources.locations.resources.conversationDatasets.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.conversationModels.methods.create (Total Keys: 12) - resources.projects.resources.locations.resources.conversationModels.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.conversationModels.methods.deploy (Total Keys: 12) - resources.projects.resources.locations.resources.conversationModels.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.conversationModels.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.conversationModels.methods.undeploy (Total Keys: 12) - resources.projects.resources.locations.resources.conversationModels.resources.evaluations.methods.create (Total Keys: 12) - resources.projects.resources.locations.resources.conversationModels.resources.evaluations.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.conversationModels.resources.evaluations.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.conversationProfiles.methods.clearSuggestionFeatureConfig (Total Keys: 12) - resources.projects.resources.locations.resources.conversationProfiles.methods.setSuggestionFeatureConfig (Total Keys: 12) - schemas.GoogleCloudDialogflowV2ArticleSuggestionModelMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest (Total Keys: 4) - schemas.GoogleCloudDialogflowV2ConversationDataset (Total Keys: 15) - schemas.GoogleCloudDialogflowV2ConversationInfo (Total Keys: 3) - schemas.GoogleCloudDialogflowV2ConversationModel (Total Keys: 24) - schemas.GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata (Total Keys: 2) - schemas.GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2CreateConversationModelOperationMetadata (Total Keys: 6) - schemas.GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata (Total Keys: 2) - schemas.GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2DeployConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2DeployConversationModelRequest (Total Keys: 2) - schemas.GoogleCloudDialogflowV2Document.properties.state (Total Keys: 2) - schemas.GoogleCloudDialogflowV2EvaluationConfig (Total Keys: 16) - schemas.GoogleCloudDialogflowV2ExportOperationMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2ImportConversationDataOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2ImportConversationDataOperationResponse (Total Keys: 5) - schemas.GoogleCloudDialogflowV2ImportConversationDataRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2InputConfig (Total Keys: 3) - schemas.GoogleCloudDialogflowV2InputDataset (Total Keys: 3) - schemas.GoogleCloudDialogflowV2KnowledgeOperationMetadata.properties.exportOperationMetadata.$ref (Total Keys: 1) - schemas.GoogleCloudDialogflowV2ListConversationDatasetsResponse (Total Keys: 5) - schemas.GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse (Total Keys: 5) - schemas.GoogleCloudDialogflowV2ListConversationModelsResponse (Total Keys: 5) - schemas.GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest (Total Keys: 4) - schemas.GoogleCloudDialogflowV2SmartReplyMetrics (Total Keys: 14) - schemas.GoogleCloudDialogflowV2SmartReplyModelMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2UndeployConversationModelRequest (Total Keys: 2) - schemas.GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2beta1ExportOperationMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1GcsDestination (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata.properties.exportOperationMetadata.$ref (Total Keys: 1) - schemas.GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata (Total Keys: 7) #### dialogflow:v2beta1 The following keys were added: - resources.projects.resources.conversationProfiles.methods.clearSuggestionFeatureConfig (Total Keys: 12) - resources.projects.resources.conversationProfiles.methods.setSuggestionFeatureConfig (Total Keys: 12) - resources.projects.resources.locations.resources.conversationProfiles.methods.clearSuggestionFeatureConfig (Total Keys: 12) - resources.projects.resources.locations.resources.conversationProfiles.methods.setSuggestionFeatureConfig (Total Keys: 12) - schemas.GoogleCloudDialogflowV2ArticleSuggestionModelMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2ConversationModel (Total Keys: 14) - schemas.GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata (Total Keys: 2) - schemas.GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2CreateConversationModelOperationMetadata (Total Keys: 6) - schemas.GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata (Total Keys: 2) - schemas.GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2DeployConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2ExportOperationMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2GcsDestination (Total Keys: 3) - schemas.GoogleCloudDialogflowV2ImportConversationDataOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2ImportConversationDataOperationResponse (Total Keys: 5) - schemas.GoogleCloudDialogflowV2InputDataset (Total Keys: 3) - schemas.GoogleCloudDialogflowV2KnowledgeOperationMetadata.properties.exportOperationMetadata.$ref (Total Keys: 1) - schemas.GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2SmartReplyModelMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest (Total Keys: 4) - schemas.GoogleCloudDialogflowV2beta1Document.properties.state (Total Keys: 2) - schemas.GoogleCloudDialogflowV2beta1ExportOperationMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1GcsDestination (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata.properties.exportOperationMetadata.$ref (Total Keys: 1) - schemas.GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest (Total Keys: 4) #### dialogflow:v3 The following keys were added: - schemas.GoogleCloudDialogflowV2ArticleSuggestionModelMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2ConversationModel (Total Keys: 14) - schemas.GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata (Total Keys: 2) - schemas.GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2CreateConversationModelOperationMetadata (Total Keys: 6) - schemas.GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata (Total Keys: 2) - schemas.GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2DeployConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2ExportOperationMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2GcsDestination (Total Keys: 3) - schemas.GoogleCloudDialogflowV2ImportConversationDataOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2ImportConversationDataOperationResponse (Total Keys: 5) - schemas.GoogleCloudDialogflowV2InputDataset (Total Keys: 3) - schemas.GoogleCloudDialogflowV2KnowledgeOperationMetadata.properties.exportOperationMetadata.$ref (Total Keys: 1) - schemas.GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2SmartReplyModelMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2beta1ExportOperationMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1GcsDestination (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata.properties.exportOperationMetadata.$ref (Total Keys: 1) - schemas.GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata (Total Keys: 7) #### dialogflow:v3beta1 The following keys were added: - schemas.GoogleCloudDialogflowV2ArticleSuggestionModelMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2ConversationModel (Total Keys: 14) - schemas.GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata (Total Keys: 2) - schemas.GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2CreateConversationModelOperationMetadata (Total Keys: 6) - schemas.GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata (Total Keys: 2) - schemas.GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2DeployConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2ExportOperationMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2GcsDestination (Total Keys: 3) - schemas.GoogleCloudDialogflowV2ImportConversationDataOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2ImportConversationDataOperationResponse (Total Keys: 5) - schemas.GoogleCloudDialogflowV2InputDataset (Total Keys: 3) - schemas.GoogleCloudDialogflowV2KnowledgeOperationMetadata.properties.exportOperationMetadata.$ref (Total Keys: 1) - schemas.GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2SmartReplyModelMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata (Total Keys: 5) - schemas.GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata (Total Keys: 7) - schemas.GoogleCloudDialogflowV2beta1ExportOperationMetadata (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1GcsDestination (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata.properties.exportOperationMetadata.$ref (Total Keys: 1) - schemas.GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata (Total Keys: 7)
1 parent b8836f7 commit f596360

22 files changed

+6858
-877
lines changed

docs/dyn/dialogflow_v2.projects.agent.knowledgeBases.documents.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ <h3>Method Details</h3>
138138
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The MIME type of this document.
139139
&quot;name&quot;: &quot;A String&quot;, # Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.
140140
&quot;rawContent&quot;: &quot;A String&quot;, # The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types.
141+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the document.
141142
}
142143

143144
x__xgafv: string, V1 error format.
@@ -243,6 +244,7 @@ <h3>Method Details</h3>
243244
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The MIME type of this document.
244245
&quot;name&quot;: &quot;A String&quot;, # Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.
245246
&quot;rawContent&quot;: &quot;A String&quot;, # The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types.
247+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the document.
246248
}</pre>
247249
</div>
248250

@@ -290,6 +292,7 @@ <h3>Method Details</h3>
290292
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The MIME type of this document.
291293
&quot;name&quot;: &quot;A String&quot;, # Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.
292294
&quot;rawContent&quot;: &quot;A String&quot;, # The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types.
295+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the document.
293296
},
294297
],
295298
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
@@ -344,6 +347,7 @@ <h3>Method Details</h3>
344347
&quot;mimeType&quot;: &quot;A String&quot;, # Required. The MIME type of this document.
345348
&quot;name&quot;: &quot;A String&quot;, # Optional. The document resource name. The name must be empty when creating a document. Format: `projects//locations//knowledgeBases//documents/`.
346349
&quot;rawContent&quot;: &quot;A String&quot;, # The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types.
350+
&quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the document.
347351
}
348352

349353
updateMask: string, Optional. Not specified means `update all`. Currently, only `display_name` can be updated, an InvalidArgument will be returned for attempting to update other fields.
Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, h2, h3 {
50+
border-bottom: solid #CCC 1px;
51+
}
52+
53+
.toc_element {
54+
margin-top: 0.5em;
55+
}
56+
57+
.firstline {
58+
margin-left: 2 em;
59+
}
60+
61+
.method {
62+
margin-top: 1em;
63+
border: solid 1px #CCC;
64+
padding: 1em;
65+
background: #EEE;
66+
}
67+
68+
.details {
69+
font-weight: bold;
70+
font-size: 14px;
71+
}
72+
73+
</style>
74+
75+
<h1><a href="dialogflow_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.conversationDatasets.html">conversationDatasets</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Retrieves the specified conversation dataset.</p>
83+
<p class="toc_element">
84+
<code><a href="#importConversationData">importConversationData(name, body=None, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: ImportConversationDataOperationMetadata - `response`: ImportConversationDataOperationResponse</p>
86+
<p class="toc_element">
87+
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
88+
<p class="firstline">Returns the list of all conversation datasets in the specified project and location.</p>
89+
<p class="toc_element">
90+
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91+
<p class="firstline">Retrieves the next page of results.</p>
92+
<h3>Method Details</h3>
93+
<div class="method">
94+
<code class="details" id="close">close()</code>
95+
<pre>Close httplib2 connections.</pre>
96+
</div>
97+
98+
<div class="method">
99+
<code class="details" id="get">get(name, x__xgafv=None)</code>
100+
<pre>Retrieves the specified conversation dataset.
101+
102+
Args:
103+
name: string, Required. The conversation dataset to retrieve. Format: `projects//locations//conversationDatasets/` (required)
104+
x__xgafv: string, V1 error format.
105+
Allowed values
106+
1 - v1 error format
107+
2 - v2 error format
108+
109+
Returns:
110+
An object of the form:
111+
112+
{ # Represents a conversation dataset that a user imports raw data into. The data inside ConversationDataset can not be changed after ImportConversationData finishes (and calling ImportConversationData on a dataset that already has data is not allowed).
113+
&quot;conversationCount&quot;: &quot;A String&quot;, # Output only. The number of conversations this conversation dataset contains.
114+
&quot;conversationInfo&quot;: { # Represents metadata of a conversation. # Output only. Metadata set during conversation data import.
115+
&quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code of the conversation data within this dataset. See https://cloud.google.com/apis/design/standard_fields for more information. Supports all UTF-8 languages.
116+
},
117+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation time of this dataset.
118+
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the dataset. Maximum of 10000 bytes.
119+
&quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the dataset. Maximum of 64 bytes.
120+
&quot;inputConfig&quot;: { # Represents the configuration of importing a set of conversation files in Google Cloud Storage. # Output only. Input configurations set during conversation data import.
121+
&quot;gcsSource&quot;: { # Google Cloud Storage location for the inputs. # The Cloud Storage URI has the form gs:////agent*.json. Wildcards are allowed and will be expanded into all matched JSON files, which will be read as one conversation per file.
122+
&quot;uris&quot;: [ # Required. Google Cloud Storage URIs for the inputs. A URI is of the form: gs://bucket/object-prefix-or-name Whether a prefix or name is used depends on the use case.
123+
&quot;A String&quot;,
124+
],
125+
},
126+
},
127+
&quot;name&quot;: &quot;A String&quot;, # Output only. ConversationDataset resource name. Format: `projects//locations//conversationDatasets/`
128+
}</pre>
129+
</div>
130+
131+
<div class="method">
132+
<code class="details" id="importConversationData">importConversationData(name, body=None, x__xgafv=None)</code>
133+
<pre>Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: ImportConversationDataOperationMetadata - `response`: ImportConversationDataOperationResponse
134+
135+
Args:
136+
name: string, Required. Dataset resource name. Format: `projects//locations//conversationDatasets/` (required)
137+
body: object, The request body.
138+
The object takes the form of:
139+
140+
{ # The request message for ConversationDatasets.ImportConversationData.
141+
&quot;inputConfig&quot;: { # Represents the configuration of importing a set of conversation files in Google Cloud Storage. # Required. Configuration describing where to import data from.
142+
&quot;gcsSource&quot;: { # Google Cloud Storage location for the inputs. # The Cloud Storage URI has the form gs:////agent*.json. Wildcards are allowed and will be expanded into all matched JSON files, which will be read as one conversation per file.
143+
&quot;uris&quot;: [ # Required. Google Cloud Storage URIs for the inputs. A URI is of the form: gs://bucket/object-prefix-or-name Whether a prefix or name is used depends on the use case.
144+
&quot;A String&quot;,
145+
],
146+
},
147+
},
148+
}
149+
150+
x__xgafv: string, V1 error format.
151+
Allowed values
152+
1 - v1 error format
153+
2 - v2 error format
154+
155+
Returns:
156+
An object of the form:
157+
158+
{ # This resource represents a long-running operation that is the result of a network API call.
159+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
160+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
161+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
162+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
163+
{
164+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
165+
},
166+
],
167+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
168+
},
169+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
170+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
171+
},
172+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
173+
&quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
174+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
175+
},
176+
}</pre>
177+
</div>
178+
179+
<div class="method">
180+
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
181+
<pre>Returns the list of all conversation datasets in the specified project and location.
182+
183+
Args:
184+
parent: string, Required. The project and location name to list all conversation datasets for. Format: `projects//locations/` (required)
185+
pageSize: integer, Optional. Maximum number of conversation datasets to return in a single page. By default 100 and at most 1000.
186+
pageToken: string, Optional. The next_page_token value returned from a previous list request.
187+
x__xgafv: string, V1 error format.
188+
Allowed values
189+
1 - v1 error format
190+
2 - v2 error format
191+
192+
Returns:
193+
An object of the form:
194+
195+
{ # The response message for ConversationDatasets.ListConversationDatasets.
196+
&quot;conversationDatasets&quot;: [ # The list of datasets to return.
197+
{ # Represents a conversation dataset that a user imports raw data into. The data inside ConversationDataset can not be changed after ImportConversationData finishes (and calling ImportConversationData on a dataset that already has data is not allowed).
198+
&quot;conversationCount&quot;: &quot;A String&quot;, # Output only. The number of conversations this conversation dataset contains.
199+
&quot;conversationInfo&quot;: { # Represents metadata of a conversation. # Output only. Metadata set during conversation data import.
200+
&quot;languageCode&quot;: &quot;A String&quot;, # Optional. The language code of the conversation data within this dataset. See https://cloud.google.com/apis/design/standard_fields for more information. Supports all UTF-8 languages.
201+
},
202+
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation time of this dataset.
203+
&quot;description&quot;: &quot;A String&quot;, # Optional. The description of the dataset. Maximum of 10000 bytes.
204+
&quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the dataset. Maximum of 64 bytes.
205+
&quot;inputConfig&quot;: { # Represents the configuration of importing a set of conversation files in Google Cloud Storage. # Output only. Input configurations set during conversation data import.
206+
&quot;gcsSource&quot;: { # Google Cloud Storage location for the inputs. # The Cloud Storage URI has the form gs:////agent*.json. Wildcards are allowed and will be expanded into all matched JSON files, which will be read as one conversation per file.
207+
&quot;uris&quot;: [ # Required. Google Cloud Storage URIs for the inputs. A URI is of the form: gs://bucket/object-prefix-or-name Whether a prefix or name is used depends on the use case.
208+
&quot;A String&quot;,
209+
],
210+
},
211+
},
212+
&quot;name&quot;: &quot;A String&quot;, # Output only. ConversationDataset resource name. Format: `projects//locations//conversationDatasets/`
213+
},
214+
],
215+
&quot;nextPageToken&quot;: &quot;A String&quot;, # The token to use to retrieve the next page of results, or empty if there are no more results in the list.
216+
}</pre>
217+
</div>
218+
219+
<div class="method">
220+
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
221+
<pre>Retrieves the next page of results.
222+
223+
Args:
224+
previous_request: The request for the previous page. (required)
225+
previous_response: The response from the request for the previous page. (required)
226+
227+
Returns:
228+
A request object that you can call &#x27;execute()&#x27; on to request the next
229+
page. Returns None if there are no more items in the collection.
230+
</pre>
231+
</div>
232+
233+
</body></html>

0 commit comments

Comments
 (0)