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.
Files changed (134) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +32 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +122 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +82 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +1051 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/agents/credentials.rb +54 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +666 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +151 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/agents.rb +52 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +94 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +92 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +67 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +766 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/entity_types/credentials.rb +54 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/entity_types/paths.rb +75 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_types.rb +51 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +117 -0
  22. data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +61 -0
  23. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +950 -0
  24. data/lib/google/cloud/dialogflow/cx/v3/environments/credentials.rb +54 -0
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +666 -0
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +98 -0
  27. data/lib/google/cloud/dialogflow/cx/v3/environments.rb +52 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +177 -0
  29. data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +61 -0
  30. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +851 -0
  31. data/lib/google/cloud/dialogflow/cx/v3/experiments/credentials.rb +54 -0
  32. data/lib/google/cloud/dialogflow/cx/v3/experiments/paths.rb +102 -0
  33. data/lib/google/cloud/dialogflow/cx/v3/experiments.rb +51 -0
  34. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +145 -0
  35. data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +88 -0
  36. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +1200 -0
  37. data/lib/google/cloud/dialogflow/cx/v3/flows/credentials.rb +54 -0
  38. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +666 -0
  39. data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +184 -0
  40. data/lib/google/cloud/dialogflow/cx/v3/flows.rb +52 -0
  41. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +55 -0
  42. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +97 -0
  43. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +67 -0
  44. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +750 -0
  45. data/lib/google/cloud/dialogflow/cx/v3/intents/credentials.rb +54 -0
  46. data/lib/google/cloud/dialogflow/cx/v3/intents/paths.rb +96 -0
  47. data/lib/google/cloud/dialogflow/cx/v3/intents.rb +51 -0
  48. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +113 -0
  49. data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +67 -0
  50. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +805 -0
  51. data/lib/google/cloud/dialogflow/cx/v3/pages/credentials.rb +54 -0
  52. data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +165 -0
  53. data/lib/google/cloud/dialogflow/cx/v3/pages.rb +51 -0
  54. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +77 -0
  55. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +89 -0
  56. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +696 -0
  57. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/credentials.rb +54 -0
  58. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb +157 -0
  59. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service.rb +51 -0
  60. data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +56 -0
  61. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +68 -0
  62. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +55 -0
  63. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +715 -0
  64. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/credentials.rb +54 -0
  65. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/paths.rb +137 -0
  66. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types.rb +51 -0
  67. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +209 -0
  68. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +71 -0
  69. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +654 -0
  70. data/lib/google/cloud/dialogflow/cx/v3/sessions/credentials.rb +54 -0
  71. data/lib/google/cloud/dialogflow/cx/v3/sessions/paths.rb +225 -0
  72. data/lib/google/cloud/dialogflow/cx/v3/sessions.rb +53 -0
  73. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +302 -0
  74. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +73 -0
  75. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +1324 -0
  76. data/lib/google/cloud/dialogflow/cx/v3/test_cases/credentials.rb +54 -0
  77. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +666 -0
  78. data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +249 -0
  79. data/lib/google/cloud/dialogflow/cx/v3/test_cases.rb +53 -0
  80. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +67 -0
  81. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +67 -0
  82. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +766 -0
  83. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/credentials.rb +54 -0
  84. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +144 -0
  85. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups.rb +51 -0
  86. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +59 -0
  87. data/lib/google/cloud/dialogflow/cx/v3/version.rb +30 -0
  88. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +88 -0
  89. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +57 -0
  90. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +792 -0
  91. data/lib/google/cloud/dialogflow/cx/v3/versions/credentials.rb +54 -0
  92. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +666 -0
  93. data/lib/google/cloud/dialogflow/cx/v3/versions/paths.rb +79 -0
  94. data/lib/google/cloud/dialogflow/cx/v3/versions.rb +52 -0
  95. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +172 -0
  96. data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +55 -0
  97. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +704 -0
  98. data/lib/google/cloud/dialogflow/cx/v3/webhooks/credentials.rb +54 -0
  99. data/lib/google/cloud/dialogflow/cx/v3/webhooks/paths.rb +96 -0
  100. data/lib/google/cloud/dialogflow/cx/v3/webhooks.rb +51 -0
  101. data/lib/google/cloud/dialogflow/cx/v3.rb +53 -0
  102. data/lib/google-cloud-dialogflow-cx-v3.rb +21 -0
  103. data/proto_docs/README.md +4 -0
  104. data/proto_docs/google/api/field_behavior.rb +71 -0
  105. data/proto_docs/google/api/resource.rb +283 -0
  106. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +57 -0
  107. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +301 -0
  108. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +322 -0
  109. data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +306 -0
  110. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +279 -0
  111. data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +438 -0
  112. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +438 -0
  113. data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +126 -0
  114. data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +318 -0
  115. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +478 -0
  116. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +220 -0
  117. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +222 -0
  118. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +798 -0
  119. data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +184 -0
  120. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +757 -0
  121. data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +195 -0
  122. data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +121 -0
  123. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +182 -0
  124. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +496 -0
  125. data/proto_docs/google/longrunning/operations.rb +164 -0
  126. data/proto_docs/google/protobuf/any.rb +141 -0
  127. data/proto_docs/google/protobuf/duration.rb +98 -0
  128. data/proto_docs/google/protobuf/empty.rb +36 -0
  129. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  130. data/proto_docs/google/protobuf/struct.rb +96 -0
  131. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  132. data/proto_docs/google/rpc/status.rb +46 -0
  133. data/proto_docs/google/type/latlng.rb +38 -0
  134. metadata +326 -0
