Skip to content

Commit f95bb05

Browse files
feat(dialogflow): update the api
#### dialogflow:v2 The following keys were added: - resources.projects.resources.locations.methods.getEncryptionSpec (Total Keys: 11) - resources.projects.resources.locations.resources.encryptionSpec.methods.initialize (Total Keys: 12) - schemas.GoogleCloudDialogflowCxV3EventHandler.properties.targetPlaybook.type (Total Keys: 1) - schemas.GoogleCloudDialogflowCxV3beta1EventHandler.properties.targetPlaybook.type (Total Keys: 1) - schemas.GoogleCloudDialogflowV2EncryptionSpec (Total Keys: 4) - schemas.GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata (Total Keys: 4) - schemas.GoogleCloudDialogflowV2InitializeEncryptionSpecRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1EncryptionSpec (Total Keys: 4) - schemas.GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata (Total Keys: 4) - schemas.GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1Message.properties.responseMessages (Total Keys: 2) - schemas.GoogleCloudDialogflowV2beta1ResponseMessage (Total Keys: 32) #### dialogflow:v2beta1 The following keys were added: - resources.projects.resources.locations.methods.getEncryptionSpec (Total Keys: 11) - resources.projects.resources.locations.resources.encryptionSpec.methods.initialize (Total Keys: 12) - schemas.GoogleCloudDialogflowCxV3EventHandler.properties.targetPlaybook.type (Total Keys: 1) - schemas.GoogleCloudDialogflowCxV3beta1EventHandler.properties.targetPlaybook.type (Total Keys: 1) - schemas.GoogleCloudDialogflowV2EncryptionSpec (Total Keys: 4) - schemas.GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata (Total Keys: 4) - schemas.GoogleCloudDialogflowV2InitializeEncryptionSpecRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1EncryptionSpec (Total Keys: 4) - schemas.GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata (Total Keys: 4) - schemas.GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1Message.properties.responseMessages (Total Keys: 2) #### dialogflow:v3 The following keys were added: - schemas.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals.properties.model.type (Total Keys: 1) - schemas.GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals.properties.model.type (Total Keys: 1) - schemas.GoogleCloudDialogflowCxV3EventHandler.properties.targetPlaybook.type (Total Keys: 1) - schemas.GoogleCloudDialogflowCxV3beta1EventHandler.properties.targetPlaybook.type (Total Keys: 1) - schemas.GoogleCloudDialogflowV2EncryptionSpec (Total Keys: 4) - schemas.GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata (Total Keys: 4) - schemas.GoogleCloudDialogflowV2InitializeEncryptionSpecRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1EncryptionSpec (Total Keys: 4) - schemas.GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata (Total Keys: 4) - schemas.GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1Message.properties.responseMessages (Total Keys: 2) - schemas.GoogleCloudDialogflowV2beta1ResponseMessage (Total Keys: 32) #### dialogflow:v3beta1 The following keys were added: - schemas.GoogleCloudDialogflowCxV3EventHandler.properties.targetPlaybook.type (Total Keys: 1) - schemas.GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals.properties.model.type (Total Keys: 1) - schemas.GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals.properties.model.type (Total Keys: 1) - schemas.GoogleCloudDialogflowCxV3beta1EventHandler.properties.targetPlaybook.type (Total Keys: 1) - schemas.GoogleCloudDialogflowV2EncryptionSpec (Total Keys: 4) - schemas.GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata (Total Keys: 4) - schemas.GoogleCloudDialogflowV2InitializeEncryptionSpecRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1EncryptionSpec (Total Keys: 4) - schemas.GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata (Total Keys: 4) - schemas.GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest (Total Keys: 3) - schemas.GoogleCloudDialogflowV2beta1Message.properties.responseMessages (Total Keys: 2) - schemas.GoogleCloudDialogflowV2beta1ResponseMessage (Total Keys: 32)
1 parent d301ebf commit f95bb05

File tree

33 files changed

+1921
-28
lines changed

33 files changed

+1921
-28
lines changed

docs/dyn/dialogflow_v2.projects.conversationProfiles.html

