google-cloud-dialogflow-cx-v3 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +32 -0
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +122 -0
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +82 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +1051 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +151 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +94 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +92 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +766 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/paths.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +117 -0
- data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +61 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +950 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +98 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +177 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +61 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +851 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/paths.rb +102 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +145 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +88 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +1200 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +184 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +97 -0
- data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +750 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/paths.rb +96 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +113 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +805 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +165 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +77 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +89 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +696 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb +157 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +56 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +68 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +715 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/paths.rb +137 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +209 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +71 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +654 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/paths.rb +225 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions.rb +53 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +302 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +73 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +1324 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +249 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases.rb +53 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +766 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +144 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +59 -0
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +30 -0
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +88 -0
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +57 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +792 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/paths.rb +79 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +172 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +704 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/paths.rb +96 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3.rb +53 -0
- data/lib/google-cloud-dialogflow-cx-v3.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +57 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +301 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +322 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +306 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +279 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +438 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +438 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +126 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +318 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +478 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +220 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +222 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +798 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +184 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +757 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +195 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +121 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +182 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +496 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +326 -0
@@ -0,0 +1,151 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 CX
|
24
|
+
module V3
|
25
|
+
module Agents
|
26
|
+
# Path helper methods for the Agents API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified Agent resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/agents/{agent}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param agent [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def agent_path project:, location:, agent:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}"
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a fully-qualified AgentValidationResult resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `projects/{project}/locations/{location}/agents/{agent}/validationResult`
|
53
|
+
#
|
54
|
+
# @param project [String]
|
55
|
+
# @param location [String]
|
56
|
+
# @param agent [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def agent_validation_result_path project:, location:, agent:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
|
63
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/validationResult"
|
64
|
+
end
|
65
|
+
|
66
|
+
##
|
67
|
+
# Create a fully-qualified Environment resource string.
|
68
|
+
#
|
69
|
+
# The resource will be in the following format:
|
70
|
+
#
|
71
|
+
# `projects/{project}/locations/{location}/agents/{agent}/environments/{environment}`
|
72
|
+
#
|
73
|
+
# @param project [String]
|
74
|
+
# @param location [String]
|
75
|
+
# @param agent [String]
|
76
|
+
# @param environment [String]
|
77
|
+
#
|
78
|
+
# @return [::String]
|
79
|
+
def environment_path project:, location:, agent:, environment:
|
80
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
81
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
82
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
83
|
+
|
84
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/environments/#{environment}"
|
85
|
+
end
|
86
|
+
|
87
|
+
##
|
88
|
+
# Create a fully-qualified Flow resource string.
|
89
|
+
#
|
90
|
+
# The resource will be in the following format:
|
91
|
+
#
|
92
|
+
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}`
|
93
|
+
#
|
94
|
+
# @param project [String]
|
95
|
+
# @param location [String]
|
96
|
+
# @param agent [String]
|
97
|
+
# @param flow [String]
|
98
|
+
#
|
99
|
+
# @return [::String]
|
100
|
+
def flow_path project:, location:, agent:, flow:
|
101
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
103
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
104
|
+
|
105
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}"
|
106
|
+
end
|
107
|
+
|
108
|
+
##
|
109
|
+
# Create a fully-qualified Location resource string.
|
110
|
+
#
|
111
|
+
# The resource will be in the following format:
|
112
|
+
#
|
113
|
+
# `projects/{project}/locations/{location}`
|
114
|
+
#
|
115
|
+
# @param project [String]
|
116
|
+
# @param location [String]
|
117
|
+
#
|
118
|
+
# @return [::String]
|
119
|
+
def location_path project:, location:
|
120
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
121
|
+
|
122
|
+
"projects/#{project}/locations/#{location}"
|
123
|
+
end
|
124
|
+
|
125
|
+
##
|
126
|
+
# Create a fully-qualified SecuritySettings resource string.
|
127
|
+
#
|
128
|
+
# The resource will be in the following format:
|
129
|
+
#
|
130
|
+
# `projects/{project}/locations/{location}/securitySettings/{security_settings}`
|
131
|
+
#
|
132
|
+
# @param project [String]
|
133
|
+
# @param location [String]
|
134
|
+
# @param security_settings [String]
|
135
|
+
#
|
136
|
+
# @return [::String]
|
137
|
+
def security_settings_path project:, location:, security_settings:
|
138
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
139
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
140
|
+
|
141
|
+
"projects/#{project}/locations/#{location}/securitySettings/#{security_settings}"
|
142
|
+
end
|
143
|
+
|
144
|
+
extend self
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/dialogflow/cx/v3/version"
|
24
|
+
|
25
|
+
require "google/cloud/dialogflow/cx/v3/agents/credentials"
|
26
|
+
require "google/cloud/dialogflow/cx/v3/agents/paths"
|
27
|
+
require "google/cloud/dialogflow/cx/v3/agents/operations"
|
28
|
+
require "google/cloud/dialogflow/cx/v3/agents/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Dialogflow
|
33
|
+
module CX
|
34
|
+
module V3
|
35
|
+
##
|
36
|
+
# Service for managing {::Google::Cloud::Dialogflow::CX::V3::Agent Agents}.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/dialogflow/cx/v3/agents"
|
41
|
+
# client = ::Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
42
|
+
#
|
43
|
+
module Agents
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
helper_path = ::File.join __dir__, "agents", "helpers.rb"
|
52
|
+
require "google/cloud/dialogflow/cx/v3/agents/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dialogflow/cx/v3/audio_config.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/api/annotations_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_file("google/cloud/dialogflow/cx/v3/audio_config.proto", :syntax => :proto3) do
|
12
|
+
add_message "google.cloud.dialogflow.cx.v3.SpeechWordInfo" do
|
13
|
+
optional :word, :string, 3
|
14
|
+
optional :start_offset, :message, 1, "google.protobuf.Duration"
|
15
|
+
optional :end_offset, :message, 2, "google.protobuf.Duration"
|
16
|
+
optional :confidence, :float, 4
|
17
|
+
end
|
18
|
+
add_message "google.cloud.dialogflow.cx.v3.InputAudioConfig" do
|
19
|
+
optional :audio_encoding, :enum, 1, "google.cloud.dialogflow.cx.v3.AudioEncoding"
|
20
|
+
optional :sample_rate_hertz, :int32, 2
|
21
|
+
optional :enable_word_info, :bool, 13
|
22
|
+
repeated :phrase_hints, :string, 4
|
23
|
+
optional :model, :string, 7
|
24
|
+
optional :model_variant, :enum, 10, "google.cloud.dialogflow.cx.v3.SpeechModelVariant"
|
25
|
+
optional :single_utterance, :bool, 8
|
26
|
+
end
|
27
|
+
add_message "google.cloud.dialogflow.cx.v3.VoiceSelectionParams" do
|
28
|
+
optional :name, :string, 1
|
29
|
+
optional :ssml_gender, :enum, 2, "google.cloud.dialogflow.cx.v3.SsmlVoiceGender"
|
30
|
+
end
|
31
|
+
add_message "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig" do
|
32
|
+
optional :speaking_rate, :double, 1
|
33
|
+
optional :pitch, :double, 2
|
34
|
+
optional :volume_gain_db, :double, 3
|
35
|
+
repeated :effects_profile_id, :string, 5
|
36
|
+
optional :voice, :message, 4, "google.cloud.dialogflow.cx.v3.VoiceSelectionParams"
|
37
|
+
end
|
38
|
+
add_message "google.cloud.dialogflow.cx.v3.OutputAudioConfig" do
|
39
|
+
optional :audio_encoding, :enum, 1, "google.cloud.dialogflow.cx.v3.OutputAudioEncoding"
|
40
|
+
optional :sample_rate_hertz, :int32, 2
|
41
|
+
optional :synthesize_speech_config, :message, 3, "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig"
|
42
|
+
end
|
43
|
+
add_enum "google.cloud.dialogflow.cx.v3.AudioEncoding" do
|
44
|
+
value :AUDIO_ENCODING_UNSPECIFIED, 0
|
45
|
+
value :AUDIO_ENCODING_LINEAR_16, 1
|
46
|
+
value :AUDIO_ENCODING_FLAC, 2
|
47
|
+
value :AUDIO_ENCODING_MULAW, 3
|
48
|
+
value :AUDIO_ENCODING_AMR, 4
|
49
|
+
value :AUDIO_ENCODING_AMR_WB, 5
|
50
|
+
value :AUDIO_ENCODING_OGG_OPUS, 6
|
51
|
+
value :AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE, 7
|
52
|
+
end
|
53
|
+
add_enum "google.cloud.dialogflow.cx.v3.SpeechModelVariant" do
|
54
|
+
value :SPEECH_MODEL_VARIANT_UNSPECIFIED, 0
|
55
|
+
value :USE_BEST_AVAILABLE, 1
|
56
|
+
value :USE_STANDARD, 2
|
57
|
+
value :USE_ENHANCED, 3
|
58
|
+
end
|
59
|
+
add_enum "google.cloud.dialogflow.cx.v3.SsmlVoiceGender" do
|
60
|
+
value :SSML_VOICE_GENDER_UNSPECIFIED, 0
|
61
|
+
value :SSML_VOICE_GENDER_MALE, 1
|
62
|
+
value :SSML_VOICE_GENDER_FEMALE, 2
|
63
|
+
value :SSML_VOICE_GENDER_NEUTRAL, 3
|
64
|
+
end
|
65
|
+
add_enum "google.cloud.dialogflow.cx.v3.OutputAudioEncoding" do
|
66
|
+
value :OUTPUT_AUDIO_ENCODING_UNSPECIFIED, 0
|
67
|
+
value :OUTPUT_AUDIO_ENCODING_LINEAR_16, 1
|
68
|
+
value :OUTPUT_AUDIO_ENCODING_MP3, 2
|
69
|
+
value :OUTPUT_AUDIO_ENCODING_MP3_64_KBPS, 4
|
70
|
+
value :OUTPUT_AUDIO_ENCODING_OGG_OPUS, 3
|
71
|
+
value :OUTPUT_AUDIO_ENCODING_MULAW, 5
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
module Google
|
77
|
+
module Cloud
|
78
|
+
module Dialogflow
|
79
|
+
module CX
|
80
|
+
module V3
|
81
|
+
SpeechWordInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SpeechWordInfo").msgclass
|
82
|
+
InputAudioConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.InputAudioConfig").msgclass
|
83
|
+
VoiceSelectionParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.VoiceSelectionParams").msgclass
|
84
|
+
SynthesizeSpeechConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig").msgclass
|
85
|
+
OutputAudioConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.OutputAudioConfig").msgclass
|
86
|
+
AudioEncoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.AudioEncoding").enummodule
|
87
|
+
SpeechModelVariant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SpeechModelVariant").enummodule
|
88
|
+
SsmlVoiceGender = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SsmlVoiceGender").enummodule
|
89
|
+
OutputAudioEncoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.OutputAudioEncoding").enummodule
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dialogflow/cx/v3/entity_type.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/protobuf/empty_pb'
|
11
|
+
require 'google/protobuf/field_mask_pb'
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/dialogflow/cx/v3/entity_type.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.dialogflow.cx.v3.EntityType" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :display_name, :string, 2
|
17
|
+
optional :kind, :enum, 3, "google.cloud.dialogflow.cx.v3.EntityType.Kind"
|
18
|
+
optional :auto_expansion_mode, :enum, 4, "google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode"
|
19
|
+
repeated :entities, :message, 5, "google.cloud.dialogflow.cx.v3.EntityType.Entity"
|
20
|
+
repeated :excluded_phrases, :message, 6, "google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase"
|
21
|
+
optional :enable_fuzzy_extraction, :bool, 7
|
22
|
+
optional :redact, :bool, 9
|
23
|
+
end
|
24
|
+
add_message "google.cloud.dialogflow.cx.v3.EntityType.Entity" do
|
25
|
+
optional :value, :string, 1
|
26
|
+
repeated :synonyms, :string, 2
|
27
|
+
end
|
28
|
+
add_message "google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase" do
|
29
|
+
optional :value, :string, 1
|
30
|
+
end
|
31
|
+
add_enum "google.cloud.dialogflow.cx.v3.EntityType.Kind" do
|
32
|
+
value :KIND_UNSPECIFIED, 0
|
33
|
+
value :KIND_MAP, 1
|
34
|
+
value :KIND_LIST, 2
|
35
|
+
value :KIND_REGEXP, 3
|
36
|
+
end
|
37
|
+
add_enum "google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode" do
|
38
|
+
value :AUTO_EXPANSION_MODE_UNSPECIFIED, 0
|
39
|
+
value :AUTO_EXPANSION_MODE_DEFAULT, 1
|
40
|
+
end
|
41
|
+
add_message "google.cloud.dialogflow.cx.v3.ListEntityTypesRequest" do
|
42
|
+
optional :parent, :string, 1
|
43
|
+
optional :language_code, :string, 2
|
44
|
+
optional :page_size, :int32, 3
|
45
|
+
optional :page_token, :string, 4
|
46
|
+
end
|
47
|
+
add_message "google.cloud.dialogflow.cx.v3.ListEntityTypesResponse" do
|
48
|
+
repeated :entity_types, :message, 1, "google.cloud.dialogflow.cx.v3.EntityType"
|
49
|
+
optional :next_page_token, :string, 2
|
50
|
+
end
|
51
|
+
add_message "google.cloud.dialogflow.cx.v3.GetEntityTypeRequest" do
|
52
|
+
optional :name, :string, 1
|
53
|
+
optional :language_code, :string, 2
|
54
|
+
end
|
55
|
+
add_message "google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest" do
|
56
|
+
optional :parent, :string, 1
|
57
|
+
optional :entity_type, :message, 2, "google.cloud.dialogflow.cx.v3.EntityType"
|
58
|
+
optional :language_code, :string, 3
|
59
|
+
end
|
60
|
+
add_message "google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest" do
|
61
|
+
optional :entity_type, :message, 1, "google.cloud.dialogflow.cx.v3.EntityType"
|
62
|
+
optional :language_code, :string, 2
|
63
|
+
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
64
|
+
end
|
65
|
+
add_message "google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest" do
|
66
|
+
optional :name, :string, 1
|
67
|
+
optional :force, :bool, 2
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
module Google
|
73
|
+
module Cloud
|
74
|
+
module Dialogflow
|
75
|
+
module CX
|
76
|
+
module V3
|
77
|
+
EntityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.EntityType").msgclass
|
78
|
+
EntityType::Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.EntityType.Entity").msgclass
|
79
|
+
EntityType::ExcludedPhrase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase").msgclass
|
80
|
+
EntityType::Kind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.EntityType.Kind").enummodule
|
81
|
+
EntityType::AutoExpansionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode").enummodule
|
82
|
+
ListEntityTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEntityTypesRequest").msgclass
|
83
|
+
ListEntityTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEntityTypesResponse").msgclass
|
84
|
+
GetEntityTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetEntityTypeRequest").msgclass
|
85
|
+
CreateEntityTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest").msgclass
|
86
|
+
UpdateEntityTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest").msgclass
|
87
|
+
DeleteEntityTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest").msgclass
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/dialogflow/cx/v3/entity_type.proto for package 'Google.Cloud.Dialogflow.CX.V3'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/dialogflow/cx/v3/entity_type_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Dialogflow
|
25
|
+
module CX
|
26
|
+
module V3
|
27
|
+
module EntityTypes
|
28
|
+
# Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3.EntityType].
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.dialogflow.cx.v3.EntityTypes'
|
36
|
+
|
37
|
+
# Returns the list of all entity types in the specified agent.
|
38
|
+
rpc :ListEntityTypes, ::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest, ::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesResponse
|
39
|
+
# Retrieves the specified entity type.
|
40
|
+
rpc :GetEntityType, ::Google::Cloud::Dialogflow::CX::V3::GetEntityTypeRequest, ::Google::Cloud::Dialogflow::CX::V3::EntityType
|
41
|
+
# Creates an entity type in the specified agent.
|
42
|
+
#
|
43
|
+
# Note: You should always train a flow prior to sending it queries. See the
|
44
|
+
# [training
|
45
|
+
# documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
|
46
|
+
rpc :CreateEntityType, ::Google::Cloud::Dialogflow::CX::V3::CreateEntityTypeRequest, ::Google::Cloud::Dialogflow::CX::V3::EntityType
|
47
|
+
# Updates the specified entity type.
|
48
|
+
#
|
49
|
+
# Note: You should always train a flow prior to sending it queries. See the
|
50
|
+
# [training
|
51
|
+
# documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
|
52
|
+
rpc :UpdateEntityType, ::Google::Cloud::Dialogflow::CX::V3::UpdateEntityTypeRequest, ::Google::Cloud::Dialogflow::CX::V3::EntityType
|
53
|
+
# Deletes the specified entity type.
|
54
|
+
#
|
55
|
+
# Note: You should always train a flow prior to sending it queries. See the
|
56
|
+
# [training
|
57
|
+
# documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
|
58
|
+
rpc :DeleteEntityType, ::Google::Cloud::Dialogflow::CX::V3::DeleteEntityTypeRequest, ::Google::Protobuf::Empty
|
59
|
+
end
|
60
|
+
|
61
|
+
Stub = Service.rpc_stub_class
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|