google-cloud-ces-v1beta 0.a → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/ces/v1beta/agent_card_pb.rb +26 -0
  6. data/lib/google/cloud/ces/v1beta/agent_pb.rb +30 -0
  7. data/lib/google/cloud/ces/v1beta/agent_service/client.rb +5641 -0
  8. data/lib/google/cloud/ces/v1beta/agent_service/credentials.rb +48 -0
  9. data/lib/google/cloud/ces/v1beta/agent_service/operations.rb +843 -0
  10. data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +481 -0
  11. data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +5249 -0
  12. data/lib/google/cloud/ces/v1beta/agent_service/rest/operations.rb +927 -0
  13. data/lib/google/cloud/ces/v1beta/agent_service/rest/service_stub.rb +3213 -0
  14. data/lib/google/cloud/ces/v1beta/agent_service/rest.rb +55 -0
  15. data/lib/google/cloud/ces/v1beta/agent_service.rb +57 -0
  16. data/lib/google/cloud/ces/v1beta/agent_service_pb.rb +132 -0
  17. data/lib/google/cloud/ces/v1beta/agent_service_services_pb.rb +148 -0
  18. data/lib/google/cloud/ces/v1beta/agent_tool_pb.rb +24 -0
  19. data/lib/google/cloud/ces/v1beta/agent_transfers_pb.rb +29 -0
  20. data/lib/google/cloud/ces/v1beta/app_pb.rb +70 -0
  21. data/lib/google/cloud/ces/v1beta/app_version_pb.rb +32 -0
  22. data/lib/google/cloud/ces/v1beta/auth_pb.rb +34 -0
  23. data/lib/google/cloud/ces/v1beta/bigquery_export_pb.rb +23 -0
  24. data/lib/google/cloud/ces/v1beta/bindings_override.rb +75 -0
  25. data/lib/google/cloud/ces/v1beta/changelog_pb.rb +26 -0
  26. data/lib/google/cloud/ces/v1beta/client_function_pb.rb +24 -0
  27. data/lib/google/cloud/ces/v1beta/common_pb.rb +46 -0
  28. data/lib/google/cloud/ces/v1beta/connector_tool_pb.rb +27 -0
  29. data/lib/google/cloud/ces/v1beta/connector_toolset_pb.rb +25 -0
  30. data/lib/google/cloud/ces/v1beta/conversation_pb.rb +31 -0
  31. data/lib/google/cloud/ces/v1beta/data_store_pb.rb +27 -0
  32. data/lib/google/cloud/ces/v1beta/data_store_tool_pb.rb +40 -0
  33. data/lib/google/cloud/ces/v1beta/deployment_pb.rb +30 -0
  34. data/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb +31 -0
  35. data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +99 -0
  36. data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +4050 -0
  37. data/lib/google/cloud/ces/v1beta/evaluation_service/credentials.rb +48 -0
  38. data/lib/google/cloud/ces/v1beta/evaluation_service/operations.rb +843 -0
  39. data/lib/google/cloud/ces/v1beta/evaluation_service/paths.rb +306 -0
  40. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +3770 -0
  41. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/operations.rb +927 -0
  42. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb +2233 -0
  43. data/lib/google/cloud/ces/v1beta/evaluation_service/rest.rb +54 -0
  44. data/lib/google/cloud/ces/v1beta/evaluation_service.rb +56 -0
  45. data/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb +93 -0
  46. data/lib/google/cloud/ces/v1beta/evaluation_service_services_pb.rb +116 -0
  47. data/lib/google/cloud/ces/v1beta/example_pb.rb +34 -0
  48. data/lib/google/cloud/ces/v1beta/fakes_pb.rb +25 -0
  49. data/lib/google/cloud/ces/v1beta/file_context_pb.rb +24 -0
  50. data/lib/google/cloud/ces/v1beta/file_search_tool_pb.rb +24 -0
  51. data/lib/google/cloud/ces/v1beta/golden_run_pb.rb +21 -0
  52. data/lib/google/cloud/ces/v1beta/google_search_tool_pb.rb +24 -0
  53. data/lib/google/cloud/ces/v1beta/guardrail_pb.rb +37 -0
  54. data/lib/google/cloud/ces/v1beta/mcp_tool_pb.rb +27 -0
  55. data/lib/google/cloud/ces/v1beta/mcp_toolset_pb.rb +28 -0
  56. data/lib/google/cloud/ces/v1beta/mocks_pb.rb +26 -0
  57. data/lib/google/cloud/ces/v1beta/omnichannel_pb.rb +31 -0
  58. data/lib/google/cloud/ces/v1beta/omnichannel_service_pb.rb +27 -0
  59. data/lib/google/cloud/ces/v1beta/open_api_tool_pb.rb +25 -0
  60. data/lib/google/cloud/ces/v1beta/open_api_toolset_pb.rb +25 -0
  61. data/lib/google/cloud/ces/v1beta/python_function_pb.rb +24 -0
  62. data/lib/google/cloud/ces/v1beta/rest.rb +42 -0
  63. data/lib/google/cloud/ces/v1beta/schema_pb.rb +25 -0
  64. data/lib/google/cloud/ces/v1beta/search_suggestions_pb.rb +22 -0
  65. data/lib/google/cloud/ces/v1beta/security_settings_pb.rb +27 -0
  66. data/lib/google/cloud/ces/v1beta/session_service/client.rb +762 -0
  67. data/lib/google/cloud/ces/v1beta/session_service/credentials.rb +48 -0
  68. data/lib/google/cloud/ces/v1beta/session_service/paths.rb +117 -0
  69. data/lib/google/cloud/ces/v1beta/session_service/rest/client.rb +562 -0
  70. data/lib/google/cloud/ces/v1beta/session_service/rest/service_stub.rb +199 -0
  71. data/lib/google/cloud/ces/v1beta/session_service/rest.rb +53 -0
  72. data/lib/google/cloud/ces/v1beta/session_service.rb +55 -0
  73. data/lib/google/cloud/ces/v1beta/session_service_pb.rb +54 -0
  74. data/lib/google/cloud/ces/v1beta/session_service_services_pb.rb +120 -0
  75. data/lib/google/cloud/ces/v1beta/system_tool_pb.rb +23 -0
  76. data/lib/google/cloud/ces/v1beta/tool_pb.rb +40 -0
  77. data/lib/google/cloud/ces/v1beta/tool_service/client.rb +733 -0
  78. data/lib/google/cloud/ces/v1beta/tool_service/credentials.rb +48 -0
  79. data/lib/google/cloud/ces/v1beta/tool_service/paths.rb +94 -0
  80. data/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb +677 -0
  81. data/lib/google/cloud/ces/v1beta/tool_service/rest/service_stub.rb +267 -0
  82. data/lib/google/cloud/ces/v1beta/tool_service/rest.rb +53 -0
  83. data/lib/google/cloud/ces/v1beta/tool_service.rb +55 -0
  84. data/lib/google/cloud/ces/v1beta/tool_service_pb.rb +37 -0
  85. data/lib/google/cloud/ces/v1beta/tool_service_services_pb.rb +50 -0
  86. data/lib/google/cloud/ces/v1beta/toolset_pb.rb +30 -0
  87. data/lib/google/cloud/ces/v1beta/toolset_tool_pb.rb +24 -0
  88. data/lib/google/cloud/ces/v1beta/version.rb +7 -2
  89. data/lib/google/cloud/ces/v1beta/widget_service/client.rb +503 -0
  90. data/lib/google/cloud/ces/v1beta/widget_service/credentials.rb +48 -0
  91. data/lib/google/cloud/ces/v1beta/widget_service/paths.rb +75 -0
  92. data/lib/google/cloud/ces/v1beta/widget_service/rest/client.rb +461 -0
  93. data/lib/google/cloud/ces/v1beta/widget_service/rest/service_stub.rb +143 -0
  94. data/lib/google/cloud/ces/v1beta/widget_service/rest.rb +53 -0
  95. data/lib/google/cloud/ces/v1beta/widget_service.rb +55 -0
  96. data/lib/google/cloud/ces/v1beta/widget_service_pb.rb +28 -0
  97. data/lib/google/cloud/ces/v1beta/widget_service_services_pb.rb +46 -0
  98. data/lib/google/cloud/ces/v1beta/widget_tool_pb.rb +31 -0
  99. data/lib/google/cloud/ces/v1beta.rb +49 -0
  100. data/lib/google-cloud-ces-v1beta.rb +21 -0
  101. data/proto_docs/README.md +4 -0
  102. data/proto_docs/google/api/client.rb +593 -0
  103. data/proto_docs/google/api/field_behavior.rb +85 -0
  104. data/proto_docs/google/api/launch_stage.rb +71 -0
  105. data/proto_docs/google/api/resource.rb +227 -0
  106. data/proto_docs/google/cloud/ces/v1beta/agent.rb +233 -0
  107. data/proto_docs/google/cloud/ces/v1beta/agent_card.rb +122 -0
  108. data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +1682 -0
  109. data/proto_docs/google/cloud/ces/v1beta/agent_tool.rb +48 -0
  110. data/proto_docs/google/cloud/ces/v1beta/agent_transfers.rb +111 -0
  111. data/proto_docs/google/cloud/ces/v1beta/app.rb +883 -0
  112. data/proto_docs/google/cloud/ces/v1beta/app_version.rb +83 -0
  113. data/proto_docs/google/cloud/ces/v1beta/auth.rb +214 -0
  114. data/proto_docs/google/cloud/ces/v1beta/bigquery_export.rb +45 -0
  115. data/proto_docs/google/cloud/ces/v1beta/changelog.rb +73 -0
  116. data/proto_docs/google/cloud/ces/v1beta/client_function.rb +48 -0
  117. data/proto_docs/google/cloud/ces/v1beta/common.rb +375 -0
  118. data/proto_docs/google/cloud/ces/v1beta/connector_tool.rb +122 -0
  119. data/proto_docs/google/cloud/ces/v1beta/connector_toolset.rb +52 -0
  120. data/proto_docs/google/cloud/ces/v1beta/conversation.rb +159 -0
  121. data/proto_docs/google/cloud/ces/v1beta/data_store.rb +102 -0
  122. data/proto_docs/google/cloud/ces/v1beta/data_store_tool.rb +328 -0
  123. data/proto_docs/google/cloud/ces/v1beta/deployment.rb +123 -0
  124. data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +1687 -0
  125. data/proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb +151 -0
  126. data/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb +1087 -0
  127. data/proto_docs/google/cloud/ces/v1beta/example.rb +245 -0
  128. data/proto_docs/google/cloud/ces/v1beta/fakes.rb +67 -0
  129. data/proto_docs/google/cloud/ces/v1beta/file_context.rb +50 -0
  130. data/proto_docs/google/cloud/ces/v1beta/file_search_tool.rb +60 -0
  131. data/proto_docs/google/cloud/ces/v1beta/golden_run.rb +40 -0
  132. data/proto_docs/google/cloud/ces/v1beta/google_search_tool.rb +76 -0
  133. data/proto_docs/google/cloud/ces/v1beta/guardrail.rb +324 -0
  134. data/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb +110 -0
  135. data/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb +118 -0
  136. data/proto_docs/google/cloud/ces/v1beta/mocks.rb +60 -0
  137. data/proto_docs/google/cloud/ces/v1beta/omnichannel.rb +163 -0
  138. data/proto_docs/google/cloud/ces/v1beta/omnichannel_service.rb +45 -0
  139. data/proto_docs/google/cloud/ces/v1beta/open_api_tool.rb +66 -0
  140. data/proto_docs/google/cloud/ces/v1beta/open_api_toolset.rb +57 -0
  141. data/proto_docs/google/cloud/ces/v1beta/python_function.rb +47 -0
  142. data/proto_docs/google/cloud/ces/v1beta/schema.rb +162 -0
  143. data/proto_docs/google/cloud/ces/v1beta/search_suggestions.rb +55 -0
  144. data/proto_docs/google/cloud/ces/v1beta/security_settings.rb +80 -0
  145. data/proto_docs/google/cloud/ces/v1beta/session_service.rb +493 -0
  146. data/proto_docs/google/cloud/ces/v1beta/system_tool.rb +38 -0
  147. data/proto_docs/google/cloud/ces/v1beta/tool.rb +136 -0
  148. data/proto_docs/google/cloud/ces/v1beta/tool_service.rb +185 -0
  149. data/proto_docs/google/cloud/ces/v1beta/toolset.rb +80 -0
  150. data/proto_docs/google/cloud/ces/v1beta/toolset_tool.rb +40 -0
  151. data/proto_docs/google/cloud/ces/v1beta/widget_service.rb +62 -0
  152. data/proto_docs/google/cloud/ces/v1beta/widget_tool.rb +182 -0
  153. data/proto_docs/google/longrunning/operations.rb +191 -0
  154. data/proto_docs/google/protobuf/any.rb +145 -0
  155. data/proto_docs/google/protobuf/duration.rb +98 -0
  156. data/proto_docs/google/protobuf/empty.rb +34 -0
  157. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  158. data/proto_docs/google/protobuf/struct.rb +108 -0
  159. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  160. data/proto_docs/google/rpc/status.rb +48 -0
  161. metadata +208 -9