Lines changed: 42 additions & 0 deletions
Large diffs are not rendered by default.

docs/dyn/dialogflow_v2.projects.locations.conversationProfiles.html

Lines changed: 42 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
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.locations.html">locations</a> . <a href="dialogflow_v2.projects.locations.encryptionSpec.html">encryptionSpec</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="#initialize">initialize(name, body=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.</p>
83+
<h3>Method Details</h3>
84+
<div class="method">
85+
<code class="details" id="close">close()</code>
86+
<pre>Close httplib2 connections.</pre>
87+
</div>
88+
89+
<div class="method">
90+
<code class="details" id="initialize">initialize(name, body=None, x__xgafv=None)</code>
91+
<pre>Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.
92+
93+
Args:
94+
name: string, Immutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec (required)
95+
body: object, The request body.
96+
The object takes the form of:
97+
98+
{ # The request to initialize a location-level encryption specification.
99+
&quot;encryptionSpec&quot;: { # A customer-managed encryption key specification that can be applied to all created resources (e.g. Conversation). # Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name is left empty, no encryption will be enforced.
100+
&quot;kmsKey&quot;: &quot;A String&quot;, # Required. The name of customer-managed encryption key that is used to secure a resource and its sub-resources. If empty, the resource is secured by the default Google encryption key. Only the key in the same location as this resource is allowed to be used for encryption. Format: `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
101+
&quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec
102+
},
103+
}
104+
105+
x__xgafv: string, V1 error format.
106+
Allowed values
107+
1 - v1 error format
108+
2 - v2 error format
109+
110+
Returns:
111+
An object of the form:
112+
113+
{ # This resource represents a long-running operation that is the result of a network API call.
114+
&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.
115+
&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.
116+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
117+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
118+
{
119+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
120+
},
121+
],
122+
&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.
123+
},
124+
&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.
125+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
126+
},
127+
&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}`.
128+
&quot;response&quot;: { # The normal, successful response of the operation. 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`.
129+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
130+
},
131+
}</pre>
132+
</div>
133+
134+
</body></html>

docs/dyn/dialogflow_v2.projects.locations.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ <h2>Instance Methods</h2>
104104
</p>
105105
<p class="firstline">Returns the conversations Resource.</p>
106106

107+
<p class="toc_element">
108+
<code><a href="dialogflow_v2.projects.locations.encryptionSpec.html">encryptionSpec()</a></code>
109+
</p>
110+
<p class="firstline">Returns the encryptionSpec Resource.</p>
111+
107112
<p class="toc_element">
108113
<code><a href="dialogflow_v2.projects.locations.generators.html">generators()</a></code>
109114
</p>
@@ -141,6 +146,9 @@ <h2>Instance Methods</h2>
141146
<p class="toc_element">
142147
<code><a href="#getAgent">getAgent(parent, x__xgafv=None)</a></code></p>
143148
<p class="firstline">Retrieves the specified agent.</p>
149+
<p class="toc_element">
150+
<code><a href="#getEncryptionSpec">getEncryptionSpec(name, x__xgafv=None)</a></code></p>
151+
<p class="firstline">Gets location-level encryption key specification.</p>
144152
<p class="toc_element">
145153
<code><a href="#list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
146154
<p class="firstline">Lists information about the supported locations for this service.</p>
@@ -233,6 +241,26 @@ <h3>Method Details</h3>
233241
}</pre>
234242
</div>
235243

244+
<div class="method">
245+
<code class="details" id="getEncryptionSpec">getEncryptionSpec(name, x__xgafv=None)</code>
246+
<pre>Gets location-level encryption key specification.
247+
248+
Args:
249+
name: string, Required. The name of the encryption spec resource to get. (required)
250+
x__xgafv: string, V1 error format.
251+
Allowed values
252+
1 - v1 error format
253+
2 - v2 error format
254+
255+
Returns:
256+
An object of the form:
257+
258+
{ # A customer-managed encryption key specification that can be applied to all created resources (e.g. Conversation).
259+
&quot;kmsKey&quot;: &quot;A String&quot;, # Required. The name of customer-managed encryption key that is used to secure a resource and its sub-resources. If empty, the resource is secured by the default Google encryption key. Only the key in the same location as this resource is allowed to be used for encryption. Format: `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
260+
&quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name of the encryption key specification resource. Format: projects/{project}/locations/{location}/encryptionSpec
261+
}</pre>
262+
</div>
263+
236264
<div class="method">
237265
<code class="details" id="list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
238266
<pre>Lists information about the supported locations for this service.

