google-cloud-ai_platform-v1 1.42.0 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/client.rb +99 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/client.rb +92 -0
- data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/service_stub.rb +70 -0
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/reasoning_engine_execution_service_services_pb.rb +2 -0
- data/proto_docs/google/cloud/aiplatform/v1/reasoning_engine_execution_service.rb +25 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ef7b57b0db627d65dd8361a39ebb6f62a61ba8ef8ad0a815d2c8ec2c3e4ac36
|
|
4
|
+
data.tar.gz: 1fdf372a40258ad9529888ffab4df00c992b90380d72d4c01d0c178fe182e4a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96c7248f54bb63a4217644ae920d1355b77e87b90eb791407960cc282771592e8a49d5b0cf8ac9b9716b3311e672a30d92059684a916a068b917e648645189e5
|
|
7
|
+
data.tar.gz: 7f0569ebdb4498f4195ad613818bf8580c42724515a129458395c8dd671488b6e369c7eaf4e8f04d35584063db517d69943b0854b6a475d41ec0a2c588abc847
|
|
@@ -518,6 +518,98 @@ module Google
|
|
|
518
518
|
raise ::Google::Cloud::Error.from_error(e)
|
|
519
519
|
end
|
|
520
520
|
|
|
521
|
+
##
|
|
522
|
+
# Cancels an AsyncQueryReasoningEngine operation.
|
|
523
|
+
#
|
|
524
|
+
# @overload cancel_async_query_reasoning_engine(request, options = nil)
|
|
525
|
+
# Pass arguments to `cancel_async_query_reasoning_engine` via a request object, either of type
|
|
526
|
+
# {::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest} or an equivalent Hash.
|
|
527
|
+
#
|
|
528
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest, ::Hash]
|
|
529
|
+
# A request object representing the call parameters. Required. To specify no
|
|
530
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
531
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
532
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
533
|
+
#
|
|
534
|
+
# @overload cancel_async_query_reasoning_engine(name: nil, operation_name: nil)
|
|
535
|
+
# Pass arguments to `cancel_async_query_reasoning_engine` via keyword arguments. Note that at
|
|
536
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
537
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
538
|
+
#
|
|
539
|
+
# @param name [::String]
|
|
540
|
+
# Required. The name of the ReasoningEngine resource to use.
|
|
541
|
+
# Format:
|
|
542
|
+
# `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
|
|
543
|
+
# @param operation_name [::String]
|
|
544
|
+
# Required. The name of the longrunning operation returned from
|
|
545
|
+
# AsyncQueryReasoningEngine.
|
|
546
|
+
# Format:
|
|
547
|
+
# `projects/{project}/locations/{location}/operations/{operation}`
|
|
548
|
+
#
|
|
549
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
550
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse]
|
|
551
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
552
|
+
#
|
|
553
|
+
# @return [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse]
|
|
554
|
+
#
|
|
555
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
556
|
+
#
|
|
557
|
+
# @example Basic example
|
|
558
|
+
# require "google/cloud/ai_platform/v1"
|
|
559
|
+
#
|
|
560
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
561
|
+
# client = Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Client.new
|
|
562
|
+
#
|
|
563
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
564
|
+
# request = Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest.new
|
|
565
|
+
#
|
|
566
|
+
# # Call the cancel_async_query_reasoning_engine method.
|
|
567
|
+
# result = client.cancel_async_query_reasoning_engine request
|
|
568
|
+
#
|
|
569
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse.
|
|
570
|
+
# p result
|
|
571
|
+
#
|
|
572
|
+
def cancel_async_query_reasoning_engine request, options = nil
|
|
573
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
574
|
+
|
|
575
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest
|
|
576
|
+
|
|
577
|
+
# Converts hash and nil to an options object
|
|
578
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
579
|
+
|
|
580
|
+
# Customize the options with defaults
|
|
581
|
+
metadata = @config.rpcs.cancel_async_query_reasoning_engine.metadata.to_h
|
|
582
|
+
|
|
583
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
584
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
585
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
586
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
|
587
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
588
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
589
|
+
|
|
590
|
+
header_params = {}
|
|
591
|
+
if request.name
|
|
592
|
+
header_params["name"] = request.name
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
596
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
597
|
+
|
|
598
|
+
options.apply_defaults timeout: @config.rpcs.cancel_async_query_reasoning_engine.timeout,
|
|
599
|
+
metadata: metadata,
|
|
600
|
+
retry_policy: @config.rpcs.cancel_async_query_reasoning_engine.retry_policy
|
|
601
|
+
|
|
602
|
+
options.apply_defaults timeout: @config.timeout,
|
|
603
|
+
metadata: @config.metadata,
|
|
604
|
+
retry_policy: @config.retry_policy
|
|
605
|
+
|
|
606
|
+
@reasoning_engine_execution_service_stub.call_rpc :cancel_async_query_reasoning_engine, request, options: options do |response, operation|
|
|
607
|
+
yield response, operation if block_given?
|
|
608
|
+
end
|
|
609
|
+
rescue ::GRPC::BadStatus => e
|
|
610
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
611
|
+
end
|
|
612
|
+
|
|
521
613
|
##
|
|
522
614
|
# Configuration class for the ReasoningEngineExecutionService API.
|
|
523
615
|
#
|
|
@@ -716,6 +808,11 @@ module Google
|
|
|
716
808
|
# @return [::Gapic::Config::Method]
|
|
717
809
|
#
|
|
718
810
|
attr_reader :async_query_reasoning_engine
|
|
811
|
+
##
|
|
812
|
+
# RPC-specific configuration for `cancel_async_query_reasoning_engine`
|
|
813
|
+
# @return [::Gapic::Config::Method]
|
|
814
|
+
#
|
|
815
|
+
attr_reader :cancel_async_query_reasoning_engine
|
|
719
816
|
|
|
720
817
|
# @private
|
|
721
818
|
def initialize parent_rpcs = nil
|
|
@@ -725,6 +822,8 @@ module Google
|
|
|
725
822
|
@stream_query_reasoning_engine = ::Gapic::Config::Method.new stream_query_reasoning_engine_config
|
|
726
823
|
async_query_reasoning_engine_config = parent_rpcs.async_query_reasoning_engine if parent_rpcs.respond_to? :async_query_reasoning_engine
|
|
727
824
|
@async_query_reasoning_engine = ::Gapic::Config::Method.new async_query_reasoning_engine_config
|
|
825
|
+
cancel_async_query_reasoning_engine_config = parent_rpcs.cancel_async_query_reasoning_engine if parent_rpcs.respond_to? :cancel_async_query_reasoning_engine
|
|
826
|
+
@cancel_async_query_reasoning_engine = ::Gapic::Config::Method.new cancel_async_query_reasoning_engine_config
|
|
728
827
|
|
|
729
828
|
yield self if block_given?
|
|
730
829
|
end
|
|
@@ -494,6 +494,91 @@ module Google
|
|
|
494
494
|
raise ::Google::Cloud::Error.from_error(e)
|
|
495
495
|
end
|
|
496
496
|
|
|
497
|
+
##
|
|
498
|
+
# Cancels an AsyncQueryReasoningEngine operation.
|
|
499
|
+
#
|
|
500
|
+
# @overload cancel_async_query_reasoning_engine(request, options = nil)
|
|
501
|
+
# Pass arguments to `cancel_async_query_reasoning_engine` via a request object, either of type
|
|
502
|
+
# {::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest} or an equivalent Hash.
|
|
503
|
+
#
|
|
504
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest, ::Hash]
|
|
505
|
+
# A request object representing the call parameters. Required. To specify no
|
|
506
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
507
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
508
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
509
|
+
#
|
|
510
|
+
# @overload cancel_async_query_reasoning_engine(name: nil, operation_name: nil)
|
|
511
|
+
# Pass arguments to `cancel_async_query_reasoning_engine` via keyword arguments. Note that at
|
|
512
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
513
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
514
|
+
#
|
|
515
|
+
# @param name [::String]
|
|
516
|
+
# Required. The name of the ReasoningEngine resource to use.
|
|
517
|
+
# Format:
|
|
518
|
+
# `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
|
|
519
|
+
# @param operation_name [::String]
|
|
520
|
+
# Required. The name of the longrunning operation returned from
|
|
521
|
+
# AsyncQueryReasoningEngine.
|
|
522
|
+
# Format:
|
|
523
|
+
# `projects/{project}/locations/{location}/operations/{operation}`
|
|
524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
525
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse]
|
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
527
|
+
#
|
|
528
|
+
# @return [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse]
|
|
529
|
+
#
|
|
530
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
531
|
+
#
|
|
532
|
+
# @example Basic example
|
|
533
|
+
# require "google/cloud/ai_platform/v1"
|
|
534
|
+
#
|
|
535
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
536
|
+
# client = Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Rest::Client.new
|
|
537
|
+
#
|
|
538
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
539
|
+
# request = Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest.new
|
|
540
|
+
#
|
|
541
|
+
# # Call the cancel_async_query_reasoning_engine method.
|
|
542
|
+
# result = client.cancel_async_query_reasoning_engine request
|
|
543
|
+
#
|
|
544
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse.
|
|
545
|
+
# p result
|
|
546
|
+
#
|
|
547
|
+
def cancel_async_query_reasoning_engine request, options = nil
|
|
548
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
549
|
+
|
|
550
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest
|
|
551
|
+
|
|
552
|
+
# Converts hash and nil to an options object
|
|
553
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
554
|
+
|
|
555
|
+
# Customize the options with defaults
|
|
556
|
+
call_metadata = @config.rpcs.cancel_async_query_reasoning_engine.metadata.to_h
|
|
557
|
+
|
|
558
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
559
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
560
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
561
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
|
|
562
|
+
transports_version_send: [:rest]
|
|
563
|
+
|
|
564
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
565
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
566
|
+
|
|
567
|
+
options.apply_defaults timeout: @config.rpcs.cancel_async_query_reasoning_engine.timeout,
|
|
568
|
+
metadata: call_metadata,
|
|
569
|
+
retry_policy: @config.rpcs.cancel_async_query_reasoning_engine.retry_policy
|
|
570
|
+
|
|
571
|
+
options.apply_defaults timeout: @config.timeout,
|
|
572
|
+
metadata: @config.metadata,
|
|
573
|
+
retry_policy: @config.retry_policy
|
|
574
|
+
|
|
575
|
+
@reasoning_engine_execution_service_stub.cancel_async_query_reasoning_engine request, options do |result, operation|
|
|
576
|
+
yield result, operation if block_given?
|
|
577
|
+
end
|
|
578
|
+
rescue ::Gapic::Rest::Error => e
|
|
579
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
580
|
+
end
|
|
581
|
+
|
|
497
582
|
##
|
|
498
583
|
# Configuration class for the ReasoningEngineExecutionService REST API.
|
|
499
584
|
#
|
|
@@ -662,6 +747,11 @@ module Google
|
|
|
662
747
|
# @return [::Gapic::Config::Method]
|
|
663
748
|
#
|
|
664
749
|
attr_reader :async_query_reasoning_engine
|
|
750
|
+
##
|
|
751
|
+
# RPC-specific configuration for `cancel_async_query_reasoning_engine`
|
|
752
|
+
# @return [::Gapic::Config::Method]
|
|
753
|
+
#
|
|
754
|
+
attr_reader :cancel_async_query_reasoning_engine
|
|
665
755
|
|
|
666
756
|
# @private
|
|
667
757
|
def initialize parent_rpcs = nil
|
|
@@ -671,6 +761,8 @@ module Google
|
|
|
671
761
|
@stream_query_reasoning_engine = ::Gapic::Config::Method.new stream_query_reasoning_engine_config
|
|
672
762
|
async_query_reasoning_engine_config = parent_rpcs.async_query_reasoning_engine if parent_rpcs.respond_to? :async_query_reasoning_engine
|
|
673
763
|
@async_query_reasoning_engine = ::Gapic::Config::Method.new async_query_reasoning_engine_config
|
|
764
|
+
cancel_async_query_reasoning_engine_config = parent_rpcs.cancel_async_query_reasoning_engine if parent_rpcs.respond_to? :cancel_async_query_reasoning_engine
|
|
765
|
+
@cancel_async_query_reasoning_engine = ::Gapic::Config::Method.new cancel_async_query_reasoning_engine_config
|
|
674
766
|
|
|
675
767
|
yield self if block_given?
|
|
676
768
|
end
|
data/lib/google/cloud/ai_platform/v1/reasoning_engine_execution_service/rest/service_stub.rb
CHANGED
|
@@ -187,6 +187,46 @@ module Google
|
|
|
187
187
|
end
|
|
188
188
|
end
|
|
189
189
|
|
|
190
|
+
##
|
|
191
|
+
# Baseline implementation for the cancel_async_query_reasoning_engine REST call
|
|
192
|
+
#
|
|
193
|
+
# @param request_pb [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest]
|
|
194
|
+
# A request object representing the call parameters. Required.
|
|
195
|
+
# @param options [::Gapic::CallOptions]
|
|
196
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
197
|
+
#
|
|
198
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
199
|
+
# @yieldparam result [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse]
|
|
200
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
201
|
+
#
|
|
202
|
+
# @return [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse]
|
|
203
|
+
# A result object deserialized from the server's reply
|
|
204
|
+
def cancel_async_query_reasoning_engine request_pb, options = nil
|
|
205
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
206
|
+
|
|
207
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_cancel_async_query_reasoning_engine_request request_pb
|
|
208
|
+
query_string_params = if query_string_params.any?
|
|
209
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
210
|
+
else
|
|
211
|
+
{}
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
response = @client_stub.make_http_request(
|
|
215
|
+
verb,
|
|
216
|
+
uri: uri,
|
|
217
|
+
body: body || "",
|
|
218
|
+
params: query_string_params,
|
|
219
|
+
method_name: "cancel_async_query_reasoning_engine",
|
|
220
|
+
options: options
|
|
221
|
+
)
|
|
222
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
223
|
+
result = ::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse.decode_json response.body, ignore_unknown_fields: true
|
|
224
|
+
catch :response do
|
|
225
|
+
yield result, operation if block_given?
|
|
226
|
+
result
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
190
230
|
##
|
|
191
231
|
# @private
|
|
192
232
|
#
|
|
@@ -260,6 +300,36 @@ module Google
|
|
|
260
300
|
)
|
|
261
301
|
transcoder.transcode request_pb
|
|
262
302
|
end
|
|
303
|
+
|
|
304
|
+
##
|
|
305
|
+
# @private
|
|
306
|
+
#
|
|
307
|
+
# GRPC transcoding helper method for the cancel_async_query_reasoning_engine REST call
|
|
308
|
+
#
|
|
309
|
+
# @param request_pb [::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest]
|
|
310
|
+
# A request object representing the call parameters. Required.
|
|
311
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
312
|
+
# Uri, Body, Query string parameters
|
|
313
|
+
def self.transcode_cancel_async_query_reasoning_engine_request request_pb
|
|
314
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
315
|
+
.with_bindings(
|
|
316
|
+
uri_method: :post,
|
|
317
|
+
uri_template: "/v1/{name}:cancelAsyncQuery",
|
|
318
|
+
body: "*",
|
|
319
|
+
matches: [
|
|
320
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/?$}, false]
|
|
321
|
+
]
|
|
322
|
+
)
|
|
323
|
+
.with_bindings(
|
|
324
|
+
uri_method: :post,
|
|
325
|
+
uri_template: "/v1/{name}:cancelAsyncQuery",
|
|
326
|
+
body: "*",
|
|
327
|
+
matches: [
|
|
328
|
+
["name", %r{^reasoningEngines/[^/]+/?$}, false]
|
|
329
|
+
]
|
|
330
|
+
)
|
|
331
|
+
transcoder.transcode request_pb
|
|
332
|
+
end
|
|
263
333
|
end
|
|
264
334
|
end
|
|
265
335
|
end
|
|
@@ -14,7 +14,7 @@ require 'google/longrunning/operations_pb'
|
|
|
14
14
|
require 'google/protobuf/struct_pb'
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
descriptor_data = "\nCgoogle/cloud/aiplatform/v1/reasoning_engine_execution_service.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a#google/longrunning/operations.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa6\x01\n\x1bQueryReasoningEngineRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ReasoningEngine\x12+\n\x05input\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x19\n\x0c\x63lass_method\x18\x03 \x01(\tB\x03\xe0\x41\x01\"F\n\x1cQueryReasoningEngineResponse\x12&\n\x06output\x18\x01 \x01(\x0b\x32\x16.google.protobuf.Value\"\xac\x01\n!StreamQueryReasoningEngineRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ReasoningEngine\x12+\n\x05input\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x19\n\x0c\x63lass_method\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9c\x01\n AsyncQueryReasoningEngineRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ReasoningEngine\x12\x1a\n\rinput_gcs_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0eoutput_gcs_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\"|\n*AsyncQueryReasoningEngineOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\";\n!AsyncQueryReasoningEngineResponse\x12\x16\n\x0eoutput_gcs_uri\x18\x01 \x01(\
|
|
17
|
+
descriptor_data = "\nCgoogle/cloud/aiplatform/v1/reasoning_engine_execution_service.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a#google/longrunning/operations.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa6\x01\n\x1bQueryReasoningEngineRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ReasoningEngine\x12+\n\x05input\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x19\n\x0c\x63lass_method\x18\x03 \x01(\tB\x03\xe0\x41\x01\"F\n\x1cQueryReasoningEngineResponse\x12&\n\x06output\x18\x01 \x01(\x0b\x32\x16.google.protobuf.Value\"\xac\x01\n!StreamQueryReasoningEngineRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ReasoningEngine\x12+\n\x05input\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x19\n\x0c\x63lass_method\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9c\x01\n AsyncQueryReasoningEngineRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ReasoningEngine\x12\x1a\n\rinput_gcs_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0eoutput_gcs_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\"|\n*AsyncQueryReasoningEngineOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\";\n!AsyncQueryReasoningEngineResponse\x12\x16\n\x0eoutput_gcs_uri\x18\x01 \x01(\t\"\x86\x01\n&CancelAsyncQueryReasoningEngineRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/ReasoningEngine\x12\x1b\n\x0eoperation_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\")\n\'CancelAsyncQueryReasoningEngineResponse2\x84\t\n\x1fReasoningEngineExecutionService\x12\xd0\x01\n\x14QueryReasoningEngine\x12\x37.google.cloud.aiplatform.v1.QueryReasoningEngineRequest\x1a\x38.google.cloud.aiplatform.v1.QueryReasoningEngineResponse\"E\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/reasoningEngines/*}:query:\x01*\x12\xc0\x01\n\x1aStreamQueryReasoningEngine\x12=.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest\x1a\x14.google.api.HttpBody\"K\x82\xd3\xe4\x93\x02\x45\"@/v1/{name=projects/*/locations/*/reasoningEngines/*}:streamQuery:\x01*0\x01\x12\xc6\x02\n\x19\x41syncQueryReasoningEngine\x12<.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest\x1a\x1d.google.longrunning.Operation\"\xcb\x01\xca\x41O\n!AsyncQueryReasoningEngineResponse\x12*AsyncQueryReasoningEngineOperationMetadata\x82\xd3\xe4\x93\x02s\"?/v1/{name=projects/*/locations/*/reasoningEngines/*}:asyncQuery:\x01*Z-\"(/v1/{name=reasoningEngines/*}:asyncQuery:\x01*\x12\xb2\x02\n\x1f\x43\x61ncelAsyncQueryReasoningEngine\x12\x42.google.cloud.aiplatform.v1.CancelAsyncQueryReasoningEngineRequest\x1a\x43.google.cloud.aiplatform.v1.CancelAsyncQueryReasoningEngineResponse\"\x85\x01\x82\xd3\xe4\x93\x02\x7f\"E/v1/{name=projects/*/locations/*/reasoningEngines/*}:cancelAsyncQuery:\x01*Z3\"./v1/{name=reasoningEngines/*}:cancelAsyncQuery:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe2\x01\n\x1e\x63om.google.cloud.aiplatform.v1B$ReasoningEngineExecutionServiceProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
|
|
18
18
|
|
|
19
19
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
20
20
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -29,6 +29,8 @@ module Google
|
|
|
29
29
|
AsyncQueryReasoningEngineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest").msgclass
|
|
30
30
|
AsyncQueryReasoningEngineOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata").msgclass
|
|
31
31
|
AsyncQueryReasoningEngineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse").msgclass
|
|
32
|
+
CancelAsyncQueryReasoningEngineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.CancelAsyncQueryReasoningEngineRequest").msgclass
|
|
33
|
+
CancelAsyncQueryReasoningEngineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.CancelAsyncQueryReasoningEngineResponse").msgclass
|
|
32
34
|
end
|
|
33
35
|
end
|
|
34
36
|
end
|
|
@@ -39,6 +39,8 @@ module Google
|
|
|
39
39
|
rpc :StreamQueryReasoningEngine, ::Google::Cloud::AIPlatform::V1::StreamQueryReasoningEngineRequest, stream(::Google::Api::HttpBody)
|
|
40
40
|
# Async query using a reasoning engine.
|
|
41
41
|
rpc :AsyncQueryReasoningEngine, ::Google::Cloud::AIPlatform::V1::AsyncQueryReasoningEngineRequest, ::Google::Longrunning::Operation
|
|
42
|
+
# Cancels an AsyncQueryReasoningEngine operation.
|
|
43
|
+
rpc :CancelAsyncQueryReasoningEngine, ::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineRequest, ::Google::Cloud::AIPlatform::V1::CancelAsyncQueryReasoningEngineResponse
|
|
42
44
|
end
|
|
43
45
|
|
|
44
46
|
Stub = Service.rpc_stub_class
|
|
@@ -105,6 +105,31 @@ module Google
|
|
|
105
105
|
include ::Google::Protobuf::MessageExts
|
|
106
106
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
107
107
|
end
|
|
108
|
+
|
|
109
|
+
# Request message for
|
|
110
|
+
# {::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Client#cancel_async_query_reasoning_engine ReasoningEngineExecutionService.CancelAsyncQueryReasoningEngine}.
|
|
111
|
+
# @!attribute [rw] name
|
|
112
|
+
# @return [::String]
|
|
113
|
+
# Required. The name of the ReasoningEngine resource to use.
|
|
114
|
+
# Format:
|
|
115
|
+
# `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
|
|
116
|
+
# @!attribute [rw] operation_name
|
|
117
|
+
# @return [::String]
|
|
118
|
+
# Required. The name of the longrunning operation returned from
|
|
119
|
+
# AsyncQueryReasoningEngine.
|
|
120
|
+
# Format:
|
|
121
|
+
# `projects/{project}/locations/{location}/operations/{operation}`
|
|
122
|
+
class CancelAsyncQueryReasoningEngineRequest
|
|
123
|
+
include ::Google::Protobuf::MessageExts
|
|
124
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Response message for
|
|
128
|
+
# {::Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Client#cancel_async_query_reasoning_engine ReasoningEngineExecutionService.CancelAsyncQueryReasoningEngine}.
|
|
129
|
+
class CancelAsyncQueryReasoningEngineResponse
|
|
130
|
+
include ::Google::Protobuf::MessageExts
|
|
131
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
132
|
+
end
|
|
108
133
|
end
|
|
109
134
|
end
|
|
110
135
|
end
|