@@ -0,0 +1,2233 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/ces/v1beta/evaluation_service_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Ces
24
+ module V1beta
25
+ module EvaluationService
26
+ module Rest
27
+ ##
28
+ # REST service stub for the EvaluationService service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
40
+ endpoint_template: endpoint_template,
41
+ universe_domain: universe_domain,
42
+ credentials: credentials,
43
+ numeric_enums: true,
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
47
+ end
48
+
49
+ ##
50
+ # The effective universe domain
51
+ #
52
+ # @return [String]
53
+ #
54
+ def universe_domain
55
+ @client_stub.universe_domain
56
+ end
57
+
58
+ ##
59
+ # The effective endpoint
60
+ #
61
+ # @return [String]
62
+ #
63
+ def endpoint
64
+ @client_stub.endpoint
65
+ end
66
+
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
76
+ ##
77
+ # Baseline implementation for the run_evaluation REST call
78
+ #
79
+ # @param request_pb [::Google::Cloud::Ces::V1beta::RunEvaluationRequest]
80
+ # A request object representing the call parameters. Required.
81
+ # @param options [::Gapic::CallOptions]
82
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
83
+ #
84
+ # @yield [result, operation] Access the result along with the TransportOperation object
85
+ # @yieldparam result [::Google::Longrunning::Operation]
86
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
87
+ #
88
+ # @return [::Google::Longrunning::Operation]
89
+ # A result object deserialized from the server's reply
90
+ def run_evaluation request_pb, options = nil
91
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
92
+
93
+ verb, uri, query_string_params, body = ServiceStub.transcode_run_evaluation_request request_pb
94
+ query_string_params = if query_string_params.any?
95
+ query_string_params.to_h { |p| p.split "=", 2 }
96
+ else
97
+ {}
98
+ end
99
+
100
+ response = @client_stub.make_http_request(
101
+ verb,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "run_evaluation",
106
+ options: options
107
+ )
108
+ operation = ::Gapic::Rest::TransportOperation.new response
109
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
114
+ end
115
+
116
+ ##
117
+ # Baseline implementation for the upload_evaluation_audio REST call
118
+ #
119
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UploadEvaluationAudioRequest]
120
+ # A request object representing the call parameters. Required.
121
+ # @param options [::Gapic::CallOptions]
122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
123
+ #
124
+ # @yield [result, operation] Access the result along with the TransportOperation object
125
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::UploadEvaluationAudioResponse]
126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
127
+ #
128
+ # @return [::Google::Cloud::Ces::V1beta::UploadEvaluationAudioResponse]
129
+ # A result object deserialized from the server's reply
130
+ def upload_evaluation_audio request_pb, options = nil
131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
132
+
133
+ verb, uri, query_string_params, body = ServiceStub.transcode_upload_evaluation_audio_request request_pb
134
+ query_string_params = if query_string_params.any?
135
+ query_string_params.to_h { |p| p.split "=", 2 }
136
+ else
137
+ {}
138
+ end
139
+
140
+ response = @client_stub.make_http_request(
141
+ verb,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "upload_evaluation_audio",
146
+ options: options
147
+ )
148
+ operation = ::Gapic::Rest::TransportOperation.new response
149
+ result = ::Google::Cloud::Ces::V1beta::UploadEvaluationAudioResponse.decode_json response.body, ignore_unknown_fields: true
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
154
+ end
155
+
156
+ ##
157
+ # Baseline implementation for the create_evaluation REST call
158
+ #
159
+ # @param request_pb [::Google::Cloud::Ces::V1beta::CreateEvaluationRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::Evaluation]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Cloud::Ces::V1beta::Evaluation]
169
+ # A result object deserialized from the server's reply
170
+ def create_evaluation request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_evaluation_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "create_evaluation",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::Ces::V1beta::Evaluation.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
196
+ ##
197
+ # Baseline implementation for the generate_evaluation REST call
198
+ #
199
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GenerateEvaluationRequest]
200
+ # A request object representing the call parameters. Required.
201
+ # @param options [::Gapic::CallOptions]
202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203
+ #
204
+ # @yield [result, operation] Access the result along with the TransportOperation object
205
+ # @yieldparam result [::Google::Longrunning::Operation]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Longrunning::Operation]
209
+ # A result object deserialized from the server's reply
210
+ def generate_evaluation request_pb, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
212
+
213
+ verb, uri, query_string_params, body = ServiceStub.transcode_generate_evaluation_request request_pb
214
+ query_string_params = if query_string_params.any?
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
+ else
217
+ {}
218
+ end
219
+
220
+ response = @client_stub.make_http_request(
221
+ verb,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "generate_evaluation",
226
+ options: options
227
+ )
228
+ operation = ::Gapic::Rest::TransportOperation.new response
229
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
234
+ end
235
+
236
+ ##
237
+ # Baseline implementation for the import_evaluations REST call
238
+ #
239
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ImportEvaluationsRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @param options [::Gapic::CallOptions]
242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
243
+ #
244
+ # @yield [result, operation] Access the result along with the TransportOperation object
245
+ # @yieldparam result [::Google::Longrunning::Operation]
246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
247
+ #
248
+ # @return [::Google::Longrunning::Operation]
249
+ # A result object deserialized from the server's reply
250
+ def import_evaluations request_pb, options = nil
251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
252
+
253
+ verb, uri, query_string_params, body = ServiceStub.transcode_import_evaluations_request request_pb
254
+ query_string_params = if query_string_params.any?
255
+ query_string_params.to_h { |p| p.split "=", 2 }
256
+ else
257
+ {}
258
+ end
259
+
260
+ response = @client_stub.make_http_request(
261
+ verb,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "import_evaluations",
266
+ options: options
267
+ )
268
+ operation = ::Gapic::Rest::TransportOperation.new response
269
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
274
+ end
275
+
276
+ ##
277
+ # Baseline implementation for the create_evaluation_dataset REST call
278
+ #
279
+ # @param request_pb [::Google::Cloud::Ces::V1beta::CreateEvaluationDatasetRequest]
280
+ # A request object representing the call parameters. Required.
281
+ # @param options [::Gapic::CallOptions]
282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
283
+ #
284
+ # @yield [result, operation] Access the result along with the TransportOperation object
285
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::EvaluationDataset]
286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
287
+ #
288
+ # @return [::Google::Cloud::Ces::V1beta::EvaluationDataset]
289
+ # A result object deserialized from the server's reply
290
+ def create_evaluation_dataset request_pb, options = nil
291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
292
+
293
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_evaluation_dataset_request request_pb
294
+ query_string_params = if query_string_params.any?
295
+ query_string_params.to_h { |p| p.split "=", 2 }
296
+ else
297
+ {}
298
+ end
299
+
300
+ response = @client_stub.make_http_request(
301
+ verb,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "create_evaluation_dataset",
306
+ options: options
307
+ )
308
+ operation = ::Gapic::Rest::TransportOperation.new response
309
+ result = ::Google::Cloud::Ces::V1beta::EvaluationDataset.decode_json response.body, ignore_unknown_fields: true
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
314
+ end
315
+
316
+ ##
317
+ # Baseline implementation for the update_evaluation REST call
318
+ #
319
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UpdateEvaluationRequest]
320
+ # A request object representing the call parameters. Required.
321
+ # @param options [::Gapic::CallOptions]
322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
323
+ #
324
+ # @yield [result, operation] Access the result along with the TransportOperation object
325
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::Evaluation]
326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
327
+ #
328
+ # @return [::Google::Cloud::Ces::V1beta::Evaluation]
329
+ # A result object deserialized from the server's reply
330
+ def update_evaluation request_pb, options = nil
331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
332
+
333
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_evaluation_request request_pb
334
+ query_string_params = if query_string_params.any?
335
+ query_string_params.to_h { |p| p.split "=", 2 }
336
+ else
337
+ {}
338
+ end
339
+
340
+ response = @client_stub.make_http_request(
341
+ verb,
342
+ uri: uri,
343
+ body: body || "",
344
+ params: query_string_params,
345
+ method_name: "update_evaluation",
346
+ options: options
347
+ )
348
+ operation = ::Gapic::Rest::TransportOperation.new response
349
+ result = ::Google::Cloud::Ces::V1beta::Evaluation.decode_json response.body, ignore_unknown_fields: true
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
354
+ end
355
+
356
+ ##
357
+ # Baseline implementation for the update_evaluation_dataset REST call
358
+ #
359
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UpdateEvaluationDatasetRequest]
360
+ # A request object representing the call parameters. Required.
361
+ # @param options [::Gapic::CallOptions]
362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
363
+ #
364
+ # @yield [result, operation] Access the result along with the TransportOperation object
365
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::EvaluationDataset]
366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
367
+ #
368
+ # @return [::Google::Cloud::Ces::V1beta::EvaluationDataset]
369
+ # A result object deserialized from the server's reply
370
+ def update_evaluation_dataset request_pb, options = nil
371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
372
+
373
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_evaluation_dataset_request request_pb
374
+ query_string_params = if query_string_params.any?
375
+ query_string_params.to_h { |p| p.split "=", 2 }
376
+ else
377
+ {}
378
+ end
379
+
380
+ response = @client_stub.make_http_request(
381
+ verb,
382
+ uri: uri,
383
+ body: body || "",
384
+ params: query_string_params,
385
+ method_name: "update_evaluation_dataset",
386
+ options: options
387
+ )
388
+ operation = ::Gapic::Rest::TransportOperation.new response
389
+ result = ::Google::Cloud::Ces::V1beta::EvaluationDataset.decode_json response.body, ignore_unknown_fields: true
390
+ catch :response do
391
+ yield result, operation if block_given?
392
+ result
393
+ end
394
+ end
395
+
396
+ ##
397
+ # Baseline implementation for the delete_evaluation REST call
398
+ #
399
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationRequest]
400
+ # A request object representing the call parameters. Required.
401
+ # @param options [::Gapic::CallOptions]
402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
403
+ #
404
+ # @yield [result, operation] Access the result along with the TransportOperation object
405
+ # @yieldparam result [::Google::Protobuf::Empty]
406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
407
+ #
408
+ # @return [::Google::Protobuf::Empty]
409
+ # A result object deserialized from the server's reply
410
+ def delete_evaluation request_pb, options = nil
411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
412
+
413
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_evaluation_request request_pb
414
+ query_string_params = if query_string_params.any?
415
+ query_string_params.to_h { |p| p.split "=", 2 }
416
+ else
417
+ {}
418
+ end
419
+
420
+ response = @client_stub.make_http_request(
421
+ verb,
422
+ uri: uri,
423
+ body: body || "",
424
+ params: query_string_params,
425
+ method_name: "delete_evaluation",
426
+ options: options
427
+ )
428
+ operation = ::Gapic::Rest::TransportOperation.new response
429
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
430
+ catch :response do
431
+ yield result, operation if block_given?
432
+ result
433
+ end
434
+ end
435
+
436
+ ##
437
+ # Baseline implementation for the delete_evaluation_result REST call
438
+ #
439
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationResultRequest]
440
+ # A request object representing the call parameters. Required.
441
+ # @param options [::Gapic::CallOptions]
442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
443
+ #
444
+ # @yield [result, operation] Access the result along with the TransportOperation object
445
+ # @yieldparam result [::Google::Protobuf::Empty]
446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
447
+ #
448
+ # @return [::Google::Protobuf::Empty]
449
+ # A result object deserialized from the server's reply
450
+ def delete_evaluation_result request_pb, options = nil
451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
452
+
453
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_evaluation_result_request request_pb
454
+ query_string_params = if query_string_params.any?
455
+ query_string_params.to_h { |p| p.split "=", 2 }
456
+ else
457
+ {}
458
+ end
459
+
460
+ response = @client_stub.make_http_request(
461
+ verb,
462
+ uri: uri,
463
+ body: body || "",
464
+ params: query_string_params,
465
+ method_name: "delete_evaluation_result",
466
+ options: options
467
+ )
468
+ operation = ::Gapic::Rest::TransportOperation.new response
469
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
470
+ catch :response do
471
+ yield result, operation if block_given?
472
+ result
473
+ end
474
+ end
475
+
476
+ ##
477
+ # Baseline implementation for the delete_evaluation_dataset REST call
478
+ #
479
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationDatasetRequest]
480
+ # A request object representing the call parameters. Required.
481
+ # @param options [::Gapic::CallOptions]
482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
483
+ #
484
+ # @yield [result, operation] Access the result along with the TransportOperation object
485
+ # @yieldparam result [::Google::Protobuf::Empty]
486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
487
+ #
488
+ # @return [::Google::Protobuf::Empty]
489
+ # A result object deserialized from the server's reply
490
+ def delete_evaluation_dataset request_pb, options = nil
491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
492
+
493
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_evaluation_dataset_request request_pb
494
+ query_string_params = if query_string_params.any?
495
+ query_string_params.to_h { |p| p.split "=", 2 }
496
+ else
497
+ {}
498
+ end
499
+
500
+ response = @client_stub.make_http_request(
501
+ verb,
502
+ uri: uri,
503
+ body: body || "",
504
+ params: query_string_params,
505
+ method_name: "delete_evaluation_dataset",
506
+ options: options
507
+ )
508
+ operation = ::Gapic::Rest::TransportOperation.new response
509
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
510
+ catch :response do
511
+ yield result, operation if block_given?
512
+ result
513
+ end
514
+ end
515
+
516
+ ##
517
+ # Baseline implementation for the delete_evaluation_run REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationRunRequest]
520
+ # A request object representing the call parameters. Required.
521
+ # @param options [::Gapic::CallOptions]
522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
+ #
524
+ # @yield [result, operation] Access the result along with the TransportOperation object
525
+ # @yieldparam result [::Google::Longrunning::Operation]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Longrunning::Operation]
529
+ # A result object deserialized from the server's reply
530
+ def delete_evaluation_run request_pb, options = nil
531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
+
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_evaluation_run_request request_pb
534
+ query_string_params = if query_string_params.any?
535
+ query_string_params.to_h { |p| p.split "=", 2 }
536
+ else
537
+ {}
538
+ end
539
+
540
+ response = @client_stub.make_http_request(
541
+ verb,
542
+ uri: uri,
543
+ body: body || "",
544
+ params: query_string_params,
545
+ method_name: "delete_evaluation_run",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
550
+ catch :response do
551
+ yield result, operation if block_given?
552
+ result
553
+ end
554
+ end
555
+
556
+ ##
557
+ # Baseline implementation for the get_evaluation REST call
558
+ #
559
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationRequest]
560
+ # A request object representing the call parameters. Required.
561
+ # @param options [::Gapic::CallOptions]
562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
563
+ #
564
+ # @yield [result, operation] Access the result along with the TransportOperation object
565
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::Evaluation]
566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
567
+ #
568
+ # @return [::Google::Cloud::Ces::V1beta::Evaluation]
569
+ # A result object deserialized from the server's reply
570
+ def get_evaluation request_pb, options = nil
571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
572
+
573
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_evaluation_request request_pb
574
+ query_string_params = if query_string_params.any?
575
+ query_string_params.to_h { |p| p.split "=", 2 }
576
+ else
577
+ {}
578
+ end
579
+
580
+ response = @client_stub.make_http_request(
581
+ verb,
582
+ uri: uri,
583
+ body: body || "",
584
+ params: query_string_params,
585
+ method_name: "get_evaluation",
586
+ options: options
587
+ )
588
+ operation = ::Gapic::Rest::TransportOperation.new response
589
+ result = ::Google::Cloud::Ces::V1beta::Evaluation.decode_json response.body, ignore_unknown_fields: true
590
+ catch :response do
591
+ yield result, operation if block_given?
592
+ result
593
+ end
594
+ end
595
+
596
+ ##
597
+ # Baseline implementation for the get_evaluation_result REST call
598
+ #
599
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationResultRequest]
600
+ # A request object representing the call parameters. Required.
601
+ # @param options [::Gapic::CallOptions]
602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
603
+ #
604
+ # @yield [result, operation] Access the result along with the TransportOperation object
605
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::EvaluationResult]
606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
607
+ #
608
+ # @return [::Google::Cloud::Ces::V1beta::EvaluationResult]
609
+ # A result object deserialized from the server's reply
610
+ def get_evaluation_result request_pb, options = nil
611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
612
+
613
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_evaluation_result_request request_pb
614
+ query_string_params = if query_string_params.any?
615
+ query_string_params.to_h { |p| p.split "=", 2 }
616
+ else
617
+ {}
618
+ end
619
+
620
+ response = @client_stub.make_http_request(
621
+ verb,
622
+ uri: uri,
623
+ body: body || "",
624
+ params: query_string_params,
625
+ method_name: "get_evaluation_result",
626
+ options: options
627
+ )
628
+ operation = ::Gapic::Rest::TransportOperation.new response
629
+ result = ::Google::Cloud::Ces::V1beta::EvaluationResult.decode_json response.body, ignore_unknown_fields: true
630
+ catch :response do
631
+ yield result, operation if block_given?
632
+ result
633
+ end
634
+ end
635
+
636
+ ##
637
+ # Baseline implementation for the get_evaluation_dataset REST call
638
+ #
639
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationDatasetRequest]
640
+ # A request object representing the call parameters. Required.
641
+ # @param options [::Gapic::CallOptions]
642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
643
+ #
644
+ # @yield [result, operation] Access the result along with the TransportOperation object
645
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::EvaluationDataset]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Cloud::Ces::V1beta::EvaluationDataset]
649
+ # A result object deserialized from the server's reply
650
+ def get_evaluation_dataset request_pb, options = nil
651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
652
+
653
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_evaluation_dataset_request request_pb
654
+ query_string_params = if query_string_params.any?
655
+ query_string_params.to_h { |p| p.split "=", 2 }
656
+ else
657
+ {}
658
+ end
659
+
660
+ response = @client_stub.make_http_request(
661
+ verb,
662
+ uri: uri,
663
+ body: body || "",
664
+ params: query_string_params,
665
+ method_name: "get_evaluation_dataset",
666
+ options: options
667
+ )
668
+ operation = ::Gapic::Rest::TransportOperation.new response
669
+ result = ::Google::Cloud::Ces::V1beta::EvaluationDataset.decode_json response.body, ignore_unknown_fields: true
670
+ catch :response do
671
+ yield result, operation if block_given?
672
+ result
673
+ end
674
+ end
675
+
676
+ ##
677
+ # Baseline implementation for the get_evaluation_run REST call
678
+ #
679
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationRunRequest]
680
+ # A request object representing the call parameters. Required.
681
+ # @param options [::Gapic::CallOptions]
682
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
683
+ #
684
+ # @yield [result, operation] Access the result along with the TransportOperation object
685
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::EvaluationRun]
686
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
687
+ #
688
+ # @return [::Google::Cloud::Ces::V1beta::EvaluationRun]
689
+ # A result object deserialized from the server's reply
690
+ def get_evaluation_run request_pb, options = nil
691
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
692
+
693
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_evaluation_run_request request_pb
694
+ query_string_params = if query_string_params.any?
695
+ query_string_params.to_h { |p| p.split "=", 2 }
696
+ else
697
+ {}
698
+ end
699
+
700
+ response = @client_stub.make_http_request(
701
+ verb,
702
+ uri: uri,
703
+ body: body || "",
704
+ params: query_string_params,
705
+ method_name: "get_evaluation_run",
706
+ options: options
707
+ )
708
+ operation = ::Gapic::Rest::TransportOperation.new response
709
+ result = ::Google::Cloud::Ces::V1beta::EvaluationRun.decode_json response.body, ignore_unknown_fields: true
710
+ catch :response do
711
+ yield result, operation if block_given?
712
+ result
713
+ end
714
+ end
715
+
716
+ ##
717
+ # Baseline implementation for the list_evaluations REST call
718
+ #
719
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationsRequest]
720
+ # A request object representing the call parameters. Required.
721
+ # @param options [::Gapic::CallOptions]
722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
+ #
724
+ # @yield [result, operation] Access the result along with the TransportOperation object
725
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::ListEvaluationsResponse]
726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
+ #
728
+ # @return [::Google::Cloud::Ces::V1beta::ListEvaluationsResponse]
729
+ # A result object deserialized from the server's reply
730
+ def list_evaluations request_pb, options = nil
731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
732
+
733
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_evaluations_request request_pb
734
+ query_string_params = if query_string_params.any?
735
+ query_string_params.to_h { |p| p.split "=", 2 }
736
+ else
737
+ {}
738
+ end
739
+
740
+ response = @client_stub.make_http_request(
741
+ verb,
742
+ uri: uri,
743
+ body: body || "",
744
+ params: query_string_params,
745
+ method_name: "list_evaluations",
746
+ options: options
747
+ )
748
+ operation = ::Gapic::Rest::TransportOperation.new response
749
+ result = ::Google::Cloud::Ces::V1beta::ListEvaluationsResponse.decode_json response.body, ignore_unknown_fields: true
750
+ catch :response do
751
+ yield result, operation if block_given?
752
+ result
753
+ end
754
+ end
755
+
756
+ ##
757
+ # Baseline implementation for the list_evaluation_results REST call
758
+ #
759
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationResultsRequest]
760
+ # A request object representing the call parameters. Required.
761
+ # @param options [::Gapic::CallOptions]
762
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
763
+ #
764
+ # @yield [result, operation] Access the result along with the TransportOperation object
765
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::ListEvaluationResultsResponse]
766
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
767
+ #
768
+ # @return [::Google::Cloud::Ces::V1beta::ListEvaluationResultsResponse]
769
+ # A result object deserialized from the server's reply
770
+ def list_evaluation_results request_pb, options = nil
771
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
772
+
773
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_evaluation_results_request request_pb
774
+ query_string_params = if query_string_params.any?
775
+ query_string_params.to_h { |p| p.split "=", 2 }
776
+ else
777
+ {}
778
+ end
779
+
780
+ response = @client_stub.make_http_request(
781
+ verb,
782
+ uri: uri,
783
+ body: body || "",
784
+ params: query_string_params,
785
+ method_name: "list_evaluation_results",
786
+ options: options
787
+ )
788
+ operation = ::Gapic::Rest::TransportOperation.new response
789
+ result = ::Google::Cloud::Ces::V1beta::ListEvaluationResultsResponse.decode_json response.body, ignore_unknown_fields: true
790
+ catch :response do
791
+ yield result, operation if block_given?
792
+ result
793
+ end
794
+ end
795
+
796
+ ##
797
+ # Baseline implementation for the list_evaluation_datasets REST call
798
+ #
799
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationDatasetsRequest]
800
+ # A request object representing the call parameters. Required.
801
+ # @param options [::Gapic::CallOptions]
802
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
803
+ #
804
+ # @yield [result, operation] Access the result along with the TransportOperation object
805
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::ListEvaluationDatasetsResponse]
806
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
807
+ #
808
+ # @return [::Google::Cloud::Ces::V1beta::ListEvaluationDatasetsResponse]
809
+ # A result object deserialized from the server's reply
810
+ def list_evaluation_datasets request_pb, options = nil
811
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
812
+
813
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_evaluation_datasets_request request_pb
814
+ query_string_params = if query_string_params.any?
815
+ query_string_params.to_h { |p| p.split "=", 2 }
816
+ else
817
+ {}
818
+ end
819
+
820
+ response = @client_stub.make_http_request(
821
+ verb,
822
+ uri: uri,
823
+ body: body || "",
824
+ params: query_string_params,
825
+ method_name: "list_evaluation_datasets",
826
+ options: options
827
+ )
828
+ operation = ::Gapic::Rest::TransportOperation.new response
829
+ result = ::Google::Cloud::Ces::V1beta::ListEvaluationDatasetsResponse.decode_json response.body, ignore_unknown_fields: true
830
+ catch :response do
831
+ yield result, operation if block_given?
832
+ result
833
+ end
834
+ end
835
+
836
+ ##
837
+ # Baseline implementation for the list_evaluation_runs REST call
838
+ #
839
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationRunsRequest]
840
+ # A request object representing the call parameters. Required.
841
+ # @param options [::Gapic::CallOptions]
842
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
843
+ #
844
+ # @yield [result, operation] Access the result along with the TransportOperation object
845
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::ListEvaluationRunsResponse]
846
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
847
+ #
848
+ # @return [::Google::Cloud::Ces::V1beta::ListEvaluationRunsResponse]
849
+ # A result object deserialized from the server's reply
850
+ def list_evaluation_runs request_pb, options = nil
851
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
852
+
853
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_evaluation_runs_request request_pb
854
+ query_string_params = if query_string_params.any?
855
+ query_string_params.to_h { |p| p.split "=", 2 }
856
+ else
857
+ {}
858
+ end
859
+
860
+ response = @client_stub.make_http_request(
861
+ verb,
862
+ uri: uri,
863
+ body: body || "",
864
+ params: query_string_params,
865
+ method_name: "list_evaluation_runs",
866
+ options: options
867
+ )
868
+ operation = ::Gapic::Rest::TransportOperation.new response
869
+ result = ::Google::Cloud::Ces::V1beta::ListEvaluationRunsResponse.decode_json response.body, ignore_unknown_fields: true
870
+ catch :response do
871
+ yield result, operation if block_given?
872
+ result
873
+ end
874
+ end
875
+
876
+ ##
877
+ # Baseline implementation for the list_evaluation_expectations REST call
878
+ #
879
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationExpectationsRequest]
880
+ # A request object representing the call parameters. Required.
881
+ # @param options [::Gapic::CallOptions]
882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
+ #
884
+ # @yield [result, operation] Access the result along with the TransportOperation object
885
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::ListEvaluationExpectationsResponse]
886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
+ #
888
+ # @return [::Google::Cloud::Ces::V1beta::ListEvaluationExpectationsResponse]
889
+ # A result object deserialized from the server's reply
890
+ def list_evaluation_expectations request_pb, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
+
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_evaluation_expectations_request request_pb
894
+ query_string_params = if query_string_params.any?
895
+ query_string_params.to_h { |p| p.split "=", 2 }
896
+ else
897
+ {}
898
+ end
899
+
900
+ response = @client_stub.make_http_request(
901
+ verb,
902
+ uri: uri,
903
+ body: body || "",
904
+ params: query_string_params,
905
+ method_name: "list_evaluation_expectations",
906
+ options: options
907
+ )
908
+ operation = ::Gapic::Rest::TransportOperation.new response
909
+ result = ::Google::Cloud::Ces::V1beta::ListEvaluationExpectationsResponse.decode_json response.body, ignore_unknown_fields: true
910
+ catch :response do
911
+ yield result, operation if block_given?
912
+ result
913
+ end
914
+ end
915
+
916
+ ##
917
+ # Baseline implementation for the get_evaluation_expectation REST call
918
+ #
919
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationExpectationRequest]
920
+ # A request object representing the call parameters. Required.
921
+ # @param options [::Gapic::CallOptions]
922
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
923
+ #
924
+ # @yield [result, operation] Access the result along with the TransportOperation object
925
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::EvaluationExpectation]
926
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
927
+ #
928
+ # @return [::Google::Cloud::Ces::V1beta::EvaluationExpectation]
929
+ # A result object deserialized from the server's reply
930
+ def get_evaluation_expectation request_pb, options = nil
931
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
932
+
933
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_evaluation_expectation_request request_pb
934
+ query_string_params = if query_string_params.any?
935
+ query_string_params.to_h { |p| p.split "=", 2 }
936
+ else
937
+ {}
938
+ end
939
+
940
+ response = @client_stub.make_http_request(
941
+ verb,
942
+ uri: uri,
943
+ body: body || "",
944
+ params: query_string_params,
945
+ method_name: "get_evaluation_expectation",
946
+ options: options
947
+ )
948
+ operation = ::Gapic::Rest::TransportOperation.new response
949
+ result = ::Google::Cloud::Ces::V1beta::EvaluationExpectation.decode_json response.body, ignore_unknown_fields: true
950
+ catch :response do
951
+ yield result, operation if block_given?
952
+ result
953
+ end
954
+ end
955
+
956
+ ##
957
+ # Baseline implementation for the create_evaluation_expectation REST call
958
+ #
959
+ # @param request_pb [::Google::Cloud::Ces::V1beta::CreateEvaluationExpectationRequest]
960
+ # A request object representing the call parameters. Required.
961
+ # @param options [::Gapic::CallOptions]
962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
963
+ #
964
+ # @yield [result, operation] Access the result along with the TransportOperation object
965
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::EvaluationExpectation]
966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
967
+ #
968
+ # @return [::Google::Cloud::Ces::V1beta::EvaluationExpectation]
969
+ # A result object deserialized from the server's reply
970
+ def create_evaluation_expectation request_pb, options = nil
971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
972
+
973
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_evaluation_expectation_request request_pb
974
+ query_string_params = if query_string_params.any?
975
+ query_string_params.to_h { |p| p.split "=", 2 }
976
+ else
977
+ {}
978
+ end
979
+
980
+ response = @client_stub.make_http_request(
981
+ verb,
982
+ uri: uri,
983
+ body: body || "",
984
+ params: query_string_params,
985
+ method_name: "create_evaluation_expectation",
986
+ options: options
987
+ )
988
+ operation = ::Gapic::Rest::TransportOperation.new response
989
+ result = ::Google::Cloud::Ces::V1beta::EvaluationExpectation.decode_json response.body, ignore_unknown_fields: true
990
+ catch :response do
991
+ yield result, operation if block_given?
992
+ result
993
+ end
994
+ end
995
+
996
+ ##
997
+ # Baseline implementation for the update_evaluation_expectation REST call
998
+ #
999
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UpdateEvaluationExpectationRequest]
1000
+ # A request object representing the call parameters. Required.
1001
+ # @param options [::Gapic::CallOptions]
1002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1003
+ #
1004
+ # @yield [result, operation] Access the result along with the TransportOperation object
1005
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::EvaluationExpectation]
1006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1007
+ #
1008
+ # @return [::Google::Cloud::Ces::V1beta::EvaluationExpectation]
1009
+ # A result object deserialized from the server's reply
1010
+ def update_evaluation_expectation request_pb, options = nil
1011
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1012
+
1013
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_evaluation_expectation_request request_pb
1014
+ query_string_params = if query_string_params.any?
1015
+ query_string_params.to_h { |p| p.split "=", 2 }
1016
+ else
1017
+ {}
1018
+ end
1019
+
1020
+ response = @client_stub.make_http_request(
1021
+ verb,
1022
+ uri: uri,
1023
+ body: body || "",
1024
+ params: query_string_params,
1025
+ method_name: "update_evaluation_expectation",
1026
+ options: options
1027
+ )
1028
+ operation = ::Gapic::Rest::TransportOperation.new response
1029
+ result = ::Google::Cloud::Ces::V1beta::EvaluationExpectation.decode_json response.body, ignore_unknown_fields: true
1030
+ catch :response do
1031
+ yield result, operation if block_given?
1032
+ result
1033
+ end
1034
+ end
1035
+
1036
+ ##
1037
+ # Baseline implementation for the delete_evaluation_expectation REST call
1038
+ #
1039
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationExpectationRequest]
1040
+ # A request object representing the call parameters. Required.
1041
+ # @param options [::Gapic::CallOptions]
1042
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1043
+ #
1044
+ # @yield [result, operation] Access the result along with the TransportOperation object
1045
+ # @yieldparam result [::Google::Protobuf::Empty]
1046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1047
+ #
1048
+ # @return [::Google::Protobuf::Empty]
1049
+ # A result object deserialized from the server's reply
1050
+ def delete_evaluation_expectation request_pb, options = nil
1051
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1052
+
1053
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_evaluation_expectation_request request_pb
1054
+ query_string_params = if query_string_params.any?
1055
+ query_string_params.to_h { |p| p.split "=", 2 }
1056
+ else
1057
+ {}
1058
+ end
1059
+
1060
+ response = @client_stub.make_http_request(
1061
+ verb,
1062
+ uri: uri,
1063
+ body: body || "",
1064
+ params: query_string_params,
1065
+ method_name: "delete_evaluation_expectation",
1066
+ options: options
1067
+ )
1068
+ operation = ::Gapic::Rest::TransportOperation.new response
1069
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1070
+ catch :response do
1071
+ yield result, operation if block_given?
1072
+ result
1073
+ end
1074
+ end
1075
+
1076
+ ##
1077
+ # Baseline implementation for the create_scheduled_evaluation_run REST call
1078
+ #
1079
+ # @param request_pb [::Google::Cloud::Ces::V1beta::CreateScheduledEvaluationRunRequest]
1080
+ # A request object representing the call parameters. Required.
1081
+ # @param options [::Gapic::CallOptions]
1082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1083
+ #
1084
+ # @yield [result, operation] Access the result along with the TransportOperation object
1085
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::ScheduledEvaluationRun]
1086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1087
+ #
1088
+ # @return [::Google::Cloud::Ces::V1beta::ScheduledEvaluationRun]
1089
+ # A result object deserialized from the server's reply
1090
+ def create_scheduled_evaluation_run request_pb, options = nil
1091
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1092
+
1093
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_scheduled_evaluation_run_request request_pb
1094
+ query_string_params = if query_string_params.any?
1095
+ query_string_params.to_h { |p| p.split "=", 2 }
1096
+ else
1097
+ {}
1098
+ end
1099
+
1100
+ response = @client_stub.make_http_request(
1101
+ verb,
1102
+ uri: uri,
1103
+ body: body || "",
1104
+ params: query_string_params,
1105
+ method_name: "create_scheduled_evaluation_run",
1106
+ options: options
1107
+ )
1108
+ operation = ::Gapic::Rest::TransportOperation.new response
1109
+ result = ::Google::Cloud::Ces::V1beta::ScheduledEvaluationRun.decode_json response.body, ignore_unknown_fields: true
1110
+ catch :response do
1111
+ yield result, operation if block_given?
1112
+ result
1113
+ end
1114
+ end
1115
+
1116
+ ##
1117
+ # Baseline implementation for the get_scheduled_evaluation_run REST call
1118
+ #
1119
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetScheduledEvaluationRunRequest]
1120
+ # A request object representing the call parameters. Required.
1121
+ # @param options [::Gapic::CallOptions]
1122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1123
+ #
1124
+ # @yield [result, operation] Access the result along with the TransportOperation object
1125
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::ScheduledEvaluationRun]
1126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1127
+ #
1128
+ # @return [::Google::Cloud::Ces::V1beta::ScheduledEvaluationRun]
1129
+ # A result object deserialized from the server's reply
1130
+ def get_scheduled_evaluation_run request_pb, options = nil
1131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1132
+
1133
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_scheduled_evaluation_run_request request_pb
1134
+ query_string_params = if query_string_params.any?
1135
+ query_string_params.to_h { |p| p.split "=", 2 }
1136
+ else
1137
+ {}
1138
+ end
1139
+
1140
+ response = @client_stub.make_http_request(
1141
+ verb,
1142
+ uri: uri,
1143
+ body: body || "",
1144
+ params: query_string_params,
1145
+ method_name: "get_scheduled_evaluation_run",
1146
+ options: options
1147
+ )
1148
+ operation = ::Gapic::Rest::TransportOperation.new response
1149
+ result = ::Google::Cloud::Ces::V1beta::ScheduledEvaluationRun.decode_json response.body, ignore_unknown_fields: true
1150
+ catch :response do
1151
+ yield result, operation if block_given?
1152
+ result
1153
+ end
1154
+ end
1155
+
1156
+ ##
1157
+ # Baseline implementation for the list_scheduled_evaluation_runs REST call
1158
+ #
1159
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListScheduledEvaluationRunsRequest]
1160
+ # A request object representing the call parameters. Required.
1161
+ # @param options [::Gapic::CallOptions]
1162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1163
+ #
1164
+ # @yield [result, operation] Access the result along with the TransportOperation object
1165
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::ListScheduledEvaluationRunsResponse]
1166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1167
+ #
1168
+ # @return [::Google::Cloud::Ces::V1beta::ListScheduledEvaluationRunsResponse]
1169
+ # A result object deserialized from the server's reply
1170
+ def list_scheduled_evaluation_runs request_pb, options = nil
1171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1172
+
1173
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_scheduled_evaluation_runs_request request_pb
1174
+ query_string_params = if query_string_params.any?
1175
+ query_string_params.to_h { |p| p.split "=", 2 }
1176
+ else
1177
+ {}
1178
+ end
1179
+
1180
+ response = @client_stub.make_http_request(
1181
+ verb,
1182
+ uri: uri,
1183
+ body: body || "",
1184
+ params: query_string_params,
1185
+ method_name: "list_scheduled_evaluation_runs",
1186
+ options: options
1187
+ )
1188
+ operation = ::Gapic::Rest::TransportOperation.new response
1189
+ result = ::Google::Cloud::Ces::V1beta::ListScheduledEvaluationRunsResponse.decode_json response.body, ignore_unknown_fields: true
1190
+ catch :response do
1191
+ yield result, operation if block_given?
1192
+ result
1193
+ end
1194
+ end
1195
+
1196
+ ##
1197
+ # Baseline implementation for the update_scheduled_evaluation_run REST call
1198
+ #
1199
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UpdateScheduledEvaluationRunRequest]
1200
+ # A request object representing the call parameters. Required.
1201
+ # @param options [::Gapic::CallOptions]
1202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1203
+ #
1204
+ # @yield [result, operation] Access the result along with the TransportOperation object
1205
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::ScheduledEvaluationRun]
1206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1207
+ #
1208
+ # @return [::Google::Cloud::Ces::V1beta::ScheduledEvaluationRun]
1209
+ # A result object deserialized from the server's reply
1210
+ def update_scheduled_evaluation_run request_pb, options = nil
1211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1212
+
1213
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_scheduled_evaluation_run_request request_pb
1214
+ query_string_params = if query_string_params.any?
1215
+ query_string_params.to_h { |p| p.split "=", 2 }
1216
+ else
1217
+ {}
1218
+ end
1219
+
1220
+ response = @client_stub.make_http_request(
1221
+ verb,
1222
+ uri: uri,
1223
+ body: body || "",
1224
+ params: query_string_params,
1225
+ method_name: "update_scheduled_evaluation_run",
1226
+ options: options
1227
+ )
1228
+ operation = ::Gapic::Rest::TransportOperation.new response
1229
+ result = ::Google::Cloud::Ces::V1beta::ScheduledEvaluationRun.decode_json response.body, ignore_unknown_fields: true
1230
+ catch :response do
1231
+ yield result, operation if block_given?
1232
+ result
1233
+ end
1234
+ end
1235
+
1236
+ ##
1237
+ # Baseline implementation for the delete_scheduled_evaluation_run REST call
1238
+ #
1239
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteScheduledEvaluationRunRequest]
1240
+ # A request object representing the call parameters. Required.
1241
+ # @param options [::Gapic::CallOptions]
1242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1243
+ #
1244
+ # @yield [result, operation] Access the result along with the TransportOperation object
1245
+ # @yieldparam result [::Google::Protobuf::Empty]
1246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1247
+ #
1248
+ # @return [::Google::Protobuf::Empty]
1249
+ # A result object deserialized from the server's reply
1250
+ def delete_scheduled_evaluation_run request_pb, options = nil
1251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1252
+
1253
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_scheduled_evaluation_run_request request_pb
1254
+ query_string_params = if query_string_params.any?
1255
+ query_string_params.to_h { |p| p.split "=", 2 }
1256
+ else
1257
+ {}
1258
+ end
1259
+
1260
+ response = @client_stub.make_http_request(
1261
+ verb,
1262
+ uri: uri,
1263
+ body: body || "",
1264
+ params: query_string_params,
1265
+ method_name: "delete_scheduled_evaluation_run",
1266
+ options: options
1267
+ )
1268
+ operation = ::Gapic::Rest::TransportOperation.new response
1269
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1270
+ catch :response do
1271
+ yield result, operation if block_given?
1272
+ result
1273
+ end
1274
+ end
1275
+
1276
+ ##
1277
+ # Baseline implementation for the test_persona_voice REST call
1278
+ #
1279
+ # @param request_pb [::Google::Cloud::Ces::V1beta::TestPersonaVoiceRequest]
1280
+ # A request object representing the call parameters. Required.
1281
+ # @param options [::Gapic::CallOptions]
1282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1283
+ #
1284
+ # @yield [result, operation] Access the result along with the TransportOperation object
1285
+ # @yieldparam result [::Google::Cloud::Ces::V1beta::TestPersonaVoiceResponse]
1286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1287
+ #
1288
+ # @return [::Google::Cloud::Ces::V1beta::TestPersonaVoiceResponse]
1289
+ # A result object deserialized from the server's reply
1290
+ def test_persona_voice request_pb, options = nil
1291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1292
+
1293
+ verb, uri, query_string_params, body = ServiceStub.transcode_test_persona_voice_request request_pb
1294
+ query_string_params = if query_string_params.any?
1295
+ query_string_params.to_h { |p| p.split "=", 2 }
1296
+ else
1297
+ {}
1298
+ end
1299
+
1300
+ response = @client_stub.make_http_request(
1301
+ verb,
1302
+ uri: uri,
1303
+ body: body || "",
1304
+ params: query_string_params,
1305
+ method_name: "test_persona_voice",
1306
+ options: options
1307
+ )
1308
+ operation = ::Gapic::Rest::TransportOperation.new response
1309
+ result = ::Google::Cloud::Ces::V1beta::TestPersonaVoiceResponse.decode_json response.body, ignore_unknown_fields: true
1310
+ catch :response do
1311
+ yield result, operation if block_given?
1312
+ result
1313
+ end
1314
+ end
1315
+
1316
+ ##
1317
+ # Baseline implementation for the export_evaluations REST call
1318
+ #
1319
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationsRequest]
1320
+ # A request object representing the call parameters. Required.
1321
+ # @param options [::Gapic::CallOptions]
1322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1323
+ #
1324
+ # @yield [result, operation] Access the result along with the TransportOperation object
1325
+ # @yieldparam result [::Google::Longrunning::Operation]
1326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1327
+ #
1328
+ # @return [::Google::Longrunning::Operation]
1329
+ # A result object deserialized from the server's reply
1330
+ def export_evaluations request_pb, options = nil
1331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1332
+
1333
+ verb, uri, query_string_params, body = ServiceStub.transcode_export_evaluations_request request_pb
1334
+ query_string_params = if query_string_params.any?
1335
+ query_string_params.to_h { |p| p.split "=", 2 }
1336
+ else
1337
+ {}
1338
+ end
1339
+
1340
+ response = @client_stub.make_http_request(
1341
+ verb,
1342
+ uri: uri,
1343
+ body: body || "",
1344
+ params: query_string_params,
1345
+ method_name: "export_evaluations",
1346
+ options: options
1347
+ )
1348
+ operation = ::Gapic::Rest::TransportOperation.new response
1349
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1350
+ catch :response do
1351
+ yield result, operation if block_given?
1352
+ result
1353
+ end
1354
+ end
1355
+
1356
+ ##
1357
+ # Baseline implementation for the export_evaluation_runs REST call
1358
+ #
1359
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest]
1360
+ # A request object representing the call parameters. Required.
1361
+ # @param options [::Gapic::CallOptions]
1362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1363
+ #
1364
+ # @yield [result, operation] Access the result along with the TransportOperation object
1365
+ # @yieldparam result [::Google::Longrunning::Operation]
1366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1367
+ #
1368
+ # @return [::Google::Longrunning::Operation]
1369
+ # A result object deserialized from the server's reply
1370
+ def export_evaluation_runs request_pb, options = nil
1371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1372
+
1373
+ verb, uri, query_string_params, body = ServiceStub.transcode_export_evaluation_runs_request request_pb
1374
+ query_string_params = if query_string_params.any?
1375
+ query_string_params.to_h { |p| p.split "=", 2 }
1376
+ else
1377
+ {}
1378
+ end
1379
+
1380
+ response = @client_stub.make_http_request(
1381
+ verb,
1382
+ uri: uri,
1383
+ body: body || "",
1384
+ params: query_string_params,
1385
+ method_name: "export_evaluation_runs",
1386
+ options: options
1387
+ )
1388
+ operation = ::Gapic::Rest::TransportOperation.new response
1389
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1390
+ catch :response do
1391
+ yield result, operation if block_given?
1392
+ result
1393
+ end
1394
+ end
1395
+
1396
+ ##
1397
+ # Baseline implementation for the export_evaluation_results REST call
1398
+ #
1399
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest]
1400
+ # A request object representing the call parameters. Required.
1401
+ # @param options [::Gapic::CallOptions]
1402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1403
+ #
1404
+ # @yield [result, operation] Access the result along with the TransportOperation object
1405
+ # @yieldparam result [::Google::Longrunning::Operation]
1406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1407
+ #
1408
+ # @return [::Google::Longrunning::Operation]
1409
+ # A result object deserialized from the server's reply
1410
+ def export_evaluation_results request_pb, options = nil
1411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1412
+
1413
+ verb, uri, query_string_params, body = ServiceStub.transcode_export_evaluation_results_request request_pb
1414
+ query_string_params = if query_string_params.any?
1415
+ query_string_params.to_h { |p| p.split "=", 2 }
1416
+ else
1417
+ {}
1418
+ end
1419
+
1420
+ response = @client_stub.make_http_request(
1421
+ verb,
1422
+ uri: uri,
1423
+ body: body || "",
1424
+ params: query_string_params,
1425
+ method_name: "export_evaluation_results",
1426
+ options: options
1427
+ )
1428
+ operation = ::Gapic::Rest::TransportOperation.new response
1429
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1430
+ catch :response do
1431
+ yield result, operation if block_given?
1432
+ result
1433
+ end
1434
+ end
1435
+
1436
+ ##
1437
+ # Baseline implementation for the run_evaluation_result_metrics REST call
1438
+ #
1439
+ # @param request_pb [::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest]
1440
+ # A request object representing the call parameters. Required.
1441
+ # @param options [::Gapic::CallOptions]
1442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1443
+ #
1444
+ # @yield [result, operation] Access the result along with the TransportOperation object
1445
+ # @yieldparam result [::Google::Longrunning::Operation]
1446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1447
+ #
1448
+ # @return [::Google::Longrunning::Operation]
1449
+ # A result object deserialized from the server's reply
1450
+ def run_evaluation_result_metrics request_pb, options = nil
1451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1452
+
1453
+ verb, uri, query_string_params, body = ServiceStub.transcode_run_evaluation_result_metrics_request request_pb
1454
+ query_string_params = if query_string_params.any?
1455
+ query_string_params.to_h { |p| p.split "=", 2 }
1456
+ else
1457
+ {}
1458
+ end
1459
+
1460
+ response = @client_stub.make_http_request(
1461
+ verb,
1462
+ uri: uri,
1463
+ body: body || "",
1464
+ params: query_string_params,
1465
+ method_name: "run_evaluation_result_metrics",
1466
+ options: options
1467
+ )
1468
+ operation = ::Gapic::Rest::TransportOperation.new response
1469
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1470
+ catch :response do
1471
+ yield result, operation if block_given?
1472
+ result
1473
+ end
1474
+ end
1475
+
1476
+ ##
1477
+ # @private
1478
+ #
1479
+ # GRPC transcoding helper method for the run_evaluation REST call
1480
+ #
1481
+ # @param request_pb [::Google::Cloud::Ces::V1beta::RunEvaluationRequest]
1482
+ # A request object representing the call parameters. Required.
1483
+ # @return [Array(String, [String, nil], Hash{String => String})]
1484
+ # Uri, Body, Query string parameters
1485
+ def self.transcode_run_evaluation_request request_pb
1486
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1487
+ .with_bindings(
1488
+ uri_method: :post,
1489
+ uri_template: "/v1beta/{app}:runEvaluation",
1490
+ body: "*",
1491
+ matches: [
1492
+ ["app", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
1493
+ ]
1494
+ )
1495
+ transcoder.transcode request_pb
1496
+ end
1497
+
1498
+ ##
1499
+ # @private
1500
+ #
1501
+ # GRPC transcoding helper method for the upload_evaluation_audio REST call
1502
+ #
1503
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UploadEvaluationAudioRequest]
1504
+ # A request object representing the call parameters. Required.
1505
+ # @return [Array(String, [String, nil], Hash{String => String})]
1506
+ # Uri, Body, Query string parameters
1507
+ def self.transcode_upload_evaluation_audio_request request_pb
1508
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1509
+ .with_bindings(
1510
+ uri_method: :post,
1511
+ uri_template: "/v1beta/{name}:uploadEvaluationAudio",
1512
+ body: "*",
1513
+ matches: [
1514
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/?$}, false]
1515
+ ]
1516
+ )
1517
+ transcoder.transcode request_pb
1518
+ end
1519
+
1520
+ ##
1521
+ # @private
1522
+ #
1523
+ # GRPC transcoding helper method for the create_evaluation REST call
1524
+ #
1525
+ # @param request_pb [::Google::Cloud::Ces::V1beta::CreateEvaluationRequest]
1526
+ # A request object representing the call parameters. Required.
1527
+ # @return [Array(String, [String, nil], Hash{String => String})]
1528
+ # Uri, Body, Query string parameters
1529
+ def self.transcode_create_evaluation_request request_pb
1530
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1531
+ .with_bindings(
1532
+ uri_method: :post,
1533
+ uri_template: "/v1beta/{parent}/evaluations",
1534
+ body: "evaluation",
1535
+ matches: [
1536
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
1537
+ ]
1538
+ )
1539
+ transcoder.transcode request_pb
1540
+ end
1541
+
1542
+ ##
1543
+ # @private
1544
+ #
1545
+ # GRPC transcoding helper method for the generate_evaluation REST call
1546
+ #
1547
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GenerateEvaluationRequest]
1548
+ # A request object representing the call parameters. Required.
1549
+ # @return [Array(String, [String, nil], Hash{String => String})]
1550
+ # Uri, Body, Query string parameters
1551
+ def self.transcode_generate_evaluation_request request_pb
1552
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1553
+ .with_bindings(
1554
+ uri_method: :post,
1555
+ uri_template: "/v1beta/{conversation}:generateEvaluation",
1556
+ body: "*",
1557
+ matches: [
1558
+ ["conversation", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+/?$}, false]
1559
+ ]
1560
+ )
1561
+ transcoder.transcode request_pb
1562
+ end
1563
+
1564
+ ##
1565
+ # @private
1566
+ #
1567
+ # GRPC transcoding helper method for the import_evaluations REST call
1568
+ #
1569
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ImportEvaluationsRequest]
1570
+ # A request object representing the call parameters. Required.
1571
+ # @return [Array(String, [String, nil], Hash{String => String})]
1572
+ # Uri, Body, Query string parameters
1573
+ def self.transcode_import_evaluations_request request_pb
1574
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1575
+ .with_bindings(
1576
+ uri_method: :post,
1577
+ uri_template: "/v1beta/{parent}:importEvaluations",
1578
+ body: "*",
1579
+ matches: [
1580
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
1581
+ ]
1582
+ )
1583
+ transcoder.transcode request_pb
1584
+ end
1585
+
1586
+ ##
1587
+ # @private
1588
+ #
1589
+ # GRPC transcoding helper method for the create_evaluation_dataset REST call
1590
+ #
1591
+ # @param request_pb [::Google::Cloud::Ces::V1beta::CreateEvaluationDatasetRequest]
1592
+ # A request object representing the call parameters. Required.
1593
+ # @return [Array(String, [String, nil], Hash{String => String})]
1594
+ # Uri, Body, Query string parameters
1595
+ def self.transcode_create_evaluation_dataset_request request_pb
1596
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1597
+ .with_bindings(
1598
+ uri_method: :post,
1599
+ uri_template: "/v1beta/{parent}/evaluationDatasets",
1600
+ body: "evaluation_dataset",
1601
+ matches: [
1602
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
1603
+ ]
1604
+ )
1605
+ transcoder.transcode request_pb
1606
+ end
1607
+
1608
+ ##
1609
+ # @private
1610
+ #
1611
+ # GRPC transcoding helper method for the update_evaluation REST call
1612
+ #
1613
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UpdateEvaluationRequest]
1614
+ # A request object representing the call parameters. Required.
1615
+ # @return [Array(String, [String, nil], Hash{String => String})]
1616
+ # Uri, Body, Query string parameters
1617
+ def self.transcode_update_evaluation_request request_pb
1618
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1619
+ .with_bindings(
1620
+ uri_method: :patch,
1621
+ uri_template: "/v1beta/{evaluation.name}",
1622
+ body: "evaluation",
1623
+ matches: [
1624
+ ["evaluation.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/?$}, false]
1625
+ ]
1626
+ )
1627
+ transcoder.transcode request_pb
1628
+ end
1629
+
1630
+ ##
1631
+ # @private
1632
+ #
1633
+ # GRPC transcoding helper method for the update_evaluation_dataset REST call
1634
+ #
1635
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UpdateEvaluationDatasetRequest]
1636
+ # A request object representing the call parameters. Required.
1637
+ # @return [Array(String, [String, nil], Hash{String => String})]
1638
+ # Uri, Body, Query string parameters
1639
+ def self.transcode_update_evaluation_dataset_request request_pb
1640
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1641
+ .with_bindings(
1642
+ uri_method: :patch,
1643
+ uri_template: "/v1beta/{evaluation_dataset.name}",
1644
+ body: "evaluation_dataset",
1645
+ matches: [
1646
+ ["evaluation_dataset.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+/?$}, false]
1647
+ ]
1648
+ )
1649
+ transcoder.transcode request_pb
1650
+ end
1651
+
1652
+ ##
1653
+ # @private
1654
+ #
1655
+ # GRPC transcoding helper method for the delete_evaluation REST call
1656
+ #
1657
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationRequest]
1658
+ # A request object representing the call parameters. Required.
1659
+ # @return [Array(String, [String, nil], Hash{String => String})]
1660
+ # Uri, Body, Query string parameters
1661
+ def self.transcode_delete_evaluation_request request_pb
1662
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1663
+ .with_bindings(
1664
+ uri_method: :delete,
1665
+ uri_template: "/v1beta/{name}",
1666
+ matches: [
1667
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/?$}, false]
1668
+ ]
1669
+ )
1670
+ transcoder.transcode request_pb
1671
+ end
1672
+
1673
+ ##
1674
+ # @private
1675
+ #
1676
+ # GRPC transcoding helper method for the delete_evaluation_result REST call
1677
+ #
1678
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationResultRequest]
1679
+ # A request object representing the call parameters. Required.
1680
+ # @return [Array(String, [String, nil], Hash{String => String})]
1681
+ # Uri, Body, Query string parameters
1682
+ def self.transcode_delete_evaluation_result_request request_pb
1683
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1684
+ .with_bindings(
1685
+ uri_method: :delete,
1686
+ uri_template: "/v1beta/{name}",
1687
+ matches: [
1688
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+/?$}, false]
1689
+ ]
1690
+ )
1691
+ transcoder.transcode request_pb
1692
+ end
1693
+
1694
+ ##
1695
+ # @private
1696
+ #
1697
+ # GRPC transcoding helper method for the delete_evaluation_dataset REST call
1698
+ #
1699
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationDatasetRequest]
1700
+ # A request object representing the call parameters. Required.
1701
+ # @return [Array(String, [String, nil], Hash{String => String})]
1702
+ # Uri, Body, Query string parameters
1703
+ def self.transcode_delete_evaluation_dataset_request request_pb
1704
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1705
+ .with_bindings(
1706
+ uri_method: :delete,
1707
+ uri_template: "/v1beta/{name}",
1708
+ matches: [
1709
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+/?$}, false]
1710
+ ]
1711
+ )
1712
+ transcoder.transcode request_pb
1713
+ end
1714
+
1715
+ ##
1716
+ # @private
1717
+ #
1718
+ # GRPC transcoding helper method for the delete_evaluation_run REST call
1719
+ #
1720
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationRunRequest]
1721
+ # A request object representing the call parameters. Required.
1722
+ # @return [Array(String, [String, nil], Hash{String => String})]
1723
+ # Uri, Body, Query string parameters
1724
+ def self.transcode_delete_evaluation_run_request request_pb
1725
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1726
+ .with_bindings(
1727
+ uri_method: :delete,
1728
+ uri_template: "/v1beta/{name}",
1729
+ matches: [
1730
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationRuns/[^/]+/?$}, false]
1731
+ ]
1732
+ )
1733
+ transcoder.transcode request_pb
1734
+ end
1735
+
1736
+ ##
1737
+ # @private
1738
+ #
1739
+ # GRPC transcoding helper method for the get_evaluation REST call
1740
+ #
1741
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationRequest]
1742
+ # A request object representing the call parameters. Required.
1743
+ # @return [Array(String, [String, nil], Hash{String => String})]
1744
+ # Uri, Body, Query string parameters
1745
+ def self.transcode_get_evaluation_request request_pb
1746
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1747
+ .with_bindings(
1748
+ uri_method: :get,
1749
+ uri_template: "/v1beta/{name}",
1750
+ matches: [
1751
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/?$}, false]
1752
+ ]
1753
+ )
1754
+ transcoder.transcode request_pb
1755
+ end
1756
+
1757
+ ##
1758
+ # @private
1759
+ #
1760
+ # GRPC transcoding helper method for the get_evaluation_result REST call
1761
+ #
1762
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationResultRequest]
1763
+ # A request object representing the call parameters. Required.
1764
+ # @return [Array(String, [String, nil], Hash{String => String})]
1765
+ # Uri, Body, Query string parameters
1766
+ def self.transcode_get_evaluation_result_request request_pb
1767
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1768
+ .with_bindings(
1769
+ uri_method: :get,
1770
+ uri_template: "/v1beta/{name}",
1771
+ matches: [
1772
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+/?$}, false]
1773
+ ]
1774
+ )
1775
+ transcoder.transcode request_pb
1776
+ end
1777
+
1778
+ ##
1779
+ # @private
1780
+ #
1781
+ # GRPC transcoding helper method for the get_evaluation_dataset REST call
1782
+ #
1783
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationDatasetRequest]
1784
+ # A request object representing the call parameters. Required.
1785
+ # @return [Array(String, [String, nil], Hash{String => String})]
1786
+ # Uri, Body, Query string parameters
1787
+ def self.transcode_get_evaluation_dataset_request request_pb
1788
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1789
+ .with_bindings(
1790
+ uri_method: :get,
1791
+ uri_template: "/v1beta/{name}",
1792
+ matches: [
1793
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+/?$}, false]
1794
+ ]
1795
+ )
1796
+ transcoder.transcode request_pb
1797
+ end
1798
+
1799
+ ##
1800
+ # @private
1801
+ #
1802
+ # GRPC transcoding helper method for the get_evaluation_run REST call
1803
+ #
1804
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationRunRequest]
1805
+ # A request object representing the call parameters. Required.
1806
+ # @return [Array(String, [String, nil], Hash{String => String})]
1807
+ # Uri, Body, Query string parameters
1808
+ def self.transcode_get_evaluation_run_request request_pb
1809
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1810
+ .with_bindings(
1811
+ uri_method: :get,
1812
+ uri_template: "/v1beta/{name}",
1813
+ matches: [
1814
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationRuns/[^/]+/?$}, false]
1815
+ ]
1816
+ )
1817
+ transcoder.transcode request_pb
1818
+ end
1819
+
1820
+ ##
1821
+ # @private
1822
+ #
1823
+ # GRPC transcoding helper method for the list_evaluations REST call
1824
+ #
1825
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationsRequest]
1826
+ # A request object representing the call parameters. Required.
1827
+ # @return [Array(String, [String, nil], Hash{String => String})]
1828
+ # Uri, Body, Query string parameters
1829
+ def self.transcode_list_evaluations_request request_pb
1830
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1831
+ .with_bindings(
1832
+ uri_method: :get,
1833
+ uri_template: "/v1beta/{parent}/evaluations",
1834
+ matches: [
1835
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
1836
+ ]
1837
+ )
1838
+ transcoder.transcode request_pb
1839
+ end
1840
+
1841
+ ##
1842
+ # @private
1843
+ #
1844
+ # GRPC transcoding helper method for the list_evaluation_results REST call
1845
+ #
1846
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationResultsRequest]
1847
+ # A request object representing the call parameters. Required.
1848
+ # @return [Array(String, [String, nil], Hash{String => String})]
1849
+ # Uri, Body, Query string parameters
1850
+ def self.transcode_list_evaluation_results_request request_pb
1851
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1852
+ .with_bindings(
1853
+ uri_method: :get,
1854
+ uri_template: "/v1beta/{parent}/results",
1855
+ matches: [
1856
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/?$}, false]
1857
+ ]
1858
+ )
1859
+ transcoder.transcode request_pb
1860
+ end
1861
+
1862
+ ##
1863
+ # @private
1864
+ #
1865
+ # GRPC transcoding helper method for the list_evaluation_datasets REST call
1866
+ #
1867
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationDatasetsRequest]
1868
+ # A request object representing the call parameters. Required.
1869
+ # @return [Array(String, [String, nil], Hash{String => String})]
1870
+ # Uri, Body, Query string parameters
1871
+ def self.transcode_list_evaluation_datasets_request request_pb
1872
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1873
+ .with_bindings(
1874
+ uri_method: :get,
1875
+ uri_template: "/v1beta/{parent}/evaluationDatasets",
1876
+ matches: [
1877
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
1878
+ ]
1879
+ )
1880
+ transcoder.transcode request_pb
1881
+ end
1882
+
1883
+ ##
1884
+ # @private
1885
+ #
1886
+ # GRPC transcoding helper method for the list_evaluation_runs REST call
1887
+ #
1888
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationRunsRequest]
1889
+ # A request object representing the call parameters. Required.
1890
+ # @return [Array(String, [String, nil], Hash{String => String})]
1891
+ # Uri, Body, Query string parameters
1892
+ def self.transcode_list_evaluation_runs_request request_pb
1893
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1894
+ .with_bindings(
1895
+ uri_method: :get,
1896
+ uri_template: "/v1beta/{parent}/evaluationRuns",
1897
+ matches: [
1898
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
1899
+ ]
1900
+ )
1901
+ transcoder.transcode request_pb
1902
+ end
1903
+
1904
+ ##
1905
+ # @private
1906
+ #
1907
+ # GRPC transcoding helper method for the list_evaluation_expectations REST call
1908
+ #
1909
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListEvaluationExpectationsRequest]
1910
+ # A request object representing the call parameters. Required.
1911
+ # @return [Array(String, [String, nil], Hash{String => String})]
1912
+ # Uri, Body, Query string parameters
1913
+ def self.transcode_list_evaluation_expectations_request request_pb
1914
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1915
+ .with_bindings(
1916
+ uri_method: :get,
1917
+ uri_template: "/v1beta/{parent}/evaluationExpectations",
1918
+ matches: [
1919
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
1920
+ ]
1921
+ )
1922
+ transcoder.transcode request_pb
1923
+ end
1924
+
1925
+ ##
1926
+ # @private
1927
+ #
1928
+ # GRPC transcoding helper method for the get_evaluation_expectation REST call
1929
+ #
1930
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetEvaluationExpectationRequest]
1931
+ # A request object representing the call parameters. Required.
1932
+ # @return [Array(String, [String, nil], Hash{String => String})]
1933
+ # Uri, Body, Query string parameters
1934
+ def self.transcode_get_evaluation_expectation_request request_pb
1935
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1936
+ .with_bindings(
1937
+ uri_method: :get,
1938
+ uri_template: "/v1beta/{name}",
1939
+ matches: [
1940
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+/?$}, false]
1941
+ ]
1942
+ )
1943
+ transcoder.transcode request_pb
1944
+ end
1945
+
1946
+ ##
1947
+ # @private
1948
+ #
1949
+ # GRPC transcoding helper method for the create_evaluation_expectation REST call
1950
+ #
1951
+ # @param request_pb [::Google::Cloud::Ces::V1beta::CreateEvaluationExpectationRequest]
1952
+ # A request object representing the call parameters. Required.
1953
+ # @return [Array(String, [String, nil], Hash{String => String})]
1954
+ # Uri, Body, Query string parameters
1955
+ def self.transcode_create_evaluation_expectation_request request_pb
1956
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1957
+ .with_bindings(
1958
+ uri_method: :post,
1959
+ uri_template: "/v1beta/{parent}/evaluationExpectations",
1960
+ body: "evaluation_expectation",
1961
+ matches: [
1962
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
1963
+ ]
1964
+ )
1965
+ transcoder.transcode request_pb
1966
+ end
1967
+
1968
+ ##
1969
+ # @private
1970
+ #
1971
+ # GRPC transcoding helper method for the update_evaluation_expectation REST call
1972
+ #
1973
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UpdateEvaluationExpectationRequest]
1974
+ # A request object representing the call parameters. Required.
1975
+ # @return [Array(String, [String, nil], Hash{String => String})]
1976
+ # Uri, Body, Query string parameters
1977
+ def self.transcode_update_evaluation_expectation_request request_pb
1978
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1979
+ .with_bindings(
1980
+ uri_method: :patch,
1981
+ uri_template: "/v1beta/{evaluation_expectation.name}",
1982
+ body: "evaluation_expectation",
1983
+ matches: [
1984
+ ["evaluation_expectation.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+/?$}, false]
1985
+ ]
1986
+ )
1987
+ transcoder.transcode request_pb
1988
+ end
1989
+
1990
+ ##
1991
+ # @private
1992
+ #
1993
+ # GRPC transcoding helper method for the delete_evaluation_expectation REST call
1994
+ #
1995
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteEvaluationExpectationRequest]
1996
+ # A request object representing the call parameters. Required.
1997
+ # @return [Array(String, [String, nil], Hash{String => String})]
1998
+ # Uri, Body, Query string parameters
1999
+ def self.transcode_delete_evaluation_expectation_request request_pb
2000
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2001
+ .with_bindings(
2002
+ uri_method: :delete,
2003
+ uri_template: "/v1beta/{name}",
2004
+ matches: [
2005
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+/?$}, false]
2006
+ ]
2007
+ )
2008
+ transcoder.transcode request_pb
2009
+ end
2010
+
2011
+ ##
2012
+ # @private
2013
+ #
2014
+ # GRPC transcoding helper method for the create_scheduled_evaluation_run REST call
2015
+ #
2016
+ # @param request_pb [::Google::Cloud::Ces::V1beta::CreateScheduledEvaluationRunRequest]
2017
+ # A request object representing the call parameters. Required.
2018
+ # @return [Array(String, [String, nil], Hash{String => String})]
2019
+ # Uri, Body, Query string parameters
2020
+ def self.transcode_create_scheduled_evaluation_run_request request_pb
2021
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2022
+ .with_bindings(
2023
+ uri_method: :post,
2024
+ uri_template: "/v1beta/{parent}/scheduledEvaluationRuns",
2025
+ body: "scheduled_evaluation_run",
2026
+ matches: [
2027
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
2028
+ ]
2029
+ )
2030
+ transcoder.transcode request_pb
2031
+ end
2032
+
2033
+ ##
2034
+ # @private
2035
+ #
2036
+ # GRPC transcoding helper method for the get_scheduled_evaluation_run REST call
2037
+ #
2038
+ # @param request_pb [::Google::Cloud::Ces::V1beta::GetScheduledEvaluationRunRequest]
2039
+ # A request object representing the call parameters. Required.
2040
+ # @return [Array(String, [String, nil], Hash{String => String})]
2041
+ # Uri, Body, Query string parameters
2042
+ def self.transcode_get_scheduled_evaluation_run_request request_pb
2043
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2044
+ .with_bindings(
2045
+ uri_method: :get,
2046
+ uri_template: "/v1beta/{name}",
2047
+ matches: [
2048
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+/?$}, false]
2049
+ ]
2050
+ )
2051
+ transcoder.transcode request_pb
2052
+ end
2053
+
2054
+ ##
2055
+ # @private
2056
+ #
2057
+ # GRPC transcoding helper method for the list_scheduled_evaluation_runs REST call
2058
+ #
2059
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ListScheduledEvaluationRunsRequest]
2060
+ # A request object representing the call parameters. Required.
2061
+ # @return [Array(String, [String, nil], Hash{String => String})]
2062
+ # Uri, Body, Query string parameters
2063
+ def self.transcode_list_scheduled_evaluation_runs_request request_pb
2064
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2065
+ .with_bindings(
2066
+ uri_method: :get,
2067
+ uri_template: "/v1beta/{parent}/scheduledEvaluationRuns",
2068
+ matches: [
2069
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
2070
+ ]
2071
+ )
2072
+ transcoder.transcode request_pb
2073
+ end
2074
+
2075
+ ##
2076
+ # @private
2077
+ #
2078
+ # GRPC transcoding helper method for the update_scheduled_evaluation_run REST call
2079
+ #
2080
+ # @param request_pb [::Google::Cloud::Ces::V1beta::UpdateScheduledEvaluationRunRequest]
2081
+ # A request object representing the call parameters. Required.
2082
+ # @return [Array(String, [String, nil], Hash{String => String})]
2083
+ # Uri, Body, Query string parameters
2084
+ def self.transcode_update_scheduled_evaluation_run_request request_pb
2085
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2086
+ .with_bindings(
2087
+ uri_method: :patch,
2088
+ uri_template: "/v1beta/{scheduled_evaluation_run.name}",
2089
+ body: "scheduled_evaluation_run",
2090
+ matches: [
2091
+ ["scheduled_evaluation_run.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+/?$}, false]
2092
+ ]
2093
+ )
2094
+ transcoder.transcode request_pb
2095
+ end
2096
+
2097
+ ##
2098
+ # @private
2099
+ #
2100
+ # GRPC transcoding helper method for the delete_scheduled_evaluation_run REST call
2101
+ #
2102
+ # @param request_pb [::Google::Cloud::Ces::V1beta::DeleteScheduledEvaluationRunRequest]
2103
+ # A request object representing the call parameters. Required.
2104
+ # @return [Array(String, [String, nil], Hash{String => String})]
2105
+ # Uri, Body, Query string parameters
2106
+ def self.transcode_delete_scheduled_evaluation_run_request request_pb
2107
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2108
+ .with_bindings(
2109
+ uri_method: :delete,
2110
+ uri_template: "/v1beta/{name}",
2111
+ matches: [
2112
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+/?$}, false]
2113
+ ]
2114
+ )
2115
+ transcoder.transcode request_pb
2116
+ end
2117
+
2118
+ ##
2119
+ # @private
2120
+ #
2121
+ # GRPC transcoding helper method for the test_persona_voice REST call
2122
+ #
2123
+ # @param request_pb [::Google::Cloud::Ces::V1beta::TestPersonaVoiceRequest]
2124
+ # A request object representing the call parameters. Required.
2125
+ # @return [Array(String, [String, nil], Hash{String => String})]
2126
+ # Uri, Body, Query string parameters
2127
+ def self.transcode_test_persona_voice_request request_pb
2128
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2129
+ .with_bindings(
2130
+ uri_method: :post,
2131
+ uri_template: "/v1beta/{app}:testPersonaVoice",
2132
+ body: "*",
2133
+ matches: [
2134
+ ["app", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
2135
+ ]
2136
+ )
2137
+ transcoder.transcode request_pb
2138
+ end
2139
+
2140
+ ##
2141
+ # @private
2142
+ #
2143
+ # GRPC transcoding helper method for the export_evaluations REST call
2144
+ #
2145
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationsRequest]
2146
+ # A request object representing the call parameters. Required.
2147
+ # @return [Array(String, [String, nil], Hash{String => String})]
2148
+ # Uri, Body, Query string parameters
2149
+ def self.transcode_export_evaluations_request request_pb
2150
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2151
+ .with_bindings(
2152
+ uri_method: :post,
2153
+ uri_template: "/v1beta/{parent}/evaluations:export",
2154
+ body: "*",
2155
+ matches: [
2156
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
2157
+ ]
2158
+ )
2159
+ transcoder.transcode request_pb
2160
+ end
2161
+
2162
+ ##
2163
+ # @private
2164
+ #
2165
+ # GRPC transcoding helper method for the export_evaluation_runs REST call
2166
+ #
2167
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationRunsRequest]
2168
+ # A request object representing the call parameters. Required.
2169
+ # @return [Array(String, [String, nil], Hash{String => String})]
2170
+ # Uri, Body, Query string parameters
2171
+ def self.transcode_export_evaluation_runs_request request_pb
2172
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2173
+ .with_bindings(
2174
+ uri_method: :post,
2175
+ uri_template: "/v1beta/{parent}/evaluationRuns:export",
2176
+ body: "*",
2177
+ matches: [
2178
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
2179
+ ]
2180
+ )
2181
+ transcoder.transcode request_pb
2182
+ end
2183
+
2184
+ ##
2185
+ # @private
2186
+ #
2187
+ # GRPC transcoding helper method for the export_evaluation_results REST call
2188
+ #
2189
+ # @param request_pb [::Google::Cloud::Ces::V1beta::ExportEvaluationResultsRequest]
2190
+ # A request object representing the call parameters. Required.
2191
+ # @return [Array(String, [String, nil], Hash{String => String})]
2192
+ # Uri, Body, Query string parameters
2193
+ def self.transcode_export_evaluation_results_request request_pb
2194
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2195
+ .with_bindings(
2196
+ uri_method: :post,
2197
+ uri_template: "/v1beta/{parent}/results:export",
2198
+ body: "*",
2199
+ matches: [
2200
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/?$}, false]
2201
+ ]
2202
+ )
2203
+ transcoder.transcode request_pb
2204
+ end
2205
+
2206
+ ##
2207
+ # @private
2208
+ #
2209
+ # GRPC transcoding helper method for the run_evaluation_result_metrics REST call
2210
+ #
2211
+ # @param request_pb [::Google::Cloud::Ces::V1beta::RunEvaluationResultMetricsRequest]
2212
+ # A request object representing the call parameters. Required.
2213
+ # @return [Array(String, [String, nil], Hash{String => String})]
2214
+ # Uri, Body, Query string parameters
2215
+ def self.transcode_run_evaluation_result_metrics_request request_pb
2216
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2217
+ .with_bindings(
2218
+ uri_method: :post,
2219
+ uri_template: "/v1beta/{evaluation_result_id}:runEvaluationResultMetrics",
2220
+ body: "*",
2221
+ matches: [
2222
+ ["evaluation_result_id", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+/?$}, false]
2223
+ ]
2224
+ )
2225
+ transcoder.transcode request_pb
2226
+ end
2227
+ end
2228
+ end
2229
+ end
2230
+ end
2231
+ end
2232
+ end
2233
+ end