@@ -0,0 +1,57 @@
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
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
26
+ # Settings exposed at lower level overrides the settings exposed at higher
27
+ # level.
28
+ #
29
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
30
+ # @!attribute [rw] logging_settings
31
+ # @return [::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings::LoggingSettings]
32
+ # Settings for logging.
33
+ # Settings for Dialogflow History, Contact Center messages, StackDriver logs,
34
+ # and speech logging.
35
+ # Exposed at the following levels:
36
+ # - Agent level.
37
+ class AdvancedSettings
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+
41
+ # Define behaviors on logging.
42
+ # @!attribute [rw] enable_stackdriver_logging
43
+ # @return [::Boolean]
44
+ # If true, StackDriver logging is currently enabled.
45
+ # @!attribute [rw] enable_interaction_logging
46
+ # @return [::Boolean]
47
+ # If true, DF Interaction logging is currently enabled.
48
+ class LoggingSettings
49
+ include ::Google::Protobuf::MessageExts
50
+ extend ::Google::Protobuf::MessageExts::ClassMethods
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,301 @@
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
+ # Settings related to speech recognition.
26
+ # @!attribute [rw] enable_speech_adaptation
27
+ # @return [::Boolean]
28
+ # Whether to use speech adaptation for speech recognition.
29
+ class SpeechToTextSettings
30
+ include ::Google::Protobuf::MessageExts
31
+ extend ::Google::Protobuf::MessageExts::ClassMethods
32
+ end
33
+
34
+ # Agents are best described as Natural Language Understanding (NLU) modules
35
+ # that transform user requests into actionable data. You can include agents
36
+ # in your app, product, or service to determine user intent and respond to the
37
+ # user in a natural way.
38
+ #
39
+ # After you create an agent, you can add {::Google::Cloud::Dialogflow::CX::V3::Intent Intents},
40
+ # {::Google::Cloud::Dialogflow::CX::V3::EntityType Entity Types}, {::Google::Cloud::Dialogflow::CX::V3::Flow Flows}, {::Google::Cloud::Dialogflow::CX::V3::Fulfillment Fulfillments},
41
+ # {::Google::Cloud::Dialogflow::CX::V3::Webhook Webhooks}, and so on to manage the conversation flows..
42
+ # @!attribute [rw] name
43
+ # @return [::String]
44
+ # The unique identifier of the agent.
45
+ # Required for the {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#update_agent Agents.UpdateAgent} method. {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#create_agent Agents.CreateAgent}
46
+ # populates the name automatically.
47
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
48
+ # @!attribute [rw] display_name
49
+ # @return [::String]
50
+ # Required. The human-readable name of the agent, unique within the location.
51
+ # @!attribute [rw] default_language_code
52
+ # @return [::String]
53
+ # Required. Immutable. The default language of the agent as a language tag.
54
+ # See [Language
55
+ # Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
56
+ # for a list of the currently supported language codes.
57
+ # This field cannot be set by the {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#update_agent Agents.UpdateAgent} method.
58
+ # @!attribute [rw] supported_language_codes
59
+ # @return [::Array<::String>]
60
+ # The list of all languages supported by the agent (except for the
61
+ # `default_language_code`).
62
+ # @!attribute [rw] time_zone
63
+ # @return [::String]
64
+ # Required. The time zone of the agent from the [time zone
65
+ # database](https://www.iana.org/time-zones), e.g., America/New_York,
66
+ # Europe/Paris.
67
+ # @!attribute [rw] description
68
+ # @return [::String]
69
+ # The description of the agent. The maximum length is 500 characters. If
70
+ # exceeded, the request is rejected.
71
+ # @!attribute [rw] avatar_uri
72
+ # @return [::String]
73
+ # The URI of the agent's avatar. Avatars are used throughout the Dialogflow
74
+ # console and in the self-hosted [Web
75
+ # Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
76
+ # integration.
77
+ # @!attribute [rw] speech_to_text_settings
78
+ # @return [::Google::Cloud::Dialogflow::CX::V3::SpeechToTextSettings]
79
+ # Speech recognition related settings.
80
+ # @!attribute [rw] start_flow
81
+ # @return [::String]
82
+ # Immutable. Name of the start flow in this agent. A start flow will be automatically
83
+ # created when the agent is created, and can only be deleted by deleting the
84
+ # agent.
85
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
86
+ # ID>/flows/<Flow ID>`.
87
+ # @!attribute [rw] security_settings
88
+ # @return [::String]
89
+ # Name of the {::Google::Cloud::Dialogflow::CX::V3::SecuritySettings SecuritySettings} reference for the agent.
90
+ # Format: `projects/<Project ID>/locations/<Location
91
+ # ID>/securitySettings/<Security Settings ID>`.
92
+ # @!attribute [rw] enable_stackdriver_logging
93
+ # @return [::Boolean]
94
+ # Indicates if stackdriver logging is enabled for the agent.
95
+ # Please use {::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings::LoggingSettings agent.advanced_settings}
96
+ # instead.
97
+ # @!attribute [rw] enable_spell_correction
98
+ # @return [::Boolean]
99
+ # Indicates if automatic spell correction is enabled in detect intent
100
+ # requests.
101
+ # @!attribute [rw] advanced_settings
102
+ # @return [::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings]
103
+ # Hierarchical advanced settings for this agent. The settings exposed at the
104
+ # lower level overrides the settings exposed at the higher level.
105
+ class Agent
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
109
+
110
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#list_agents Agents.ListAgents}.
111
+ # @!attribute [rw] parent
112
+ # @return [::String]
113
+ # Required. The location to list all agents for.
114
+ # Format: `projects/<Project ID>/locations/<Location ID>`.
115
+ # @!attribute [rw] page_size
116
+ # @return [::Integer]
117
+ # The maximum number of items to return in a single page. By default 100 and
118
+ # at most 1000.
119
+ # @!attribute [rw] page_token
120
+ # @return [::String]
121
+ # The next_page_token value returned from a previous list request.
122
+ class ListAgentsRequest
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+
127
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#list_agents Agents.ListAgents}.
128
+ # @!attribute [rw] agents
129
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Agent>]
130
+ # The list of agents. There will be a maximum number of items returned based
131
+ # on the page_size field in the request.
132
+ # @!attribute [rw] next_page_token
133
+ # @return [::String]
134
+ # Token to retrieve the next page of results, or empty if there are no more
135
+ # results in the list.
136
+ class ListAgentsResponse
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+ end
140
+
141
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#get_agent Agents.GetAgent}.
142
+ # @!attribute [rw] name
143
+ # @return [::String]
144
+ # Required. The name of the agent.
145
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
146
+ class GetAgentRequest
147
+ include ::Google::Protobuf::MessageExts
148
+ extend ::Google::Protobuf::MessageExts::ClassMethods
149
+ end
150
+
151
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#create_agent Agents.CreateAgent}.
152
+ # @!attribute [rw] parent
153
+ # @return [::String]
154
+ # Required. The location to create a agent for.
155
+ # Format: `projects/<Project ID>/locations/<Location ID>`.
156
+ # @!attribute [rw] agent
157
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Agent]
158
+ # Required. The agent to create.
159
+ class CreateAgentRequest
160
+ include ::Google::Protobuf::MessageExts
161
+ extend ::Google::Protobuf::MessageExts::ClassMethods
162
+ end
163
+
164
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#update_agent Agents.UpdateAgent}.
165
+ # @!attribute [rw] agent
166
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Agent]
167
+ # Required. The agent to update.
168
+ # @!attribute [rw] update_mask
169
+ # @return [::Google::Protobuf::FieldMask]
170
+ # The mask to control which fields get updated. If the mask is not present,
171
+ # all fields will be updated.
172
+ class UpdateAgentRequest
173
+ include ::Google::Protobuf::MessageExts
174
+ extend ::Google::Protobuf::MessageExts::ClassMethods
175
+ end
176
+
177
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#delete_agent Agents.DeleteAgent}.
178
+ # @!attribute [rw] name
179
+ # @return [::String]
180
+ # Required. The name of the agent to delete.
181
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
182
+ class DeleteAgentRequest
183
+ include ::Google::Protobuf::MessageExts
184
+ extend ::Google::Protobuf::MessageExts::ClassMethods
185
+ end
186
+
187
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#export_agent Agents.ExportAgent}.
188
+ # @!attribute [rw] name
189
+ # @return [::String]
190
+ # Required. The name of the agent to export.
191
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
192
+ # @!attribute [rw] agent_uri
193
+ # @return [::String]
194
+ # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
195
+ # export the agent to. The format of this URI must be
196
+ # `gs://<bucket-name>/<object-name>`.
197
+ # If left unspecified, the serialized agent is returned inline.
198
+ # @!attribute [rw] environment
199
+ # @return [::String]
200
+ # Optional. Environment name. If not set, draft environment is assumed.
201
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
202
+ # ID>/environments/<Environment ID>`.
203
+ class ExportAgentRequest
204
+ include ::Google::Protobuf::MessageExts
205
+ extend ::Google::Protobuf::MessageExts::ClassMethods
206
+ end
207
+
208
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#export_agent Agents.ExportAgent}.
209
+ # @!attribute [rw] agent_uri
210
+ # @return [::String]
211
+ # The URI to a file containing the exported agent. This field is populated
212
+ # only if `agent_uri` is specified in {::Google::Cloud::Dialogflow::CX::V3::ExportAgentRequest ExportAgentRequest}.
213
+ # @!attribute [rw] agent_content
214
+ # @return [::String]
215
+ # Uncompressed raw byte content for agent.
216
+ class ExportAgentResponse
217
+ include ::Google::Protobuf::MessageExts
218
+ extend ::Google::Protobuf::MessageExts::ClassMethods
219
+ end
220
+
221
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#restore_agent Agents.RestoreAgent}.
222
+ # @!attribute [rw] name
223
+ # @return [::String]
224
+ # Required. The name of the agent to restore into.
225
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
226
+ # @!attribute [rw] agent_uri
227
+ # @return [::String]
228
+ # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
229
+ # to restore agent from. The format of this URI must be
230
+ # `gs://<bucket-name>/<object-name>`.
231
+ # @!attribute [rw] agent_content
232
+ # @return [::String]
233
+ # Uncompressed raw byte content for agent.
234
+ # @!attribute [rw] restore_option
235
+ # @return [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::RestoreOption]
236
+ # Agent restore mode. If not specified, `KEEP` is assumed.
237
+ class RestoreAgentRequest
238
+ include ::Google::Protobuf::MessageExts
239
+ extend ::Google::Protobuf::MessageExts::ClassMethods
240
+
241
+ # Restore option.
242
+ module RestoreOption
243
+ # Unspecified. Treated as KEEP.
244
+ RESTORE_OPTION_UNSPECIFIED = 0
245
+
246
+ # Always respect the settings from the exported agent file. It may cause
247
+ # a restoration failure if some settings (e.g. model type) are not
248
+ # supported in the target agent.
249
+ KEEP = 1
250
+
251
+ # Fallback to default settings if some settings are not supported in the
252
+ # target agent.
253
+ FALLBACK = 2
254
+ end
255
+ end
256
+
257
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#validate_agent Agents.ValidateAgent}.
258
+ # @!attribute [rw] name
259
+ # @return [::String]
260
+ # Required. The agent to validate.
261
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
262
+ # @!attribute [rw] language_code
263
+ # @return [::String]
264
+ # If not specified, the agent's default language is used.
265
+ class ValidateAgentRequest
266
+ include ::Google::Protobuf::MessageExts
267
+ extend ::Google::Protobuf::MessageExts::ClassMethods
268
+ end
269
+
270
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#get_agent_validation_result Agents.GetAgentValidationResult}.
271
+ # @!attribute [rw] name
272
+ # @return [::String]
273
+ # Required. The agent name.
274
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
275
+ # ID>/validationResult`.
276
+ # @!attribute [rw] language_code
277
+ # @return [::String]
278
+ # If not specified, the agent's default language is used.
279
+ class GetAgentValidationResultRequest
280
+ include ::Google::Protobuf::MessageExts
281
+ extend ::Google::Protobuf::MessageExts::ClassMethods
282
+ end
283
+
284
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#get_agent_validation_result Agents.GetAgentValidationResult}.
285
+ # @!attribute [rw] name
286
+ # @return [::String]
287
+ # The unique identifier of the agent validation result.
288
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
289
+ # ID>/validationResult`.
290
+ # @!attribute [rw] flow_validation_results
291
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::FlowValidationResult>]
292
+ # Contains all flow validation results.
293
+ class AgentValidationResult
294
+ include ::Google::Protobuf::MessageExts
295
+ extend ::Google::Protobuf::MessageExts::ClassMethods
296
+ end
297
+ end
298
+ end
299
+ end
300
+ end
301
+ end
@@ -0,0 +1,322 @@
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
+ # Information for a word recognized by the speech recognizer.
26
+ # @!attribute [rw] word
27
+ # @return [::String]
28
+ # The word this info is for.
29
+ # @!attribute [rw] start_offset
30
+ # @return [::Google::Protobuf::Duration]
31
+ # Time offset relative to the beginning of the audio that corresponds to the
32
+ # start of the spoken word. This is an experimental feature and the accuracy
33
+ # of the time offset can vary.
34
+ # @!attribute [rw] end_offset
35
+ # @return [::Google::Protobuf::Duration]
36
+ # Time offset relative to the beginning of the audio that corresponds to the
37
+ # end of the spoken word. This is an experimental feature and the accuracy of
38
+ # the time offset can vary.
39
+ # @!attribute [rw] confidence
40
+ # @return [::Float]
41
+ # The Speech confidence between 0.0 and 1.0 for this word. A higher number
42
+ # indicates an estimated greater likelihood that the recognized word is
43
+ # correct. The default of 0.0 is a sentinel value indicating that confidence
44
+ # was not set.
45
+ #
46
+ # This field is not guaranteed to be fully stable over time for the same
47
+ # audio input. Users should also not rely on it to always be provided.
48
+ class SpeechWordInfo
49
+ include ::Google::Protobuf::MessageExts
50
+ extend ::Google::Protobuf::MessageExts::ClassMethods
51
+ end
52
+
53
+ # Instructs the speech recognizer on how to process the audio content.
54
+ # @!attribute [rw] audio_encoding
55
+ # @return [::Google::Cloud::Dialogflow::CX::V3::AudioEncoding]
56
+ # Required. Audio encoding of the audio content to process.
57
+ # @!attribute [rw] sample_rate_hertz
58
+ # @return [::Integer]
59
+ # Sample rate (in Hertz) of the audio content sent in the query.
60
+ # Refer to
61
+ # [Cloud Speech API
62
+ # documentation](https://cloud.google.com/speech-to-text/docs/basics) for
63
+ # more details.
64
+ # @!attribute [rw] enable_word_info
65
+ # @return [::Boolean]
66
+ # Optional. If `true`, Dialogflow returns {::Google::Cloud::Dialogflow::CX::V3::SpeechWordInfo SpeechWordInfo} in
67
+ # {::Google::Cloud::Dialogflow::CX::V3::StreamingRecognitionResult StreamingRecognitionResult} with information about the recognized speech
68
+ # words, e.g. start and end time offsets. If false or unspecified, Speech
69
+ # doesn't return any word-level information.
70
+ # @!attribute [rw] phrase_hints
71
+ # @return [::Array<::String>]
72
+ # Optional. A list of strings containing words and phrases that the speech
73
+ # recognizer should recognize with higher likelihood.
74
+ #
75
+ # See [the Cloud Speech
76
+ # documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
77
+ # for more details.
78
+ # @!attribute [rw] model
79
+ # @return [::String]
80
+ # Optional. Which Speech model to select for the given request. Select the
81
+ # model best suited to your domain to get best results. If a model is not
82
+ # explicitly specified, then we auto-select a model based on the parameters
83
+ # in the InputAudioConfig.
84
+ # If enhanced speech model is enabled for the agent and an enhanced
85
+ # version of the specified model for the language does not exist, then the
86
+ # speech is recognized using the standard version of the specified model.
87
+ # Refer to
88
+ # [Cloud Speech API
89
+ # documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
90
+ # for more details.
91
+ # @!attribute [rw] model_variant
92
+ # @return [::Google::Cloud::Dialogflow::CX::V3::SpeechModelVariant]
93
+ # Optional. Which variant of the {::Google::Cloud::Dialogflow::CX::V3::InputAudioConfig#model Speech model} to use.
94
+ # @!attribute [rw] single_utterance
95
+ # @return [::Boolean]
96
+ # Optional. If `false` (default), recognition does not cease until the
97
+ # client closes the stream.
98
+ # If `true`, the recognizer will detect a single spoken utterance in input
99
+ # audio. Recognition ceases when it detects the audio's voice has
100
+ # stopped or paused. In this case, once a detected intent is received, the
101
+ # client should close the stream and start a new request with a new stream as
102
+ # needed.
103
+ # Note: This setting is relevant only for streaming methods.
104
+ class InputAudioConfig
105
+ include ::Google::Protobuf::MessageExts
106
+ extend ::Google::Protobuf::MessageExts::ClassMethods
107
+ end
108
+
109
+ # Description of which voice to use for speech synthesis.
110
+ # @!attribute [rw] name
111
+ # @return [::String]
112
+ # Optional. The name of the voice. If not set, the service will choose a
113
+ # voice based on the other parameters such as language_code and
114
+ # {::Google::Cloud::Dialogflow::CX::V3::VoiceSelectionParams#ssml_gender ssml_gender}.
115
+ #
116
+ # For the list of available voices, please refer to [Supported voices and
117
+ # languages](https://cloud.google.com/text-to-speech/docs/voices).
118
+ # @!attribute [rw] ssml_gender
119
+ # @return [::Google::Cloud::Dialogflow::CX::V3::SsmlVoiceGender]
120
+ # Optional. The preferred gender of the voice. If not set, the service will
121
+ # choose a voice based on the other parameters such as language_code and
122
+ # {::Google::Cloud::Dialogflow::CX::V3::VoiceSelectionParams#name name}. Note that this is only a preference, not requirement. If a
123
+ # voice of the appropriate gender is not available, the synthesizer
124
+ # substitutes a voice with a different gender rather than failing the
125
+ # request.
126
+ class VoiceSelectionParams
127
+ include ::Google::Protobuf::MessageExts
128
+ extend ::Google::Protobuf::MessageExts::ClassMethods
129
+ end
130
+
131
+ # Configuration of how speech should be synthesized.
132
+ # @!attribute [rw] speaking_rate
133
+ # @return [::Float]
134
+ # Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
135
+ # native speed supported by the specific voice. 2.0 is twice as fast, and
136
+ # 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
137
+ # other values < 0.25 or > 4.0 will return an error.
138
+ # @!attribute [rw] pitch
139
+ # @return [::Float]
140
+ # Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
141
+ # semitones from the original pitch. -20 means decrease 20 semitones from the
142
+ # original pitch.
143
+ # @!attribute [rw] volume_gain_db
144
+ # @return [::Float]
145
+ # Optional. Volume gain (in dB) of the normal native volume supported by the
146
+ # specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
147
+ # 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
148
+ # will play at approximately half the amplitude of the normal native signal
149
+ # amplitude. A value of +6.0 (dB) will play at approximately twice the
150
+ # amplitude of the normal native signal amplitude. We strongly recommend not
151
+ # to exceed +10 (dB) as there's usually no effective increase in loudness for
152
+ # any value greater than that.
153
+ # @!attribute [rw] effects_profile_id
154
+ # @return [::Array<::String>]
155
+ # Optional. An identifier which selects 'audio effects' profiles that are
156
+ # applied on (post synthesized) text to speech. Effects are applied on top of
157
+ # each other in the order they are given.
158
+ # @!attribute [rw] voice
159
+ # @return [::Google::Cloud::Dialogflow::CX::V3::VoiceSelectionParams]
160
+ # Optional. The desired voice of the synthesized audio.
161
+ class SynthesizeSpeechConfig
162
+ include ::Google::Protobuf::MessageExts
163
+ extend ::Google::Protobuf::MessageExts::ClassMethods
164
+ end
165
+
166
+ # Instructs the speech synthesizer how to generate the output audio content.
167
+ # @!attribute [rw] audio_encoding
168
+ # @return [::Google::Cloud::Dialogflow::CX::V3::OutputAudioEncoding]
169
+ # Required. Audio encoding of the synthesized audio content.
170
+ # @!attribute [rw] sample_rate_hertz
171
+ # @return [::Integer]
172
+ # Optional. The synthesis sample rate (in hertz) for this audio. If not
173
+ # provided, then the synthesizer will use the default sample rate based on
174
+ # the audio encoding. If this is different from the voice's natural sample
175
+ # rate, then the synthesizer will honor this request by converting to the
176
+ # desired sample rate (which might result in worse audio quality).
177
+ # @!attribute [rw] synthesize_speech_config
178
+ # @return [::Google::Cloud::Dialogflow::CX::V3::SynthesizeSpeechConfig]
179
+ # Optional. Configuration of how speech should be synthesized.
180
+ class OutputAudioConfig
181
+ include ::Google::Protobuf::MessageExts
182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
183
+ end
184
+
185
+ # Audio encoding of the audio content sent in the conversational query request.
186
+ # Refer to the
187
+ # [Cloud Speech API
188
+ # documentation](https://cloud.google.com/speech-to-text/docs/basics) for more
189
+ # details.
190
+ module AudioEncoding
191
+ # Not specified.
192
+ AUDIO_ENCODING_UNSPECIFIED = 0
193
+
194
+ # Uncompressed 16-bit signed little-endian samples (Linear PCM).
195
+ AUDIO_ENCODING_LINEAR_16 = 1
196
+
197
+ # [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio
198
+ # Codec) is the recommended encoding because it is lossless (therefore
199
+ # recognition is not compromised) and requires only about half the
200
+ # bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and
201
+ # 24-bit samples, however, not all fields in `STREAMINFO` are supported.
202
+ AUDIO_ENCODING_FLAC = 2
203
+
204
+ # 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
205
+ AUDIO_ENCODING_MULAW = 3
206
+
207
+ # Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
208
+ AUDIO_ENCODING_AMR = 4
209
+
210
+ # Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
211
+ AUDIO_ENCODING_AMR_WB = 5
212
+
213
+ # Opus encoded audio frames in Ogg container
214
+ # ([OggOpus](https://wiki.xiph.org/OggOpus)).
215
+ # `sample_rate_hertz` must be 16000.
216
+ AUDIO_ENCODING_OGG_OPUS = 6
217
+
218
+ # Although the use of lossy encodings is not recommended, if a very low
219
+ # bitrate encoding is required, `OGG_OPUS` is highly preferred over
220
+ # Speex encoding. The [Speex](https://speex.org/) encoding supported by
221
+ # Dialogflow API has a header byte in each block, as in MIME type
222
+ # `audio/x-speex-with-header-byte`.
223
+ # It is a variant of the RTP Speex encoding defined in
224
+ # [RFC 5574](https://tools.ietf.org/html/rfc5574).
225
+ # The stream is a sequence of blocks, one block per RTP packet. Each block
226
+ # starts with a byte containing the length of the block, in bytes, followed
227
+ # by one or more frames of Speex data, padded to an integral number of
228
+ # bytes (octets) as specified in RFC 5574. In other words, each RTP header
229
+ # is replaced with a single byte containing the block length. Only Speex
230
+ # wideband is supported. `sample_rate_hertz` must be 16000.
231
+ AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7
232
+ end
233
+
234
+ # Variant of the specified {::Google::Cloud::Dialogflow::CX::V3::InputAudioConfig#model Speech model} to use.
235
+ #
236
+ # See the [Cloud Speech
237
+ # documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
238
+ # for which models have different variants. For example, the "phone_call" model
239
+ # has both a standard and an enhanced variant. When you use an enhanced model,
240
+ # you will generally receive higher quality results than for a standard model.
241
+ module SpeechModelVariant
242
+ # No model variant specified. In this case Dialogflow defaults to
243
+ # USE_BEST_AVAILABLE.
244
+ SPEECH_MODEL_VARIANT_UNSPECIFIED = 0
245
+
246
+ # Use the best available variant of the [Speech
247
+ # model][InputAudioConfig.model] that the caller is eligible for.
248
+ #
249
+ # Please see the [Dialogflow
250
+ # docs](https://cloud.google.com/dialogflow/docs/data-logging) for
251
+ # how to make your project eligible for enhanced models.
252
+ USE_BEST_AVAILABLE = 1
253
+
254
+ # Use standard model variant even if an enhanced model is available. See the
255
+ # [Cloud Speech
256
+ # documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
257
+ # for details about enhanced models.
258
+ USE_STANDARD = 2
259
+
260
+ # Use an enhanced model variant:
261
+ #
262
+ # * If an enhanced variant does not exist for the given
263
+ # {::Google::Cloud::Dialogflow::CX::V3::InputAudioConfig#model model} and request language, Dialogflow falls
264
+ # back to the standard variant.
265
+ #
266
+ # The [Cloud Speech
267
+ # documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
268
+ # describes which models have enhanced variants.
269
+ #
270
+ # * If the API caller isn't eligible for enhanced models, Dialogflow returns
271
+ # an error. Please see the [Dialogflow
272
+ # docs](https://cloud.google.com/dialogflow/docs/data-logging)
273
+ # for how to make your project eligible.
274
+ USE_ENHANCED = 3
275
+ end
276
+
277
+ # Gender of the voice as described in
278
+ # [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice).
279
+ module SsmlVoiceGender
280
+ # An unspecified gender, which means that the client doesn't care which
281
+ # gender the selected voice will have.
282
+ SSML_VOICE_GENDER_UNSPECIFIED = 0
283
+
284
+ # A male voice.
285
+ SSML_VOICE_GENDER_MALE = 1
286
+
287
+ # A female voice.
288
+ SSML_VOICE_GENDER_FEMALE = 2
289
+
290
+ # A gender-neutral voice.
291
+ SSML_VOICE_GENDER_NEUTRAL = 3
292
+ end
293
+
294
+ # Audio encoding of the output audio format in Text-To-Speech.
295
+ module OutputAudioEncoding
296
+ # Not specified.
297
+ OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0
298
+
299
+ # Uncompressed 16-bit signed little-endian samples (Linear PCM).
300
+ # Audio content returned as LINEAR16 also contains a WAV header.
301
+ OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1
302
+
303
+ # MP3 audio at 32kbps.
304
+ OUTPUT_AUDIO_ENCODING_MP3 = 2
305
+
306
+ # MP3 audio at 64kbps.
307
+ OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4
308
+
309
+ # Opus encoded audio wrapped in an ogg container. The result will be a
310
+ # file which can be played natively on Android, and in browsers (at least
311
+ # Chrome and Firefox). The quality of the encoding is considerably higher
312
+ # than MP3 while using approximately the same bitrate.
313
+ OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3
314
+
315
+ # 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
316
+ OUTPUT_AUDIO_ENCODING_MULAW = 5
317
+ end
318
+ end
319
+ end
320
+ end
321
+ end
322
+ end