Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
feat: added support to configure security settings, language code and…
Browse files Browse the repository at this point in the history
… time zone on conversation profile (#762)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 407663596

Source-Link: googleapis/googleapis@f9acb37

Source-Link: googleapis/googleapis-gen@aa54a75
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWE1NGE3NTcwNjhmMDA1YWIyMTA2NGZiMjA4YTVlYzU5N2U0OWE5YSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Nov 4, 2021
1 parent 6a6dd3a commit 4fd51c9
Show file tree
Hide file tree
Showing 9 changed files with 750 additions and 216 deletions.
Expand Up @@ -238,6 +238,8 @@ public void getConversationProfileTest() throws Exception {
.setNewMessageEventNotificationConfig(NotificationConfig.newBuilder().build())
.setSttConfig(SpeechToTextConfig.newBuilder().build())
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -295,6 +297,8 @@ public void getConversationProfileTest2() throws Exception {
.setNewMessageEventNotificationConfig(NotificationConfig.newBuilder().build())
.setSttConfig(SpeechToTextConfig.newBuilder().build())
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -348,6 +352,8 @@ public void createConversationProfileTest() throws Exception {
.setNewMessageEventNotificationConfig(NotificationConfig.newBuilder().build())
.setSttConfig(SpeechToTextConfig.newBuilder().build())
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -405,6 +411,8 @@ public void createConversationProfileTest2() throws Exception {
.setNewMessageEventNotificationConfig(NotificationConfig.newBuilder().build())
.setSttConfig(SpeechToTextConfig.newBuilder().build())
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -462,6 +470,8 @@ public void createConversationProfileTest3() throws Exception {
.setNewMessageEventNotificationConfig(NotificationConfig.newBuilder().build())
.setSttConfig(SpeechToTextConfig.newBuilder().build())
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -519,6 +529,8 @@ public void updateConversationProfileTest() throws Exception {
.setNewMessageEventNotificationConfig(NotificationConfig.newBuilder().build())
.setSttConfig(SpeechToTextConfig.newBuilder().build())
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down
Expand Up @@ -122,11 +122,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* need to grant `service-<Conversation Project
* Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
* Service Agent` role in this project.
* Format: `projects/<Project ID>/locations/<Location
* - For ES agents, use format: `projects/<Project ID>/locations/<Location
* ID>/agent/environments/<Environment ID or '-'>`. If environment is not
* specified, the default `draft` environment is used. Refer to
* [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
* for more details.
* - For CX agents, use format `projects/<Project ID>/locations/<Location
* ID>/agents/<Agent ID>/environments/<Environment ID
* or '-'>`. If environment is not specified, the default `draft` environment
* is used.
* </pre>
*
* <code>
Expand Down Expand Up @@ -156,11 +160,15 @@ public java.lang.String getAgent() {
* need to grant `service-&lt;Conversation Project
* Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
* Service Agent` role in this project.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* - For ES agents, use format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agent/environments/&lt;Environment ID or '-'&gt;`. If environment is not
* specified, the default `draft` environment is used. Refer to
* [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
* for more details.
* - For CX agents, use format `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agents/&lt;Agent ID&gt;/environments/&lt;Environment ID
* or '-'&gt;`. If environment is not specified, the default `draft` environment
* is used.
* </pre>
*
* <code>
Expand Down Expand Up @@ -510,11 +518,15 @@ public Builder mergeFrom(
* need to grant `service-&lt;Conversation Project
* Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
* Service Agent` role in this project.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* - For ES agents, use format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agent/environments/&lt;Environment ID or '-'&gt;`. If environment is not
* specified, the default `draft` environment is used. Refer to
* [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
* for more details.
* - For CX agents, use format `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agents/&lt;Agent ID&gt;/environments/&lt;Environment ID
* or '-'&gt;`. If environment is not specified, the default `draft` environment
* is used.
* </pre>
*
* <code>
Expand Down Expand Up @@ -543,11 +555,15 @@ public java.lang.String getAgent() {
* need to grant `service-&lt;Conversation Project
* Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
* Service Agent` role in this project.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* - For ES agents, use format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agent/environments/&lt;Environment ID or '-'&gt;`. If environment is not
* specified, the default `draft` environment is used. Refer to
* [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
* for more details.
* - For CX agents, use format `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agents/&lt;Agent ID&gt;/environments/&lt;Environment ID
* or '-'&gt;`. If environment is not specified, the default `draft` environment
* is used.
* </pre>
*
* <code>
Expand Down Expand Up @@ -576,11 +592,15 @@ public com.google.protobuf.ByteString getAgentBytes() {
* need to grant `service-&lt;Conversation Project
* Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
* Service Agent` role in this project.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* - For ES agents, use format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agent/environments/&lt;Environment ID or '-'&gt;`. If environment is not
* specified, the default `draft` environment is used. Refer to
* [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
* for more details.
* - For CX agents, use format `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agents/&lt;Agent ID&gt;/environments/&lt;Environment ID
* or '-'&gt;`. If environment is not specified, the default `draft` environment
* is used.
* </pre>
*
* <code>
Expand Down Expand Up @@ -608,11 +628,15 @@ public Builder setAgent(java.lang.String value) {
* need to grant `service-&lt;Conversation Project
* Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
* Service Agent` role in this project.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* - For ES agents, use format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agent/environments/&lt;Environment ID or '-'&gt;`. If environment is not
* specified, the default `draft` environment is used. Refer to
* [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
* for more details.
* - For CX agents, use format `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agents/&lt;Agent ID&gt;/environments/&lt;Environment ID
* or '-'&gt;`. If environment is not specified, the default `draft` environment
* is used.
* </pre>
*
* <code>
Expand All @@ -636,11 +660,15 @@ public Builder clearAgent() {
* need to grant `service-&lt;Conversation Project
* Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
* Service Agent` role in this project.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* - For ES agents, use format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agent/environments/&lt;Environment ID or '-'&gt;`. If environment is not
* specified, the default `draft` environment is used. Refer to
* [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
* for more details.
* - For CX agents, use format `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agents/&lt;Agent ID&gt;/environments/&lt;Environment ID
* or '-'&gt;`. If environment is not specified, the default `draft` environment
* is used.
* </pre>
*
* <code>
Expand Down
Expand Up @@ -32,11 +32,15 @@ public interface AutomatedAgentConfigOrBuilder
* need to grant `service-&lt;Conversation Project
* Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
* Service Agent` role in this project.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* - For ES agents, use format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agent/environments/&lt;Environment ID or '-'&gt;`. If environment is not
* specified, the default `draft` environment is used. Refer to
* [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
* for more details.
* - For CX agents, use format `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agents/&lt;Agent ID&gt;/environments/&lt;Environment ID
* or '-'&gt;`. If environment is not specified, the default `draft` environment
* is used.
* </pre>
*
* <code>
Expand All @@ -55,11 +59,15 @@ public interface AutomatedAgentConfigOrBuilder
* need to grant `service-&lt;Conversation Project
* Number&gt;&#64;gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
* Service Agent` role in this project.
* Format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* - For ES agents, use format: `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agent/environments/&lt;Environment ID or '-'&gt;`. If environment is not
* specified, the default `draft` environment is used. Refer to
* [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
* for more details.
* - For CX agents, use format `projects/&lt;Project ID&gt;/locations/&lt;Location
* ID&gt;/agents/&lt;Agent ID&gt;/environments/&lt;Environment ID
* or '-'&gt;`. If environment is not specified, the default `draft` environment
* is used.
* </pre>
*
* <code>
Expand Down

0 comments on commit 4fd51c9

Please sign in to comment.