google-api-client 0.51.0 → 0.52.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release-please.yml +23 -45
  3. data/CHANGELOG.md +100 -0
  4. data/README.md +2 -2
  5. data/generated/google/apis/admin_datatransfer_v1.rb +2 -2
  6. data/generated/google/apis/admin_datatransfer_v1/classes.rb +6 -16
  7. data/generated/google/apis/admin_datatransfer_v1/service.rb +3 -3
  8. data/generated/google/apis/admin_directory_v1.rb +2 -2
  9. data/generated/google/apis/admin_directory_v1/classes.rb +453 -321
  10. data/generated/google/apis/admin_directory_v1/representations.rb +15 -15
  11. data/generated/google/apis/admin_directory_v1/service.rb +323 -183
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/admin_reports_v1/classes.rb +48 -43
  14. data/generated/google/apis/admin_reports_v1/service.rb +198 -179
  15. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +1 -1
  17. data/generated/google/apis/analyticsadmin_v1alpha.rb +1 -1
  18. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +2 -2
  19. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +5 -12
  20. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  21. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +11 -11
  22. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  23. data/generated/google/apis/apigateway_v1beta.rb +1 -1
  24. data/generated/google/apis/apigateway_v1beta/classes.rb +3 -9
  25. data/generated/google/apis/apigateway_v1beta/representations.rb +0 -1
  26. data/generated/google/apis/apigee_v1.rb +1 -1
  27. data/generated/google/apis/apigee_v1/classes.rb +71 -0
  28. data/generated/google/apis/apigee_v1/representations.rb +42 -0
  29. data/generated/google/apis/apigee_v1/service.rb +206 -0
  30. data/generated/google/apis/appengine_v1.rb +1 -1
  31. data/generated/google/apis/appengine_v1/classes.rb +7 -0
  32. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  33. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  34. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +2 -2
  35. data/generated/google/apis/artifactregistry_v1beta1/service.rb +4 -1
  36. data/generated/google/apis/artifactregistry_v1beta2.rb +1 -1
  37. data/generated/google/apis/artifactregistry_v1beta2/classes.rb +2 -2
  38. data/generated/google/apis/artifactregistry_v1beta2/service.rb +4 -1
  39. data/generated/google/apis/cloudasset_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  41. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  43. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  44. data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -0
  45. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  46. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  47. data/generated/google/apis/cloudidentity_v1/classes.rb +240 -0
  48. data/generated/google/apis/cloudidentity_v1/representations.rb +125 -0
  49. data/generated/google/apis/cloudidentity_v1/service.rb +202 -2
  50. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  51. data/generated/google/apis/cloudidentity_v1beta1/service.rb +8 -2
  52. data/generated/google/apis/cloudkms_v1.rb +1 -1
  53. data/generated/google/apis/cloudkms_v1/classes.rb +0 -6
  54. data/generated/google/apis/cloudkms_v1/representations.rb +0 -1
  55. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +19 -0
  57. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +2 -0
  58. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +12 -2
  59. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  60. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +59 -0
  61. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +19 -0
  62. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  63. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +102 -0
  64. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +35 -0
  65. data/generated/google/apis/cloudtasks_v2beta3/service.rb +16 -2
  66. data/generated/google/apis/composer_v1beta1.rb +1 -1
  67. data/generated/google/apis/composer_v1beta1/classes.rb +64 -0
  68. data/generated/google/apis/composer_v1beta1/representations.rb +18 -0
  69. data/generated/google/apis/compute_alpha.rb +1 -1
  70. data/generated/google/apis/compute_alpha/classes.rb +1071 -341
  71. data/generated/google/apis/compute_alpha/representations.rb +248 -19
  72. data/generated/google/apis/compute_alpha/service.rb +291 -15
  73. data/generated/google/apis/compute_beta.rb +1 -1
  74. data/generated/google/apis/compute_beta/classes.rb +926 -283
  75. data/generated/google/apis/compute_beta/representations.rb +221 -18
  76. data/generated/google/apis/compute_beta/service.rb +24 -15
  77. data/generated/google/apis/compute_v1.rb +1 -1
  78. data/generated/google/apis/compute_v1/classes.rb +419 -158
  79. data/generated/google/apis/compute_v1/representations.rb +55 -0
  80. data/generated/google/apis/compute_v1/service.rb +9 -7
  81. data/generated/google/apis/container_v1.rb +1 -1
  82. data/generated/google/apis/container_v1/classes.rb +48 -9
  83. data/generated/google/apis/container_v1/representations.rb +17 -0
  84. data/generated/google/apis/container_v1/service.rb +4 -2
  85. data/generated/google/apis/container_v1beta1.rb +1 -1
  86. data/generated/google/apis/container_v1beta1/classes.rb +24 -13
  87. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  88. data/generated/google/apis/container_v1beta1/service.rb +6 -2
  89. data/generated/google/apis/content_v2_1.rb +1 -1
  90. data/generated/google/apis/content_v2_1/classes.rb +16 -7
  91. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  92. data/generated/google/apis/datamigration_v1beta1.rb +1 -1
  93. data/generated/google/apis/datamigration_v1beta1/classes.rb +0 -6
  94. data/generated/google/apis/datamigration_v1beta1/representations.rb +0 -1
  95. data/generated/google/apis/deploymentmanager_alpha.rb +6 -5
  96. data/generated/google/apis/deploymentmanager_alpha/classes.rb +276 -644
  97. data/generated/google/apis/deploymentmanager_alpha/representations.rb +10 -143
  98. data/generated/google/apis/deploymentmanager_alpha/service.rb +247 -398
  99. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  100. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -25
  101. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  102. data/generated/google/apis/deploymentmanager_v2beta/service.rb +8 -40
  103. data/generated/google/apis/dialogflow_v2.rb +1 -1
  104. data/generated/google/apis/dialogflow_v2/classes.rb +692 -0
  105. data/generated/google/apis/dialogflow_v2/representations.rb +326 -0
  106. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  107. data/generated/google/apis/dialogflow_v2beta1/classes.rb +692 -0
  108. data/generated/google/apis/dialogflow_v2beta1/representations.rb +326 -0
  109. data/generated/google/apis/{bigqueryreservation_v1alpha2.rb → dialogflow_v3.rb} +13 -12
  110. data/generated/google/apis/dialogflow_v3/classes.rb +8943 -0
  111. data/generated/google/apis/dialogflow_v3/representations.rb +3773 -0
  112. data/generated/google/apis/dialogflow_v3/service.rb +3006 -0
  113. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  114. data/generated/google/apis/dialogflow_v3beta1/classes.rb +784 -0
  115. data/generated/google/apis/dialogflow_v3beta1/representations.rb +360 -0
  116. data/generated/google/apis/dialogflow_v3beta1/service.rb +173 -0
  117. data/generated/google/apis/dlp_v2.rb +1 -1
  118. data/generated/google/apis/dlp_v2/service.rb +294 -1
  119. data/generated/google/apis/dns_v1.rb +1 -1
  120. data/generated/google/apis/dns_v1/classes.rb +65 -0
  121. data/generated/google/apis/dns_v1/representations.rb +32 -0
  122. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  123. data/generated/google/apis/documentai_v1beta2/classes.rb +220 -102
  124. data/generated/google/apis/documentai_v1beta2/representations.rb +105 -9
  125. data/generated/google/apis/documentai_v1beta3.rb +1 -1
  126. data/generated/google/apis/documentai_v1beta3/classes.rb +241 -117
  127. data/generated/google/apis/documentai_v1beta3/representations.rb +105 -9
  128. data/generated/google/apis/documentai_v1beta3/service.rb +81 -2
  129. data/generated/google/apis/eventarc_v1beta1.rb +1 -1
  130. data/generated/google/apis/eventarc_v1beta1/classes.rb +8 -9
  131. data/generated/google/apis/eventarc_v1beta1/service.rb +25 -5
  132. data/generated/google/apis/file_v1.rb +1 -1
  133. data/generated/google/apis/file_v1/classes.rb +61 -0
  134. data/generated/google/apis/file_v1/representations.rb +19 -0
  135. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  136. data/generated/google/apis/genomics_v2alpha1/classes.rb +11 -7
  137. data/generated/google/apis/healthcare_v1.rb +1 -1
  138. data/generated/google/apis/healthcare_v1/classes.rb +0 -6
  139. data/generated/google/apis/healthcare_v1/representations.rb +0 -1
  140. data/generated/google/apis/healthcare_v1/service.rb +13 -12
  141. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  142. data/generated/google/apis/healthcare_v1beta1/classes.rb +45 -19
  143. data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -1
  144. data/generated/google/apis/healthcare_v1beta1/service.rb +37 -37
  145. data/generated/google/apis/iap_v1.rb +1 -1
  146. data/generated/google/apis/iap_v1/classes.rb +0 -6
  147. data/generated/google/apis/iap_v1/representations.rb +0 -1
  148. data/generated/google/apis/iap_v1beta1.rb +1 -1
  149. data/generated/google/apis/iap_v1beta1/classes.rb +0 -6
  150. data/generated/google/apis/iap_v1beta1/representations.rb +0 -1
  151. data/generated/google/apis/metastore_v1beta.rb +35 -0
  152. data/generated/google/apis/metastore_v1beta/classes.rb +1151 -0
  153. data/generated/google/apis/metastore_v1beta/representations.rb +479 -0
  154. data/generated/google/apis/metastore_v1beta/service.rb +800 -0
  155. data/generated/google/apis/ml_v1.rb +1 -1
  156. data/generated/google/apis/ml_v1/classes.rb +51 -18
  157. data/generated/google/apis/ml_v1/representations.rb +16 -0
  158. data/generated/google/apis/monitoring_v3.rb +1 -1
  159. data/generated/google/apis/monitoring_v3/classes.rb +8 -4
  160. data/generated/google/apis/privateca_v1beta1.rb +1 -1
  161. data/generated/google/apis/privateca_v1beta1/classes.rb +2 -1
  162. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  163. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +37 -0
  164. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +18 -0
  165. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  166. data/generated/google/apis/recommender_v1beta1/service.rb +317 -0
  167. data/generated/google/apis/redis_v1.rb +1 -1
  168. data/generated/google/apis/redis_v1/classes.rb +2 -2
  169. data/generated/google/apis/redis_v1beta1.rb +1 -1
  170. data/generated/google/apis/redis_v1beta1/classes.rb +2 -2
  171. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  172. data/generated/google/apis/safebrowsing_v4/classes.rb +277 -277
  173. data/generated/google/apis/safebrowsing_v4/representations.rb +128 -128
  174. data/generated/google/apis/safebrowsing_v4/service.rb +44 -44
  175. data/generated/google/apis/searchconsole_v1.rb +1 -1
  176. data/generated/google/apis/searchconsole_v1/classes.rb +7 -0
  177. data/generated/google/apis/searchconsole_v1/representations.rb +1 -0
  178. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  179. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +11 -10
  180. data/generated/google/apis/servicecontrol_v1.rb +3 -3
  181. data/generated/google/apis/servicecontrol_v1/service.rb +2 -2
  182. data/generated/google/apis/servicecontrol_v2.rb +3 -3
  183. data/generated/google/apis/servicecontrol_v2/service.rb +2 -2
  184. data/generated/google/apis/servicedirectory_v1.rb +35 -0
  185. data/generated/google/apis/servicedirectory_v1/classes.rb +721 -0
  186. data/generated/google/apis/servicedirectory_v1/representations.rb +304 -0
  187. data/generated/google/apis/servicedirectory_v1/service.rb +957 -0
  188. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  189. data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
  190. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  191. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
  192. data/generated/google/apis/serviceusage_v1.rb +1 -1
  193. data/generated/google/apis/serviceusage_v1/classes.rb +11 -10
  194. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  195. data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -10
  196. data/generated/google/apis/slides_v1.rb +1 -1
  197. data/generated/google/apis/slides_v1/classes.rb +9 -3
  198. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  199. data/generated/google/apis/speech_v1p1beta1/classes.rb +0 -22
  200. data/generated/google/apis/speech_v1p1beta1/representations.rb +0 -2
  201. data/generated/google/apis/testing_v1.rb +1 -1
  202. data/generated/google/apis/testing_v1/classes.rb +1 -1
  203. data/generated/google/apis/trafficdirector_v2.rb +2 -2
  204. data/generated/google/apis/trafficdirector_v2/service.rb +1 -1
  205. data/generated/google/apis/transcoder_v1beta1.rb +1 -1
  206. data/generated/google/apis/transcoder_v1beta1/classes.rb +12 -2
  207. data/generated/google/apis/transcoder_v1beta1/representations.rb +1 -0
  208. data/generated/google/apis/translate_v3.rb +1 -1
  209. data/generated/google/apis/translate_v3/classes.rb +1 -1
  210. data/generated/google/apis/translate_v3beta1.rb +1 -1
  211. data/generated/google/apis/translate_v3beta1/classes.rb +1 -1
  212. data/generated/google/apis/workflows_v1beta.rb +1 -1
  213. data/generated/google/apis/workflows_v1beta/classes.rb +4 -4
  214. data/lib/google/apis/version.rb +1 -1
  215. metadata +15 -7
  216. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -426
  217. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -195
  218. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -622
