Skip to content

Commit 5402036

Browse files
Google APIscopybara-github
authored andcommitted
feat: add additional_bindings to Dialogflow v2 ListIntents API
docs: update copyrights and session docs PiperOrigin-RevId: 358315519
1 parent 3b69cb2 commit 5402036

12 files changed

Lines changed: 52 additions & 38 deletions

google/cloud/dialogflow/v2/BUILD.bazel

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by BuildFileGenerator
2-
# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
33

44
# Most of the manual changes to this file will be overwritten.
55
# It's **only** allowed to change the following rule attribute values:
@@ -94,13 +94,6 @@ java_gapic_library(
9494
java_gapic_test(
9595
name = "dialogflow_java_gapic_test_suite",
9696
test_classes = [
97-
"com.google.cloud.dialogflow.v2.AgentsClientTest",
98-
"com.google.cloud.dialogflow.v2.ContextsClientTest",
99-
"com.google.cloud.dialogflow.v2.EntityTypesClientTest",
100-
"com.google.cloud.dialogflow.v2.EnvironmentsClientTest",
101-
"com.google.cloud.dialogflow.v2.IntentsClientTest",
102-
"com.google.cloud.dialogflow.v2.SessionEntityTypesClientTest",
103-
"com.google.cloud.dialogflow.v2.SessionsClientTest",
10497
],
10598
runtime_deps = [":dialogflow_java_gapic_test"],
10699
)
@@ -145,6 +138,7 @@ go_gapic_library(
145138
srcs = [":dialogflow_proto_with_info"],
146139
grpc_service_config = "dialogflow_grpc_service_config.json",
147140
importpath = "cloud.google.com/go/dialogflow/apiv2;dialogflow",
141+
metadata = True,
148142
service_yaml = "dialogflow_v2.yaml",
149143
deps = [
150144
":dialogflow_go_proto",
@@ -168,6 +162,7 @@ go_gapic_assembly_pkg(
168162
name = "gapi-cloud-dialogflow-v2-go",
169163
deps = [
170164
":dialogflow_go_gapic",
165+
":dialogflow_go_gapic_srcjar-metadata.srcjar",
171166
":dialogflow_go_gapic_srcjar-test.srcjar",
172167
":dialogflow_go_proto",
173168
],

google/cloud/dialogflow/v2/agent.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/cloud/dialogflow/v2/audio_config.proto

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -264,23 +264,6 @@ message VoiceSelectionParams {
264264
SsmlVoiceGender ssml_gender = 2;
265265
}
266266

267-
// Gender of the voice as described in
268-
// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
269-
enum SsmlVoiceGender {
270-
// An unspecified gender, which means that the client doesn't care which
271-
// gender the selected voice will have.
272-
SSML_VOICE_GENDER_UNSPECIFIED = 0;
273-
274-
// A male voice.
275-
SSML_VOICE_GENDER_MALE = 1;
276-
277-
// A female voice.
278-
SSML_VOICE_GENDER_FEMALE = 2;
279-
280-
// A gender-neutral voice.
281-
SSML_VOICE_GENDER_NEUTRAL = 3;
282-
}
283-
284267
// Configuration of how speech should be synthesized.
285268
message SynthesizeSpeechConfig {
286269
// Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
@@ -313,6 +296,23 @@ message SynthesizeSpeechConfig {
313296
VoiceSelectionParams voice = 4;
314297
}
315298

299+
// Gender of the voice as described in
300+
// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
301+
enum SsmlVoiceGender {
302+
// An unspecified gender, which means that the client doesn't care which
303+
// gender the selected voice will have.
304+
SSML_VOICE_GENDER_UNSPECIFIED = 0;
305+
306+
// A male voice.
307+
SSML_VOICE_GENDER_MALE = 1;
308+
309+
// A female voice.
310+
SSML_VOICE_GENDER_FEMALE = 2;
311+
312+
// A gender-neutral voice.
313+
SSML_VOICE_GENDER_NEUTRAL = 3;
314+
}
315+
316316
// Instructs the speech synthesizer on how to generate the output audio content.
317317
// If this audio config is supplied in a request, it overrides all existing
318318
// text-to-speech settings applied to the agent.

google/cloud/dialogflow/v2/context.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/cloud/dialogflow/v2/dialogflow_v2.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,21 @@ backend:
6161
- selector: 'google.longrunning.Operations.*'
6262
deadline: 60.0
6363

64+
http:
65+
rules:
66+
- selector: google.longrunning.Operations.CancelOperation
67+
post: '/v2/{name=projects/*/operations/*}:cancel'
68+
additional_bindings:
69+
- post: '/v2/{name=projects/*/locations/*/operations/*}:cancel'
70+
- selector: google.longrunning.Operations.GetOperation
71+
get: '/v2/{name=projects/*/operations/*}'
72+
additional_bindings:
73+
- get: '/v2/{name=projects/*/locations/*/operations/*}'
74+
- selector: google.longrunning.Operations.ListOperations
75+
get: '/v2/{name=projects/*}/operations'
76+
additional_bindings:
77+
- get: '/v2/{name=projects/*/locations/*}/operations'
78+
6479
authentication:
6580
rules:
6681
- selector: 'google.cloud.dialogflow.v2.Agents.*'

google/cloud/dialogflow/v2/entity_type.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/cloud/dialogflow/v2/environment.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/cloud/dialogflow/v2/intent.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -47,6 +47,9 @@ service Intents {
4747
rpc ListIntents(ListIntentsRequest) returns (ListIntentsResponse) {
4848
option (google.api.http) = {
4949
get: "/v2/{parent=projects/*/agent}/intents"
50+
additional_bindings {
51+
get: "/v2/{parent=projects/*/agent/environments/*}/intents"
52+
}
5053
};
5154
option (google.api.method_signature) = "parent";
5255
option (google.api.method_signature) = "parent,language_code";

google/cloud/dialogflow/v2/session.proto

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -90,9 +90,10 @@ message DetectIntentRequest {
9090
// `projects/<Project ID>/agent/sessions/<Session ID>`, or
9191
// `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
9292
// ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
93-
// default 'draft' environment. If `User ID` is not specified, we are using
94-
// "-". It's up to the API caller to choose an appropriate `Session ID` and
95-
// `User Id`. They can be a random number or some type of user and session
93+
// default 'draft' environment (`Environment ID` might be referred to as
94+
// environment name at some places). If `User ID` is not specified, we are
95+
// using "-". It's up to the API caller to choose an appropriate `Session ID`
96+
// and `User Id`. They can be a random number or some type of user and session
9697
// identifiers (preferably hashed). The length of the `Session ID` and
9798
// `User ID` must not exceed 36 characters.
9899
//

google/cloud/dialogflow/v2/session_entity_type.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)