google-cloud-dialogflow-v2 1.12.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agent_coaching_instruction_pb.rb +47 -0
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/generator_evaluation_pb.rb +82 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluation_services_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/client.rb +815 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/operations.rb +841 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/paths.rb +92 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest/client.rb +752 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest/operations.rb +945 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest/service_stub.rb +326 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest.rb +54 -0
- data/lib/google/cloud/dialogflow/v2/generator_evaluations.rb +56 -0
- data/lib/google/cloud/dialogflow/v2/generator_pb.rb +18 -1
- data/lib/google/cloud/dialogflow/v2/generators/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/v2/operations_pb.rb +45 -0
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/rest.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunk_pb.rb +62 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunk_services_pb.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunks/client.rb +885 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunks/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunks/paths.rb +69 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunks/rest/client.rb +815 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunks/rest/service_stub.rb +388 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunks/rest.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/sip_trunks.rb +55 -0
- data/lib/google/cloud/dialogflow/v2/tool_call_pb.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/tool_pb.rb +80 -0
- data/lib/google/cloud/dialogflow/v2/tool_services_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/v2/tools/client.rb +897 -0
- data/lib/google/cloud/dialogflow/v2/tools/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/tools/paths.rb +109 -0
- data/lib/google/cloud/dialogflow/v2/tools/rest/client.rb +827 -0
- data/lib/google/cloud/dialogflow/v2/tools/rest/service_stub.rb +388 -0
- data/lib/google/cloud/dialogflow/v2/tools/rest.rb +55 -0
- data/lib/google/cloud/dialogflow/v2/tools.rb +57 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2.rb +3 -0
- data/proto_docs/google/cloud/dialogflow/v2/agent_coaching_instruction.rb +109 -0
- data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +8 -3
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +40 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +19 -2
- data/proto_docs/google/cloud/dialogflow/v2/conversation_event.rb +2 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +12 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +38 -6
- data/proto_docs/google/cloud/dialogflow/v2/document.rb +3 -0
- data/proto_docs/google/cloud/dialogflow/v2/generator.rb +220 -4
- data/proto_docs/google/cloud/dialogflow/v2/generator_evaluation.rb +539 -0
- data/proto_docs/google/cloud/dialogflow/v2/operations.rb +39 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +70 -7
- data/proto_docs/google/cloud/dialogflow/v2/sip_trunk.rb +211 -0
- data/proto_docs/google/cloud/dialogflow/v2/tool.rb +552 -0
- data/proto_docs/google/cloud/dialogflow/v2/tool_call.rb +115 -0
- metadata +39 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2025 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "googleauth"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Dialogflow
|
|
24
|
+
module V2
|
|
25
|
+
module Tools
|
|
26
|
+
# Credentials for the Tools API.
|
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
|
28
|
+
self.scope = [
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
30
|
+
"https://www.googleapis.com/auth/dialogflow"
|
|
31
|
+
]
|
|
32
|
+
self.env_vars = [
|
|
33
|
+
"DIALOGFLOW_CREDENTIALS",
|
|
34
|
+
"DIALOGFLOW_KEYFILE",
|
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
|
37
|
+
"GCLOUD_KEYFILE",
|
|
38
|
+
"DIALOGFLOW_CREDENTIALS_JSON",
|
|
39
|
+
"DIALOGFLOW_KEYFILE_JSON",
|
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
|
43
|
+
]
|
|
44
|
+
self.paths = [
|
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
|
46
|
+
]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2025 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Dialogflow
|
|
23
|
+
module V2
|
|
24
|
+
module Tools
|
|
25
|
+
# Path helper methods for the Tools API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified Location resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
#
|
|
37
|
+
# @return [::String]
|
|
38
|
+
def location_path project:, location:
|
|
39
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
40
|
+
|
|
41
|
+
"projects/#{project}/locations/#{location}"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
##
|
|
45
|
+
# Create a fully-qualified SecretVersion resource string.
|
|
46
|
+
#
|
|
47
|
+
# The resource will be in the following format:
|
|
48
|
+
#
|
|
49
|
+
# `projects/{project}/secrets/{secret}/versions/{version}`
|
|
50
|
+
#
|
|
51
|
+
# @param project [String]
|
|
52
|
+
# @param secret [String]
|
|
53
|
+
# @param version [String]
|
|
54
|
+
#
|
|
55
|
+
# @return [::String]
|
|
56
|
+
def secret_version_path project:, secret:, version:
|
|
57
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
58
|
+
raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
|
|
59
|
+
|
|
60
|
+
"projects/#{project}/secrets/#{secret}/versions/#{version}"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
##
|
|
64
|
+
# Create a fully-qualified Service resource string.
|
|
65
|
+
#
|
|
66
|
+
# The resource will be in the following format:
|
|
67
|
+
#
|
|
68
|
+
# `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`
|
|
69
|
+
#
|
|
70
|
+
# @param project [String]
|
|
71
|
+
# @param location [String]
|
|
72
|
+
# @param namespace [String]
|
|
73
|
+
# @param service [String]
|
|
74
|
+
#
|
|
75
|
+
# @return [::String]
|
|
76
|
+
def service_path project:, location:, namespace:, service:
|
|
77
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
78
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
79
|
+
raise ::ArgumentError, "namespace cannot contain /" if namespace.to_s.include? "/"
|
|
80
|
+
|
|
81
|
+
"projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
##
|
|
85
|
+
# Create a fully-qualified Tool resource string.
|
|
86
|
+
#
|
|
87
|
+
# The resource will be in the following format:
|
|
88
|
+
#
|
|
89
|
+
# `projects/{project}/locations/{location}/tools/{tool}`
|
|
90
|
+
#
|
|
91
|
+
# @param project [String]
|
|
92
|
+
# @param location [String]
|
|
93
|
+
# @param tool [String]
|
|
94
|
+
#
|
|
95
|
+
# @return [::String]
|
|
96
|
+
def tool_path project:, location:, tool:
|
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
98
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
99
|
+
|
|
100
|
+
"projects/#{project}/locations/#{location}/tools/#{tool}"
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
extend self
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|