@@ -0,0 +1,3006 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DialogflowV3
23
+ # Dialogflow API
24
+ #
25
+ # Builds conversational interfaces (for example, chatbots, and voice-powered
26
+ # apps and devices).
27
+ #
28
+ # @example
29
+ # require 'google/apis/dialogflow_v3'
30
+ #
31
+ # Dialogflow = Google::Apis::DialogflowV3 # Alias the module
32
+ # service = Dialogflow::DialogflowService.new
33
+ #
34
+ # @see https://cloud.google.com/dialogflow/
35
+ class DialogflowService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://dialogflow.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Creates an agent in the specified location.
52
+ # @param [String] parent
53
+ # Required. The location to create a agent for. Format: `projects//locations/`.
54
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] google_cloud_dialogflow_cx_v3_agent_object
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def create_project_location_agent(parent, google_cloud_dialogflow_cx_v3_agent_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v3/{+parent}/agents', options)
74
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
75
+ command.request_object = google_cloud_dialogflow_cx_v3_agent_object
76
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
77
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent
78
+ command.params['parent'] = parent unless parent.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Deletes the specified agent.
85
+ # @param [String] name
86
+ # Required. The name of the agent to delete. Format: `projects//locations//
87
+ # agents/`.
88
+ # @param [String] fields
89
+ # Selector specifying which fields to include in a partial response.
90
+ # @param [String] quota_user
91
+ # Available to use for quota purposes for server-side applications. Can be any
92
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
93
+ # @param [Google::Apis::RequestOptions] options
94
+ # Request-specific options
95
+ #
96
+ # @yield [result, err] Result & error if block supplied
97
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
98
+ # @yieldparam err [StandardError] error object if request failed
99
+ #
100
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
101
+ #
102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
105
+ def delete_project_location_agent(name, fields: nil, quota_user: nil, options: nil, &block)
106
+ command = make_simple_command(:delete, 'v3/{+name}', options)
107
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
108
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
109
+ command.params['name'] = name unless name.nil?
110
+ command.query['fields'] = fields unless fields.nil?
111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
112
+ execute_or_queue_command(command, &block)
113
+ end
114
+
115
+ # Exports the specified agent to a binary file.
116
+ # @param [String] name
117
+ # Required. The name of the agent to export. Format: `projects//locations//
118
+ # agents/`.
119
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportAgentRequest] google_cloud_dialogflow_cx_v3_export_agent_request_object
120
+ # @param [String] fields
121
+ # Selector specifying which fields to include in a partial response.
122
+ # @param [String] quota_user
123
+ # Available to use for quota purposes for server-side applications. Can be any
124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
125
+ # @param [Google::Apis::RequestOptions] options
126
+ # Request-specific options
127
+ #
128
+ # @yield [result, err] Result & error if block supplied
129
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
130
+ # @yieldparam err [StandardError] error object if request failed
131
+ #
132
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
133
+ #
134
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
135
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
136
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
137
+ def export_project_location_agent(name, google_cloud_dialogflow_cx_v3_export_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ command = make_simple_command(:post, 'v3/{+name}:export', options)
139
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExportAgentRequest::Representation
140
+ command.request_object = google_cloud_dialogflow_cx_v3_export_agent_request_object
141
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
142
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
143
+ command.params['name'] = name unless name.nil?
144
+ command.query['fields'] = fields unless fields.nil?
145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
146
+ execute_or_queue_command(command, &block)
147
+ end
148
+
149
+ # Retrieves the specified agent.
150
+ # @param [String] name
151
+ # Required. The name of the agent. Format: `projects//locations//agents/`.
152
+ # @param [String] fields
153
+ # Selector specifying which fields to include in a partial response.
154
+ # @param [String] quota_user
155
+ # Available to use for quota purposes for server-side applications. Can be any
156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
157
+ # @param [Google::Apis::RequestOptions] options
158
+ # Request-specific options
159
+ #
160
+ # @yield [result, err] Result & error if block supplied
161
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] parsed result object
162
+ # @yieldparam err [StandardError] error object if request failed
163
+ #
164
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent]
165
+ #
166
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
167
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
168
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
169
+ def get_project_location_agent(name, fields: nil, quota_user: nil, options: nil, &block)
170
+ command = make_simple_command(:get, 'v3/{+name}', options)
171
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
172
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent
173
+ command.params['name'] = name unless name.nil?
174
+ command.query['fields'] = fields unless fields.nil?
175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
176
+ execute_or_queue_command(command, &block)
177
+ end
178
+
179
+ # Returns the list of all agents in the specified location.
180
+ # @param [String] parent
181
+ # Required. The location to list all agents for. Format: `projects//locations/`.
182
+ # @param [Fixnum] page_size
183
+ # The maximum number of items to return in a single page. By default 100 and at
184
+ # most 1000.
185
+ # @param [String] page_token
186
+ # The next_page_token value returned from a previous list request.
187
+ # @param [String] fields
188
+ # Selector specifying which fields to include in a partial response.
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [Google::Apis::RequestOptions] options
193
+ # Request-specific options
194
+ #
195
+ # @yield [result, err] Result & error if block supplied
196
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse] parsed result object
197
+ # @yieldparam err [StandardError] error object if request failed
198
+ #
199
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse]
200
+ #
201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
204
+ def list_project_location_agents(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
205
+ command = make_simple_command(:get, 'v3/{+parent}/agents', options)
206
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse::Representation
207
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListAgentsResponse
208
+ command.params['parent'] = parent unless parent.nil?
209
+ command.query['pageSize'] = page_size unless page_size.nil?
210
+ command.query['pageToken'] = page_token unless page_token.nil?
211
+ command.query['fields'] = fields unless fields.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ execute_or_queue_command(command, &block)
214
+ end
215
+
216
+ # Updates the specified agent.
217
+ # @param [String] name
218
+ # The unique identifier of the agent. Required for the Agents.UpdateAgent method.
219
+ # Agents.CreateAgent populates the name automatically. Format: `projects//
220
+ # locations//agents/`.
221
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] google_cloud_dialogflow_cx_v3_agent_object
222
+ # @param [String] update_mask
223
+ # The mask to control which fields get updated. If the mask is not present, all
224
+ # fields will be updated.
225
+ # @param [String] fields
226
+ # Selector specifying which fields to include in a partial response.
227
+ # @param [String] quota_user
228
+ # Available to use for quota purposes for server-side applications. Can be any
229
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
230
+ # @param [Google::Apis::RequestOptions] options
231
+ # Request-specific options
232
+ #
233
+ # @yield [result, err] Result & error if block supplied
234
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent] parsed result object
235
+ # @yieldparam err [StandardError] error object if request failed
236
+ #
237
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent]
238
+ #
239
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
242
+ def patch_project_location_agent(name, google_cloud_dialogflow_cx_v3_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
243
+ command = make_simple_command(:patch, 'v3/{+name}', options)
244
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
245
+ command.request_object = google_cloud_dialogflow_cx_v3_agent_object
246
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent::Representation
247
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Agent
248
+ command.params['name'] = name unless name.nil?
249
+ command.query['updateMask'] = update_mask unless update_mask.nil?
250
+ command.query['fields'] = fields unless fields.nil?
251
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
252
+ execute_or_queue_command(command, &block)
253
+ end
254
+
255
+ # Restores the specified agent from a binary file. Replaces the current agent
256
+ # with a new one. Note that all existing resources in agent (e.g. intents,
257
+ # entity types, flows) will be removed.
258
+ # @param [String] name
259
+ # Required. The name of the agent to restore into. Format: `projects//locations//
260
+ # agents/`.
261
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreAgentRequest] google_cloud_dialogflow_cx_v3_restore_agent_request_object
262
+ # @param [String] fields
263
+ # Selector specifying which fields to include in a partial response.
264
+ # @param [String] quota_user
265
+ # Available to use for quota purposes for server-side applications. Can be any
266
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
267
+ # @param [Google::Apis::RequestOptions] options
268
+ # Request-specific options
269
+ #
270
+ # @yield [result, err] Result & error if block supplied
271
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
272
+ # @yieldparam err [StandardError] error object if request failed
273
+ #
274
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
275
+ #
276
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
277
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
278
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
279
+ def restore_project_location_agent(name, google_cloud_dialogflow_cx_v3_restore_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
280
+ command = make_simple_command(:post, 'v3/{+name}:restore', options)
281
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RestoreAgentRequest::Representation
282
+ command.request_object = google_cloud_dialogflow_cx_v3_restore_agent_request_object
283
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
284
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
285
+ command.params['name'] = name unless name.nil?
286
+ command.query['fields'] = fields unless fields.nil?
287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ execute_or_queue_command(command, &block)
289
+ end
290
+
291
+ # Creates an entity type in the specified agent.
292
+ # @param [String] parent
293
+ # Required. The agent to create a entity type for. Format: `projects//locations//
294
+ # agents/`.
295
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] google_cloud_dialogflow_cx_v3_entity_type_object
296
+ # @param [String] language_code
297
+ # The language of the following fields in `entity_type`: * `EntityType.entities.
298
+ # value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
299
+ # If not specified, the agent's default language is used. [Many languages](https:
300
+ # //cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
301
+ # languages must be enabled in the agent before they can be used.
302
+ # @param [String] fields
303
+ # Selector specifying which fields to include in a partial response.
304
+ # @param [String] quota_user
305
+ # Available to use for quota purposes for server-side applications. Can be any
306
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
307
+ # @param [Google::Apis::RequestOptions] options
308
+ # Request-specific options
309
+ #
310
+ # @yield [result, err] Result & error if block supplied
311
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] parsed result object
312
+ # @yieldparam err [StandardError] error object if request failed
313
+ #
314
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType]
315
+ #
316
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
317
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
318
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
319
+ def create_project_location_agent_entity_type(parent, google_cloud_dialogflow_cx_v3_entity_type_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
320
+ command = make_simple_command(:post, 'v3/{+parent}/entityTypes', options)
321
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
322
+ command.request_object = google_cloud_dialogflow_cx_v3_entity_type_object
323
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
324
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType
325
+ command.params['parent'] = parent unless parent.nil?
326
+ command.query['languageCode'] = language_code unless language_code.nil?
327
+ command.query['fields'] = fields unless fields.nil?
328
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
329
+ execute_or_queue_command(command, &block)
330
+ end
331
+
332
+ # Deletes the specified entity type.
333
+ # @param [String] name
334
+ # Required. The name of the entity type to delete. Format: `projects//locations//
335
+ # agents//entityTypes/`.
336
+ # @param [Boolean] force
337
+ # This field has no effect for entity type not being used. For entity types that
338
+ # are used by intents or pages: * If `force` is set to false, an error will be
339
+ # returned with message indicating the referencing resources. * If `force` is
340
+ # set to true, Dialogflow will remove the entity type, as well as any references
341
+ # to the entity type (i.e. Page parameter of the entity type will be changed to '
342
+ # @sys.any' and intent parameter of the entity type will be removed).
343
+ # @param [String] fields
344
+ # Selector specifying which fields to include in a partial response.
345
+ # @param [String] quota_user
346
+ # Available to use for quota purposes for server-side applications. Can be any
347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
348
+ # @param [Google::Apis::RequestOptions] options
349
+ # Request-specific options
350
+ #
351
+ # @yield [result, err] Result & error if block supplied
352
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
353
+ # @yieldparam err [StandardError] error object if request failed
354
+ #
355
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
356
+ #
357
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
358
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
359
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
360
+ def delete_project_location_agent_entity_type(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
361
+ command = make_simple_command(:delete, 'v3/{+name}', options)
362
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
363
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
364
+ command.params['name'] = name unless name.nil?
365
+ command.query['force'] = force unless force.nil?
366
+ command.query['fields'] = fields unless fields.nil?
367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
368
+ execute_or_queue_command(command, &block)
369
+ end
370
+
371
+ # Retrieves the specified entity type.
372
+ # @param [String] name
373
+ # Required. The name of the entity type. Format: `projects//locations//agents//
374
+ # entityTypes/`.
375
+ # @param [String] language_code
376
+ # The language to retrieve the entity type for. The following fields are
377
+ # language dependent: * `EntityType.entities.value` * `EntityType.entities.
378
+ # synonyms` * `EntityType.excluded_phrases.value` If not specified, the agent's
379
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
380
+ # docs/reference/language) are supported. Note: languages must be enabled in the
381
+ # agent before they can be used.
382
+ # @param [String] fields
383
+ # Selector specifying which fields to include in a partial response.
384
+ # @param [String] quota_user
385
+ # Available to use for quota purposes for server-side applications. Can be any
386
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
387
+ # @param [Google::Apis::RequestOptions] options
388
+ # Request-specific options
389
+ #
390
+ # @yield [result, err] Result & error if block supplied
391
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] parsed result object
392
+ # @yieldparam err [StandardError] error object if request failed
393
+ #
394
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType]
395
+ #
396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
399
+ def get_project_location_agent_entity_type(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
400
+ command = make_simple_command(:get, 'v3/{+name}', options)
401
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
402
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType
403
+ command.params['name'] = name unless name.nil?
404
+ command.query['languageCode'] = language_code unless language_code.nil?
405
+ command.query['fields'] = fields unless fields.nil?
406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
407
+ execute_or_queue_command(command, &block)
408
+ end
409
+
410
+ # Returns the list of all entity types in the specified agent.
411
+ # @param [String] parent
412
+ # Required. The agent to list all entity types for. Format: `projects//locations/
413
+ # /agents/`.
414
+ # @param [String] language_code
415
+ # The language to list entity types for. The following fields are language
416
+ # dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `
417
+ # EntityType.excluded_phrases.value` If not specified, the agent's default
418
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
419
+ # reference/language) are supported. Note: languages must be enabled in the
420
+ # agent before they can be used.
421
+ # @param [Fixnum] page_size
422
+ # The maximum number of items to return in a single page. By default 100 and at
423
+ # most 1000.
424
+ # @param [String] page_token
425
+ # The next_page_token value returned from a previous list request.
426
+ # @param [String] fields
427
+ # Selector specifying which fields to include in a partial response.
428
+ # @param [String] quota_user
429
+ # Available to use for quota purposes for server-side applications. Can be any
430
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
431
+ # @param [Google::Apis::RequestOptions] options
432
+ # Request-specific options
433
+ #
434
+ # @yield [result, err] Result & error if block supplied
435
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse] parsed result object
436
+ # @yieldparam err [StandardError] error object if request failed
437
+ #
438
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse]
439
+ #
440
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
441
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
442
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
443
+ def list_project_location_agent_entity_types(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
444
+ command = make_simple_command(:get, 'v3/{+parent}/entityTypes', options)
445
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse::Representation
446
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEntityTypesResponse
447
+ command.params['parent'] = parent unless parent.nil?
448
+ command.query['languageCode'] = language_code unless language_code.nil?
449
+ command.query['pageSize'] = page_size unless page_size.nil?
450
+ command.query['pageToken'] = page_token unless page_token.nil?
451
+ command.query['fields'] = fields unless fields.nil?
452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
453
+ execute_or_queue_command(command, &block)
454
+ end
455
+
456
+ # Updates the specified entity type.
457
+ # @param [String] name
458
+ # The unique identifier of the entity type. Required for EntityTypes.
459
+ # UpdateEntityType. Format: `projects//locations//agents//entityTypes/`.
460
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] google_cloud_dialogflow_cx_v3_entity_type_object
461
+ # @param [String] language_code
462
+ # The language of the following fields in `entity_type`: * `EntityType.entities.
463
+ # value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
464
+ # If not specified, the agent's default language is used. [Many languages](https:
465
+ # //cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
466
+ # languages must be enabled in the agent before they can be used.
467
+ # @param [String] update_mask
468
+ # The mask to control which fields get updated.
469
+ # @param [String] fields
470
+ # Selector specifying which fields to include in a partial response.
471
+ # @param [String] quota_user
472
+ # Available to use for quota purposes for server-side applications. Can be any
473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
474
+ # @param [Google::Apis::RequestOptions] options
475
+ # Request-specific options
476
+ #
477
+ # @yield [result, err] Result & error if block supplied
478
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType] parsed result object
479
+ # @yieldparam err [StandardError] error object if request failed
480
+ #
481
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType]
482
+ #
483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
486
+ def patch_project_location_agent_entity_type(name, google_cloud_dialogflow_cx_v3_entity_type_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
487
+ command = make_simple_command(:patch, 'v3/{+name}', options)
488
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
489
+ command.request_object = google_cloud_dialogflow_cx_v3_entity_type_object
490
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType::Representation
491
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EntityType
492
+ command.params['name'] = name unless name.nil?
493
+ command.query['languageCode'] = language_code unless language_code.nil?
494
+ command.query['updateMask'] = update_mask unless update_mask.nil?
495
+ command.query['fields'] = fields unless fields.nil?
496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
497
+ execute_or_queue_command(command, &block)
498
+ end
499
+
500
+ # Creates an Environment in the specified Agent.
501
+ # @param [String] parent
502
+ # Required. The Agent to create an Environment for. Format: `projects//locations/
503
+ # /agents/`.
504
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] google_cloud_dialogflow_cx_v3_environment_object
505
+ # @param [String] fields
506
+ # Selector specifying which fields to include in a partial response.
507
+ # @param [String] quota_user
508
+ # Available to use for quota purposes for server-side applications. Can be any
509
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
510
+ # @param [Google::Apis::RequestOptions] options
511
+ # Request-specific options
512
+ #
513
+ # @yield [result, err] Result & error if block supplied
514
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
515
+ # @yieldparam err [StandardError] error object if request failed
516
+ #
517
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
518
+ #
519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
522
+ def create_project_location_agent_environment(parent, google_cloud_dialogflow_cx_v3_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
523
+ command = make_simple_command(:post, 'v3/{+parent}/environments', options)
524
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation
525
+ command.request_object = google_cloud_dialogflow_cx_v3_environment_object
526
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
527
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
528
+ command.params['parent'] = parent unless parent.nil?
529
+ command.query['fields'] = fields unless fields.nil?
530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
531
+ execute_or_queue_command(command, &block)
532
+ end
533
+
534
+ # Deletes the specified Environment.
535
+ # @param [String] name
536
+ # Required. The name of the Environment to delete. Format: `projects//locations//
537
+ # agents//environments/`.
538
+ # @param [String] fields
539
+ # Selector specifying which fields to include in a partial response.
540
+ # @param [String] quota_user
541
+ # Available to use for quota purposes for server-side applications. Can be any
542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
543
+ # @param [Google::Apis::RequestOptions] options
544
+ # Request-specific options
545
+ #
546
+ # @yield [result, err] Result & error if block supplied
547
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
548
+ # @yieldparam err [StandardError] error object if request failed
549
+ #
550
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
551
+ #
552
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
553
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
554
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
555
+ def delete_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
556
+ command = make_simple_command(:delete, 'v3/{+name}', options)
557
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
558
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
559
+ command.params['name'] = name unless name.nil?
560
+ command.query['fields'] = fields unless fields.nil?
561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
562
+ execute_or_queue_command(command, &block)
563
+ end
564
+
565
+ # Retrieves the specified Environment.
566
+ # @param [String] name
567
+ # Required. The name of the Environment. Format: `projects//locations//agents//
568
+ # environments/`.
569
+ # @param [String] fields
570
+ # Selector specifying which fields to include in a partial response.
571
+ # @param [String] quota_user
572
+ # Available to use for quota purposes for server-side applications. Can be any
573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
574
+ # @param [Google::Apis::RequestOptions] options
575
+ # Request-specific options
576
+ #
577
+ # @yield [result, err] Result & error if block supplied
578
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] parsed result object
579
+ # @yieldparam err [StandardError] error object if request failed
580
+ #
581
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment]
582
+ #
583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
586
+ def get_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
587
+ command = make_simple_command(:get, 'v3/{+name}', options)
588
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation
589
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment
590
+ command.params['name'] = name unless name.nil?
591
+ command.query['fields'] = fields unless fields.nil?
592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
593
+ execute_or_queue_command(command, &block)
594
+ end
595
+
596
+ # Returns the list of all environments in the specified Agent.
597
+ # @param [String] parent
598
+ # Required. The Agent to list all environments for. Format: `projects//locations/
599
+ # /agents/`.
600
+ # @param [Fixnum] page_size
601
+ # The maximum number of items to return in a single page. By default 20 and at
602
+ # most 100.
603
+ # @param [String] page_token
604
+ # The next_page_token value returned from a previous list request.
605
+ # @param [String] fields
606
+ # Selector specifying which fields to include in a partial response.
607
+ # @param [String] quota_user
608
+ # Available to use for quota purposes for server-side applications. Can be any
609
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
610
+ # @param [Google::Apis::RequestOptions] options
611
+ # Request-specific options
612
+ #
613
+ # @yield [result, err] Result & error if block supplied
614
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse] parsed result object
615
+ # @yieldparam err [StandardError] error object if request failed
616
+ #
617
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse]
618
+ #
619
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
620
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
621
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
622
+ def list_project_location_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
623
+ command = make_simple_command(:get, 'v3/{+parent}/environments', options)
624
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse::Representation
625
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListEnvironmentsResponse
626
+ command.params['parent'] = parent unless parent.nil?
627
+ command.query['pageSize'] = page_size unless page_size.nil?
628
+ command.query['pageToken'] = page_token unless page_token.nil?
629
+ command.query['fields'] = fields unless fields.nil?
630
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
631
+ execute_or_queue_command(command, &block)
632
+ end
633
+
634
+ # Looks up the history of the specified Environment.
635
+ # @param [String] name
636
+ # Required. Resource name of the environment to look up the history for. Format:
637
+ # `projects//locations//agents//environments/`.
638
+ # @param [Fixnum] page_size
639
+ # The maximum number of items to return in a single page. By default 100 and at
640
+ # most 1000.
641
+ # @param [String] page_token
642
+ # The next_page_token value returned from a previous list request.
643
+ # @param [String] fields
644
+ # Selector specifying which fields to include in a partial response.
645
+ # @param [String] quota_user
646
+ # Available to use for quota purposes for server-side applications. Can be any
647
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
648
+ # @param [Google::Apis::RequestOptions] options
649
+ # Request-specific options
650
+ #
651
+ # @yield [result, err] Result & error if block supplied
652
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse] parsed result object
653
+ # @yieldparam err [StandardError] error object if request failed
654
+ #
655
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse]
656
+ #
657
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
658
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
659
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
660
+ def lookup_project_location_agent_environment_environment_history(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
661
+ command = make_simple_command(:get, 'v3/{+name}:lookupEnvironmentHistory', options)
662
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse::Representation
663
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse
664
+ command.params['name'] = name unless name.nil?
665
+ command.query['pageSize'] = page_size unless page_size.nil?
666
+ command.query['pageToken'] = page_token unless page_token.nil?
667
+ command.query['fields'] = fields unless fields.nil?
668
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
669
+ execute_or_queue_command(command, &block)
670
+ end
671
+
672
+ # Updates the specified Environment.
673
+ # @param [String] name
674
+ # The name of the environment. Format: `projects//locations//agents//
675
+ # environments/`.
676
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment] google_cloud_dialogflow_cx_v3_environment_object
677
+ # @param [String] update_mask
678
+ # Required. The mask to control which fields get updated.
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
681
+ # @param [String] quota_user
682
+ # Available to use for quota purposes for server-side applications. Can be any
683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
684
+ # @param [Google::Apis::RequestOptions] options
685
+ # Request-specific options
686
+ #
687
+ # @yield [result, err] Result & error if block supplied
688
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
689
+ # @yieldparam err [StandardError] error object if request failed
690
+ #
691
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
692
+ #
693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
696
+ def patch_project_location_agent_environment(name, google_cloud_dialogflow_cx_v3_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
697
+ command = make_simple_command(:patch, 'v3/{+name}', options)
698
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment::Representation
699
+ command.request_object = google_cloud_dialogflow_cx_v3_environment_object
700
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
701
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
702
+ command.params['name'] = name unless name.nil?
703
+ command.query['updateMask'] = update_mask unless update_mask.nil?
704
+ command.query['fields'] = fields unless fields.nil?
705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
706
+ execute_or_queue_command(command, &block)
707
+ end
708
+
709
+ # Processes a natural language query and returns structured, actionable data as
710
+ # a result. This method is not idempotent, because it may cause session entity
711
+ # types to be updated, which in turn might affect results of future queries.
712
+ # Note: Always use agent versions for production traffic. See [Versions and
713
+ # environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
714
+ # @param [String] session
715
+ # Required. The name of the session this query is sent to. Format: `projects//
716
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
717
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
718
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
719
+ # It can be a random number or some type of session identifiers (preferably
720
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
721
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
722
+ # cx/docs/concept/session). Note: Always use agent versions for production
723
+ # traffic. See [Versions and environments](https://cloud.google.com/dialogflow/
724
+ # cx/docs/concept/version).
725
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest] google_cloud_dialogflow_cx_v3_detect_intent_request_object
726
+ # @param [String] fields
727
+ # Selector specifying which fields to include in a partial response.
728
+ # @param [String] quota_user
729
+ # Available to use for quota purposes for server-side applications. Can be any
730
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
731
+ # @param [Google::Apis::RequestOptions] options
732
+ # Request-specific options
733
+ #
734
+ # @yield [result, err] Result & error if block supplied
735
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse] parsed result object
736
+ # @yieldparam err [StandardError] error object if request failed
737
+ #
738
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse]
739
+ #
740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
743
+ def detect_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
744
+ command = make_simple_command(:post, 'v3/{+session}:detectIntent', options)
745
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest::Representation
746
+ command.request_object = google_cloud_dialogflow_cx_v3_detect_intent_request_object
747
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse::Representation
748
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse
749
+ command.params['session'] = session unless session.nil?
750
+ command.query['fields'] = fields unless fields.nil?
751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
752
+ execute_or_queue_command(command, &block)
753
+ end
754
+
755
+ # Fulfills a matched intent returned by MatchIntent. Must be called after
756
+ # MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is
757
+ # undefined.
758
+ # @param [String] session
759
+ # Required. The name of the session this query is sent to. Format: `projects//
760
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
761
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
762
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
763
+ # It can be a random number or some type of session identifiers (preferably
764
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
765
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
766
+ # cx/docs/concept/session).
767
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest] google_cloud_dialogflow_cx_v3_fulfill_intent_request_object
768
+ # @param [String] fields
769
+ # Selector specifying which fields to include in a partial response.
770
+ # @param [String] quota_user
771
+ # Available to use for quota purposes for server-side applications. Can be any
772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
773
+ # @param [Google::Apis::RequestOptions] options
774
+ # Request-specific options
775
+ #
776
+ # @yield [result, err] Result & error if block supplied
777
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse] parsed result object
778
+ # @yieldparam err [StandardError] error object if request failed
779
+ #
780
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse]
781
+ #
782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
785
+ def fulfill_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3_fulfill_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
786
+ command = make_simple_command(:post, 'v3/{+session}:fulfillIntent', options)
787
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest::Representation
788
+ command.request_object = google_cloud_dialogflow_cx_v3_fulfill_intent_request_object
789
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse::Representation
790
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse
791
+ command.params['session'] = session unless session.nil?
792
+ command.query['fields'] = fields unless fields.nil?
793
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
794
+ execute_or_queue_command(command, &block)
795
+ end
796
+
797
+ # Returns preliminary intent match results, doesn't change the session status.
798
+ # @param [String] session
799
+ # Required. The name of the session this query is sent to. Format: `projects//
800
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
801
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
802
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
803
+ # It can be a random number or some type of session identifiers (preferably
804
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
805
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
806
+ # cx/docs/concept/session).
807
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest] google_cloud_dialogflow_cx_v3_match_intent_request_object
808
+ # @param [String] fields
809
+ # Selector specifying which fields to include in a partial response.
810
+ # @param [String] quota_user
811
+ # Available to use for quota purposes for server-side applications. Can be any
812
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
813
+ # @param [Google::Apis::RequestOptions] options
814
+ # Request-specific options
815
+ #
816
+ # @yield [result, err] Result & error if block supplied
817
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse] parsed result object
818
+ # @yieldparam err [StandardError] error object if request failed
819
+ #
820
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse]
821
+ #
822
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
823
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
824
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
825
+ def match_project_location_agent_environment_session_intent(session, google_cloud_dialogflow_cx_v3_match_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
826
+ command = make_simple_command(:post, 'v3/{+session}:matchIntent', options)
827
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest::Representation
828
+ command.request_object = google_cloud_dialogflow_cx_v3_match_intent_request_object
829
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse::Representation
830
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse
831
+ command.params['session'] = session unless session.nil?
832
+ command.query['fields'] = fields unless fields.nil?
833
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
834
+ execute_or_queue_command(command, &block)
835
+ end
836
+
837
+ # Creates a session entity type. If the specified session entity type already
838
+ # exists, overrides the session entity type.
839
+ # @param [String] parent
840
+ # Required. The session to create a session entity type for. Format: `projects//
841
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
842
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
843
+ # environment.
844
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object
845
+ # @param [String] fields
846
+ # Selector specifying which fields to include in a partial response.
847
+ # @param [String] quota_user
848
+ # Available to use for quota purposes for server-side applications. Can be any
849
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
850
+ # @param [Google::Apis::RequestOptions] options
851
+ # Request-specific options
852
+ #
853
+ # @yield [result, err] Result & error if block supplied
854
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
855
+ # @yieldparam err [StandardError] error object if request failed
856
+ #
857
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
858
+ #
859
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
860
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
861
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
862
+ def create_project_location_agent_environment_session_entity_type(parent, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
863
+ command = make_simple_command(:post, 'v3/{+parent}/entityTypes', options)
864
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
865
+ command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object
866
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
867
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
868
+ command.params['parent'] = parent unless parent.nil?
869
+ command.query['fields'] = fields unless fields.nil?
870
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
871
+ execute_or_queue_command(command, &block)
872
+ end
873
+
874
+ # Deletes the specified session entity type.
875
+ # @param [String] name
876
+ # Required. The name of the session entity type to delete. Format: `projects//
877
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
878
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
879
+ # we assume default 'draft' environment.
880
+ # @param [String] fields
881
+ # Selector specifying which fields to include in a partial response.
882
+ # @param [String] quota_user
883
+ # Available to use for quota purposes for server-side applications. Can be any
884
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
885
+ # @param [Google::Apis::RequestOptions] options
886
+ # Request-specific options
887
+ #
888
+ # @yield [result, err] Result & error if block supplied
889
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
890
+ # @yieldparam err [StandardError] error object if request failed
891
+ #
892
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
893
+ #
894
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
895
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
896
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
897
+ def delete_project_location_agent_environment_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
898
+ command = make_simple_command(:delete, 'v3/{+name}', options)
899
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
900
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
901
+ command.params['name'] = name unless name.nil?
902
+ command.query['fields'] = fields unless fields.nil?
903
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
904
+ execute_or_queue_command(command, &block)
905
+ end
906
+
907
+ # Retrieves the specified session entity type.
908
+ # @param [String] name
909
+ # Required. The name of the session entity type. Format: `projects//locations//
910
+ # agents//sessions//entityTypes/` or `projects//locations//agents//environments//
911
+ # sessions//entityTypes/`. If `Environment ID` is not specified, we assume
912
+ # default 'draft' environment.
913
+ # @param [String] fields
914
+ # Selector specifying which fields to include in a partial response.
915
+ # @param [String] quota_user
916
+ # Available to use for quota purposes for server-side applications. Can be any
917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
918
+ # @param [Google::Apis::RequestOptions] options
919
+ # Request-specific options
920
+ #
921
+ # @yield [result, err] Result & error if block supplied
922
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
923
+ # @yieldparam err [StandardError] error object if request failed
924
+ #
925
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
926
+ #
927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
930
+ def get_project_location_agent_environment_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
931
+ command = make_simple_command(:get, 'v3/{+name}', options)
932
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
933
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
934
+ command.params['name'] = name unless name.nil?
935
+ command.query['fields'] = fields unless fields.nil?
936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
937
+ execute_or_queue_command(command, &block)
938
+ end
939
+
940
+ # Returns the list of all session entity types in the specified session.
941
+ # @param [String] parent
942
+ # Required. The session to list all session entity types from. Format: `projects/
943
+ # /locations//agents//sessions/` or `projects//locations//agents//environments//
944
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
945
+ # environment.
946
+ # @param [Fixnum] page_size
947
+ # The maximum number of items to return in a single page. By default 100 and at
948
+ # most 1000.
949
+ # @param [String] page_token
950
+ # The next_page_token value returned from a previous list request.
951
+ # @param [String] fields
952
+ # Selector specifying which fields to include in a partial response.
953
+ # @param [String] quota_user
954
+ # Available to use for quota purposes for server-side applications. Can be any
955
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
956
+ # @param [Google::Apis::RequestOptions] options
957
+ # Request-specific options
958
+ #
959
+ # @yield [result, err] Result & error if block supplied
960
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse] parsed result object
961
+ # @yieldparam err [StandardError] error object if request failed
962
+ #
963
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse]
964
+ #
965
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
966
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
967
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
968
+ def list_project_location_agent_environment_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
969
+ command = make_simple_command(:get, 'v3/{+parent}/entityTypes', options)
970
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse::Representation
971
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse
972
+ command.params['parent'] = parent unless parent.nil?
973
+ command.query['pageSize'] = page_size unless page_size.nil?
974
+ command.query['pageToken'] = page_token unless page_token.nil?
975
+ command.query['fields'] = fields unless fields.nil?
976
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
977
+ execute_or_queue_command(command, &block)
978
+ end
979
+
980
+ # Updates the specified session entity type.
981
+ # @param [String] name
982
+ # Required. The unique identifier of the session entity type. Format: `projects//
983
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
984
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
985
+ # we assume default 'draft' environment.
986
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object
987
+ # @param [String] update_mask
988
+ # The mask to control which fields get updated.
989
+ # @param [String] fields
990
+ # Selector specifying which fields to include in a partial response.
991
+ # @param [String] quota_user
992
+ # Available to use for quota purposes for server-side applications. Can be any
993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
994
+ # @param [Google::Apis::RequestOptions] options
995
+ # Request-specific options
996
+ #
997
+ # @yield [result, err] Result & error if block supplied
998
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
999
+ # @yieldparam err [StandardError] error object if request failed
1000
+ #
1001
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
1002
+ #
1003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1006
+ def patch_project_location_agent_environment_session_entity_type(name, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1007
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1008
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
1009
+ command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object
1010
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
1011
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
1012
+ command.params['name'] = name unless name.nil?
1013
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1014
+ command.query['fields'] = fields unless fields.nil?
1015
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1016
+ execute_or_queue_command(command, &block)
1017
+ end
1018
+
1019
+ # Creates a flow in the specified agent.
1020
+ # @param [String] parent
1021
+ # Required. The agent to create a flow for. Format: `projects//locations//agents/
1022
+ # `.
1023
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] google_cloud_dialogflow_cx_v3_flow_object
1024
+ # @param [String] language_code
1025
+ # The language of the following fields in `flow`: * `Flow.event_handlers.
1026
+ # trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.
1027
+ # messages` If not specified, the agent's default language is used. [Many
1028
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
1029
+ # supported. Note: languages must be enabled in the agent before they can be
1030
+ # used.
1031
+ # @param [String] fields
1032
+ # Selector specifying which fields to include in a partial response.
1033
+ # @param [String] quota_user
1034
+ # Available to use for quota purposes for server-side applications. Can be any
1035
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1036
+ # @param [Google::Apis::RequestOptions] options
1037
+ # Request-specific options
1038
+ #
1039
+ # @yield [result, err] Result & error if block supplied
1040
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] parsed result object
1041
+ # @yieldparam err [StandardError] error object if request failed
1042
+ #
1043
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow]
1044
+ #
1045
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1046
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1047
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1048
+ def create_project_location_agent_flow(parent, google_cloud_dialogflow_cx_v3_flow_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1049
+ command = make_simple_command(:post, 'v3/{+parent}/flows', options)
1050
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1051
+ command.request_object = google_cloud_dialogflow_cx_v3_flow_object
1052
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1053
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow
1054
+ command.params['parent'] = parent unless parent.nil?
1055
+ command.query['languageCode'] = language_code unless language_code.nil?
1056
+ command.query['fields'] = fields unless fields.nil?
1057
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1058
+ execute_or_queue_command(command, &block)
1059
+ end
1060
+
1061
+ # Deletes a specified flow.
1062
+ # @param [String] name
1063
+ # Required. The name of the flow to delete. Format: `projects//locations//agents/
1064
+ # /flows/`.
1065
+ # @param [Boolean] force
1066
+ # This field has no effect for flows with no incoming transitions. For flows
1067
+ # with incoming transitions: * If `force` is set to false, an error will be
1068
+ # returned with message indicating the incoming transitions. * If `force` is set
1069
+ # to true, Dialogflow will remove the flow, as well as any transitions to the
1070
+ # flow (i.e. Target flow in event handlers or Target flow in transition routes
1071
+ # that point to this flow will be cleared).
1072
+ # @param [String] fields
1073
+ # Selector specifying which fields to include in a partial response.
1074
+ # @param [String] quota_user
1075
+ # Available to use for quota purposes for server-side applications. Can be any
1076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1077
+ # @param [Google::Apis::RequestOptions] options
1078
+ # Request-specific options
1079
+ #
1080
+ # @yield [result, err] Result & error if block supplied
1081
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1082
+ # @yieldparam err [StandardError] error object if request failed
1083
+ #
1084
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1085
+ #
1086
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1087
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1088
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1089
+ def delete_project_location_agent_flow(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1090
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1091
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1092
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1093
+ command.params['name'] = name unless name.nil?
1094
+ command.query['force'] = force unless force.nil?
1095
+ command.query['fields'] = fields unless fields.nil?
1096
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1097
+ execute_or_queue_command(command, &block)
1098
+ end
1099
+
1100
+ # Retrieves the specified flow.
1101
+ # @param [String] name
1102
+ # Required. The name of the flow to get. Format: `projects//locations//agents//
1103
+ # flows/`.
1104
+ # @param [String] language_code
1105
+ # The language to retrieve the flow for. The following fields are language
1106
+ # dependent: * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.
1107
+ # transition_routes.trigger_fulfillment.messages` If not specified, the agent's
1108
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
1109
+ # docs/reference/language) are supported. Note: languages must be enabled in the
1110
+ # agent before they can be used.
1111
+ # @param [String] fields
1112
+ # Selector specifying which fields to include in a partial response.
1113
+ # @param [String] quota_user
1114
+ # Available to use for quota purposes for server-side applications. Can be any
1115
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1116
+ # @param [Google::Apis::RequestOptions] options
1117
+ # Request-specific options
1118
+ #
1119
+ # @yield [result, err] Result & error if block supplied
1120
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] parsed result object
1121
+ # @yieldparam err [StandardError] error object if request failed
1122
+ #
1123
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow]
1124
+ #
1125
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1126
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1127
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1128
+ def get_project_location_agent_flow(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1129
+ command = make_simple_command(:get, 'v3/{+name}', options)
1130
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1131
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow
1132
+ command.params['name'] = name unless name.nil?
1133
+ command.query['languageCode'] = language_code unless language_code.nil?
1134
+ command.query['fields'] = fields unless fields.nil?
1135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1136
+ execute_or_queue_command(command, &block)
1137
+ end
1138
+
1139
+ # Returns the list of all flows in the specified agent.
1140
+ # @param [String] parent
1141
+ # Required. The agent containing the flows. Format: `projects//locations//agents/
1142
+ # `.
1143
+ # @param [String] language_code
1144
+ # The language to list flows for. The following fields are language dependent: *
1145
+ # `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.transition_routes.
1146
+ # trigger_fulfillment.messages` If not specified, the agent's default language
1147
+ # is used. [Many languages](https://cloud.google.com/dialogflow/docs/reference/
1148
+ # language) are supported. Note: languages must be enabled in the agent before
1149
+ # they can be used.
1150
+ # @param [Fixnum] page_size
1151
+ # The maximum number of items to return in a single page. By default 100 and at
1152
+ # most 1000.
1153
+ # @param [String] page_token
1154
+ # The next_page_token value returned from a previous list request.
1155
+ # @param [String] fields
1156
+ # Selector specifying which fields to include in a partial response.
1157
+ # @param [String] quota_user
1158
+ # Available to use for quota purposes for server-side applications. Can be any
1159
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1160
+ # @param [Google::Apis::RequestOptions] options
1161
+ # Request-specific options
1162
+ #
1163
+ # @yield [result, err] Result & error if block supplied
1164
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse] parsed result object
1165
+ # @yieldparam err [StandardError] error object if request failed
1166
+ #
1167
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse]
1168
+ #
1169
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1170
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1171
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1172
+ def list_project_location_agent_flows(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1173
+ command = make_simple_command(:get, 'v3/{+parent}/flows', options)
1174
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse::Representation
1175
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListFlowsResponse
1176
+ command.params['parent'] = parent unless parent.nil?
1177
+ command.query['languageCode'] = language_code unless language_code.nil?
1178
+ command.query['pageSize'] = page_size unless page_size.nil?
1179
+ command.query['pageToken'] = page_token unless page_token.nil?
1180
+ command.query['fields'] = fields unless fields.nil?
1181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1182
+ execute_or_queue_command(command, &block)
1183
+ end
1184
+
1185
+ # Updates the specified flow.
1186
+ # @param [String] name
1187
+ # The unique identifier of the flow. Format: `projects//locations//agents//flows/
1188
+ # `.
1189
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] google_cloud_dialogflow_cx_v3_flow_object
1190
+ # @param [String] language_code
1191
+ # The language of the following fields in `flow`: * `Flow.event_handlers.
1192
+ # trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.
1193
+ # messages` If not specified, the agent's default language is used. [Many
1194
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
1195
+ # supported. Note: languages must be enabled in the agent before they can be
1196
+ # used.
1197
+ # @param [String] update_mask
1198
+ # Required. The mask to control which fields get updated. If `update_mask` is
1199
+ # not specified, an error will be returned.
1200
+ # @param [String] fields
1201
+ # Selector specifying which fields to include in a partial response.
1202
+ # @param [String] quota_user
1203
+ # Available to use for quota purposes for server-side applications. Can be any
1204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1205
+ # @param [Google::Apis::RequestOptions] options
1206
+ # Request-specific options
1207
+ #
1208
+ # @yield [result, err] Result & error if block supplied
1209
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow] parsed result object
1210
+ # @yieldparam err [StandardError] error object if request failed
1211
+ #
1212
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow]
1213
+ #
1214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1217
+ def patch_project_location_agent_flow(name, google_cloud_dialogflow_cx_v3_flow_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1218
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1219
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1220
+ command.request_object = google_cloud_dialogflow_cx_v3_flow_object
1221
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow::Representation
1222
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Flow
1223
+ command.params['name'] = name unless name.nil?
1224
+ command.query['languageCode'] = language_code unless language_code.nil?
1225
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1226
+ command.query['fields'] = fields unless fields.nil?
1227
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1228
+ execute_or_queue_command(command, &block)
1229
+ end
1230
+
1231
+ # Trains the specified flow. Note that only the flow in 'draft' environment is
1232
+ # trained.
1233
+ # @param [String] name
1234
+ # Required. The flow to train. Format: `projects//locations//agents//flows/`.
1235
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TrainFlowRequest] google_cloud_dialogflow_cx_v3_train_flow_request_object
1236
+ # @param [String] fields
1237
+ # Selector specifying which fields to include in a partial response.
1238
+ # @param [String] quota_user
1239
+ # Available to use for quota purposes for server-side applications. Can be any
1240
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1241
+ # @param [Google::Apis::RequestOptions] options
1242
+ # Request-specific options
1243
+ #
1244
+ # @yield [result, err] Result & error if block supplied
1245
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
1246
+ # @yieldparam err [StandardError] error object if request failed
1247
+ #
1248
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
1249
+ #
1250
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1251
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1252
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1253
+ def train_project_location_agent_flow(name, google_cloud_dialogflow_cx_v3_train_flow_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1254
+ command = make_simple_command(:post, 'v3/{+name}:train', options)
1255
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TrainFlowRequest::Representation
1256
+ command.request_object = google_cloud_dialogflow_cx_v3_train_flow_request_object
1257
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
1258
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
1259
+ command.params['name'] = name unless name.nil?
1260
+ command.query['fields'] = fields unless fields.nil?
1261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1262
+ execute_or_queue_command(command, &block)
1263
+ end
1264
+
1265
+ # Creates a page in the specified flow.
1266
+ # @param [String] parent
1267
+ # Required. The flow to create a page for. Format: `projects//locations//agents//
1268
+ # flows/`.
1269
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] google_cloud_dialogflow_cx_v3_page_object
1270
+ # @param [String] language_code
1271
+ # The language of the following fields in `page`: * `Page.entry_fulfillment.
1272
+ # messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.
1273
+ # messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.
1274
+ # messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.
1275
+ # transition_route_groups.transition_routes.trigger_fulfillment.messages` If not
1276
+ # specified, the agent's default language is used. [Many languages](https://
1277
+ # cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
1278
+ # languages must be enabled in the agent before they can be used.
1279
+ # @param [String] fields
1280
+ # Selector specifying which fields to include in a partial response.
1281
+ # @param [String] quota_user
1282
+ # Available to use for quota purposes for server-side applications. Can be any
1283
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1284
+ # @param [Google::Apis::RequestOptions] options
1285
+ # Request-specific options
1286
+ #
1287
+ # @yield [result, err] Result & error if block supplied
1288
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] parsed result object
1289
+ # @yieldparam err [StandardError] error object if request failed
1290
+ #
1291
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page]
1292
+ #
1293
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1294
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1295
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1296
+ def create_project_location_agent_flow_page(parent, google_cloud_dialogflow_cx_v3_page_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1297
+ command = make_simple_command(:post, 'v3/{+parent}/pages', options)
1298
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1299
+ command.request_object = google_cloud_dialogflow_cx_v3_page_object
1300
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1301
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
1302
+ command.params['parent'] = parent unless parent.nil?
1303
+ command.query['languageCode'] = language_code unless language_code.nil?
1304
+ command.query['fields'] = fields unless fields.nil?
1305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1306
+ execute_or_queue_command(command, &block)
1307
+ end
1308
+
1309
+ # Deletes the specified page.
1310
+ # @param [String] name
1311
+ # Required. The name of the page to delete. Format: `projects//locations//agents/
1312
+ # /Flows//pages/`.
1313
+ # @param [Boolean] force
1314
+ # This field has no effect for pages with no incoming transitions. For pages
1315
+ # with incoming transitions: * If `force` is set to false, an error will be
1316
+ # returned with message indicating the incoming transitions. * If `force` is set
1317
+ # to true, Dialogflow will remove the page, as well as any transitions to the
1318
+ # page (i.e. Target page in event handlers or Target page in transition routes
1319
+ # that point to this page will be cleared).
1320
+ # @param [String] fields
1321
+ # Selector specifying which fields to include in a partial response.
1322
+ # @param [String] quota_user
1323
+ # Available to use for quota purposes for server-side applications. Can be any
1324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1325
+ # @param [Google::Apis::RequestOptions] options
1326
+ # Request-specific options
1327
+ #
1328
+ # @yield [result, err] Result & error if block supplied
1329
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1330
+ # @yieldparam err [StandardError] error object if request failed
1331
+ #
1332
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1333
+ #
1334
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1335
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1336
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1337
+ def delete_project_location_agent_flow_page(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1338
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1339
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1340
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1341
+ command.params['name'] = name unless name.nil?
1342
+ command.query['force'] = force unless force.nil?
1343
+ command.query['fields'] = fields unless fields.nil?
1344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1345
+ execute_or_queue_command(command, &block)
1346
+ end
1347
+
1348
+ # Retrieves the specified page.
1349
+ # @param [String] name
1350
+ # Required. The name of the page. Format: `projects//locations//agents//flows//
1351
+ # pages/`.
1352
+ # @param [String] language_code
1353
+ # The language to retrieve the page for. The following fields are language
1354
+ # dependent: * `Page.entry_fulfillment.messages` * `Page.form.parameters.
1355
+ # fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.
1356
+ # fill_behavior.reprompt_event_handlers.messages` * `Page.transition_routes.
1357
+ # trigger_fulfillment.messages` * `Page.transition_route_groups.
1358
+ # transition_routes.trigger_fulfillment.messages` If not specified, the agent's
1359
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
1360
+ # docs/reference/language) are supported. Note: languages must be enabled in the
1361
+ # agent before they can be used.
1362
+ # @param [String] fields
1363
+ # Selector specifying which fields to include in a partial response.
1364
+ # @param [String] quota_user
1365
+ # Available to use for quota purposes for server-side applications. Can be any
1366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1367
+ # @param [Google::Apis::RequestOptions] options
1368
+ # Request-specific options
1369
+ #
1370
+ # @yield [result, err] Result & error if block supplied
1371
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] parsed result object
1372
+ # @yieldparam err [StandardError] error object if request failed
1373
+ #
1374
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page]
1375
+ #
1376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1379
+ def get_project_location_agent_flow_page(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1380
+ command = make_simple_command(:get, 'v3/{+name}', options)
1381
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1382
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
1383
+ command.params['name'] = name unless name.nil?
1384
+ command.query['languageCode'] = language_code unless language_code.nil?
1385
+ command.query['fields'] = fields unless fields.nil?
1386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1387
+ execute_or_queue_command(command, &block)
1388
+ end
1389
+
1390
+ # Returns the list of all pages in the specified flow.
1391
+ # @param [String] parent
1392
+ # Required. The flow to list all pages for. Format: `projects//locations//agents/
1393
+ # /flows/`.
1394
+ # @param [String] language_code
1395
+ # The language to list pages for. The following fields are language dependent: *
1396
+ # `Page.entry_fulfillment.messages` * `Page.form.parameters.fill_behavior.
1397
+ # initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.
1398
+ # reprompt_event_handlers.messages` * `Page.transition_routes.
1399
+ # trigger_fulfillment.messages` * `Page.transition_route_groups.
1400
+ # transition_routes.trigger_fulfillment.messages` If not specified, the agent's
1401
+ # default language is used. [Many languages](https://cloud.google.com/dialogflow/
1402
+ # docs/reference/language) are supported. Note: languages must be enabled in the
1403
+ # agent before they can be used.
1404
+ # @param [Fixnum] page_size
1405
+ # The maximum number of items to return in a single page. By default 100 and at
1406
+ # most 1000.
1407
+ # @param [String] page_token
1408
+ # The next_page_token value returned from a previous list request.
1409
+ # @param [String] fields
1410
+ # Selector specifying which fields to include in a partial response.
1411
+ # @param [String] quota_user
1412
+ # Available to use for quota purposes for server-side applications. Can be any
1413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1414
+ # @param [Google::Apis::RequestOptions] options
1415
+ # Request-specific options
1416
+ #
1417
+ # @yield [result, err] Result & error if block supplied
1418
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse] parsed result object
1419
+ # @yieldparam err [StandardError] error object if request failed
1420
+ #
1421
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse]
1422
+ #
1423
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1424
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1425
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1426
+ def list_project_location_agent_flow_pages(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1427
+ command = make_simple_command(:get, 'v3/{+parent}/pages', options)
1428
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse::Representation
1429
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListPagesResponse
1430
+ command.params['parent'] = parent unless parent.nil?
1431
+ command.query['languageCode'] = language_code unless language_code.nil?
1432
+ command.query['pageSize'] = page_size unless page_size.nil?
1433
+ command.query['pageToken'] = page_token unless page_token.nil?
1434
+ command.query['fields'] = fields unless fields.nil?
1435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1436
+ execute_or_queue_command(command, &block)
1437
+ end
1438
+
1439
+ # Updates the specified page.
1440
+ # @param [String] name
1441
+ # The unique identifier of the page. Required for the Pages.UpdatePage method.
1442
+ # Pages.CreatePage populates the name automatically. Format: `projects//
1443
+ # locations//agents//flows//pages/`.
1444
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] google_cloud_dialogflow_cx_v3_page_object
1445
+ # @param [String] language_code
1446
+ # The language of the following fields in `page`: * `Page.entry_fulfillment.
1447
+ # messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.
1448
+ # messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.
1449
+ # messages` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.
1450
+ # transition_route_groups.transition_routes.trigger_fulfillment.messages` If not
1451
+ # specified, the agent's default language is used. [Many languages](https://
1452
+ # cloud.google.com/dialogflow/docs/reference/language) are supported. Note:
1453
+ # languages must be enabled in the agent before they can be used.
1454
+ # @param [String] update_mask
1455
+ # The mask to control which fields get updated. If the mask is not present, all
1456
+ # fields will be updated.
1457
+ # @param [String] fields
1458
+ # Selector specifying which fields to include in a partial response.
1459
+ # @param [String] quota_user
1460
+ # Available to use for quota purposes for server-side applications. Can be any
1461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1462
+ # @param [Google::Apis::RequestOptions] options
1463
+ # Request-specific options
1464
+ #
1465
+ # @yield [result, err] Result & error if block supplied
1466
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page] parsed result object
1467
+ # @yieldparam err [StandardError] error object if request failed
1468
+ #
1469
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page]
1470
+ #
1471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1474
+ def patch_project_location_agent_flow_page(name, google_cloud_dialogflow_cx_v3_page_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1475
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1476
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1477
+ command.request_object = google_cloud_dialogflow_cx_v3_page_object
1478
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page::Representation
1479
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
1480
+ command.params['name'] = name unless name.nil?
1481
+ command.query['languageCode'] = language_code unless language_code.nil?
1482
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1483
+ command.query['fields'] = fields unless fields.nil?
1484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1485
+ execute_or_queue_command(command, &block)
1486
+ end
1487
+
1488
+ # Creates an TransitionRouteGroup in the specified flow.
1489
+ # @param [String] parent
1490
+ # Required. The flow to create an TransitionRouteGroup for. Format: `projects//
1491
+ # locations//agents//flows/`.
1492
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] google_cloud_dialogflow_cx_v3_transition_route_group_object
1493
+ # @param [String] language_code
1494
+ # The language to list transition route groups for. The field `messages` in
1495
+ # TransitionRoute is language dependent. If not specified, the agent's default
1496
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1497
+ # reference/language) are supported. Note: languages must be enabled in the
1498
+ # agent before they can be used.
1499
+ # @param [String] fields
1500
+ # Selector specifying which fields to include in a partial response.
1501
+ # @param [String] quota_user
1502
+ # Available to use for quota purposes for server-side applications. Can be any
1503
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1504
+ # @param [Google::Apis::RequestOptions] options
1505
+ # Request-specific options
1506
+ #
1507
+ # @yield [result, err] Result & error if block supplied
1508
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] parsed result object
1509
+ # @yieldparam err [StandardError] error object if request failed
1510
+ #
1511
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup]
1512
+ #
1513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1516
+ def create_project_location_agent_flow_transition_route_group(parent, google_cloud_dialogflow_cx_v3_transition_route_group_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1517
+ command = make_simple_command(:post, 'v3/{+parent}/transitionRouteGroups', options)
1518
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1519
+ command.request_object = google_cloud_dialogflow_cx_v3_transition_route_group_object
1520
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1521
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup
1522
+ command.params['parent'] = parent unless parent.nil?
1523
+ command.query['languageCode'] = language_code unless language_code.nil?
1524
+ command.query['fields'] = fields unless fields.nil?
1525
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1526
+ execute_or_queue_command(command, &block)
1527
+ end
1528
+
1529
+ # Deletes the specified TransitionRouteGroup.
1530
+ # @param [String] name
1531
+ # Required. The name of the TransitionRouteGroup to delete. Format: `projects//
1532
+ # locations//agents//flows//transitionRouteGroups/`.
1533
+ # @param [Boolean] force
1534
+ # This field has no effect for transition route group that no page is using. If
1535
+ # the transition route group is referenced by any page: * If `force` is set to
1536
+ # false, an error will be returned with message indicating pages that reference
1537
+ # the transition route group. * If `force` is set to true, Dialogflow will
1538
+ # remove the transition route group, as well as any reference to it.
1539
+ # @param [String] fields
1540
+ # Selector specifying which fields to include in a partial response.
1541
+ # @param [String] quota_user
1542
+ # Available to use for quota purposes for server-side applications. Can be any
1543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1544
+ # @param [Google::Apis::RequestOptions] options
1545
+ # Request-specific options
1546
+ #
1547
+ # @yield [result, err] Result & error if block supplied
1548
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1549
+ # @yieldparam err [StandardError] error object if request failed
1550
+ #
1551
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1552
+ #
1553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1556
+ def delete_project_location_agent_flow_transition_route_group(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1557
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1558
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1559
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1560
+ command.params['name'] = name unless name.nil?
1561
+ command.query['force'] = force unless force.nil?
1562
+ command.query['fields'] = fields unless fields.nil?
1563
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1564
+ execute_or_queue_command(command, &block)
1565
+ end
1566
+
1567
+ # Retrieves the specified TransitionRouteGroup.
1568
+ # @param [String] name
1569
+ # Required. The name of the TransitionRouteGroup. Format: `projects//locations//
1570
+ # agents//flows//transitionRouteGroups/`.
1571
+ # @param [String] language_code
1572
+ # The language to list transition route groups for. The field `messages` in
1573
+ # TransitionRoute is language dependent. If not specified, the agent's default
1574
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1575
+ # reference/language) are supported. Note: languages must be enabled in the
1576
+ # agent before they can be used.
1577
+ # @param [String] fields
1578
+ # Selector specifying which fields to include in a partial response.
1579
+ # @param [String] quota_user
1580
+ # Available to use for quota purposes for server-side applications. Can be any
1581
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1582
+ # @param [Google::Apis::RequestOptions] options
1583
+ # Request-specific options
1584
+ #
1585
+ # @yield [result, err] Result & error if block supplied
1586
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] parsed result object
1587
+ # @yieldparam err [StandardError] error object if request failed
1588
+ #
1589
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup]
1590
+ #
1591
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1592
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1593
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1594
+ def get_project_location_agent_flow_transition_route_group(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1595
+ command = make_simple_command(:get, 'v3/{+name}', options)
1596
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1597
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup
1598
+ command.params['name'] = name unless name.nil?
1599
+ command.query['languageCode'] = language_code unless language_code.nil?
1600
+ command.query['fields'] = fields unless fields.nil?
1601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1602
+ execute_or_queue_command(command, &block)
1603
+ end
1604
+
1605
+ # Returns the list of all transition route groups in the specified flow.
1606
+ # @param [String] parent
1607
+ # Required. The flow to list all transition route groups for. Format: `projects//
1608
+ # locations//agents//flows/`.
1609
+ # @param [String] language_code
1610
+ # The language to list transition route groups for. The field `messages` in
1611
+ # TransitionRoute is language dependent. If not specified, the agent's default
1612
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1613
+ # reference/language) are supported. Note: languages must be enabled in the
1614
+ # agent before they can be used.
1615
+ # @param [Fixnum] page_size
1616
+ # The maximum number of items to return in a single page. By default 100 and at
1617
+ # most 1000.
1618
+ # @param [String] page_token
1619
+ # The next_page_token value returned from a previous list request.
1620
+ # @param [String] fields
1621
+ # Selector specifying which fields to include in a partial response.
1622
+ # @param [String] quota_user
1623
+ # Available to use for quota purposes for server-side applications. Can be any
1624
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1625
+ # @param [Google::Apis::RequestOptions] options
1626
+ # Request-specific options
1627
+ #
1628
+ # @yield [result, err] Result & error if block supplied
1629
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse] parsed result object
1630
+ # @yieldparam err [StandardError] error object if request failed
1631
+ #
1632
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse]
1633
+ #
1634
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1635
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1636
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1637
+ def list_project_location_agent_flow_transition_route_groups(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1638
+ command = make_simple_command(:get, 'v3/{+parent}/transitionRouteGroups', options)
1639
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse::Representation
1640
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse
1641
+ command.params['parent'] = parent unless parent.nil?
1642
+ command.query['languageCode'] = language_code unless language_code.nil?
1643
+ command.query['pageSize'] = page_size unless page_size.nil?
1644
+ command.query['pageToken'] = page_token unless page_token.nil?
1645
+ command.query['fields'] = fields unless fields.nil?
1646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1647
+ execute_or_queue_command(command, &block)
1648
+ end
1649
+
1650
+ # Updates the specified TransitionRouteGroup.
1651
+ # @param [String] name
1652
+ # The unique identifier of the transition route group. TransitionRouteGroups.
1653
+ # CreateTransitionRouteGroup populates the name automatically. Format: `projects/
1654
+ # /locations//agents//flows//transitionRouteGroups/`.
1655
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] google_cloud_dialogflow_cx_v3_transition_route_group_object
1656
+ # @param [String] language_code
1657
+ # The language to list transition route groups for. The field `messages` in
1658
+ # TransitionRoute is language dependent. If not specified, the agent's default
1659
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
1660
+ # reference/language) are supported. Note: languages must be enabled in the
1661
+ # agent before they can be used.
1662
+ # @param [String] update_mask
1663
+ # The mask to control which fields get updated.
1664
+ # @param [String] fields
1665
+ # Selector specifying which fields to include in a partial response.
1666
+ # @param [String] quota_user
1667
+ # Available to use for quota purposes for server-side applications. Can be any
1668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1669
+ # @param [Google::Apis::RequestOptions] options
1670
+ # Request-specific options
1671
+ #
1672
+ # @yield [result, err] Result & error if block supplied
1673
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup] parsed result object
1674
+ # @yieldparam err [StandardError] error object if request failed
1675
+ #
1676
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup]
1677
+ #
1678
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1679
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1680
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1681
+ def patch_project_location_agent_flow_transition_route_group(name, google_cloud_dialogflow_cx_v3_transition_route_group_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1682
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1683
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1684
+ command.request_object = google_cloud_dialogflow_cx_v3_transition_route_group_object
1685
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup::Representation
1686
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroup
1687
+ command.params['name'] = name unless name.nil?
1688
+ command.query['languageCode'] = language_code unless language_code.nil?
1689
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1690
+ command.query['fields'] = fields unless fields.nil?
1691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1692
+ execute_or_queue_command(command, &block)
1693
+ end
1694
+
1695
+ # Creates a Version in the specified Flow.
1696
+ # @param [String] parent
1697
+ # Required. The Flow to create an Version for. Format: `projects//locations//
1698
+ # agents//flows/`.
1699
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] google_cloud_dialogflow_cx_v3_version_object
1700
+ # @param [String] fields
1701
+ # Selector specifying which fields to include in a partial response.
1702
+ # @param [String] quota_user
1703
+ # Available to use for quota purposes for server-side applications. Can be any
1704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1705
+ # @param [Google::Apis::RequestOptions] options
1706
+ # Request-specific options
1707
+ #
1708
+ # @yield [result, err] Result & error if block supplied
1709
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
1710
+ # @yieldparam err [StandardError] error object if request failed
1711
+ #
1712
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
1713
+ #
1714
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1715
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1716
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1717
+ def create_project_location_agent_flow_version(parent, google_cloud_dialogflow_cx_v3_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1718
+ command = make_simple_command(:post, 'v3/{+parent}/versions', options)
1719
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation
1720
+ command.request_object = google_cloud_dialogflow_cx_v3_version_object
1721
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
1722
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
1723
+ command.params['parent'] = parent unless parent.nil?
1724
+ command.query['fields'] = fields unless fields.nil?
1725
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1726
+ execute_or_queue_command(command, &block)
1727
+ end
1728
+
1729
+ # Deletes the specified Version.
1730
+ # @param [String] name
1731
+ # Required. The name of the Version to delete. Format: `projects//locations//
1732
+ # agents//flows//versions/`.
1733
+ # @param [String] fields
1734
+ # Selector specifying which fields to include in a partial response.
1735
+ # @param [String] quota_user
1736
+ # Available to use for quota purposes for server-side applications. Can be any
1737
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1738
+ # @param [Google::Apis::RequestOptions] options
1739
+ # Request-specific options
1740
+ #
1741
+ # @yield [result, err] Result & error if block supplied
1742
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1743
+ # @yieldparam err [StandardError] error object if request failed
1744
+ #
1745
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1746
+ #
1747
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1748
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1749
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1750
+ def delete_project_location_agent_flow_version(name, fields: nil, quota_user: nil, options: nil, &block)
1751
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1752
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1753
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1754
+ command.params['name'] = name unless name.nil?
1755
+ command.query['fields'] = fields unless fields.nil?
1756
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1757
+ execute_or_queue_command(command, &block)
1758
+ end
1759
+
1760
+ # Retrieves the specified Version.
1761
+ # @param [String] name
1762
+ # Required. The name of the Version. Format: `projects//locations//agents//flows/
1763
+ # /versions/`.
1764
+ # @param [String] fields
1765
+ # Selector specifying which fields to include in a partial response.
1766
+ # @param [String] quota_user
1767
+ # Available to use for quota purposes for server-side applications. Can be any
1768
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1769
+ # @param [Google::Apis::RequestOptions] options
1770
+ # Request-specific options
1771
+ #
1772
+ # @yield [result, err] Result & error if block supplied
1773
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] parsed result object
1774
+ # @yieldparam err [StandardError] error object if request failed
1775
+ #
1776
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version]
1777
+ #
1778
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1779
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1780
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1781
+ def get_project_location_agent_flow_version(name, fields: nil, quota_user: nil, options: nil, &block)
1782
+ command = make_simple_command(:get, 'v3/{+name}', options)
1783
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation
1784
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version
1785
+ command.params['name'] = name unless name.nil?
1786
+ command.query['fields'] = fields unless fields.nil?
1787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1788
+ execute_or_queue_command(command, &block)
1789
+ end
1790
+
1791
+ # Returns the list of all versions in the specified Flow.
1792
+ # @param [String] parent
1793
+ # Required. The Flow to list all versions for. Format: `projects//locations//
1794
+ # agents//flows/`.
1795
+ # @param [Fixnum] page_size
1796
+ # The maximum number of items to return in a single page. By default 20 and at
1797
+ # most 100.
1798
+ # @param [String] page_token
1799
+ # The next_page_token value returned from a previous list request.
1800
+ # @param [String] fields
1801
+ # Selector specifying which fields to include in a partial response.
1802
+ # @param [String] quota_user
1803
+ # Available to use for quota purposes for server-side applications. Can be any
1804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1805
+ # @param [Google::Apis::RequestOptions] options
1806
+ # Request-specific options
1807
+ #
1808
+ # @yield [result, err] Result & error if block supplied
1809
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse] parsed result object
1810
+ # @yieldparam err [StandardError] error object if request failed
1811
+ #
1812
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse]
1813
+ #
1814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
+ def list_project_location_agent_flow_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1818
+ command = make_simple_command(:get, 'v3/{+parent}/versions', options)
1819
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse::Representation
1820
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListVersionsResponse
1821
+ command.params['parent'] = parent unless parent.nil?
1822
+ command.query['pageSize'] = page_size unless page_size.nil?
1823
+ command.query['pageToken'] = page_token unless page_token.nil?
1824
+ command.query['fields'] = fields unless fields.nil?
1825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1826
+ execute_or_queue_command(command, &block)
1827
+ end
1828
+
1829
+ # Loads a specified version to draft version.
1830
+ # @param [String] name
1831
+ # Required. The Version to be loaded to draft version. Format: `projects//
1832
+ # locations//agents//flows//versions/`.
1833
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LoadVersionRequest] google_cloud_dialogflow_cx_v3_load_version_request_object
1834
+ # @param [String] fields
1835
+ # Selector specifying which fields to include in a partial response.
1836
+ # @param [String] quota_user
1837
+ # Available to use for quota purposes for server-side applications. Can be any
1838
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1839
+ # @param [Google::Apis::RequestOptions] options
1840
+ # Request-specific options
1841
+ #
1842
+ # @yield [result, err] Result & error if block supplied
1843
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
1844
+ # @yieldparam err [StandardError] error object if request failed
1845
+ #
1846
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
1847
+ #
1848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1851
+ def load_project_location_agent_flow_version(name, google_cloud_dialogflow_cx_v3_load_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1852
+ command = make_simple_command(:post, 'v3/{+name}:load', options)
1853
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LoadVersionRequest::Representation
1854
+ command.request_object = google_cloud_dialogflow_cx_v3_load_version_request_object
1855
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
1856
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
1857
+ command.params['name'] = name unless name.nil?
1858
+ command.query['fields'] = fields unless fields.nil?
1859
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1860
+ execute_or_queue_command(command, &block)
1861
+ end
1862
+
1863
+ # Updates the specified Version.
1864
+ # @param [String] name
1865
+ # Format: projects//locations//agents//flows//versions/. Version ID is a self-
1866
+ # increasing number generated by Dialogflow upon version creation.
1867
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] google_cloud_dialogflow_cx_v3_version_object
1868
+ # @param [String] update_mask
1869
+ # Required. The mask to control which fields get updated. Currently only `
1870
+ # description` and `display_name` can be updated.
1871
+ # @param [String] fields
1872
+ # Selector specifying which fields to include in a partial response.
1873
+ # @param [String] quota_user
1874
+ # Available to use for quota purposes for server-side applications. Can be any
1875
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1876
+ # @param [Google::Apis::RequestOptions] options
1877
+ # Request-specific options
1878
+ #
1879
+ # @yield [result, err] Result & error if block supplied
1880
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version] parsed result object
1881
+ # @yieldparam err [StandardError] error object if request failed
1882
+ #
1883
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version]
1884
+ #
1885
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1886
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1887
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1888
+ def patch_project_location_agent_flow_version(name, google_cloud_dialogflow_cx_v3_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1889
+ command = make_simple_command(:patch, 'v3/{+name}', options)
1890
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation
1891
+ command.request_object = google_cloud_dialogflow_cx_v3_version_object
1892
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version::Representation
1893
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Version
1894
+ command.params['name'] = name unless name.nil?
1895
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1896
+ command.query['fields'] = fields unless fields.nil?
1897
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1898
+ execute_or_queue_command(command, &block)
1899
+ end
1900
+
1901
+ # Creates an intent in the specified agent.
1902
+ # @param [String] parent
1903
+ # Required. The agent to create an intent for. Format: `projects//locations//
1904
+ # agents/`.
1905
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] google_cloud_dialogflow_cx_v3_intent_object
1906
+ # @param [String] language_code
1907
+ # The language of the following fields in `intent`: * `Intent.training_phrases.
1908
+ # parts.text` If not specified, the agent's default language is used. [Many
1909
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
1910
+ # supported. Note: languages must be enabled in the agent before they can be
1911
+ # used.
1912
+ # @param [String] fields
1913
+ # Selector specifying which fields to include in a partial response.
1914
+ # @param [String] quota_user
1915
+ # Available to use for quota purposes for server-side applications. Can be any
1916
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1917
+ # @param [Google::Apis::RequestOptions] options
1918
+ # Request-specific options
1919
+ #
1920
+ # @yield [result, err] Result & error if block supplied
1921
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] parsed result object
1922
+ # @yieldparam err [StandardError] error object if request failed
1923
+ #
1924
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent]
1925
+ #
1926
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1927
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1928
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1929
+ def create_project_location_agent_intent(parent, google_cloud_dialogflow_cx_v3_intent_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
1930
+ command = make_simple_command(:post, 'v3/{+parent}/intents', options)
1931
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
1932
+ command.request_object = google_cloud_dialogflow_cx_v3_intent_object
1933
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
1934
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent
1935
+ command.params['parent'] = parent unless parent.nil?
1936
+ command.query['languageCode'] = language_code unless language_code.nil?
1937
+ command.query['fields'] = fields unless fields.nil?
1938
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1939
+ execute_or_queue_command(command, &block)
1940
+ end
1941
+
1942
+ # Deletes the specified intent.
1943
+ # @param [String] name
1944
+ # Required. The name of the intent to delete. Format: `projects//locations//
1945
+ # agents//intents/`.
1946
+ # @param [String] fields
1947
+ # Selector specifying which fields to include in a partial response.
1948
+ # @param [String] quota_user
1949
+ # Available to use for quota purposes for server-side applications. Can be any
1950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1951
+ # @param [Google::Apis::RequestOptions] options
1952
+ # Request-specific options
1953
+ #
1954
+ # @yield [result, err] Result & error if block supplied
1955
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
1956
+ # @yieldparam err [StandardError] error object if request failed
1957
+ #
1958
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
1959
+ #
1960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1963
+ def delete_project_location_agent_intent(name, fields: nil, quota_user: nil, options: nil, &block)
1964
+ command = make_simple_command(:delete, 'v3/{+name}', options)
1965
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
1966
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
1967
+ command.params['name'] = name unless name.nil?
1968
+ command.query['fields'] = fields unless fields.nil?
1969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1970
+ execute_or_queue_command(command, &block)
1971
+ end
1972
+
1973
+ # Retrieves the specified intent.
1974
+ # @param [String] name
1975
+ # Required. The name of the intent. Format: `projects//locations//agents//
1976
+ # intents/`.
1977
+ # @param [String] language_code
1978
+ # The language to retrieve the intent for. The following fields are language
1979
+ # dependent: * `Intent.training_phrases.parts.text` If not specified, the agent'
1980
+ # s default language is used. [Many languages](https://cloud.google.com/
1981
+ # dialogflow/docs/reference/language) are supported. Note: languages must be
1982
+ # enabled in the agent before they can be used.
1983
+ # @param [String] fields
1984
+ # Selector specifying which fields to include in a partial response.
1985
+ # @param [String] quota_user
1986
+ # Available to use for quota purposes for server-side applications. Can be any
1987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1988
+ # @param [Google::Apis::RequestOptions] options
1989
+ # Request-specific options
1990
+ #
1991
+ # @yield [result, err] Result & error if block supplied
1992
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] parsed result object
1993
+ # @yieldparam err [StandardError] error object if request failed
1994
+ #
1995
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent]
1996
+ #
1997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2000
+ def get_project_location_agent_intent(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
2001
+ command = make_simple_command(:get, 'v3/{+name}', options)
2002
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
2003
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent
2004
+ command.params['name'] = name unless name.nil?
2005
+ command.query['languageCode'] = language_code unless language_code.nil?
2006
+ command.query['fields'] = fields unless fields.nil?
2007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2008
+ execute_or_queue_command(command, &block)
2009
+ end
2010
+
2011
+ # Returns the list of all intents in the specified agent.
2012
+ # @param [String] parent
2013
+ # Required. The agent to list all intents for. Format: `projects//locations//
2014
+ # agents/`.
2015
+ # @param [String] intent_view
2016
+ # The resource view to apply to the returned intent.
2017
+ # @param [String] language_code
2018
+ # The language to list intents for. The following fields are language dependent:
2019
+ # * `Intent.training_phrases.parts.text` If not specified, the agent's default
2020
+ # language is used. [Many languages](https://cloud.google.com/dialogflow/docs/
2021
+ # reference/language) are supported. Note: languages must be enabled in the
2022
+ # agent before they can be used.
2023
+ # @param [Fixnum] page_size
2024
+ # The maximum number of items to return in a single page. By default 100 and at
2025
+ # most 1000.
2026
+ # @param [String] page_token
2027
+ # The next_page_token value returned from a previous list request.
2028
+ # @param [String] fields
2029
+ # Selector specifying which fields to include in a partial response.
2030
+ # @param [String] quota_user
2031
+ # Available to use for quota purposes for server-side applications. Can be any
2032
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2033
+ # @param [Google::Apis::RequestOptions] options
2034
+ # Request-specific options
2035
+ #
2036
+ # @yield [result, err] Result & error if block supplied
2037
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse] parsed result object
2038
+ # @yieldparam err [StandardError] error object if request failed
2039
+ #
2040
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse]
2041
+ #
2042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2045
+ def list_project_location_agent_intents(parent, intent_view: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2046
+ command = make_simple_command(:get, 'v3/{+parent}/intents', options)
2047
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse::Representation
2048
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListIntentsResponse
2049
+ command.params['parent'] = parent unless parent.nil?
2050
+ command.query['intentView'] = intent_view unless intent_view.nil?
2051
+ command.query['languageCode'] = language_code unless language_code.nil?
2052
+ command.query['pageSize'] = page_size unless page_size.nil?
2053
+ command.query['pageToken'] = page_token unless page_token.nil?
2054
+ command.query['fields'] = fields unless fields.nil?
2055
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2056
+ execute_or_queue_command(command, &block)
2057
+ end
2058
+
2059
+ # Updates the specified intent.
2060
+ # @param [String] name
2061
+ # The unique identifier of the intent. Required for the Intents.UpdateIntent
2062
+ # method. Intents.CreateIntent populates the name automatically. Format: `
2063
+ # projects//locations//agents//intents/`.
2064
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] google_cloud_dialogflow_cx_v3_intent_object
2065
+ # @param [String] language_code
2066
+ # The language of the following fields in `intent`: * `Intent.training_phrases.
2067
+ # parts.text` If not specified, the agent's default language is used. [Many
2068
+ # languages](https://cloud.google.com/dialogflow/docs/reference/language) are
2069
+ # supported. Note: languages must be enabled in the agent before they can be
2070
+ # used.
2071
+ # @param [String] update_mask
2072
+ # The mask to control which fields get updated. If the mask is not present, all
2073
+ # fields will be updated.
2074
+ # @param [String] fields
2075
+ # Selector specifying which fields to include in a partial response.
2076
+ # @param [String] quota_user
2077
+ # Available to use for quota purposes for server-side applications. Can be any
2078
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2079
+ # @param [Google::Apis::RequestOptions] options
2080
+ # Request-specific options
2081
+ #
2082
+ # @yield [result, err] Result & error if block supplied
2083
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent] parsed result object
2084
+ # @yieldparam err [StandardError] error object if request failed
2085
+ #
2086
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent]
2087
+ #
2088
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2089
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2090
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2091
+ def patch_project_location_agent_intent(name, google_cloud_dialogflow_cx_v3_intent_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2092
+ command = make_simple_command(:patch, 'v3/{+name}', options)
2093
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
2094
+ command.request_object = google_cloud_dialogflow_cx_v3_intent_object
2095
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent::Representation
2096
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Intent
2097
+ command.params['name'] = name unless name.nil?
2098
+ command.query['languageCode'] = language_code unless language_code.nil?
2099
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2100
+ command.query['fields'] = fields unless fields.nil?
2101
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2102
+ execute_or_queue_command(command, &block)
2103
+ end
2104
+
2105
+ # Processes a natural language query and returns structured, actionable data as
2106
+ # a result. This method is not idempotent, because it may cause session entity
2107
+ # types to be updated, which in turn might affect results of future queries.
2108
+ # Note: Always use agent versions for production traffic. See [Versions and
2109
+ # environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).
2110
+ # @param [String] session
2111
+ # Required. The name of the session this query is sent to. Format: `projects//
2112
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2113
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2114
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
2115
+ # It can be a random number or some type of session identifiers (preferably
2116
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
2117
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
2118
+ # cx/docs/concept/session). Note: Always use agent versions for production
2119
+ # traffic. See [Versions and environments](https://cloud.google.com/dialogflow/
2120
+ # cx/docs/concept/version).
2121
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest] google_cloud_dialogflow_cx_v3_detect_intent_request_object
2122
+ # @param [String] fields
2123
+ # Selector specifying which fields to include in a partial response.
2124
+ # @param [String] quota_user
2125
+ # Available to use for quota purposes for server-side applications. Can be any
2126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2127
+ # @param [Google::Apis::RequestOptions] options
2128
+ # Request-specific options
2129
+ #
2130
+ # @yield [result, err] Result & error if block supplied
2131
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse] parsed result object
2132
+ # @yieldparam err [StandardError] error object if request failed
2133
+ #
2134
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse]
2135
+ #
2136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2139
+ def detect_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2140
+ command = make_simple_command(:post, 'v3/{+session}:detectIntent', options)
2141
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentRequest::Representation
2142
+ command.request_object = google_cloud_dialogflow_cx_v3_detect_intent_request_object
2143
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse::Representation
2144
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DetectIntentResponse
2145
+ command.params['session'] = session unless session.nil?
2146
+ command.query['fields'] = fields unless fields.nil?
2147
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2148
+ execute_or_queue_command(command, &block)
2149
+ end
2150
+
2151
+ # Fulfills a matched intent returned by MatchIntent. Must be called after
2152
+ # MatchIntent, with input from MatchIntentResponse. Otherwise, the behavior is
2153
+ # undefined.
2154
+ # @param [String] session
2155
+ # Required. The name of the session this query is sent to. Format: `projects//
2156
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2157
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2158
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
2159
+ # It can be a random number or some type of session identifiers (preferably
2160
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
2161
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
2162
+ # cx/docs/concept/session).
2163
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest] google_cloud_dialogflow_cx_v3_fulfill_intent_request_object
2164
+ # @param [String] fields
2165
+ # Selector specifying which fields to include in a partial response.
2166
+ # @param [String] quota_user
2167
+ # Available to use for quota purposes for server-side applications. Can be any
2168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2169
+ # @param [Google::Apis::RequestOptions] options
2170
+ # Request-specific options
2171
+ #
2172
+ # @yield [result, err] Result & error if block supplied
2173
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse] parsed result object
2174
+ # @yieldparam err [StandardError] error object if request failed
2175
+ #
2176
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse]
2177
+ #
2178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2181
+ def fulfill_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3_fulfill_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2182
+ command = make_simple_command(:post, 'v3/{+session}:fulfillIntent', options)
2183
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentRequest::Representation
2184
+ command.request_object = google_cloud_dialogflow_cx_v3_fulfill_intent_request_object
2185
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse::Representation
2186
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FulfillIntentResponse
2187
+ command.params['session'] = session unless session.nil?
2188
+ command.query['fields'] = fields unless fields.nil?
2189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2190
+ execute_or_queue_command(command, &block)
2191
+ end
2192
+
2193
+ # Returns preliminary intent match results, doesn't change the session status.
2194
+ # @param [String] session
2195
+ # Required. The name of the session this query is sent to. Format: `projects//
2196
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2197
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2198
+ # environment. It's up to the API caller to choose an appropriate `Session ID`.
2199
+ # It can be a random number or some type of session identifiers (preferably
2200
+ # hashed). The length of the `Session ID` must not exceed 36 characters. For
2201
+ # more information, see the [sessions guide](https://cloud.google.com/dialogflow/
2202
+ # cx/docs/concept/session).
2203
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest] google_cloud_dialogflow_cx_v3_match_intent_request_object
2204
+ # @param [String] fields
2205
+ # Selector specifying which fields to include in a partial response.
2206
+ # @param [String] quota_user
2207
+ # Available to use for quota purposes for server-side applications. Can be any
2208
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2209
+ # @param [Google::Apis::RequestOptions] options
2210
+ # Request-specific options
2211
+ #
2212
+ # @yield [result, err] Result & error if block supplied
2213
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse] parsed result object
2214
+ # @yieldparam err [StandardError] error object if request failed
2215
+ #
2216
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse]
2217
+ #
2218
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2219
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2220
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2221
+ def match_project_location_agent_session_intent(session, google_cloud_dialogflow_cx_v3_match_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2222
+ command = make_simple_command(:post, 'v3/{+session}:matchIntent', options)
2223
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentRequest::Representation
2224
+ command.request_object = google_cloud_dialogflow_cx_v3_match_intent_request_object
2225
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse::Representation
2226
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3MatchIntentResponse
2227
+ command.params['session'] = session unless session.nil?
2228
+ command.query['fields'] = fields unless fields.nil?
2229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2230
+ execute_or_queue_command(command, &block)
2231
+ end
2232
+
2233
+ # Creates a session entity type. If the specified session entity type already
2234
+ # exists, overrides the session entity type.
2235
+ # @param [String] parent
2236
+ # Required. The session to create a session entity type for. Format: `projects//
2237
+ # locations//agents//sessions/` or `projects//locations//agents//environments//
2238
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2239
+ # environment.
2240
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object
2241
+ # @param [String] fields
2242
+ # Selector specifying which fields to include in a partial response.
2243
+ # @param [String] quota_user
2244
+ # Available to use for quota purposes for server-side applications. Can be any
2245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2246
+ # @param [Google::Apis::RequestOptions] options
2247
+ # Request-specific options
2248
+ #
2249
+ # @yield [result, err] Result & error if block supplied
2250
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
2251
+ # @yieldparam err [StandardError] error object if request failed
2252
+ #
2253
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
2254
+ #
2255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2258
+ def create_project_location_agent_session_entity_type(parent, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2259
+ command = make_simple_command(:post, 'v3/{+parent}/entityTypes', options)
2260
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2261
+ command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object
2262
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2263
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
2264
+ command.params['parent'] = parent unless parent.nil?
2265
+ command.query['fields'] = fields unless fields.nil?
2266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2267
+ execute_or_queue_command(command, &block)
2268
+ end
2269
+
2270
+ # Deletes the specified session entity type.
2271
+ # @param [String] name
2272
+ # Required. The name of the session entity type to delete. Format: `projects//
2273
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
2274
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
2275
+ # we assume default 'draft' environment.
2276
+ # @param [String] fields
2277
+ # Selector specifying which fields to include in a partial response.
2278
+ # @param [String] quota_user
2279
+ # Available to use for quota purposes for server-side applications. Can be any
2280
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2281
+ # @param [Google::Apis::RequestOptions] options
2282
+ # Request-specific options
2283
+ #
2284
+ # @yield [result, err] Result & error if block supplied
2285
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
2286
+ # @yieldparam err [StandardError] error object if request failed
2287
+ #
2288
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
2289
+ #
2290
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2291
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2292
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2293
+ def delete_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
2294
+ command = make_simple_command(:delete, 'v3/{+name}', options)
2295
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
2296
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
2297
+ command.params['name'] = name unless name.nil?
2298
+ command.query['fields'] = fields unless fields.nil?
2299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2300
+ execute_or_queue_command(command, &block)
2301
+ end
2302
+
2303
+ # Retrieves the specified session entity type.
2304
+ # @param [String] name
2305
+ # Required. The name of the session entity type. Format: `projects//locations//
2306
+ # agents//sessions//entityTypes/` or `projects//locations//agents//environments//
2307
+ # sessions//entityTypes/`. If `Environment ID` is not specified, we assume
2308
+ # default 'draft' environment.
2309
+ # @param [String] fields
2310
+ # Selector specifying which fields to include in a partial response.
2311
+ # @param [String] quota_user
2312
+ # Available to use for quota purposes for server-side applications. Can be any
2313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2314
+ # @param [Google::Apis::RequestOptions] options
2315
+ # Request-specific options
2316
+ #
2317
+ # @yield [result, err] Result & error if block supplied
2318
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
2319
+ # @yieldparam err [StandardError] error object if request failed
2320
+ #
2321
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
2322
+ #
2323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2326
+ def get_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
2327
+ command = make_simple_command(:get, 'v3/{+name}', options)
2328
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2329
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
2330
+ command.params['name'] = name unless name.nil?
2331
+ command.query['fields'] = fields unless fields.nil?
2332
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2333
+ execute_or_queue_command(command, &block)
2334
+ end
2335
+
2336
+ # Returns the list of all session entity types in the specified session.
2337
+ # @param [String] parent
2338
+ # Required. The session to list all session entity types from. Format: `projects/
2339
+ # /locations//agents//sessions/` or `projects//locations//agents//environments//
2340
+ # sessions/`. If `Environment ID` is not specified, we assume default 'draft'
2341
+ # environment.
2342
+ # @param [Fixnum] page_size
2343
+ # The maximum number of items to return in a single page. By default 100 and at
2344
+ # most 1000.
2345
+ # @param [String] page_token
2346
+ # The next_page_token value returned from a previous list request.
2347
+ # @param [String] fields
2348
+ # Selector specifying which fields to include in a partial response.
2349
+ # @param [String] quota_user
2350
+ # Available to use for quota purposes for server-side applications. Can be any
2351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2352
+ # @param [Google::Apis::RequestOptions] options
2353
+ # Request-specific options
2354
+ #
2355
+ # @yield [result, err] Result & error if block supplied
2356
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse] parsed result object
2357
+ # @yieldparam err [StandardError] error object if request failed
2358
+ #
2359
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse]
2360
+ #
2361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2364
+ def list_project_location_agent_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2365
+ command = make_simple_command(:get, 'v3/{+parent}/entityTypes', options)
2366
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse::Representation
2367
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse
2368
+ command.params['parent'] = parent unless parent.nil?
2369
+ command.query['pageSize'] = page_size unless page_size.nil?
2370
+ command.query['pageToken'] = page_token unless page_token.nil?
2371
+ command.query['fields'] = fields unless fields.nil?
2372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2373
+ execute_or_queue_command(command, &block)
2374
+ end
2375
+
2376
+ # Updates the specified session entity type.
2377
+ # @param [String] name
2378
+ # Required. The unique identifier of the session entity type. Format: `projects//
2379
+ # locations//agents//sessions//entityTypes/` or `projects//locations//agents//
2380
+ # environments//sessions//entityTypes/`. If `Environment ID` is not specified,
2381
+ # we assume default 'draft' environment.
2382
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] google_cloud_dialogflow_cx_v3_session_entity_type_object
2383
+ # @param [String] update_mask
2384
+ # The mask to control which fields get updated.
2385
+ # @param [String] fields
2386
+ # Selector specifying which fields to include in a partial response.
2387
+ # @param [String] quota_user
2388
+ # Available to use for quota purposes for server-side applications. Can be any
2389
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2390
+ # @param [Google::Apis::RequestOptions] options
2391
+ # Request-specific options
2392
+ #
2393
+ # @yield [result, err] Result & error if block supplied
2394
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType] parsed result object
2395
+ # @yieldparam err [StandardError] error object if request failed
2396
+ #
2397
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType]
2398
+ #
2399
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2400
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2401
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2402
+ def patch_project_location_agent_session_entity_type(name, google_cloud_dialogflow_cx_v3_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2403
+ command = make_simple_command(:patch, 'v3/{+name}', options)
2404
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2405
+ command.request_object = google_cloud_dialogflow_cx_v3_session_entity_type_object
2406
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType::Representation
2407
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionEntityType
2408
+ command.params['name'] = name unless name.nil?
2409
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2410
+ command.query['fields'] = fields unless fields.nil?
2411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2412
+ execute_or_queue_command(command, &block)
2413
+ end
2414
+
2415
+ # Creates a webhook in the specified agent.
2416
+ # @param [String] parent
2417
+ # Required. The agent to create a webhook for. Format: `projects//locations//
2418
+ # agents/`.
2419
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] google_cloud_dialogflow_cx_v3_webhook_object
2420
+ # @param [String] fields
2421
+ # Selector specifying which fields to include in a partial response.
2422
+ # @param [String] quota_user
2423
+ # Available to use for quota purposes for server-side applications. Can be any
2424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2425
+ # @param [Google::Apis::RequestOptions] options
2426
+ # Request-specific options
2427
+ #
2428
+ # @yield [result, err] Result & error if block supplied
2429
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] parsed result object
2430
+ # @yieldparam err [StandardError] error object if request failed
2431
+ #
2432
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook]
2433
+ #
2434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2437
+ def create_project_location_agent_webhook(parent, google_cloud_dialogflow_cx_v3_webhook_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2438
+ command = make_simple_command(:post, 'v3/{+parent}/webhooks', options)
2439
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2440
+ command.request_object = google_cloud_dialogflow_cx_v3_webhook_object
2441
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2442
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook
2443
+ command.params['parent'] = parent unless parent.nil?
2444
+ command.query['fields'] = fields unless fields.nil?
2445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2446
+ execute_or_queue_command(command, &block)
2447
+ end
2448
+
2449
+ # Deletes the specified webhook.
2450
+ # @param [String] name
2451
+ # Required. The name of the webhook to delete. Format: `projects//locations//
2452
+ # agents//webhooks/`.
2453
+ # @param [Boolean] force
2454
+ # This field has no effect for webhook not being used. For webhooks that are
2455
+ # used by pages/flows/transition route groups: * If `force` is set to false, an
2456
+ # error will be returned with message indicating the referenced resources. * If `
2457
+ # force` is set to true, Dialogflow will remove the webhook, as well as any
2458
+ # references to the webhook (i.e. Webhook and tagin fulfillments that point to
2459
+ # this webhook will be removed).
2460
+ # @param [String] fields
2461
+ # Selector specifying which fields to include in a partial response.
2462
+ # @param [String] quota_user
2463
+ # Available to use for quota purposes for server-side applications. Can be any
2464
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2465
+ # @param [Google::Apis::RequestOptions] options
2466
+ # Request-specific options
2467
+ #
2468
+ # @yield [result, err] Result & error if block supplied
2469
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
2470
+ # @yieldparam err [StandardError] error object if request failed
2471
+ #
2472
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
2473
+ #
2474
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2475
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2476
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2477
+ def delete_project_location_agent_webhook(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2478
+ command = make_simple_command(:delete, 'v3/{+name}', options)
2479
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
2480
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
2481
+ command.params['name'] = name unless name.nil?
2482
+ command.query['force'] = force unless force.nil?
2483
+ command.query['fields'] = fields unless fields.nil?
2484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2485
+ execute_or_queue_command(command, &block)
2486
+ end
2487
+
2488
+ # Retrieves the specified webhook.
2489
+ # @param [String] name
2490
+ # Required. The name of the webhook. Format: `projects//locations//agents//
2491
+ # webhooks/`.
2492
+ # @param [String] fields
2493
+ # Selector specifying which fields to include in a partial response.
2494
+ # @param [String] quota_user
2495
+ # Available to use for quota purposes for server-side applications. Can be any
2496
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2497
+ # @param [Google::Apis::RequestOptions] options
2498
+ # Request-specific options
2499
+ #
2500
+ # @yield [result, err] Result & error if block supplied
2501
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] parsed result object
2502
+ # @yieldparam err [StandardError] error object if request failed
2503
+ #
2504
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook]
2505
+ #
2506
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2507
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2508
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2509
+ def get_project_location_agent_webhook(name, fields: nil, quota_user: nil, options: nil, &block)
2510
+ command = make_simple_command(:get, 'v3/{+name}', options)
2511
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2512
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook
2513
+ command.params['name'] = name unless name.nil?
2514
+ command.query['fields'] = fields unless fields.nil?
2515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2516
+ execute_or_queue_command(command, &block)
2517
+ end
2518
+
2519
+ # Returns the list of all webhooks in the specified agent.
2520
+ # @param [String] parent
2521
+ # Required. The agent to list all webhooks for. Format: `projects//locations//
2522
+ # agents/`.
2523
+ # @param [Fixnum] page_size
2524
+ # The maximum number of items to return in a single page. By default 100 and at
2525
+ # most 1000.
2526
+ # @param [String] page_token
2527
+ # The next_page_token value returned from a previous list request.
2528
+ # @param [String] fields
2529
+ # Selector specifying which fields to include in a partial response.
2530
+ # @param [String] quota_user
2531
+ # Available to use for quota purposes for server-side applications. Can be any
2532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2533
+ # @param [Google::Apis::RequestOptions] options
2534
+ # Request-specific options
2535
+ #
2536
+ # @yield [result, err] Result & error if block supplied
2537
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse] parsed result object
2538
+ # @yieldparam err [StandardError] error object if request failed
2539
+ #
2540
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse]
2541
+ #
2542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2545
+ def list_project_location_agent_webhooks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2546
+ command = make_simple_command(:get, 'v3/{+parent}/webhooks', options)
2547
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse::Representation
2548
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListWebhooksResponse
2549
+ command.params['parent'] = parent unless parent.nil?
2550
+ command.query['pageSize'] = page_size unless page_size.nil?
2551
+ command.query['pageToken'] = page_token unless page_token.nil?
2552
+ command.query['fields'] = fields unless fields.nil?
2553
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2554
+ execute_or_queue_command(command, &block)
2555
+ end
2556
+
2557
+ # Updates the specified webhook.
2558
+ # @param [String] name
2559
+ # The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook
2560
+ # method. Webhooks.CreateWebhook populates the name automatically. Format: `
2561
+ # projects//locations//agents//webhooks/`.
2562
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] google_cloud_dialogflow_cx_v3_webhook_object
2563
+ # @param [String] update_mask
2564
+ # The mask to control which fields get updated. If the mask is not present, all
2565
+ # fields will be updated.
2566
+ # @param [String] fields
2567
+ # Selector specifying which fields to include in a partial response.
2568
+ # @param [String] quota_user
2569
+ # Available to use for quota purposes for server-side applications. Can be any
2570
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2571
+ # @param [Google::Apis::RequestOptions] options
2572
+ # Request-specific options
2573
+ #
2574
+ # @yield [result, err] Result & error if block supplied
2575
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook] parsed result object
2576
+ # @yieldparam err [StandardError] error object if request failed
2577
+ #
2578
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook]
2579
+ #
2580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2583
+ def patch_project_location_agent_webhook(name, google_cloud_dialogflow_cx_v3_webhook_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2584
+ command = make_simple_command(:patch, 'v3/{+name}', options)
2585
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2586
+ command.request_object = google_cloud_dialogflow_cx_v3_webhook_object
2587
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook::Representation
2588
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Webhook
2589
+ command.params['name'] = name unless name.nil?
2590
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2591
+ command.query['fields'] = fields unless fields.nil?
2592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2593
+ execute_or_queue_command(command, &block)
2594
+ end
2595
+
2596
+ # Starts asynchronous cancellation on a long-running operation. The server makes
2597
+ # a best effort to cancel the operation, but success is not guaranteed. If the
2598
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2599
+ # Clients can use Operations.GetOperation or other methods to check whether the
2600
+ # cancellation succeeded or whether the operation completed despite cancellation.
2601
+ # On successful cancellation, the operation is not deleted; instead, it becomes
2602
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
2603
+ # corresponding to `Code.CANCELLED`.
2604
+ # @param [String] name
2605
+ # The name of the operation resource to be cancelled.
2606
+ # @param [String] fields
2607
+ # Selector specifying which fields to include in a partial response.
2608
+ # @param [String] quota_user
2609
+ # Available to use for quota purposes for server-side applications. Can be any
2610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2611
+ # @param [Google::Apis::RequestOptions] options
2612
+ # Request-specific options
2613
+ #
2614
+ # @yield [result, err] Result & error if block supplied
2615
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
2616
+ # @yieldparam err [StandardError] error object if request failed
2617
+ #
2618
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
2619
+ #
2620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2623
+ def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2624
+ command = make_simple_command(:post, 'v3/{+name}:cancel', options)
2625
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
2626
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
2627
+ command.params['name'] = name unless name.nil?
2628
+ command.query['fields'] = fields unless fields.nil?
2629
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2630
+ execute_or_queue_command(command, &block)
2631
+ end
2632
+
2633
+ # Gets the latest state of a long-running operation. Clients can use this method
2634
+ # to poll the operation result at intervals as recommended by the API service.
2635
+ # @param [String] name
2636
+ # The name of the operation resource.
2637
+ # @param [String] fields
2638
+ # Selector specifying which fields to include in a partial response.
2639
+ # @param [String] quota_user
2640
+ # Available to use for quota purposes for server-side applications. Can be any
2641
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2642
+ # @param [Google::Apis::RequestOptions] options
2643
+ # Request-specific options
2644
+ #
2645
+ # @yield [result, err] Result & error if block supplied
2646
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
2647
+ # @yieldparam err [StandardError] error object if request failed
2648
+ #
2649
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
2650
+ #
2651
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2652
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2653
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2654
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2655
+ command = make_simple_command(:get, 'v3/{+name}', options)
2656
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
2657
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
2658
+ command.params['name'] = name unless name.nil?
2659
+ command.query['fields'] = fields unless fields.nil?
2660
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2661
+ execute_or_queue_command(command, &block)
2662
+ end
2663
+
2664
+ # Lists operations that match the specified filter in the request. If the server
2665
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2666
+ # binding allows API services to override the binding to use different resource
2667
+ # name schemes, such as `users/*/operations`. To override the binding, API
2668
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2669
+ # service configuration. For backwards compatibility, the default name includes
2670
+ # the operations collection id, however overriding users must ensure the name
2671
+ # binding is the parent resource, without the operations collection id.
2672
+ # @param [String] name
2673
+ # The name of the operation's parent resource.
2674
+ # @param [String] filter
2675
+ # The standard list filter.
2676
+ # @param [Fixnum] page_size
2677
+ # The standard list page size.
2678
+ # @param [String] page_token
2679
+ # The standard list page token.
2680
+ # @param [String] fields
2681
+ # Selector specifying which fields to include in a partial response.
2682
+ # @param [String] quota_user
2683
+ # Available to use for quota purposes for server-side applications. Can be any
2684
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2685
+ # @param [Google::Apis::RequestOptions] options
2686
+ # Request-specific options
2687
+ #
2688
+ # @yield [result, err] Result & error if block supplied
2689
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse] parsed result object
2690
+ # @yieldparam err [StandardError] error object if request failed
2691
+ #
2692
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse]
2693
+ #
2694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2697
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2698
+ command = make_simple_command(:get, 'v3/{+name}/operations', options)
2699
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse::Representation
2700
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse
2701
+ command.params['name'] = name unless name.nil?
2702
+ command.query['filter'] = filter unless filter.nil?
2703
+ command.query['pageSize'] = page_size unless page_size.nil?
2704
+ command.query['pageToken'] = page_token unless page_token.nil?
2705
+ command.query['fields'] = fields unless fields.nil?
2706
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2707
+ execute_or_queue_command(command, &block)
2708
+ end
2709
+
2710
+ # Create security settings in the specified location.
2711
+ # @param [String] parent
2712
+ # Required. The location to create an SecuritySettings for. Format: `projects//
2713
+ # locations/`.
2714
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] google_cloud_dialogflow_cx_v3_security_settings_object
2715
+ # @param [String] fields
2716
+ # Selector specifying which fields to include in a partial response.
2717
+ # @param [String] quota_user
2718
+ # Available to use for quota purposes for server-side applications. Can be any
2719
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2720
+ # @param [Google::Apis::RequestOptions] options
2721
+ # Request-specific options
2722
+ #
2723
+ # @yield [result, err] Result & error if block supplied
2724
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] parsed result object
2725
+ # @yieldparam err [StandardError] error object if request failed
2726
+ #
2727
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings]
2728
+ #
2729
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2730
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2731
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2732
+ def create_project_location_security_setting(parent, google_cloud_dialogflow_cx_v3_security_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2733
+ command = make_simple_command(:post, 'v3/{+parent}/securitySettings', options)
2734
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
2735
+ command.request_object = google_cloud_dialogflow_cx_v3_security_settings_object
2736
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
2737
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings
2738
+ command.params['parent'] = parent unless parent.nil?
2739
+ command.query['fields'] = fields unless fields.nil?
2740
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2741
+ execute_or_queue_command(command, &block)
2742
+ end
2743
+
2744
+ # Deletes the specified SecuritySettings.
2745
+ # @param [String] name
2746
+ # Required. The name of the SecuritySettings to delete. Format: `projects//
2747
+ # locations//securitySettings/`.
2748
+ # @param [String] fields
2749
+ # Selector specifying which fields to include in a partial response.
2750
+ # @param [String] quota_user
2751
+ # Available to use for quota purposes for server-side applications. Can be any
2752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2753
+ # @param [Google::Apis::RequestOptions] options
2754
+ # Request-specific options
2755
+ #
2756
+ # @yield [result, err] Result & error if block supplied
2757
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
2758
+ # @yieldparam err [StandardError] error object if request failed
2759
+ #
2760
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
2761
+ #
2762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2765
+ def delete_project_location_security_setting(name, fields: nil, quota_user: nil, options: nil, &block)
2766
+ command = make_simple_command(:delete, 'v3/{+name}', options)
2767
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
2768
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
2769
+ command.params['name'] = name unless name.nil?
2770
+ command.query['fields'] = fields unless fields.nil?
2771
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2772
+ execute_or_queue_command(command, &block)
2773
+ end
2774
+
2775
+ # Retrieves the specified SecuritySettings. The returned settings may be stale
2776
+ # by up to 1 minute.
2777
+ # @param [String] name
2778
+ # Required. Resource name of the settings. Format: `projects//locations//
2779
+ # securitySettings/`.
2780
+ # @param [String] fields
2781
+ # Selector specifying which fields to include in a partial response.
2782
+ # @param [String] quota_user
2783
+ # Available to use for quota purposes for server-side applications. Can be any
2784
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2785
+ # @param [Google::Apis::RequestOptions] options
2786
+ # Request-specific options
2787
+ #
2788
+ # @yield [result, err] Result & error if block supplied
2789
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] parsed result object
2790
+ # @yieldparam err [StandardError] error object if request failed
2791
+ #
2792
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings]
2793
+ #
2794
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2795
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2796
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2797
+ def get_project_location_security_setting(name, fields: nil, quota_user: nil, options: nil, &block)
2798
+ command = make_simple_command(:get, 'v3/{+name}', options)
2799
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
2800
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings
2801
+ command.params['name'] = name unless name.nil?
2802
+ command.query['fields'] = fields unless fields.nil?
2803
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2804
+ execute_or_queue_command(command, &block)
2805
+ end
2806
+
2807
+ # Returns the list of all security settings in the specified location.
2808
+ # @param [String] parent
2809
+ # Required. The location to list all security settings for. Format: `projects//
2810
+ # locations/`.
2811
+ # @param [Fixnum] page_size
2812
+ # The maximum number of items to return in a single page. By default 20 and at
2813
+ # most 100.
2814
+ # @param [String] page_token
2815
+ # The next_page_token value returned from a previous list request.
2816
+ # @param [String] fields
2817
+ # Selector specifying which fields to include in a partial response.
2818
+ # @param [String] quota_user
2819
+ # Available to use for quota purposes for server-side applications. Can be any
2820
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2821
+ # @param [Google::Apis::RequestOptions] options
2822
+ # Request-specific options
2823
+ #
2824
+ # @yield [result, err] Result & error if block supplied
2825
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse] parsed result object
2826
+ # @yieldparam err [StandardError] error object if request failed
2827
+ #
2828
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse]
2829
+ #
2830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2833
+ def list_project_location_security_settings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2834
+ command = make_simple_command(:get, 'v3/{+parent}/securitySettings', options)
2835
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse::Representation
2836
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListSecuritySettingsResponse
2837
+ command.params['parent'] = parent unless parent.nil?
2838
+ command.query['pageSize'] = page_size unless page_size.nil?
2839
+ command.query['pageToken'] = page_token unless page_token.nil?
2840
+ command.query['fields'] = fields unless fields.nil?
2841
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2842
+ execute_or_queue_command(command, &block)
2843
+ end
2844
+
2845
+ # Updates the specified SecuritySettings.
2846
+ # @param [String] name
2847
+ # Required. Resource name of the settings. Format: `projects//locations//
2848
+ # securitySettings/`.
2849
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] google_cloud_dialogflow_cx_v3_security_settings_object
2850
+ # @param [String] update_mask
2851
+ # Required. The mask to control which fields get updated. If the mask is not
2852
+ # present, all fields will be updated.
2853
+ # @param [String] fields
2854
+ # Selector specifying which fields to include in a partial response.
2855
+ # @param [String] quota_user
2856
+ # Available to use for quota purposes for server-side applications. Can be any
2857
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2858
+ # @param [Google::Apis::RequestOptions] options
2859
+ # Request-specific options
2860
+ #
2861
+ # @yield [result, err] Result & error if block supplied
2862
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings] parsed result object
2863
+ # @yieldparam err [StandardError] error object if request failed
2864
+ #
2865
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings]
2866
+ #
2867
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2868
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2869
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2870
+ def patch_project_location_security_setting(name, google_cloud_dialogflow_cx_v3_security_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2871
+ command = make_simple_command(:patch, 'v3/{+name}', options)
2872
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
2873
+ command.request_object = google_cloud_dialogflow_cx_v3_security_settings_object
2874
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings::Representation
2875
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettings
2876
+ command.params['name'] = name unless name.nil?
2877
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2878
+ command.query['fields'] = fields unless fields.nil?
2879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2880
+ execute_or_queue_command(command, &block)
2881
+ end
2882
+
2883
+ # Starts asynchronous cancellation on a long-running operation. The server makes
2884
+ # a best effort to cancel the operation, but success is not guaranteed. If the
2885
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2886
+ # Clients can use Operations.GetOperation or other methods to check whether the
2887
+ # cancellation succeeded or whether the operation completed despite cancellation.
2888
+ # On successful cancellation, the operation is not deleted; instead, it becomes
2889
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
2890
+ # corresponding to `Code.CANCELLED`.
2891
+ # @param [String] name
2892
+ # The name of the operation resource to be cancelled.
2893
+ # @param [String] fields
2894
+ # Selector specifying which fields to include in a partial response.
2895
+ # @param [String] quota_user
2896
+ # Available to use for quota purposes for server-side applications. Can be any
2897
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2898
+ # @param [Google::Apis::RequestOptions] options
2899
+ # Request-specific options
2900
+ #
2901
+ # @yield [result, err] Result & error if block supplied
2902
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
2903
+ # @yieldparam err [StandardError] error object if request failed
2904
+ #
2905
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
2906
+ #
2907
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2908
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2909
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2910
+ def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2911
+ command = make_simple_command(:post, 'v3/{+name}:cancel', options)
2912
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
2913
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
2914
+ command.params['name'] = name unless name.nil?
2915
+ command.query['fields'] = fields unless fields.nil?
2916
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2917
+ execute_or_queue_command(command, &block)
2918
+ end
2919
+
2920
+ # Gets the latest state of a long-running operation. Clients can use this method
2921
+ # to poll the operation result at intervals as recommended by the API service.
2922
+ # @param [String] name
2923
+ # The name of the operation resource.
2924
+ # @param [String] fields
2925
+ # Selector specifying which fields to include in a partial response.
2926
+ # @param [String] quota_user
2927
+ # Available to use for quota purposes for server-side applications. Can be any
2928
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2929
+ # @param [Google::Apis::RequestOptions] options
2930
+ # Request-specific options
2931
+ #
2932
+ # @yield [result, err] Result & error if block supplied
2933
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningOperation] parsed result object
2934
+ # @yieldparam err [StandardError] error object if request failed
2935
+ #
2936
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningOperation]
2937
+ #
2938
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2939
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2940
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2941
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2942
+ command = make_simple_command(:get, 'v3/{+name}', options)
2943
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningOperation::Representation
2944
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningOperation
2945
+ command.params['name'] = name unless name.nil?
2946
+ command.query['fields'] = fields unless fields.nil?
2947
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2948
+ execute_or_queue_command(command, &block)
2949
+ end
2950
+
2951
+ # Lists operations that match the specified filter in the request. If the server
2952
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2953
+ # binding allows API services to override the binding to use different resource
2954
+ # name schemes, such as `users/*/operations`. To override the binding, API
2955
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2956
+ # service configuration. For backwards compatibility, the default name includes
2957
+ # the operations collection id, however overriding users must ensure the name
2958
+ # binding is the parent resource, without the operations collection id.
2959
+ # @param [String] name
2960
+ # The name of the operation's parent resource.
2961
+ # @param [String] filter
2962
+ # The standard list filter.
2963
+ # @param [Fixnum] page_size
2964
+ # The standard list page size.
2965
+ # @param [String] page_token
2966
+ # The standard list page token.
2967
+ # @param [String] fields
2968
+ # Selector specifying which fields to include in a partial response.
2969
+ # @param [String] quota_user
2970
+ # Available to use for quota purposes for server-side applications. Can be any
2971
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2972
+ # @param [Google::Apis::RequestOptions] options
2973
+ # Request-specific options
2974
+ #
2975
+ # @yield [result, err] Result & error if block supplied
2976
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse] parsed result object
2977
+ # @yieldparam err [StandardError] error object if request failed
2978
+ #
2979
+ # @return [Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse]
2980
+ #
2981
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2982
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2983
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2984
+ def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2985
+ command = make_simple_command(:get, 'v3/{+name}/operations', options)
2986
+ command.response_representation = Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse::Representation
2987
+ command.response_class = Google::Apis::DialogflowV3::GoogleLongrunningListOperationsResponse
2988
+ command.params['name'] = name unless name.nil?
2989
+ command.query['filter'] = filter unless filter.nil?
2990
+ command.query['pageSize'] = page_size unless page_size.nil?
2991
+ command.query['pageToken'] = page_token unless page_token.nil?
2992
+ command.query['fields'] = fields unless fields.nil?
2993
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2994
+ execute_or_queue_command(command, &block)
2995
+ end
2996
+
2997
+ protected
2998
+
2999
+ def apply_command_defaults(command)
3000
+ command.query['key'] = key unless key.nil?
3001
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3002
+ end
3003
+ end
3004
+ end
3005
+ end
3006
+ end