docs/dyn/dialogflow_v2.projects.locations.suggestions.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,14 @@ <h3>Method Details</h3>
262262
},
263263
&quot;securitySettings&quot;: &quot;A String&quot;, # Name of the CX SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
264264
&quot;sttConfig&quot;: { # Configures speech transcription for ConversationProfile. # Settings for speech transcription.
265+
&quot;alternativeLanguageCodes&quot;: [ # Defines the list of other language codes in addition to the one provided by the conversation profile that may be detected as the language code for the utterances over the conversation. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
266+
&quot;A String&quot;,
267+
],
268+
&quot;audioEncoding&quot;: &quot;A String&quot;, # Audio encoding of the audio content to process.
269+
&quot;enableWordInfo&quot;: True or False, # If `true`, Dialogflow returns SpeechWordInfo in StreamingRecognitionResult with information about the recognized speech words, e.g. start and end time offsets. If false or unspecified, Speech doesn&#x27;t return any word-level information.
270+
&quot;languageCode&quot;: &quot;A String&quot;, # The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.
265271
&quot;model&quot;: &quot;A String&quot;, # Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then Dialogflow auto-selects a model based on other parameters in the SpeechToTextConfig and Agent settings. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search Leave this field unspecified to use [Agent Speech settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech) for model selection.
272+
&quot;sampleRateHertz&quot;: 42, # Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details.
266273
&quot;speechModelVariant&quot;: &quot;A String&quot;, # The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error.
267274
&quot;useTimeoutBasedEndpointing&quot;: True or False, # Use timeout based endpointing, interpreting endpointer sensitivy as seconds of timeout value.
268275
},

docs/dyn/dialogflow_v2.projects.suggestions.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,14 @@ <h3>Method Details</h3>
262262
},
263263
&quot;securitySettings&quot;: &quot;A String&quot;, # Name of the CX SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
264264
&quot;sttConfig&quot;: { # Configures speech transcription for ConversationProfile. # Settings for speech transcription.
265+
&quot;alternativeLanguageCodes&quot;: [ # Defines the list of other language codes in addition to the one provided by the conversation profile that may be detected as the language code for the utterances over the conversation. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
266+
&quot;A String&quot;,
267+
],
268+
&quot;audioEncoding&quot;: &quot;A String&quot;, # Audio encoding of the audio content to process.
269+
&quot;enableWordInfo&quot;: True or False, # If `true`, Dialogflow returns SpeechWordInfo in StreamingRecognitionResult with information about the recognized speech words, e.g. start and end time offsets. If false or unspecified, Speech doesn&#x27;t return any word-level information.
270+
&quot;languageCode&quot;: &quot;A String&quot;, # The language of the supplied audio. Dialogflow does not do translations. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.
265271
&quot;model&quot;: &quot;A String&quot;, # Which Speech model to select. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then Dialogflow auto-selects a model based on other parameters in the SpeechToTextConfig and Agent settings. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) for more details. If you specify a model, the following models typically have the best performance: - phone_call (best for Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony) - command_and_search Leave this field unspecified to use [Agent Speech settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech) for model selection.
272+
&quot;sampleRateHertz&quot;: 42, # Sample rate (in Hertz) of the audio content sent in the query. Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-text/docs/basics) for more details.
266273
&quot;speechModelVariant&quot;: &quot;A String&quot;, # The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. If enhanced model variant is specified and an enhanced version of the specified model for the language does not exist, then it would emit an error.
267274
&quot;useTimeoutBasedEndpointing&quot;: True or False, # Use timeout based endpointing, interpreting endpointer sensitivy as seconds of timeout value.
268275
},

0 commit comments

Comments
 (0)