google-cloud-ai_platform-v1 0.22.0 → 0.24.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/endpoint_service/client.rb +121 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +35 -9
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +2 -2
- data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +57 -10
- data/lib/google/cloud/ai_platform/v1/match_service/client.rb +531 -0
- data/lib/google/cloud/ai_platform/v1/match_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/match_service/paths.rb +52 -0
- data/lib/google/cloud/ai_platform/v1/match_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +4 -2
- data/lib/google/cloud/ai_platform/v1/model_service/paths.rb +36 -10
- data/lib/google/cloud/ai_platform/v1/pipeline_service/paths.rb +36 -10
- data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +35 -9
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +4 -4
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +14 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_services_pb.rb +5 -0
- data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +40 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +63 -0
- data/lib/google/cloud/aiplatform/v1/match_service_services_pb.rb +49 -0
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +1 -0
- data/proto_docs/google/api/client.rb +10 -1
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +10 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -4
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +6 -5
- data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +50 -0
- data/proto_docs/google/cloud/aiplatform/v1/entity_type.rb +7 -0
- data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +0 -4
- data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +91 -2
- data/proto_docs/google/cloud/aiplatform/v1/feature.rb +5 -4
- data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +8 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +156 -0
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +4 -2
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_experiment.rb +8 -6
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +7 -6
- metadata +9 -2
@@ -280,6 +280,56 @@ module Google
|
|
280
280
|
include ::Google::Protobuf::MessageExts
|
281
281
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
282
282
|
end
|
283
|
+
|
284
|
+
# Request message for
|
285
|
+
# {::Google::Cloud::AIPlatform::V1::EndpointService::Client#mutate_deployed_model EndpointService.MutateDeployedModel}.
|
286
|
+
# @!attribute [rw] endpoint
|
287
|
+
# @return [::String]
|
288
|
+
# Required. The name of the Endpoint resource into which to mutate a
|
289
|
+
# DeployedModel. Format:
|
290
|
+
# `projects/{project}/locations/{location}/endpoints/{endpoint}`
|
291
|
+
# @!attribute [rw] deployed_model
|
292
|
+
# @return [::Google::Cloud::AIPlatform::V1::DeployedModel]
|
293
|
+
# Required. The DeployedModel to be mutated within the Endpoint. Only the
|
294
|
+
# following fields can be mutated:
|
295
|
+
#
|
296
|
+
# * `min_replica_count` in either
|
297
|
+
# {::Google::Cloud::AIPlatform::V1::DedicatedResources DedicatedResources} or
|
298
|
+
# {::Google::Cloud::AIPlatform::V1::AutomaticResources AutomaticResources}
|
299
|
+
# * `max_replica_count` in either
|
300
|
+
# {::Google::Cloud::AIPlatform::V1::DedicatedResources DedicatedResources} or
|
301
|
+
# {::Google::Cloud::AIPlatform::V1::AutomaticResources AutomaticResources}
|
302
|
+
# * {::Google::Cloud::AIPlatform::V1::DedicatedResources#autoscaling_metric_specs autoscaling_metric_specs}
|
303
|
+
# * `disable_container_logging` (v1 only)
|
304
|
+
# * `enable_container_logging` (v1beta1 only)
|
305
|
+
# @!attribute [rw] update_mask
|
306
|
+
# @return [::Google::Protobuf::FieldMask]
|
307
|
+
# Required. The update mask applies to the resource. See
|
308
|
+
# {::Google::Protobuf::FieldMask google.protobuf.FieldMask}.
|
309
|
+
class MutateDeployedModelRequest
|
310
|
+
include ::Google::Protobuf::MessageExts
|
311
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
312
|
+
end
|
313
|
+
|
314
|
+
# Response message for
|
315
|
+
# {::Google::Cloud::AIPlatform::V1::EndpointService::Client#mutate_deployed_model EndpointService.MutateDeployedModel}.
|
316
|
+
# @!attribute [rw] deployed_model
|
317
|
+
# @return [::Google::Cloud::AIPlatform::V1::DeployedModel]
|
318
|
+
# The DeployedModel that's being mutated.
|
319
|
+
class MutateDeployedModelResponse
|
320
|
+
include ::Google::Protobuf::MessageExts
|
321
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
end
|
323
|
+
|
324
|
+
# Runtime operation information for
|
325
|
+
# {::Google::Cloud::AIPlatform::V1::EndpointService::Client#mutate_deployed_model EndpointService.MutateDeployedModel}.
|
326
|
+
# @!attribute [rw] generic_metadata
|
327
|
+
# @return [::Google::Cloud::AIPlatform::V1::GenericOperationMetadata]
|
328
|
+
# The operation generic information.
|
329
|
+
class MutateDeployedModelOperationMetadata
|
330
|
+
include ::Google::Protobuf::MessageExts
|
331
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
332
|
+
end
|
283
333
|
end
|
284
334
|
end
|
285
335
|
end
|
@@ -72,6 +72,13 @@ module Google
|
|
72
72
|
# [FeaturestoreMonitoringConfig.monitoring_interval] specified, snapshot
|
73
73
|
# analysis monitoring is enabled. Otherwise, snapshot analysis monitoring is
|
74
74
|
# disabled.
|
75
|
+
# @!attribute [rw] offline_storage_ttl_days
|
76
|
+
# @return [::Integer]
|
77
|
+
# Optional. Config for data retention policy in offline storage.
|
78
|
+
# TTL in days for feature values that will be stored in offline storage.
|
79
|
+
# The Feature Store offline storage periodically removes obsolete feature
|
80
|
+
# values older than `offline_storage_ttl_days` since the feature generation
|
81
|
+
# time. If unset (or explicitly set to 0), default to 4000 days TTL.
|
75
82
|
class EntityType
|
76
83
|
include ::Google::Protobuf::MessageExts
|
77
84
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -76,10 +76,6 @@ module Google
|
|
76
76
|
# ModelEvaluation. The EvaluatedDataItemView consists of all ground truths
|
77
77
|
# and predictions on
|
78
78
|
# {::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation#data_item_payload data_item_payload}.
|
79
|
-
#
|
80
|
-
# Can be passed in
|
81
|
-
# [GetEvaluatedDataItemView's][ModelService.GetEvaluatedDataItemView][]
|
82
|
-
# [id][GetEvaluatedDataItemViewRequest.id].
|
83
79
|
# @!attribute [rw] explanations
|
84
80
|
# @return [::Array<::Google::Cloud::AIPlatform::V1::EvaluatedAnnotationExplanation>]
|
85
81
|
# Explanations of
|
@@ -245,6 +245,10 @@ module Google
|
|
245
245
|
# house or an animal. If the images are taken in artificial environments,
|
246
246
|
# like a lab or manufacturing line, or from diagnostic equipment, like
|
247
247
|
# x-rays or quality-control cameras, use Integrated Gradients instead.
|
248
|
+
# @!attribute [rw] examples
|
249
|
+
# @return [::Google::Cloud::AIPlatform::V1::Examples]
|
250
|
+
# Example-based explanations that returns the nearest neighbors from the
|
251
|
+
# provided dataset.
|
248
252
|
# @!attribute [rw] top_k
|
249
253
|
# @return [::Integer]
|
250
254
|
# If populated, returns attributions for top K indices of outputs
|
@@ -437,14 +441,99 @@ module Google
|
|
437
441
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
438
442
|
end
|
439
443
|
|
444
|
+
# Example-based explainability that returns the nearest neighbors from the
|
445
|
+
# provided dataset.
|
446
|
+
# @!attribute [rw] example_gcs_source
|
447
|
+
# @return [::Google::Cloud::AIPlatform::V1::Examples::ExampleGcsSource]
|
448
|
+
# The Cloud Storage input instances.
|
449
|
+
# @!attribute [rw] nearest_neighbor_search_config
|
450
|
+
# @return [::Google::Protobuf::Value]
|
451
|
+
# The full configuration for the generated index, the semantics are the
|
452
|
+
# same as {::Google::Cloud::AIPlatform::V1::Index#metadata metadata} and should
|
453
|
+
# match
|
454
|
+
# [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).
|
455
|
+
# @!attribute [rw] presets
|
456
|
+
# @return [::Google::Cloud::AIPlatform::V1::Presets]
|
457
|
+
# Simplified preset configuration, which automatically sets configuration
|
458
|
+
# values based on the desired query speed-precision trade-off and modality.
|
459
|
+
# @!attribute [rw] neighbor_count
|
460
|
+
# @return [::Integer]
|
461
|
+
# The number of neighbors to return when querying for examples.
|
462
|
+
class Examples
|
463
|
+
include ::Google::Protobuf::MessageExts
|
464
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
465
|
+
|
466
|
+
# The Cloud Storage input instances.
|
467
|
+
# @!attribute [rw] data_format
|
468
|
+
# @return [::Google::Cloud::AIPlatform::V1::Examples::ExampleGcsSource::DataFormat]
|
469
|
+
# The format in which instances are given, if not specified, assume it's
|
470
|
+
# JSONL format. Currently only JSONL format is supported.
|
471
|
+
# @!attribute [rw] gcs_source
|
472
|
+
# @return [::Google::Cloud::AIPlatform::V1::GcsSource]
|
473
|
+
# The Cloud Storage location for the input instances.
|
474
|
+
class ExampleGcsSource
|
475
|
+
include ::Google::Protobuf::MessageExts
|
476
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
477
|
+
|
478
|
+
# The format of the input example instances.
|
479
|
+
module DataFormat
|
480
|
+
# Format unspecified, used when unset.
|
481
|
+
DATA_FORMAT_UNSPECIFIED = 0
|
482
|
+
|
483
|
+
# Examples are stored in JSONL files.
|
484
|
+
JSONL = 1
|
485
|
+
end
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
489
|
+
# Preset configuration for example-based explanations
|
490
|
+
# @!attribute [rw] query
|
491
|
+
# @return [::Google::Cloud::AIPlatform::V1::Presets::Query]
|
492
|
+
# Preset option controlling parameters for speed-precision trade-off when
|
493
|
+
# querying for examples. If omitted, defaults to `PRECISE`.
|
494
|
+
# @!attribute [rw] modality
|
495
|
+
# @return [::Google::Cloud::AIPlatform::V1::Presets::Modality]
|
496
|
+
# The modality of the uploaded model, which automatically configures the
|
497
|
+
# distance measurement and feature normalization for the underlying example
|
498
|
+
# index and queries. If your model does not precisely fit one of these types,
|
499
|
+
# it is okay to choose the closest type.
|
500
|
+
class Presets
|
501
|
+
include ::Google::Protobuf::MessageExts
|
502
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
503
|
+
|
504
|
+
# Preset option controlling parameters for query speed-precision trade-off
|
505
|
+
module Query
|
506
|
+
# More precise neighbors as a trade-off against slower response.
|
507
|
+
PRECISE = 0
|
508
|
+
|
509
|
+
# Faster response as a trade-off against less precise neighbors.
|
510
|
+
FAST = 1
|
511
|
+
end
|
512
|
+
|
513
|
+
# Preset option controlling parameters for different modalities
|
514
|
+
module Modality
|
515
|
+
# Should not be set. Added as a recommended best practice for enums
|
516
|
+
MODALITY_UNSPECIFIED = 0
|
517
|
+
|
518
|
+
# IMAGE modality
|
519
|
+
IMAGE = 1
|
520
|
+
|
521
|
+
# TEXT modality
|
522
|
+
TEXT = 2
|
523
|
+
|
524
|
+
# TABULAR modality
|
525
|
+
TABULAR = 3
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
440
529
|
# The {::Google::Cloud::AIPlatform::V1::ExplanationSpec ExplanationSpec} entries
|
441
530
|
# that can be overridden at [online
|
442
531
|
# explanation][google.cloud.aiplatform.v1.PredictionService.Explain] time.
|
443
532
|
# @!attribute [rw] parameters
|
444
533
|
# @return [::Google::Cloud::AIPlatform::V1::ExplanationParameters]
|
445
534
|
# The parameters to be overridden. Note that the
|
446
|
-
#
|
447
|
-
#
|
535
|
+
# attribution method cannot be changed. If not specified,
|
536
|
+
# no parameter is overridden.
|
448
537
|
# @!attribute [rw] metadata
|
449
538
|
# @return [::Google::Cloud::AIPlatform::V1::ExplanationMetadataOverride]
|
450
539
|
# The metadata to be overridden. If not specified, no metadata is overridden.
|
@@ -80,10 +80,11 @@ module Google
|
|
80
80
|
include ::Google::Protobuf::MessageExts
|
81
81
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
82
82
|
|
83
|
-
# A list of historical
|
84
|
-
#
|
85
|
-
#
|
86
|
-
#
|
83
|
+
# A list of historical
|
84
|
+
# {::Google::Cloud::AIPlatform::V1::FeaturestoreMonitoringConfig::SnapshotAnalysis SnapshotAnalysis}
|
85
|
+
# or
|
86
|
+
# {::Google::Cloud::AIPlatform::V1::FeaturestoreMonitoringConfig::ImportFeaturesAnalysis ImportFeaturesAnalysis}
|
87
|
+
# stats requested by user, sorted by
|
87
88
|
# {::Google::Cloud::AIPlatform::V1::FeatureStatsAnomaly#start_time FeatureStatsAnomaly.start_time}
|
88
89
|
# descending.
|
89
90
|
# @!attribute [r] objective
|
@@ -61,6 +61,14 @@ module Google
|
|
61
61
|
# @!attribute [r] state
|
62
62
|
# @return [::Google::Cloud::AIPlatform::V1::Featurestore::State]
|
63
63
|
# Output only. State of the featurestore.
|
64
|
+
# @!attribute [rw] online_storage_ttl_days
|
65
|
+
# @return [::Integer]
|
66
|
+
# Optional. TTL in days for feature values that will be stored in online
|
67
|
+
# serving storage. The Feature Store online storage periodically removes
|
68
|
+
# obsolete feature values older than `online_storage_ttl_days` since the
|
69
|
+
# feature generation time. Note that `online_storage_ttl_days` should be less
|
70
|
+
# than or equal to `offline_storage_ttl_days` for each EntityType under a
|
71
|
+
# featurestore. If not set, default to 4000 days
|
64
72
|
# @!attribute [rw] encryption_spec
|
65
73
|
# @return [::Google::Cloud::AIPlatform::V1::EncryptionSpec]
|
66
74
|
# Optional. Customer-managed encryption key spec for data storage. If set,
|
@@ -129,7 +129,7 @@ module Google
|
|
129
129
|
# @!attribute [rw] feature_descriptors
|
130
130
|
# @return [::Array<::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse::FeatureDescriptor>]
|
131
131
|
# List of Feature metadata corresponding to each piece of
|
132
|
-
#
|
132
|
+
# {::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse::EntityView#data ReadFeatureValuesResponse.EntityView.data}.
|
133
133
|
class Header
|
134
134
|
include ::Google::Protobuf::MessageExts
|
135
135
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -153,7 +153,7 @@ module Google
|
|
153
153
|
# * `labels`
|
154
154
|
# * `online_serving_config.fixed_node_count`
|
155
155
|
# * `online_serving_config.scaling`
|
156
|
-
# * `online_storage_ttl_days`
|
156
|
+
# * `online_storage_ttl_days`
|
157
157
|
class UpdateFeaturestoreRequest
|
158
158
|
include ::Google::Protobuf::MessageExts
|
159
159
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -617,7 +617,7 @@ module Google
|
|
617
617
|
# * `monitoring_config.import_features_analysis.anomaly_detection_baseline`
|
618
618
|
# * `monitoring_config.numerical_threshold_config.value`
|
619
619
|
# * `monitoring_config.categorical_threshold_config.value`
|
620
|
-
# * `offline_storage_ttl_days`
|
620
|
+
# * `offline_storage_ttl_days`
|
621
621
|
class UpdateEntityTypeRequest
|
622
622
|
include ::Google::Protobuf::MessageExts
|
623
623
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -187,13 +187,13 @@ module Google
|
|
187
187
|
# e2-standard-16 and e2-highmem-16 for cost efficiency.
|
188
188
|
# @!attribute [rw] enable_access_logging
|
189
189
|
# @return [::Boolean]
|
190
|
-
# Optional. If true, private endpoint's access logs are sent to
|
190
|
+
# Optional. If true, private endpoint's access logs are sent to Cloud
|
191
191
|
# Logging.
|
192
192
|
#
|
193
193
|
# These logs are like standard server access logs, containing
|
194
194
|
# information like timestamp and latency for each MatchRequest.
|
195
195
|
#
|
196
|
-
# Note that
|
196
|
+
# Note that logs may incur a cost, especially if the deployed
|
197
197
|
# index receives a high queries per second rate (QPS).
|
198
198
|
# Estimate your costs before enabling this option.
|
199
199
|
# @!attribute [rw] deployed_index_auth_config
|
@@ -0,0 +1,156 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AIPlatform
|
23
|
+
module V1
|
24
|
+
# The request message for
|
25
|
+
# {::Google::Cloud::AIPlatform::V1::MatchService::Client#find_neighbors MatchService.FindNeighbors}.
|
26
|
+
# @!attribute [rw] index_endpoint
|
27
|
+
# @return [::String]
|
28
|
+
# Required. The name of the index endpoint.
|
29
|
+
# Format:
|
30
|
+
# `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
|
31
|
+
# @!attribute [rw] deployed_index_id
|
32
|
+
# @return [::String]
|
33
|
+
# The ID of the DeployedIndex that will serve the request. This request is
|
34
|
+
# sent to a specific IndexEndpoint, as per the IndexEndpoint.network. That
|
35
|
+
# IndexEndpoint also has IndexEndpoint.deployed_indexes, and each such index
|
36
|
+
# has a DeployedIndex.id field.
|
37
|
+
# The value of the field below must equal one of the DeployedIndex.id
|
38
|
+
# fields of the IndexEndpoint that is being called for this request.
|
39
|
+
# @!attribute [rw] queries
|
40
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::FindNeighborsRequest::Query>]
|
41
|
+
# The list of queries.
|
42
|
+
# @!attribute [rw] return_full_datapoint
|
43
|
+
# @return [::Boolean]
|
44
|
+
# If set to true, the full datapoints (including all vector values and
|
45
|
+
# restricts) of the nearest neighbors are returned.
|
46
|
+
# Note that returning full datapoint will significantly increase the
|
47
|
+
# latency and cost of the query.
|
48
|
+
class FindNeighborsRequest
|
49
|
+
include ::Google::Protobuf::MessageExts
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
51
|
+
|
52
|
+
# A query to find a number of the nearest neighbors (most similar vectors)
|
53
|
+
# of a vector.
|
54
|
+
# @!attribute [rw] datapoint
|
55
|
+
# @return [::Google::Cloud::AIPlatform::V1::IndexDatapoint]
|
56
|
+
# Required. The datapoint/vector whose nearest neighbors should be searched
|
57
|
+
# for.
|
58
|
+
# @!attribute [rw] neighbor_count
|
59
|
+
# @return [::Integer]
|
60
|
+
# The number of nearest neighbors to be retrieved from database for each
|
61
|
+
# query. If not set, will use the default from the service configuration
|
62
|
+
# (https://cloud.google.com/vertex-ai/docs/matching-engine/configuring-indexes#nearest-neighbor-search-config).
|
63
|
+
# @!attribute [rw] per_crowding_attribute_neighbor_count
|
64
|
+
# @return [::Integer]
|
65
|
+
# Crowding is a constraint on a neighbor list produced by nearest neighbor
|
66
|
+
# search requiring that no more than some value k' of the k neighbors
|
67
|
+
# returned have the same value of crowding_attribute.
|
68
|
+
# It's used for improving result diversity.
|
69
|
+
# This field is the maximum number of matches with the same crowding tag.
|
70
|
+
# @!attribute [rw] approximate_neighbor_count
|
71
|
+
# @return [::Integer]
|
72
|
+
# The number of neighbors to find via approximate search before
|
73
|
+
# exact reordering is performed. If not set, the default value from scam
|
74
|
+
# config is used; if set, this value must be > 0.
|
75
|
+
# @!attribute [rw] fraction_leaf_nodes_to_search_override
|
76
|
+
# @return [::Float]
|
77
|
+
# The fraction of the number of leaves to search, set at query time allows
|
78
|
+
# user to tune search performance. This value increase result in both
|
79
|
+
# search accuracy and latency increase. The value should be between 0.0
|
80
|
+
# and 1.0. If not set or set to 0.0, query uses the default value specified
|
81
|
+
# in
|
82
|
+
# NearestNeighborSearchConfig.TreeAHConfig.fraction_leaf_nodes_to_search.
|
83
|
+
class Query
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# The response message for
|
90
|
+
# {::Google::Cloud::AIPlatform::V1::MatchService::Client#find_neighbors MatchService.FindNeighbors}.
|
91
|
+
# @!attribute [rw] nearest_neighbors
|
92
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::FindNeighborsResponse::NearestNeighbors>]
|
93
|
+
# The nearest neighbors of the query datapoints.
|
94
|
+
class FindNeighborsResponse
|
95
|
+
include ::Google::Protobuf::MessageExts
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
|
+
|
98
|
+
# A neighbor of the query vector.
|
99
|
+
# @!attribute [rw] datapoint
|
100
|
+
# @return [::Google::Cloud::AIPlatform::V1::IndexDatapoint]
|
101
|
+
# The datapoint of the neighbor.
|
102
|
+
# Note that full datapoints are returned only when "return_full_datapoint"
|
103
|
+
# is set to true. Otherwise, only the "datapoint_id" and "crowding_tag"
|
104
|
+
# fields are populated.
|
105
|
+
# @!attribute [rw] distance
|
106
|
+
# @return [::Float]
|
107
|
+
# The distance between the neighbor and the query vector.
|
108
|
+
class Neighbor
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
|
113
|
+
# Nearest neighbors for one query.
|
114
|
+
# @!attribute [rw] id
|
115
|
+
# @return [::String]
|
116
|
+
# The ID of the query datapoint.
|
117
|
+
# @!attribute [rw] neighbors
|
118
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::FindNeighborsResponse::Neighbor>]
|
119
|
+
# All its neighbors.
|
120
|
+
class NearestNeighbors
|
121
|
+
include ::Google::Protobuf::MessageExts
|
122
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# The request message for
|
127
|
+
# {::Google::Cloud::AIPlatform::V1::MatchService::Client#read_index_datapoints MatchService.ReadIndexDatapoints}.
|
128
|
+
# @!attribute [rw] index_endpoint
|
129
|
+
# @return [::String]
|
130
|
+
# Required. The name of the index endpoint.
|
131
|
+
# Format:
|
132
|
+
# `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`
|
133
|
+
# @!attribute [rw] deployed_index_id
|
134
|
+
# @return [::String]
|
135
|
+
# The ID of the DeployedIndex that will serve the request.
|
136
|
+
# @!attribute [rw] ids
|
137
|
+
# @return [::Array<::String>]
|
138
|
+
# IDs of the datapoints to be searched for.
|
139
|
+
class ReadIndexDatapointsRequest
|
140
|
+
include ::Google::Protobuf::MessageExts
|
141
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
142
|
+
end
|
143
|
+
|
144
|
+
# The response message for
|
145
|
+
# {::Google::Cloud::AIPlatform::V1::MatchService::Client#read_index_datapoints MatchService.ReadIndexDatapoints}.
|
146
|
+
# @!attribute [rw] datapoints
|
147
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::IndexDatapoint>]
|
148
|
+
# The result list of datapoints.
|
149
|
+
class ReadIndexDatapointsResponse
|
150
|
+
include ::Google::Protobuf::MessageExts
|
151
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -185,8 +185,10 @@ module Google
|
|
185
185
|
# @return [::String]
|
186
186
|
# The standard list page token.
|
187
187
|
# Typically obtained via
|
188
|
-
# {::Google::Cloud::AIPlatform::V1::ListModelVersionsResponse#next_page_token
|
189
|
-
# of the previous
|
188
|
+
# {::Google::Cloud::AIPlatform::V1::ListModelVersionsResponse#next_page_token next_page_token}
|
189
|
+
# of the previous
|
190
|
+
# {::Google::Cloud::AIPlatform::V1::ModelService::Client#list_model_versions ListModelVersions}
|
191
|
+
# call.
|
190
192
|
# @!attribute [rw] filter
|
191
193
|
# @return [::String]
|
192
194
|
# An expression for filtering the results of the request. For field names
|
@@ -251,7 +251,7 @@ module Google
|
|
251
251
|
# @!attribute [r] task_name
|
252
252
|
# @return [::String]
|
253
253
|
# Output only. The user specified name of the task that is defined in
|
254
|
-
#
|
254
|
+
# {::Google::Cloud::AIPlatform::V1::PipelineJob#pipeline_spec pipeline_spec}.
|
255
255
|
# @!attribute [r] create_time
|
256
256
|
# @return [::Google::Protobuf::Timestamp]
|
257
257
|
# Output only. Task create time.
|
@@ -44,18 +44,20 @@ module Google
|
|
44
44
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
45
45
|
# The labels with user-defined metadata to organize your Datasets.
|
46
46
|
#
|
47
|
-
# Label keys and values
|
47
|
+
# Label keys and values cannot be longer than 64 characters
|
48
48
|
# (Unicode codepoints), can only contain lowercase letters, numeric
|
49
49
|
# characters, underscores and dashes. International characters are allowed.
|
50
50
|
# No more than 64 user labels can be associated with one Dataset (System
|
51
51
|
# labels are excluded).
|
52
52
|
#
|
53
53
|
# See https://goo.gl/xmQnxf for more information and examples of labels.
|
54
|
-
# System reserved label keys are prefixed with
|
55
|
-
# and are immutable.
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
54
|
+
# System reserved label keys are prefixed with `aiplatform.googleapis.com/`
|
55
|
+
# and are immutable. The following system labels exist for each Dataset:
|
56
|
+
#
|
57
|
+
# * `aiplatform.googleapis.com/dataset_metadata_schema`: output only. Its
|
58
|
+
# value is the
|
59
|
+
# [metadata_schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri]
|
60
|
+
# title.
|
59
61
|
# @!attribute [rw] etag
|
60
62
|
# @return [::String]
|
61
63
|
# Used to perform consistent read-modify-write updates. If not set, a blind
|
@@ -747,12 +747,12 @@ module Google
|
|
747
747
|
# @!attribute [rw] page_token
|
748
748
|
# @return [::String]
|
749
749
|
# A page token, received from a previous
|
750
|
-
#
|
751
|
-
# Provide this to retrieve the subsequent page.
|
750
|
+
# {::Google::Cloud::AIPlatform::V1::TensorboardService::Client#export_tensorboard_time_series_data ExportTensorboardTimeSeriesData}
|
751
|
+
# call. Provide this to retrieve the subsequent page.
|
752
752
|
#
|
753
753
|
# When paginating, all other parameters provided to
|
754
|
-
#
|
755
|
-
# match the call that provided the page token.
|
754
|
+
# {::Google::Cloud::AIPlatform::V1::TensorboardService::Client#export_tensorboard_time_series_data ExportTensorboardTimeSeriesData}
|
755
|
+
# must match the call that provided the page token.
|
756
756
|
# @!attribute [rw] order_by
|
757
757
|
# @return [::String]
|
758
758
|
# Field to use to sort the TensorboardTimeSeries' data.
|
@@ -771,8 +771,9 @@ module Google
|
|
771
771
|
# @!attribute [rw] next_page_token
|
772
772
|
# @return [::String]
|
773
773
|
# A token, which can be sent as
|
774
|
-
#
|
775
|
-
# page. If this field is omitted, there are no
|
774
|
+
# {::Google::Cloud::AIPlatform::V1::ExportTensorboardTimeSeriesDataRequest#page_token page_token}
|
775
|
+
# to retrieve the next page. If this field is omitted, there are no
|
776
|
+
# subsequent pages.
|
776
777
|
class ExportTensorboardTimeSeriesDataResponse
|
777
778
|
include ::Google::Protobuf::MessageExts
|
778
779
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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.24.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: 2023-
|
11
|
+
date: 2023-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -246,6 +246,10 @@ files:
|
|
246
246
|
- lib/google/cloud/ai_platform/v1/job_service/credentials.rb
|
247
247
|
- lib/google/cloud/ai_platform/v1/job_service/operations.rb
|
248
248
|
- lib/google/cloud/ai_platform/v1/job_service/paths.rb
|
249
|
+
- lib/google/cloud/ai_platform/v1/match_service.rb
|
250
|
+
- lib/google/cloud/ai_platform/v1/match_service/client.rb
|
251
|
+
- lib/google/cloud/ai_platform/v1/match_service/credentials.rb
|
252
|
+
- lib/google/cloud/ai_platform/v1/match_service/paths.rb
|
249
253
|
- lib/google/cloud/ai_platform/v1/metadata_service.rb
|
250
254
|
- lib/google/cloud/ai_platform/v1/metadata_service/client.rb
|
251
255
|
- lib/google/cloud/ai_platform/v1/metadata_service/credentials.rb
|
@@ -335,6 +339,8 @@ files:
|
|
335
339
|
- lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb
|
336
340
|
- lib/google/cloud/aiplatform/v1/machine_resources_pb.rb
|
337
341
|
- lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb
|
342
|
+
- lib/google/cloud/aiplatform/v1/match_service_pb.rb
|
343
|
+
- lib/google/cloud/aiplatform/v1/match_service_services_pb.rb
|
338
344
|
- lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb
|
339
345
|
- lib/google/cloud/aiplatform/v1/metadata_service_pb.rb
|
340
346
|
- lib/google/cloud/aiplatform/v1/metadata_service_services_pb.rb
|
@@ -426,6 +432,7 @@ files:
|
|
426
432
|
- proto_docs/google/cloud/aiplatform/v1/lineage_subgraph.rb
|
427
433
|
- proto_docs/google/cloud/aiplatform/v1/machine_resources.rb
|
428
434
|
- proto_docs/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.rb
|
435
|
+
- proto_docs/google/cloud/aiplatform/v1/match_service.rb
|
429
436
|
- proto_docs/google/cloud/aiplatform/v1/metadata_schema.rb
|
430
437
|
- proto_docs/google/cloud/aiplatform/v1/metadata_service.rb
|
431
438
|
- proto_docs/google/cloud/aiplatform/v1/metadata_store.rb
|