google-cloud-ai_platform-v1 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +192 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/index_pb.rb +30 -0
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +16 -0
- data/lib/google/cloud/aiplatform/v1/index_service_services_pb.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +1 -2
- data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/index.rb +88 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +40 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +2 -4
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/saved_query.rb +2 -1
- data/proto_docs/google/cloud/aiplatform/v1/vizier_service.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c402a703cea1634661ad0f10b1df68992420a59a76f5f615e50c28bf036332c1
|
4
|
+
data.tar.gz: bd54462ae55866c270a8684b20bd8364d6e0b6977e38750f38b1f233cd7e37cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47e8c6b71ef8eeab3a4fa0e0330d94ca5bf278c21bfd7d8057340e723cbdc264713624d7c9dc974fb0ab4a3c894c84bad392649fdfddde54e5f8c7de5bb8c68b
|
7
|
+
data.tar.gz: 767556151a14f3778cc202590fc26e5dea8269949372272c6606858421032691ec20dd71ffcf8bfd5b7b7f11dc6bede3d56154130fbf574a5383b7ba5951ba74
|
@@ -665,6 +665,184 @@ module Google
|
|
665
665
|
raise ::Google::Cloud::Error.from_error(e)
|
666
666
|
end
|
667
667
|
|
668
|
+
##
|
669
|
+
# Add/update Datapoints into an Index.
|
670
|
+
#
|
671
|
+
# @overload upsert_datapoints(request, options = nil)
|
672
|
+
# Pass arguments to `upsert_datapoints` via a request object, either of type
|
673
|
+
# {::Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest} or an equivalent Hash.
|
674
|
+
#
|
675
|
+
# @param request [::Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest, ::Hash]
|
676
|
+
# A request object representing the call parameters. Required. To specify no
|
677
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
678
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
679
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
680
|
+
#
|
681
|
+
# @overload upsert_datapoints(index: nil, datapoints: nil)
|
682
|
+
# Pass arguments to `upsert_datapoints` via keyword arguments. Note that at
|
683
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
684
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
685
|
+
#
|
686
|
+
# @param index [::String]
|
687
|
+
# Required. The name of the Index resource to be updated.
|
688
|
+
# Format:
|
689
|
+
# `projects/{project}/locations/{location}/indexes/{index}`
|
690
|
+
# @param datapoints [::Array<::Google::Cloud::AIPlatform::V1::IndexDatapoint, ::Hash>]
|
691
|
+
# A list of datapoints to be created/updated.
|
692
|
+
#
|
693
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
694
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::UpsertDatapointsResponse]
|
695
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
696
|
+
#
|
697
|
+
# @return [::Google::Cloud::AIPlatform::V1::UpsertDatapointsResponse]
|
698
|
+
#
|
699
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
700
|
+
#
|
701
|
+
# @example Basic example
|
702
|
+
# require "google/cloud/ai_platform/v1"
|
703
|
+
#
|
704
|
+
# # Create a client object. The client can be reused for multiple calls.
|
705
|
+
# client = Google::Cloud::AIPlatform::V1::IndexService::Client.new
|
706
|
+
#
|
707
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
708
|
+
# request = Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest.new
|
709
|
+
#
|
710
|
+
# # Call the upsert_datapoints method.
|
711
|
+
# result = client.upsert_datapoints request
|
712
|
+
#
|
713
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::UpsertDatapointsResponse.
|
714
|
+
# p result
|
715
|
+
#
|
716
|
+
def upsert_datapoints request, options = nil
|
717
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
718
|
+
|
719
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest
|
720
|
+
|
721
|
+
# Converts hash and nil to an options object
|
722
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
723
|
+
|
724
|
+
# Customize the options with defaults
|
725
|
+
metadata = @config.rpcs.upsert_datapoints.metadata.to_h
|
726
|
+
|
727
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
728
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
729
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
730
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
731
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
732
|
+
|
733
|
+
header_params = {}
|
734
|
+
if request.index
|
735
|
+
header_params["index"] = request.index
|
736
|
+
end
|
737
|
+
|
738
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
739
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
740
|
+
|
741
|
+
options.apply_defaults timeout: @config.rpcs.upsert_datapoints.timeout,
|
742
|
+
metadata: metadata,
|
743
|
+
retry_policy: @config.rpcs.upsert_datapoints.retry_policy
|
744
|
+
|
745
|
+
options.apply_defaults timeout: @config.timeout,
|
746
|
+
metadata: @config.metadata,
|
747
|
+
retry_policy: @config.retry_policy
|
748
|
+
|
749
|
+
@index_service_stub.call_rpc :upsert_datapoints, request, options: options do |response, operation|
|
750
|
+
yield response, operation if block_given?
|
751
|
+
return response
|
752
|
+
end
|
753
|
+
rescue ::GRPC::BadStatus => e
|
754
|
+
raise ::Google::Cloud::Error.from_error(e)
|
755
|
+
end
|
756
|
+
|
757
|
+
##
|
758
|
+
# Remove Datapoints from an Index.
|
759
|
+
#
|
760
|
+
# @overload remove_datapoints(request, options = nil)
|
761
|
+
# Pass arguments to `remove_datapoints` via a request object, either of type
|
762
|
+
# {::Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest} or an equivalent Hash.
|
763
|
+
#
|
764
|
+
# @param request [::Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest, ::Hash]
|
765
|
+
# A request object representing the call parameters. Required. To specify no
|
766
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
767
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
768
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
769
|
+
#
|
770
|
+
# @overload remove_datapoints(index: nil, datapoint_ids: nil)
|
771
|
+
# Pass arguments to `remove_datapoints` via keyword arguments. Note that at
|
772
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
773
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
774
|
+
#
|
775
|
+
# @param index [::String]
|
776
|
+
# Required. The name of the Index resource to be updated.
|
777
|
+
# Format:
|
778
|
+
# `projects/{project}/locations/{location}/indexes/{index}`
|
779
|
+
# @param datapoint_ids [::Array<::String>]
|
780
|
+
# A list of datapoint ids to be deleted.
|
781
|
+
#
|
782
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
783
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::RemoveDatapointsResponse]
|
784
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
785
|
+
#
|
786
|
+
# @return [::Google::Cloud::AIPlatform::V1::RemoveDatapointsResponse]
|
787
|
+
#
|
788
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
789
|
+
#
|
790
|
+
# @example Basic example
|
791
|
+
# require "google/cloud/ai_platform/v1"
|
792
|
+
#
|
793
|
+
# # Create a client object. The client can be reused for multiple calls.
|
794
|
+
# client = Google::Cloud::AIPlatform::V1::IndexService::Client.new
|
795
|
+
#
|
796
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
797
|
+
# request = Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest.new
|
798
|
+
#
|
799
|
+
# # Call the remove_datapoints method.
|
800
|
+
# result = client.remove_datapoints request
|
801
|
+
#
|
802
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::RemoveDatapointsResponse.
|
803
|
+
# p result
|
804
|
+
#
|
805
|
+
def remove_datapoints request, options = nil
|
806
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
807
|
+
|
808
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest
|
809
|
+
|
810
|
+
# Converts hash and nil to an options object
|
811
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
812
|
+
|
813
|
+
# Customize the options with defaults
|
814
|
+
metadata = @config.rpcs.remove_datapoints.metadata.to_h
|
815
|
+
|
816
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
817
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
818
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
819
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
820
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
821
|
+
|
822
|
+
header_params = {}
|
823
|
+
if request.index
|
824
|
+
header_params["index"] = request.index
|
825
|
+
end
|
826
|
+
|
827
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
828
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
829
|
+
|
830
|
+
options.apply_defaults timeout: @config.rpcs.remove_datapoints.timeout,
|
831
|
+
metadata: metadata,
|
832
|
+
retry_policy: @config.rpcs.remove_datapoints.retry_policy
|
833
|
+
|
834
|
+
options.apply_defaults timeout: @config.timeout,
|
835
|
+
metadata: @config.metadata,
|
836
|
+
retry_policy: @config.retry_policy
|
837
|
+
|
838
|
+
@index_service_stub.call_rpc :remove_datapoints, request, options: options do |response, operation|
|
839
|
+
yield response, operation if block_given?
|
840
|
+
return response
|
841
|
+
end
|
842
|
+
rescue ::GRPC::BadStatus => e
|
843
|
+
raise ::Google::Cloud::Error.from_error(e)
|
844
|
+
end
|
845
|
+
|
668
846
|
##
|
669
847
|
# Configuration class for the IndexService API.
|
670
848
|
#
|
@@ -825,6 +1003,16 @@ module Google
|
|
825
1003
|
# @return [::Gapic::Config::Method]
|
826
1004
|
#
|
827
1005
|
attr_reader :delete_index
|
1006
|
+
##
|
1007
|
+
# RPC-specific configuration for `upsert_datapoints`
|
1008
|
+
# @return [::Gapic::Config::Method]
|
1009
|
+
#
|
1010
|
+
attr_reader :upsert_datapoints
|
1011
|
+
##
|
1012
|
+
# RPC-specific configuration for `remove_datapoints`
|
1013
|
+
# @return [::Gapic::Config::Method]
|
1014
|
+
#
|
1015
|
+
attr_reader :remove_datapoints
|
828
1016
|
|
829
1017
|
# @private
|
830
1018
|
def initialize parent_rpcs = nil
|
@@ -838,6 +1026,10 @@ module Google
|
|
838
1026
|
@update_index = ::Gapic::Config::Method.new update_index_config
|
839
1027
|
delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
|
840
1028
|
@delete_index = ::Gapic::Config::Method.new delete_index_config
|
1029
|
+
upsert_datapoints_config = parent_rpcs.upsert_datapoints if parent_rpcs.respond_to? :upsert_datapoints
|
1030
|
+
@upsert_datapoints = ::Gapic::Config::Method.new upsert_datapoints_config
|
1031
|
+
remove_datapoints_config = parent_rpcs.remove_datapoints if parent_rpcs.respond_to? :remove_datapoints
|
1032
|
+
@remove_datapoints = ::Gapic::Config::Method.new remove_datapoints_config
|
841
1033
|
|
842
1034
|
yield self if block_given?
|
843
1035
|
end
|
@@ -957,7 +957,7 @@ module Google
|
|
957
957
|
# @param version_aliases [::Array<::String>]
|
958
958
|
# Required. The set of version aliases to merge.
|
959
959
|
# The alias should be at most 128 characters, and match
|
960
|
-
# `[a-z][a-
|
960
|
+
# `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
|
961
961
|
# Add the `-` prefix to an alias means removing that alias from the version.
|
962
962
|
# `-` is NOT counted in the 128 characters. Example: `-golden` means removing
|
963
963
|
# the `golden` alias from the version.
|
@@ -664,7 +664,7 @@ module Google
|
|
664
664
|
# Required. The project and location that the Study belongs to.
|
665
665
|
# Format: `projects/{project}/locations/{location}/studies/{study}`
|
666
666
|
# @param suggestion_count [::Integer]
|
667
|
-
# Required. The number of suggestions requested.
|
667
|
+
# Required. The number of suggestions requested. It must be positive.
|
668
668
|
# @param client_id [::String]
|
669
669
|
# Required. The identifier of the client that is requesting the suggestion.
|
670
670
|
#
|
@@ -22,6 +22,31 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
22
|
map :labels, :string, :string, 9
|
23
23
|
optional :create_time, :message, 10, "google.protobuf.Timestamp"
|
24
24
|
optional :update_time, :message, 11, "google.protobuf.Timestamp"
|
25
|
+
optional :index_stats, :message, 14, "google.cloud.aiplatform.v1.IndexStats"
|
26
|
+
optional :index_update_method, :enum, 16, "google.cloud.aiplatform.v1.Index.IndexUpdateMethod"
|
27
|
+
end
|
28
|
+
add_enum "google.cloud.aiplatform.v1.Index.IndexUpdateMethod" do
|
29
|
+
value :INDEX_UPDATE_METHOD_UNSPECIFIED, 0
|
30
|
+
value :BATCH_UPDATE, 1
|
31
|
+
value :STREAM_UPDATE, 2
|
32
|
+
end
|
33
|
+
add_message "google.cloud.aiplatform.v1.IndexDatapoint" do
|
34
|
+
optional :datapoint_id, :string, 1
|
35
|
+
repeated :feature_vector, :float, 2
|
36
|
+
repeated :restricts, :message, 4, "google.cloud.aiplatform.v1.IndexDatapoint.Restriction"
|
37
|
+
optional :crowding_tag, :message, 5, "google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag"
|
38
|
+
end
|
39
|
+
add_message "google.cloud.aiplatform.v1.IndexDatapoint.Restriction" do
|
40
|
+
optional :namespace, :string, 1
|
41
|
+
repeated :allow_list, :string, 2
|
42
|
+
repeated :deny_list, :string, 3
|
43
|
+
end
|
44
|
+
add_message "google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag" do
|
45
|
+
optional :crowding_attribute, :string, 1
|
46
|
+
end
|
47
|
+
add_message "google.cloud.aiplatform.v1.IndexStats" do
|
48
|
+
optional :vectors_count, :int64, 1
|
49
|
+
optional :shards_count, :int32, 2
|
25
50
|
end
|
26
51
|
end
|
27
52
|
end
|
@@ -31,6 +56,11 @@ module Google
|
|
31
56
|
module AIPlatform
|
32
57
|
module V1
|
33
58
|
Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Index").msgclass
|
59
|
+
Index::IndexUpdateMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Index.IndexUpdateMethod").enummodule
|
60
|
+
IndexDatapoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint").msgclass
|
61
|
+
IndexDatapoint::Restriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint.Restriction").msgclass
|
62
|
+
IndexDatapoint::CrowdingTag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag").msgclass
|
63
|
+
IndexStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexStats").msgclass
|
34
64
|
end
|
35
65
|
end
|
36
66
|
end
|
@@ -47,6 +47,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
47
47
|
add_message "google.cloud.aiplatform.v1.DeleteIndexRequest" do
|
48
48
|
optional :name, :string, 1
|
49
49
|
end
|
50
|
+
add_message "google.cloud.aiplatform.v1.UpsertDatapointsRequest" do
|
51
|
+
optional :index, :string, 1
|
52
|
+
repeated :datapoints, :message, 2, "google.cloud.aiplatform.v1.IndexDatapoint"
|
53
|
+
end
|
54
|
+
add_message "google.cloud.aiplatform.v1.UpsertDatapointsResponse" do
|
55
|
+
end
|
56
|
+
add_message "google.cloud.aiplatform.v1.RemoveDatapointsRequest" do
|
57
|
+
optional :index, :string, 1
|
58
|
+
repeated :datapoint_ids, :string, 2
|
59
|
+
end
|
60
|
+
add_message "google.cloud.aiplatform.v1.RemoveDatapointsResponse" do
|
61
|
+
end
|
50
62
|
add_message "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata" do
|
51
63
|
repeated :content_validation_stats, :message, 1, "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats"
|
52
64
|
optional :data_bytes_count, :int64, 2
|
@@ -89,6 +101,10 @@ module Google
|
|
89
101
|
UpdateIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpdateIndexRequest").msgclass
|
90
102
|
UpdateIndexOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpdateIndexOperationMetadata").msgclass
|
91
103
|
DeleteIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteIndexRequest").msgclass
|
104
|
+
UpsertDatapointsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpsertDatapointsRequest").msgclass
|
105
|
+
UpsertDatapointsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpsertDatapointsResponse").msgclass
|
106
|
+
RemoveDatapointsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.RemoveDatapointsRequest").msgclass
|
107
|
+
RemoveDatapointsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.RemoveDatapointsResponse").msgclass
|
92
108
|
NearestNeighborSearchOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata").msgclass
|
93
109
|
NearestNeighborSearchOperationMetadata::RecordError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError").msgclass
|
94
110
|
NearestNeighborSearchOperationMetadata::RecordError::RecordErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType").enummodule
|
@@ -45,6 +45,10 @@ module Google
|
|
45
45
|
# An Index can only be deleted when all its
|
46
46
|
# [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had been undeployed.
|
47
47
|
rpc :DeleteIndex, ::Google::Cloud::AIPlatform::V1::DeleteIndexRequest, ::Google::Longrunning::Operation
|
48
|
+
# Add/update Datapoints into an Index.
|
49
|
+
rpc :UpsertDatapoints, ::Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest, ::Google::Cloud::AIPlatform::V1::UpsertDatapointsResponse
|
50
|
+
# Remove Datapoints from an Index.
|
51
|
+
rpc :RemoveDatapoints, ::Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest, ::Google::Cloud::AIPlatform::V1::RemoveDatapointsResponse
|
48
52
|
end
|
49
53
|
|
50
54
|
Stub = Service.rpc_stub_class
|
@@ -275,8 +275,7 @@ module Google
|
|
275
275
|
# Response message for {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_saved_queries DatasetService.ListSavedQueries}.
|
276
276
|
# @!attribute [rw] saved_queries
|
277
277
|
# @return [::Array<::Google::Cloud::AIPlatform::V1::SavedQuery>]
|
278
|
-
# A list of SavedQueries that
|
279
|
-
# request.
|
278
|
+
# A list of SavedQueries that match the specified filter in the request.
|
280
279
|
# @!attribute [rw] next_page_token
|
281
280
|
# @return [::String]
|
282
281
|
# The standard List next-page token.
|
@@ -188,7 +188,7 @@ module Google
|
|
188
188
|
# Required. Parameters that configure explaining of the Model's predictions.
|
189
189
|
# @!attribute [rw] metadata
|
190
190
|
# @return [::Google::Cloud::AIPlatform::V1::ExplanationMetadata]
|
191
|
-
#
|
191
|
+
# Optional. Metadata describing the Model's input and output for explanation.
|
192
192
|
class ExplanationSpec
|
193
193
|
include ::Google::Protobuf::MessageExts
|
194
194
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -231,7 +231,7 @@ module Google
|
|
231
231
|
# explaining.
|
232
232
|
#
|
233
233
|
# If not populated, returns attributions for {::Google::Cloud::AIPlatform::V1::ExplanationParameters#top_k top_k} indices of outputs.
|
234
|
-
# If neither top_k nor
|
234
|
+
# If neither top_k nor output_indices is populated, returns the argmax
|
235
235
|
# index of the outputs.
|
236
236
|
#
|
237
237
|
# Only applicable to Models that predict multiple outputs (e,g, multi-class
|
@@ -79,6 +79,13 @@ module Google
|
|
79
79
|
# timestamp, yet that does not mean their results are not already reflected
|
80
80
|
# in the Index. Result of any successfully completed Operation on the Index
|
81
81
|
# is reflected in it.
|
82
|
+
# @!attribute [r] index_stats
|
83
|
+
# @return [::Google::Cloud::AIPlatform::V1::IndexStats]
|
84
|
+
# Output only. Stats of the index resource.
|
85
|
+
# @!attribute [rw] index_update_method
|
86
|
+
# @return [::Google::Cloud::AIPlatform::V1::Index::IndexUpdateMethod]
|
87
|
+
# Immutable. The update method to use with this Index. If not set, BATCH_UPDATE will be
|
88
|
+
# used by default.
|
82
89
|
class Index
|
83
90
|
include ::Google::Protobuf::MessageExts
|
84
91
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -91,6 +98,87 @@ module Google
|
|
91
98
|
include ::Google::Protobuf::MessageExts
|
92
99
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
93
100
|
end
|
101
|
+
|
102
|
+
# The update method of an Index.
|
103
|
+
module IndexUpdateMethod
|
104
|
+
# Should not be used.
|
105
|
+
INDEX_UPDATE_METHOD_UNSPECIFIED = 0
|
106
|
+
|
107
|
+
# BatchUpdate: user can call UpdateIndex with files on Cloud Storage of
|
108
|
+
# datapoints to update.
|
109
|
+
BATCH_UPDATE = 1
|
110
|
+
|
111
|
+
# StreamUpdate: user can call UpsertDatapoints/DeleteDatapoints to update
|
112
|
+
# the Index and the updates will be applied in corresponding
|
113
|
+
# DeployedIndexes in nearly real-time.
|
114
|
+
STREAM_UPDATE = 2
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# A datapoint of Index.
|
119
|
+
# @!attribute [rw] datapoint_id
|
120
|
+
# @return [::String]
|
121
|
+
# Required. Unique identifier of the datapoint.
|
122
|
+
# @!attribute [rw] feature_vector
|
123
|
+
# @return [::Array<::Float>]
|
124
|
+
# Required. Feature embedding vector. An array of numbers with the length of
|
125
|
+
# [NearestNeighborSearchConfig.dimensions].
|
126
|
+
# @!attribute [rw] restricts
|
127
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::IndexDatapoint::Restriction>]
|
128
|
+
# Optional. List of Restrict of the datapoint, used to perform "restricted searches"
|
129
|
+
# where boolean rule are used to filter the subset of the database eligible
|
130
|
+
# for matching.
|
131
|
+
# See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
|
132
|
+
# @!attribute [rw] crowding_tag
|
133
|
+
# @return [::Google::Cloud::AIPlatform::V1::IndexDatapoint::CrowdingTag]
|
134
|
+
# Optional. CrowdingTag of the datapoint, the number of neighbors to return in each
|
135
|
+
# crowding can be configured during query.
|
136
|
+
class IndexDatapoint
|
137
|
+
include ::Google::Protobuf::MessageExts
|
138
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
139
|
+
|
140
|
+
# Restriction of a datapoint which describe its attributes(tokens) from each
|
141
|
+
# of several attribute categories(namespaces).
|
142
|
+
# @!attribute [rw] namespace
|
143
|
+
# @return [::String]
|
144
|
+
# The namespace of this restriction. eg: color.
|
145
|
+
# @!attribute [rw] allow_list
|
146
|
+
# @return [::Array<::String>]
|
147
|
+
# The attributes to allow in this namespace. eg: 'red'
|
148
|
+
# @!attribute [rw] deny_list
|
149
|
+
# @return [::Array<::String>]
|
150
|
+
# The attributes to deny in this namespace. eg: 'blue'
|
151
|
+
class Restriction
|
152
|
+
include ::Google::Protobuf::MessageExts
|
153
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
154
|
+
end
|
155
|
+
|
156
|
+
# Crowding tag is a constraint on a neighbor list produced by nearest
|
157
|
+
# neighbor search requiring that no more than some value k' of the k
|
158
|
+
# neighbors returned have the same value of crowding_attribute.
|
159
|
+
# @!attribute [rw] crowding_attribute
|
160
|
+
# @return [::String]
|
161
|
+
# The attribute value used for crowding. The maximum number of neighbors
|
162
|
+
# to return per crowding attribute value
|
163
|
+
# (per_crowding_attribute_num_neighbors) is configured per-query. This
|
164
|
+
# field is ignored if per_crowding_attribute_num_neighbors is larger than
|
165
|
+
# the total number of neighbors to return for a given query.
|
166
|
+
class CrowdingTag
|
167
|
+
include ::Google::Protobuf::MessageExts
|
168
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Stats of the Index.
|
173
|
+
# @!attribute [r] vectors_count
|
174
|
+
# @return [::Integer]
|
175
|
+
# Output only. The number of vectors in the Index.
|
176
|
+
# @!attribute [r] shards_count
|
177
|
+
# @return [::Integer]
|
178
|
+
# Output only. The number of shards in the Index.
|
179
|
+
class IndexStats
|
180
|
+
include ::Google::Protobuf::MessageExts
|
181
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
94
182
|
end
|
95
183
|
end
|
96
184
|
end
|
@@ -131,6 +131,46 @@ module Google
|
|
131
131
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
132
|
end
|
133
133
|
|
134
|
+
# Request message for {::Google::Cloud::AIPlatform::V1::IndexService::Client#upsert_datapoints IndexService.UpsertDatapoints}
|
135
|
+
# @!attribute [rw] index
|
136
|
+
# @return [::String]
|
137
|
+
# Required. The name of the Index resource to be updated.
|
138
|
+
# Format:
|
139
|
+
# `projects/{project}/locations/{location}/indexes/{index}`
|
140
|
+
# @!attribute [rw] datapoints
|
141
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::IndexDatapoint>]
|
142
|
+
# A list of datapoints to be created/updated.
|
143
|
+
class UpsertDatapointsRequest
|
144
|
+
include ::Google::Protobuf::MessageExts
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
146
|
+
end
|
147
|
+
|
148
|
+
# Response message for {::Google::Cloud::AIPlatform::V1::IndexService::Client#upsert_datapoints IndexService.UpsertDatapoints}
|
149
|
+
class UpsertDatapointsResponse
|
150
|
+
include ::Google::Protobuf::MessageExts
|
151
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
152
|
+
end
|
153
|
+
|
154
|
+
# Request message for {::Google::Cloud::AIPlatform::V1::IndexService::Client#remove_datapoints IndexService.RemoveDatapoints}
|
155
|
+
# @!attribute [rw] index
|
156
|
+
# @return [::String]
|
157
|
+
# Required. The name of the Index resource to be updated.
|
158
|
+
# Format:
|
159
|
+
# `projects/{project}/locations/{location}/indexes/{index}`
|
160
|
+
# @!attribute [rw] datapoint_ids
|
161
|
+
# @return [::Array<::String>]
|
162
|
+
# A list of datapoint ids to be deleted.
|
163
|
+
class RemoveDatapointsRequest
|
164
|
+
include ::Google::Protobuf::MessageExts
|
165
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
166
|
+
end
|
167
|
+
|
168
|
+
# Response message for {::Google::Cloud::AIPlatform::V1::IndexService::Client#remove_datapoints IndexService.RemoveDatapoints}
|
169
|
+
class RemoveDatapointsResponse
|
170
|
+
include ::Google::Protobuf::MessageExts
|
171
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
172
|
+
end
|
173
|
+
|
134
174
|
# Runtime operation metadata with regard to Matching Engine Index.
|
135
175
|
# @!attribute [rw] content_validation_stats
|
136
176
|
# @return [::Array<::Google::Cloud::AIPlatform::V1::NearestNeighborSearchOperationMetadata::ContentValidationStats>]
|
@@ -21,7 +21,8 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module AIPlatform
|
23
23
|
module V1
|
24
|
-
#
|
24
|
+
# The objective configuration for model monitoring, including the information
|
25
|
+
# needed to detect anomalies for one particular model.
|
25
26
|
# @!attribute [rw] training_dataset
|
26
27
|
# @return [::Google::Cloud::AIPlatform::V1::ModelMonitoringObjectiveConfig::TrainingDataset]
|
27
28
|
# Training dataset for models. This field has to be set only if
|
@@ -202,7 +203,6 @@ module Google
|
|
202
203
|
end
|
203
204
|
end
|
204
205
|
|
205
|
-
# Next ID: 3
|
206
206
|
# @!attribute [rw] email_alert_config
|
207
207
|
# @return [::Google::Cloud::AIPlatform::V1::ModelMonitoringAlertConfig::EmailAlertConfig]
|
208
208
|
# Email alert config.
|
@@ -228,7 +228,6 @@ module Google
|
|
228
228
|
end
|
229
229
|
|
230
230
|
# The config for feature monitoring threshold.
|
231
|
-
# Next ID: 3
|
232
231
|
# @!attribute [rw] value
|
233
232
|
# @return [::Float]
|
234
233
|
# Specify a threshold value that can trigger the alert.
|
@@ -246,7 +245,6 @@ module Google
|
|
246
245
|
|
247
246
|
# Sampling Strategy for logging, can be for both training and prediction
|
248
247
|
# dataset.
|
249
|
-
# Next ID: 2
|
250
248
|
# @!attribute [rw] random_sample_config
|
251
249
|
# @return [::Google::Cloud::AIPlatform::V1::SamplingStrategy::RandomSampleConfig]
|
252
250
|
# Random sample config. Will support more sampling strategies later.
|
@@ -263,7 +263,7 @@ module Google
|
|
263
263
|
# @return [::Array<::String>]
|
264
264
|
# Required. The set of version aliases to merge.
|
265
265
|
# The alias should be at most 128 characters, and match
|
266
|
-
# `[a-z][a-
|
266
|
+
# `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
|
267
267
|
# Add the `-` prefix to an alias means removing that alias from the version.
|
268
268
|
# `-` is NOT counted in the 128 characters. Example: `-golden` means removing
|
269
269
|
# the `golden` alias from the version.
|
@@ -47,6 +47,7 @@ module Google
|
|
47
47
|
# @return [::String]
|
48
48
|
# Required. Problem type of the SavedQuery.
|
49
49
|
# Allowed values:
|
50
|
+
#
|
50
51
|
# * IMAGE_CLASSIFICATION_SINGLE_LABEL
|
51
52
|
# * IMAGE_CLASSIFICATION_MULTI_LABEL
|
52
53
|
# * IMAGE_BOUNDING_POLY
|
@@ -62,7 +63,7 @@ module Google
|
|
62
63
|
# Output only. Number of AnnotationSpecs in the context of the SavedQuery.
|
63
64
|
# @!attribute [rw] etag
|
64
65
|
# @return [::String]
|
65
|
-
# Used to perform consistent read-modify-write
|
66
|
+
# Used to perform a consistent read-modify-write update. If not set, a blind
|
66
67
|
# "overwrite" update happens.
|
67
68
|
# @!attribute [r] support_automl_training
|
68
69
|
# @return [::Boolean]
|
@@ -106,7 +106,7 @@ module Google
|
|
106
106
|
# Format: `projects/{project}/locations/{location}/studies/{study}`
|
107
107
|
# @!attribute [rw] suggestion_count
|
108
108
|
# @return [::Integer]
|
109
|
-
# Required. The number of suggestions requested.
|
109
|
+
# Required. The number of suggestions requested. It must be positive.
|
110
110
|
# @!attribute [rw] client_id
|
111
111
|
# @return [::String]
|
112
112
|
# Required. The identifier of the client that is requesting the suggestion.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-ai_platform-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|