google-cloud-ai_platform-v1 0.15.0 → 0.16.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/README.md +1 -1
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +157 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/paths.rb +21 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +103 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +9 -1
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +34 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +13 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_services_pb.rb +6 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/annotation_spec.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/data_labeling_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +7 -2
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +129 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +47 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/hyperparameter_tuning_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/index.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/job_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +9 -0
- data/proto_docs/google/cloud/aiplatform/v1/operation.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +3 -3
- data/proto_docs/google/cloud/aiplatform/v1/specialist_pool.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard.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: 804093fd89318fcc105ad9179cf3543f501fd7f084ab3b3e5ea3547925670c6f
|
4
|
+
data.tar.gz: b23fe659b2c2f041c25108eaba4b4c5208829d5934a4deaf49cb3fc4e1583606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5bcf56c96f0d879dddff0e2de4cd6525a100d54d9e752933bf114ebd706ea23ce7d788a1a4529234495cab6b6796391ccb16d4aee1d34bb69d1e789b7090e63
|
7
|
+
data.tar.gz: e3f80e129635eda2f455c1a405ae255573edf069ed84cf96109cb5b5cc3b47b2a5ba3daa680e5289789d73015a4f2ffd4d5ed93a4bef5ddf8d998201f8147b49
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -979,6 +979,156 @@ module Google
|
|
979
979
|
raise ::Google::Cloud::Error.from_error(e)
|
980
980
|
end
|
981
981
|
|
982
|
+
##
|
983
|
+
# Searches DataItems in a Dataset.
|
984
|
+
#
|
985
|
+
# @overload search_data_items(request, options = nil)
|
986
|
+
# Pass arguments to `search_data_items` via a request object, either of type
|
987
|
+
# {::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest} or an equivalent Hash.
|
988
|
+
#
|
989
|
+
# @param request [::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest, ::Hash]
|
990
|
+
# A request object representing the call parameters. Required. To specify no
|
991
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
992
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
993
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
994
|
+
#
|
995
|
+
# @overload search_data_items(order_by_data_item: nil, order_by_annotation: nil, dataset: nil, saved_query: nil, data_labeling_job: nil, data_item_filter: nil, annotations_filter: nil, annotation_filters: nil, field_mask: nil, annotations_limit: nil, page_size: nil, order_by: nil, page_token: nil)
|
996
|
+
# Pass arguments to `search_data_items` via keyword arguments. Note that at
|
997
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
998
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
999
|
+
#
|
1000
|
+
# @param order_by_data_item [::String]
|
1001
|
+
# A comma-separated list of data item fields to order by, sorted in
|
1002
|
+
# ascending order. Use "desc" after a field name for descending.
|
1003
|
+
# @param order_by_annotation [::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest::OrderByAnnotation, ::Hash]
|
1004
|
+
# Expression that allows ranking results based on annotation's property.
|
1005
|
+
# @param dataset [::String]
|
1006
|
+
# Required. The resource name of the Dataset from which to search DataItems.
|
1007
|
+
# Format:
|
1008
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
1009
|
+
# @param saved_query [::String]
|
1010
|
+
# The resource name of a SavedQuery(annotation set in UI).
|
1011
|
+
# Format:
|
1012
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
|
1013
|
+
# All of the search will be done in the context of this SavedQuery.
|
1014
|
+
# @param data_labeling_job [::String]
|
1015
|
+
# The resource name of a DataLabelingJob.
|
1016
|
+
# Format:
|
1017
|
+
# `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
|
1018
|
+
# If this field is set, all of the search will be done in the context of
|
1019
|
+
# this DataLabelingJob.
|
1020
|
+
# @param data_item_filter [::String]
|
1021
|
+
# An expression for filtering the DataItem that will be returned.
|
1022
|
+
#
|
1023
|
+
# * `data_item_id` - for = or !=.
|
1024
|
+
# * `labeled` - for = or !=.
|
1025
|
+
# * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
|
1026
|
+
# have at least one annotation with annotation_spec_id =
|
1027
|
+
# `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
|
1028
|
+
#
|
1029
|
+
# For example:
|
1030
|
+
#
|
1031
|
+
# * `data_item=1`
|
1032
|
+
# * `has_annotation(5)`
|
1033
|
+
# @param annotations_filter [::String]
|
1034
|
+
# An expression for filtering the Annotations that will be returned per
|
1035
|
+
# DataItem.
|
1036
|
+
# * `annotation_spec_id` - for = or !=.
|
1037
|
+
# @param annotation_filters [::Array<::String>]
|
1038
|
+
# An expression that specifies what Annotations will be returned per
|
1039
|
+
# DataItem. Annotations satisfied either of the conditions will be returned.
|
1040
|
+
# * `annotation_spec_id` - for = or !=.
|
1041
|
+
# Must specify `saved_query_id=` - saved query id that annotations should
|
1042
|
+
# belong to.
|
1043
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1044
|
+
# Mask specifying which fields of {::Google::Cloud::AIPlatform::V1::DataItemView DataItemView} to read.
|
1045
|
+
# @param annotations_limit [::Integer]
|
1046
|
+
# If set, only up to this many of Annotations will be returned per
|
1047
|
+
# DataItemView. The maximum value is 1000. If not set, the maximum value will
|
1048
|
+
# be used.
|
1049
|
+
# @param page_size [::Integer]
|
1050
|
+
# Requested page size. Server may return fewer results than requested.
|
1051
|
+
# Default and maximum page size is 100.
|
1052
|
+
# @param order_by [::String]
|
1053
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
1054
|
+
# Use "desc" after a field name for descending.
|
1055
|
+
# @param page_token [::String]
|
1056
|
+
# A token identifying a page of results for the server to return
|
1057
|
+
# Typically obtained via
|
1058
|
+
# {::Google::Cloud::AIPlatform::V1::SearchDataItemsResponse#next_page_token SearchDataItemsResponse.next_page_token} of the previous
|
1059
|
+
# {::Google::Cloud::AIPlatform::V1::DatasetService::Client#search_data_items DatasetService.SearchDataItems} call.
|
1060
|
+
#
|
1061
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1062
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataItemView>]
|
1063
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1064
|
+
#
|
1065
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataItemView>]
|
1066
|
+
#
|
1067
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1068
|
+
#
|
1069
|
+
# @example Basic example
|
1070
|
+
# require "google/cloud/ai_platform/v1"
|
1071
|
+
#
|
1072
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1073
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
1074
|
+
#
|
1075
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1076
|
+
# request = Google::Cloud::AIPlatform::V1::SearchDataItemsRequest.new
|
1077
|
+
#
|
1078
|
+
# # Call the search_data_items method.
|
1079
|
+
# result = client.search_data_items request
|
1080
|
+
#
|
1081
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1082
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1083
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1084
|
+
# # methods are also available for managing paging directly.
|
1085
|
+
# result.each do |response|
|
1086
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::DataItemView.
|
1087
|
+
# p response
|
1088
|
+
# end
|
1089
|
+
#
|
1090
|
+
def search_data_items request, options = nil
|
1091
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1092
|
+
|
1093
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest
|
1094
|
+
|
1095
|
+
# Converts hash and nil to an options object
|
1096
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1097
|
+
|
1098
|
+
# Customize the options with defaults
|
1099
|
+
metadata = @config.rpcs.search_data_items.metadata.to_h
|
1100
|
+
|
1101
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1102
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1103
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1104
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1105
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1106
|
+
|
1107
|
+
header_params = {}
|
1108
|
+
if request.dataset
|
1109
|
+
header_params["dataset"] = request.dataset
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1113
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1114
|
+
|
1115
|
+
options.apply_defaults timeout: @config.rpcs.search_data_items.timeout,
|
1116
|
+
metadata: metadata,
|
1117
|
+
retry_policy: @config.rpcs.search_data_items.retry_policy
|
1118
|
+
|
1119
|
+
options.apply_defaults timeout: @config.timeout,
|
1120
|
+
metadata: @config.metadata,
|
1121
|
+
retry_policy: @config.retry_policy
|
1122
|
+
|
1123
|
+
@dataset_service_stub.call_rpc :search_data_items, request, options: options do |response, operation|
|
1124
|
+
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :search_data_items, request, response, operation, options
|
1125
|
+
yield response, operation if block_given?
|
1126
|
+
return response
|
1127
|
+
end
|
1128
|
+
rescue ::GRPC::BadStatus => e
|
1129
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1130
|
+
end
|
1131
|
+
|
982
1132
|
##
|
983
1133
|
# Lists SavedQueries in a Dataset.
|
984
1134
|
#
|
@@ -1454,6 +1604,11 @@ module Google
|
|
1454
1604
|
#
|
1455
1605
|
attr_reader :list_data_items
|
1456
1606
|
##
|
1607
|
+
# RPC-specific configuration for `search_data_items`
|
1608
|
+
# @return [::Gapic::Config::Method]
|
1609
|
+
#
|
1610
|
+
attr_reader :search_data_items
|
1611
|
+
##
|
1457
1612
|
# RPC-specific configuration for `list_saved_queries`
|
1458
1613
|
# @return [::Gapic::Config::Method]
|
1459
1614
|
#
|
@@ -1487,6 +1642,8 @@ module Google
|
|
1487
1642
|
@export_data = ::Gapic::Config::Method.new export_data_config
|
1488
1643
|
list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
|
1489
1644
|
@list_data_items = ::Gapic::Config::Method.new list_data_items_config
|
1645
|
+
search_data_items_config = parent_rpcs.search_data_items if parent_rpcs.respond_to? :search_data_items
|
1646
|
+
@search_data_items = ::Gapic::Config::Method.new search_data_items_config
|
1490
1647
|
list_saved_queries_config = parent_rpcs.list_saved_queries if parent_rpcs.respond_to? :list_saved_queries
|
1491
1648
|
@list_saved_queries = ::Gapic::Config::Method.new list_saved_queries_config
|
1492
1649
|
get_annotation_spec_config = parent_rpcs.get_annotation_spec if parent_rpcs.respond_to? :get_annotation_spec
|
@@ -102,6 +102,27 @@ module Google
|
|
102
102
|
"projects/#{project}/locations/#{location}"
|
103
103
|
end
|
104
104
|
|
105
|
+
##
|
106
|
+
# Create a fully-qualified SavedQuery resource string.
|
107
|
+
#
|
108
|
+
# The resource will be in the following format:
|
109
|
+
#
|
110
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
|
111
|
+
#
|
112
|
+
# @param project [String]
|
113
|
+
# @param location [String]
|
114
|
+
# @param dataset [String]
|
115
|
+
# @param saved_query [String]
|
116
|
+
#
|
117
|
+
# @return [::String]
|
118
|
+
def saved_query_path project:, location:, dataset:, saved_query:
|
119
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
120
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
121
|
+
raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
|
122
|
+
|
123
|
+
"projects/#{project}/locations/#{location}/datasets/#{dataset}/savedQueries/#{saved_query}"
|
124
|
+
end
|
125
|
+
|
105
126
|
extend self
|
106
127
|
end
|
107
128
|
end
|
@@ -371,6 +371,102 @@ module Google
|
|
371
371
|
raise ::Google::Cloud::Error.from_error(e)
|
372
372
|
end
|
373
373
|
|
374
|
+
##
|
375
|
+
# Writes Feature values of one or more entities of an EntityType.
|
376
|
+
#
|
377
|
+
# The Feature values are merged into existing entities if any. The Feature
|
378
|
+
# values to be written must have timestamp within the online storage
|
379
|
+
# retention.
|
380
|
+
#
|
381
|
+
# @overload write_feature_values(request, options = nil)
|
382
|
+
# Pass arguments to `write_feature_values` via a request object, either of type
|
383
|
+
# {::Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest} or an equivalent Hash.
|
384
|
+
#
|
385
|
+
# @param request [::Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest, ::Hash]
|
386
|
+
# A request object representing the call parameters. Required. To specify no
|
387
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
388
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
389
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
390
|
+
#
|
391
|
+
# @overload write_feature_values(entity_type: nil, payloads: nil)
|
392
|
+
# Pass arguments to `write_feature_values` via keyword arguments. Note that at
|
393
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
394
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
395
|
+
#
|
396
|
+
# @param entity_type [::String]
|
397
|
+
# Required. The resource name of the EntityType for the entities being written.
|
398
|
+
# Value format: `projects/{project}/locations/{location}/featurestores/
|
399
|
+
# \\{featurestore}/entityTypes/\\{entityType}`. For example,
|
400
|
+
# for a machine learning model predicting user clicks on a website, an
|
401
|
+
# EntityType ID could be `user`.
|
402
|
+
# @param payloads [::Array<::Google::Cloud::AIPlatform::V1::WriteFeatureValuesPayload, ::Hash>]
|
403
|
+
# Required. The entities to be written. Up to 100,000 feature values can be written
|
404
|
+
# across all `payloads`.
|
405
|
+
#
|
406
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
407
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::WriteFeatureValuesResponse]
|
408
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
409
|
+
#
|
410
|
+
# @return [::Google::Cloud::AIPlatform::V1::WriteFeatureValuesResponse]
|
411
|
+
#
|
412
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
413
|
+
#
|
414
|
+
# @example Basic example
|
415
|
+
# require "google/cloud/ai_platform/v1"
|
416
|
+
#
|
417
|
+
# # Create a client object. The client can be reused for multiple calls.
|
418
|
+
# client = Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client.new
|
419
|
+
#
|
420
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
421
|
+
# request = Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest.new
|
422
|
+
#
|
423
|
+
# # Call the write_feature_values method.
|
424
|
+
# result = client.write_feature_values request
|
425
|
+
#
|
426
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::WriteFeatureValuesResponse.
|
427
|
+
# p result
|
428
|
+
#
|
429
|
+
def write_feature_values request, options = nil
|
430
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
431
|
+
|
432
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest
|
433
|
+
|
434
|
+
# Converts hash and nil to an options object
|
435
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
436
|
+
|
437
|
+
# Customize the options with defaults
|
438
|
+
metadata = @config.rpcs.write_feature_values.metadata.to_h
|
439
|
+
|
440
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
441
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
442
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
443
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
444
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
445
|
+
|
446
|
+
header_params = {}
|
447
|
+
if request.entity_type
|
448
|
+
header_params["entity_type"] = request.entity_type
|
449
|
+
end
|
450
|
+
|
451
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
452
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
453
|
+
|
454
|
+
options.apply_defaults timeout: @config.rpcs.write_feature_values.timeout,
|
455
|
+
metadata: metadata,
|
456
|
+
retry_policy: @config.rpcs.write_feature_values.retry_policy
|
457
|
+
|
458
|
+
options.apply_defaults timeout: @config.timeout,
|
459
|
+
metadata: @config.metadata,
|
460
|
+
retry_policy: @config.retry_policy
|
461
|
+
|
462
|
+
@featurestore_online_serving_service_stub.call_rpc :write_feature_values, request, options: options do |response, operation|
|
463
|
+
yield response, operation if block_given?
|
464
|
+
return response
|
465
|
+
end
|
466
|
+
rescue ::GRPC::BadStatus => e
|
467
|
+
raise ::Google::Cloud::Error.from_error(e)
|
468
|
+
end
|
469
|
+
|
374
470
|
##
|
375
471
|
# Configuration class for the FeaturestoreOnlineServingService API.
|
376
472
|
#
|
@@ -516,6 +612,11 @@ module Google
|
|
516
612
|
# @return [::Gapic::Config::Method]
|
517
613
|
#
|
518
614
|
attr_reader :streaming_read_feature_values
|
615
|
+
##
|
616
|
+
# RPC-specific configuration for `write_feature_values`
|
617
|
+
# @return [::Gapic::Config::Method]
|
618
|
+
#
|
619
|
+
attr_reader :write_feature_values
|
519
620
|
|
520
621
|
# @private
|
521
622
|
def initialize parent_rpcs = nil
|
@@ -523,6 +624,8 @@ module Google
|
|
523
624
|
@read_feature_values = ::Gapic::Config::Method.new read_feature_values_config
|
524
625
|
streaming_read_feature_values_config = parent_rpcs.streaming_read_feature_values if parent_rpcs.respond_to? :streaming_read_feature_values
|
525
626
|
@streaming_read_feature_values = ::Gapic::Config::Method.new streaming_read_feature_values_config
|
627
|
+
write_feature_values_config = parent_rpcs.write_feature_values if parent_rpcs.respond_to? :write_feature_values
|
628
|
+
@write_feature_values = ::Gapic::Config::Method.new write_feature_values_config
|
526
629
|
|
527
630
|
yield self if block_given?
|
528
631
|
end
|
@@ -198,7 +198,7 @@ module Google
|
|
198
198
|
# @param options [::Gapic::CallOptions, ::Hash]
|
199
199
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
200
200
|
#
|
201
|
-
# @overload upload_model(parent: nil, parent_model: nil, model_id: nil, model: nil)
|
201
|
+
# @overload upload_model(parent: nil, parent_model: nil, model_id: nil, model: nil, service_account: nil)
|
202
202
|
# Pass arguments to `upload_model` via keyword arguments. Note that at
|
203
203
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
204
204
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -217,6 +217,14 @@ module Google
|
|
217
217
|
# `[a-z0-9_-]`. The first character cannot be a number or hyphen.
|
218
218
|
# @param model [::Google::Cloud::AIPlatform::V1::Model, ::Hash]
|
219
219
|
# Required. The Model to create.
|
220
|
+
# @param service_account [::String]
|
221
|
+
# Optional. The user-provided custom service account to use to do the model
|
222
|
+
# upload. If empty, [Vertex AI Service
|
223
|
+
# Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
|
224
|
+
# will be used. Users uploading the Model must have the
|
225
|
+
# `iam.serviceAccounts.actAs` permission on this service account. Also, this
|
226
|
+
# account must belong to the project specified in the `parent` field and have
|
227
|
+
# all necessary read permissions.
|
220
228
|
#
|
221
229
|
# @yield [response, operation] Access the result along with the RPC operation
|
222
230
|
# @yieldparam response [::Gapic::Operation]
|
@@ -23,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
23
|
optional :etag, :string, 6
|
24
24
|
map :labels, :string, :string, 7
|
25
25
|
optional :encryption_spec, :message, 11, "google.cloud.aiplatform.v1.EncryptionSpec"
|
26
|
+
optional :metadata_artifact, :string, 17
|
26
27
|
end
|
27
28
|
add_message "google.cloud.aiplatform.v1.ImportDataConfig" do
|
28
29
|
map :data_item_labels, :string, :string, 2
|
@@ -80,6 +80,36 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
80
80
|
repeated :data_items, :message, 1, "google.cloud.aiplatform.v1.DataItem"
|
81
81
|
optional :next_page_token, :string, 2
|
82
82
|
end
|
83
|
+
add_message "google.cloud.aiplatform.v1.SearchDataItemsRequest" do
|
84
|
+
optional :dataset, :string, 1
|
85
|
+
optional :saved_query, :string, 2
|
86
|
+
optional :data_labeling_job, :string, 3
|
87
|
+
optional :data_item_filter, :string, 4
|
88
|
+
optional :annotations_filter, :string, 5
|
89
|
+
repeated :annotation_filters, :string, 11
|
90
|
+
optional :field_mask, :message, 6, "google.protobuf.FieldMask"
|
91
|
+
optional :annotations_limit, :int32, 7
|
92
|
+
optional :page_size, :int32, 8
|
93
|
+
optional :order_by, :string, 9
|
94
|
+
optional :page_token, :string, 10
|
95
|
+
oneof :order do
|
96
|
+
optional :order_by_data_item, :string, 12
|
97
|
+
optional :order_by_annotation, :message, 13, "google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation"
|
98
|
+
end
|
99
|
+
end
|
100
|
+
add_message "google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation" do
|
101
|
+
optional :saved_query, :string, 1
|
102
|
+
optional :order_by, :string, 2
|
103
|
+
end
|
104
|
+
add_message "google.cloud.aiplatform.v1.SearchDataItemsResponse" do
|
105
|
+
repeated :data_item_views, :message, 1, "google.cloud.aiplatform.v1.DataItemView"
|
106
|
+
optional :next_page_token, :string, 2
|
107
|
+
end
|
108
|
+
add_message "google.cloud.aiplatform.v1.DataItemView" do
|
109
|
+
optional :data_item, :message, 1, "google.cloud.aiplatform.v1.DataItem"
|
110
|
+
repeated :annotations, :message, 2, "google.cloud.aiplatform.v1.Annotation"
|
111
|
+
optional :has_truncated_annotations, :bool, 3
|
112
|
+
end
|
83
113
|
add_message "google.cloud.aiplatform.v1.ListSavedQueriesRequest" do
|
84
114
|
optional :parent, :string, 1
|
85
115
|
optional :filter, :string, 2
|
@@ -130,6 +160,10 @@ module Google
|
|
130
160
|
ExportDataOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportDataOperationMetadata").msgclass
|
131
161
|
ListDataItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListDataItemsRequest").msgclass
|
132
162
|
ListDataItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListDataItemsResponse").msgclass
|
163
|
+
SearchDataItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.SearchDataItemsRequest").msgclass
|
164
|
+
SearchDataItemsRequest::OrderByAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation").msgclass
|
165
|
+
SearchDataItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.SearchDataItemsResponse").msgclass
|
166
|
+
DataItemView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DataItemView").msgclass
|
133
167
|
ListSavedQueriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListSavedQueriesRequest").msgclass
|
134
168
|
ListSavedQueriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListSavedQueriesResponse").msgclass
|
135
169
|
GetAnnotationSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetAnnotationSpecRequest").msgclass
|
@@ -50,6 +50,8 @@ module Google
|
|
50
50
|
rpc :ExportData, ::Google::Cloud::AIPlatform::V1::ExportDataRequest, ::Google::Longrunning::Operation
|
51
51
|
# Lists DataItems in a Dataset.
|
52
52
|
rpc :ListDataItems, ::Google::Cloud::AIPlatform::V1::ListDataItemsRequest, ::Google::Cloud::AIPlatform::V1::ListDataItemsResponse
|
53
|
+
# Searches DataItems in a Dataset.
|
54
|
+
rpc :SearchDataItems, ::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest, ::Google::Cloud::AIPlatform::V1::SearchDataItemsResponse
|
53
55
|
# Lists SavedQueries in a Dataset.
|
54
56
|
rpc :ListSavedQueries, ::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest, ::Google::Cloud::AIPlatform::V1::ListSavedQueriesResponse
|
55
57
|
# Gets an AnnotationSpec.
|
@@ -13,6 +13,16 @@ require 'google/protobuf/timestamp_pb'
|
|
13
13
|
|
14
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
15
|
add_file("google/cloud/aiplatform/v1/featurestore_online_service.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.cloud.aiplatform.v1.WriteFeatureValuesRequest" do
|
17
|
+
optional :entity_type, :string, 1
|
18
|
+
repeated :payloads, :message, 2, "google.cloud.aiplatform.v1.WriteFeatureValuesPayload"
|
19
|
+
end
|
20
|
+
add_message "google.cloud.aiplatform.v1.WriteFeatureValuesPayload" do
|
21
|
+
optional :entity_id, :string, 1
|
22
|
+
map :feature_values, :string, :message, 2, "google.cloud.aiplatform.v1.FeatureValue"
|
23
|
+
end
|
24
|
+
add_message "google.cloud.aiplatform.v1.WriteFeatureValuesResponse" do
|
25
|
+
end
|
16
26
|
add_message "google.cloud.aiplatform.v1.ReadFeatureValuesRequest" do
|
17
27
|
optional :entity_type, :string, 1
|
18
28
|
optional :entity_id, :string, 2
|
@@ -71,6 +81,9 @@ module Google
|
|
71
81
|
module Cloud
|
72
82
|
module AIPlatform
|
73
83
|
module V1
|
84
|
+
WriteFeatureValuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.WriteFeatureValuesRequest").msgclass
|
85
|
+
WriteFeatureValuesPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.WriteFeatureValuesPayload").msgclass
|
86
|
+
WriteFeatureValuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.WriteFeatureValuesResponse").msgclass
|
74
87
|
ReadFeatureValuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReadFeatureValuesRequest").msgclass
|
75
88
|
ReadFeatureValuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReadFeatureValuesResponse").msgclass
|
76
89
|
ReadFeatureValuesResponse::FeatureDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor").msgclass
|
@@ -41,6 +41,12 @@ module Google
|
|
41
41
|
# for different entities may be broken
|
42
42
|
# up across multiple responses.
|
43
43
|
rpc :StreamingReadFeatureValues, ::Google::Cloud::AIPlatform::V1::StreamingReadFeatureValuesRequest, stream(::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse)
|
44
|
+
# Writes Feature values of one or more entities of an EntityType.
|
45
|
+
#
|
46
|
+
# The Feature values are merged into existing entities if any. The Feature
|
47
|
+
# values to be written must have timestamp within the online storage
|
48
|
+
# retention.
|
49
|
+
rpc :WriteFeatureValues, ::Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest, ::Google::Cloud::AIPlatform::V1::WriteFeatureValuesResponse
|
44
50
|
end
|
45
51
|
|
46
52
|
Stub = Service.rpc_stub_class
|
@@ -209,6 +209,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
209
209
|
optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
|
210
210
|
optional :imported_entity_count, :int64, 2
|
211
211
|
optional :imported_feature_value_count, :int64, 3
|
212
|
+
repeated :source_uris, :string, 4
|
212
213
|
optional :invalid_row_count, :int64, 6
|
213
214
|
optional :timestamp_outside_retention_rows_count, :int64, 7
|
214
215
|
end
|
@@ -22,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
22
|
optional :parent_model, :string, 4
|
23
23
|
optional :model_id, :string, 5
|
24
24
|
optional :model, :message, 2, "google.cloud.aiplatform.v1.Model"
|
25
|
+
optional :service_account, :string, 6
|
25
26
|
end
|
26
27
|
add_message "google.cloud.aiplatform.v1.UploadModelOperationMetadata" do
|
27
28
|
optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# @!attribute [rw] display_name
|
29
29
|
# @return [::String]
|
30
30
|
# Required. The user-defined name of the AnnotationSpec.
|
31
|
-
# The name can be up to 128 characters long and can
|
31
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
32
32
|
# characters.
|
33
33
|
# @!attribute [r] create_time
|
34
34
|
# @return [::Google::Protobuf::Timestamp]
|
@@ -84,7 +84,7 @@ module Google
|
|
84
84
|
# The service account that the DeployedModel's container runs as. If not
|
85
85
|
# specified, a system generated one will be used, which
|
86
86
|
# has minimal permissions and the custom container, if used, may not have
|
87
|
-
# enough permission to access other
|
87
|
+
# enough permission to access other Google Cloud resources.
|
88
88
|
#
|
89
89
|
# Users deploying the Model must have the `iam.serviceAccounts.actAs`
|
90
90
|
# permission on this service account.
|
@@ -134,7 +134,7 @@ module Google
|
|
134
134
|
# Output only. Partial failures encountered.
|
135
135
|
# For example, single files that can't be read.
|
136
136
|
# This field never exceeds 20 entries.
|
137
|
-
# Status details fields contain standard
|
137
|
+
# Status details fields contain standard Google Cloud error details.
|
138
138
|
# @!attribute [r] resources_consumed
|
139
139
|
# @return [::Google::Cloud::AIPlatform::V1::ResourcesConsumed]
|
140
140
|
# Output only. Information about resources that had been consumed by this job.
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# @!attribute [rw] display_name
|
32
32
|
# @return [::String]
|
33
33
|
# Required. The display name of the CustomJob.
|
34
|
-
# The name can be up to 128 characters long and can
|
34
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
35
35
|
# characters.
|
36
36
|
# @!attribute [rw] job_spec
|
37
37
|
# @return [::Google::Cloud::AIPlatform::V1::CustomJobSpec]
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# @!attribute [rw] display_name
|
30
30
|
# @return [::String]
|
31
31
|
# Required. The user-defined name of the DataLabelingJob.
|
32
|
-
# The name can be up to 128 characters long and can
|
32
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
33
33
|
# characters.
|
34
34
|
# Display name of a DataLabelingJob.
|
35
35
|
# @!attribute [rw] datasets
|
@@ -28,11 +28,11 @@ module Google
|
|
28
28
|
# @!attribute [rw] display_name
|
29
29
|
# @return [::String]
|
30
30
|
# Required. The user-defined name of the Dataset.
|
31
|
-
# The name can be up to 128 characters long and can
|
31
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
32
32
|
# characters.
|
33
33
|
# @!attribute [rw] description
|
34
34
|
# @return [::String]
|
35
|
-
#
|
35
|
+
# The description of the Dataset.
|
36
36
|
# @!attribute [rw] metadata_schema_uri
|
37
37
|
# @return [::String]
|
38
38
|
# Required. Points to a YAML file stored on Google Cloud Storage describing additional
|
@@ -73,6 +73,11 @@ module Google
|
|
73
73
|
# @return [::Google::Cloud::AIPlatform::V1::EncryptionSpec]
|
74
74
|
# Customer-managed encryption key spec for a Dataset. If set, this Dataset
|
75
75
|
# and all sub-resources of this Dataset will be secured by this key.
|
76
|
+
# @!attribute [r] metadata_artifact
|
77
|
+
# @return [::String]
|
78
|
+
# Output only. The resource name of the Artifact that was created in MetadataStore when
|
79
|
+
# creating the Dataset. The Artifact resource name pattern is
|
80
|
+
# `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`.
|
76
81
|
class Dataset
|
77
82
|
include ::Google::Protobuf::MessageExts
|
78
83
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -245,6 +245,135 @@ module Google
|
|
245
245
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
246
246
|
end
|
247
247
|
|
248
|
+
# Request message for {::Google::Cloud::AIPlatform::V1::DatasetService::Client#search_data_items DatasetService.SearchDataItems}.
|
249
|
+
# @!attribute [rw] order_by_data_item
|
250
|
+
# @return [::String]
|
251
|
+
# A comma-separated list of data item fields to order by, sorted in
|
252
|
+
# ascending order. Use "desc" after a field name for descending.
|
253
|
+
# @!attribute [rw] order_by_annotation
|
254
|
+
# @return [::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest::OrderByAnnotation]
|
255
|
+
# Expression that allows ranking results based on annotation's property.
|
256
|
+
# @!attribute [rw] dataset
|
257
|
+
# @return [::String]
|
258
|
+
# Required. The resource name of the Dataset from which to search DataItems.
|
259
|
+
# Format:
|
260
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
261
|
+
# @!attribute [rw] saved_query
|
262
|
+
# @return [::String]
|
263
|
+
# The resource name of a SavedQuery(annotation set in UI).
|
264
|
+
# Format:
|
265
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
|
266
|
+
# All of the search will be done in the context of this SavedQuery.
|
267
|
+
# @!attribute [rw] data_labeling_job
|
268
|
+
# @return [::String]
|
269
|
+
# The resource name of a DataLabelingJob.
|
270
|
+
# Format:
|
271
|
+
# `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
|
272
|
+
# If this field is set, all of the search will be done in the context of
|
273
|
+
# this DataLabelingJob.
|
274
|
+
# @!attribute [rw] data_item_filter
|
275
|
+
# @return [::String]
|
276
|
+
# An expression for filtering the DataItem that will be returned.
|
277
|
+
#
|
278
|
+
# * `data_item_id` - for = or !=.
|
279
|
+
# * `labeled` - for = or !=.
|
280
|
+
# * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
|
281
|
+
# have at least one annotation with annotation_spec_id =
|
282
|
+
# `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
|
283
|
+
#
|
284
|
+
# For example:
|
285
|
+
#
|
286
|
+
# * `data_item=1`
|
287
|
+
# * `has_annotation(5)`
|
288
|
+
# @!attribute [rw] annotations_filter
|
289
|
+
# @return [::String]
|
290
|
+
# An expression for filtering the Annotations that will be returned per
|
291
|
+
# DataItem.
|
292
|
+
# * `annotation_spec_id` - for = or !=.
|
293
|
+
# @!attribute [rw] annotation_filters
|
294
|
+
# @return [::Array<::String>]
|
295
|
+
# An expression that specifies what Annotations will be returned per
|
296
|
+
# DataItem. Annotations satisfied either of the conditions will be returned.
|
297
|
+
# * `annotation_spec_id` - for = or !=.
|
298
|
+
# Must specify `saved_query_id=` - saved query id that annotations should
|
299
|
+
# belong to.
|
300
|
+
# @!attribute [rw] field_mask
|
301
|
+
# @return [::Google::Protobuf::FieldMask]
|
302
|
+
# Mask specifying which fields of {::Google::Cloud::AIPlatform::V1::DataItemView DataItemView} to read.
|
303
|
+
# @!attribute [rw] annotations_limit
|
304
|
+
# @return [::Integer]
|
305
|
+
# If set, only up to this many of Annotations will be returned per
|
306
|
+
# DataItemView. The maximum value is 1000. If not set, the maximum value will
|
307
|
+
# be used.
|
308
|
+
# @!attribute [rw] page_size
|
309
|
+
# @return [::Integer]
|
310
|
+
# Requested page size. Server may return fewer results than requested.
|
311
|
+
# Default and maximum page size is 100.
|
312
|
+
# @!attribute [rw] order_by
|
313
|
+
# @return [::String]
|
314
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
315
|
+
# Use "desc" after a field name for descending.
|
316
|
+
# @!attribute [rw] page_token
|
317
|
+
# @return [::String]
|
318
|
+
# A token identifying a page of results for the server to return
|
319
|
+
# Typically obtained via
|
320
|
+
# {::Google::Cloud::AIPlatform::V1::SearchDataItemsResponse#next_page_token SearchDataItemsResponse.next_page_token} of the previous
|
321
|
+
# {::Google::Cloud::AIPlatform::V1::DatasetService::Client#search_data_items DatasetService.SearchDataItems} call.
|
322
|
+
class SearchDataItemsRequest
|
323
|
+
include ::Google::Protobuf::MessageExts
|
324
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
325
|
+
|
326
|
+
# Expression that allows ranking results based on annotation's property.
|
327
|
+
# @!attribute [rw] saved_query
|
328
|
+
# @return [::String]
|
329
|
+
# Required. Saved query of the Annotation. Only Annotations belong to this saved
|
330
|
+
# query will be considered for ordering.
|
331
|
+
# @!attribute [rw] order_by
|
332
|
+
# @return [::String]
|
333
|
+
# A comma-separated list of annotation fields to order by, sorted in
|
334
|
+
# ascending order. Use "desc" after a field name for descending. Must also
|
335
|
+
# specify saved_query.
|
336
|
+
class OrderByAnnotation
|
337
|
+
include ::Google::Protobuf::MessageExts
|
338
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# Response message for {::Google::Cloud::AIPlatform::V1::DatasetService::Client#search_data_items DatasetService.SearchDataItems}.
|
343
|
+
# @!attribute [rw] data_item_views
|
344
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::DataItemView>]
|
345
|
+
# The DataItemViews read.
|
346
|
+
# @!attribute [rw] next_page_token
|
347
|
+
# @return [::String]
|
348
|
+
# A token to retrieve next page of results.
|
349
|
+
# Pass to {::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest#page_token SearchDataItemsRequest.page_token} to obtain that page.
|
350
|
+
class SearchDataItemsResponse
|
351
|
+
include ::Google::Protobuf::MessageExts
|
352
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
353
|
+
end
|
354
|
+
|
355
|
+
# A container for a single DataItem and Annotations on it.
|
356
|
+
# @!attribute [rw] data_item
|
357
|
+
# @return [::Google::Cloud::AIPlatform::V1::DataItem]
|
358
|
+
# The DataItem.
|
359
|
+
# @!attribute [rw] annotations
|
360
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::Annotation>]
|
361
|
+
# The Annotations on the DataItem. If too many Annotations should be returned
|
362
|
+
# for the DataItem, this field will be truncated per annotations_limit in
|
363
|
+
# request. If it was, then the has_truncated_annotations will be set to true.
|
364
|
+
# @!attribute [rw] has_truncated_annotations
|
365
|
+
# @return [::Boolean]
|
366
|
+
# True if and only if the Annotations field has been truncated. It happens if
|
367
|
+
# more Annotations for this DataItem met the request's annotation_filter than
|
368
|
+
# are allowed to be returned by annotations_limit.
|
369
|
+
# Note that if Annotations field is not being returned due to field mask,
|
370
|
+
# then this field will not be set to true no matter how many Annotations are
|
371
|
+
# there.
|
372
|
+
class DataItemView
|
373
|
+
include ::Google::Protobuf::MessageExts
|
374
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
375
|
+
end
|
376
|
+
|
248
377
|
# Request message for {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_saved_queries DatasetService.ListSavedQueries}.
|
249
378
|
# @!attribute [rw] parent
|
250
379
|
# @return [::String]
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# @!attribute [rw] display_name
|
30
30
|
# @return [::String]
|
31
31
|
# Required. The display name of the Endpoint.
|
32
|
-
# The name can be up to 128 characters long and can
|
32
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
33
33
|
# characters.
|
34
34
|
# @!attribute [rw] description
|
35
35
|
# @return [::String]
|
@@ -21,6 +21,53 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module AIPlatform
|
23
23
|
module V1
|
24
|
+
# Request message for {::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client#write_feature_values FeaturestoreOnlineServingService.WriteFeatureValues}.
|
25
|
+
# @!attribute [rw] entity_type
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The resource name of the EntityType for the entities being written.
|
28
|
+
# Value format: `projects/{project}/locations/{location}/featurestores/
|
29
|
+
# \\{featurestore}/entityTypes/\\{entityType}`. For example,
|
30
|
+
# for a machine learning model predicting user clicks on a website, an
|
31
|
+
# EntityType ID could be `user`.
|
32
|
+
# @!attribute [rw] payloads
|
33
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::WriteFeatureValuesPayload>]
|
34
|
+
# Required. The entities to be written. Up to 100,000 feature values can be written
|
35
|
+
# across all `payloads`.
|
36
|
+
class WriteFeatureValuesRequest
|
37
|
+
include ::Google::Protobuf::MessageExts
|
38
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
39
|
+
end
|
40
|
+
|
41
|
+
# Contains Feature values to be written for a specific entity.
|
42
|
+
# @!attribute [rw] entity_id
|
43
|
+
# @return [::String]
|
44
|
+
# Required. The ID of the entity.
|
45
|
+
# @!attribute [rw] feature_values
|
46
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::AIPlatform::V1::FeatureValue}]
|
47
|
+
# Required. Feature values to be written, mapping from Feature ID to value. Up to
|
48
|
+
# 100,000 `feature_values` entries may be written across all payloads. The
|
49
|
+
# feature generation time, aligned by days, must be no older than five
|
50
|
+
# years (1825 days) and no later than one year (366 days) in the future.
|
51
|
+
class WriteFeatureValuesPayload
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
|
55
|
+
# @!attribute [rw] key
|
56
|
+
# @return [::String]
|
57
|
+
# @!attribute [rw] value
|
58
|
+
# @return [::Google::Cloud::AIPlatform::V1::FeatureValue]
|
59
|
+
class FeatureValuesEntry
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Response message for {::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client#write_feature_values FeaturestoreOnlineServingService.WriteFeatureValues}.
|
66
|
+
class WriteFeatureValuesResponse
|
67
|
+
include ::Google::Protobuf::MessageExts
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
end
|
70
|
+
|
24
71
|
# Request message for {::Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client#read_feature_values FeaturestoreOnlineServingService.ReadFeatureValues}.
|
25
72
|
# @!attribute [rw] entity_type
|
26
73
|
# @return [::String]
|
@@ -933,6 +933,9 @@ module Google
|
|
933
933
|
# @!attribute [rw] imported_feature_value_count
|
934
934
|
# @return [::Integer]
|
935
935
|
# Number of Feature values that have been imported by the operation.
|
936
|
+
# @!attribute [rw] source_uris
|
937
|
+
# @return [::Array<::String>]
|
938
|
+
# The source URI from where Feature values are imported.
|
936
939
|
# @!attribute [rw] invalid_row_count
|
937
940
|
# @return [::Integer]
|
938
941
|
# The number of rows in input source that weren't imported due to either
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# @!attribute [rw] display_name
|
31
31
|
# @return [::String]
|
32
32
|
# Required. The display name of the HyperparameterTuningJob.
|
33
|
-
# The name can be up to 128 characters long and can
|
33
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
34
34
|
# characters.
|
35
35
|
# @!attribute [rw] study_spec
|
36
36
|
# @return [::Google::Cloud::AIPlatform::V1::StudySpec]
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# @!attribute [rw] display_name
|
30
30
|
# @return [::String]
|
31
31
|
# Required. The display name of the Index.
|
32
|
-
# The name can be up to 128 characters long and can
|
32
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
33
33
|
# characters.
|
34
34
|
# @!attribute [rw] description
|
35
35
|
# @return [::String]
|
@@ -504,7 +504,7 @@ module Google
|
|
504
504
|
# If set, all attribution scores between
|
505
505
|
# {::Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest#start_time SearchModelDeploymentMonitoringStatsAnomaliesRequest.start_time} and
|
506
506
|
# {::Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest#end_time SearchModelDeploymentMonitoringStatsAnomaliesRequest.end_time} are
|
507
|
-
# fetched, and page token doesn't take
|
507
|
+
# fetched, and page token doesn't take effect in this case.
|
508
508
|
# Only used to retrieve attribution score for the top Features which has
|
509
509
|
# the highest attribution score in the latest monitoring run.
|
510
510
|
class StatsAnomaliesObjective
|
@@ -51,7 +51,7 @@ module Google
|
|
51
51
|
# @!attribute [rw] display_name
|
52
52
|
# @return [::String]
|
53
53
|
# Required. The display name of the Model.
|
54
|
-
# The name can be up to 128 characters long and can
|
54
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
55
55
|
# characters.
|
56
56
|
# @!attribute [rw] description
|
57
57
|
# @return [::String]
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# @!attribute [rw] display_name
|
31
31
|
# @return [::String]
|
32
32
|
# Required. The user-defined name of the ModelDeploymentMonitoringJob.
|
33
|
-
# The name can be up to 128 characters long and can
|
33
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
34
34
|
# characters.
|
35
35
|
# Display name of a ModelDeploymentMonitoringJob.
|
36
36
|
# @!attribute [rw] endpoint
|
@@ -40,6 +40,15 @@ module Google
|
|
40
40
|
# @!attribute [rw] model
|
41
41
|
# @return [::Google::Cloud::AIPlatform::V1::Model]
|
42
42
|
# Required. The Model to create.
|
43
|
+
# @!attribute [rw] service_account
|
44
|
+
# @return [::String]
|
45
|
+
# Optional. The user-provided custom service account to use to do the model
|
46
|
+
# upload. If empty, [Vertex AI Service
|
47
|
+
# Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
|
48
|
+
# will be used. Users uploading the Model must have the
|
49
|
+
# `iam.serviceAccounts.actAs` permission on this service account. Also, this
|
50
|
+
# account must belong to the project specified in the `parent` field and have
|
51
|
+
# all necessary read permissions.
|
43
52
|
class UploadModelRequest
|
44
53
|
include ::Google::Protobuf::MessageExts
|
45
54
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Output only. Partial failures encountered.
|
28
28
|
# E.g. single files that couldn't be read.
|
29
29
|
# This field should never exceed 20 entries.
|
30
|
-
# Status details field will contain standard
|
30
|
+
# Status details field will contain standard Google Cloud error details.
|
31
31
|
# @!attribute [r] create_time
|
32
32
|
# @return [::Google::Protobuf::Timestamp]
|
33
33
|
# Output only. Time when the operation was created.
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# @!attribute [rw] display_name
|
29
29
|
# @return [::String]
|
30
30
|
# The display name of the Pipeline.
|
31
|
-
# The name can be up to 128 characters long and can
|
31
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
32
32
|
# characters.
|
33
33
|
# @!attribute [r] create_time
|
34
34
|
# @return [::Google::Protobuf::Timestamp]
|
@@ -93,8 +93,8 @@ module Google
|
|
93
93
|
# network name.
|
94
94
|
#
|
95
95
|
# Private services access must already be configured for the network.
|
96
|
-
# Pipeline job will apply the network configuration to the
|
97
|
-
# being launched, if applied, such as Vertex AI
|
96
|
+
# Pipeline job will apply the network configuration to the Google Cloud
|
97
|
+
# resources being launched, if applied, such as Vertex AI
|
98
98
|
# Training or Dataflow job. If left unspecified, the workload is not peered
|
99
99
|
# with any network.
|
100
100
|
# @!attribute [rw] template_uri
|
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
# @!attribute [rw] display_name
|
34
34
|
# @return [::String]
|
35
35
|
# Required. The user-defined name of the SpecialistPool.
|
36
|
-
# The name can be up to 128 characters long and can
|
36
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
37
37
|
# characters.
|
38
38
|
# This field should be unique on project-level.
|
39
39
|
# @!attribute [r] specialist_managers_count
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module AIPlatform
|
23
23
|
module V1
|
24
24
|
# Tensorboard is a physical database that stores users' training metrics.
|
25
|
-
# A default Tensorboard is provided in each region of a
|
25
|
+
# A default Tensorboard is provided in each region of a Google Cloud project.
|
26
26
|
# If needed users can also create extra Tensorboards in their projects.
|
27
27
|
# @!attribute [r] name
|
28
28
|
# @return [::String]
|
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.16.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-
|
11
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|