google-cloud-ai_platform-v1 0.22.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +121 -0
  3. data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +35 -9
  4. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +2 -2
  5. data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +57 -10
  6. data/lib/google/cloud/ai_platform/v1/match_service/client.rb +531 -0
  7. data/lib/google/cloud/ai_platform/v1/match_service/credentials.rb +47 -0
  8. data/lib/google/cloud/ai_platform/v1/match_service/paths.rb +52 -0
  9. data/lib/google/cloud/ai_platform/v1/match_service.rb +50 -0
  10. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +4 -2
  11. data/lib/google/cloud/ai_platform/v1/model_service/paths.rb +36 -10
  12. data/lib/google/cloud/ai_platform/v1/pipeline_service/paths.rb +36 -10
  13. data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +35 -9
  14. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +4 -4
  15. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  16. data/lib/google/cloud/ai_platform/v1.rb +1 -0
  17. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
  18. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +2 -0
  19. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +14 -0
  20. data/lib/google/cloud/aiplatform/v1/endpoint_service_services_pb.rb +5 -0
  21. data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +1 -0
  22. data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +40 -0
  23. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
  24. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +63 -0
  25. data/lib/google/cloud/aiplatform/v1/match_service_services_pb.rb +49 -0
  26. data/lib/google/cloud/aiplatform/v1/model_pb.rb +1 -0
  27. data/proto_docs/google/api/client.rb +10 -1
  28. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  29. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +2 -2
  30. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +10 -0
  31. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -4
  32. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +6 -5
  33. data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +50 -0
  34. data/proto_docs/google/cloud/aiplatform/v1/entity_type.rb +7 -0
  35. data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +0 -4
  36. data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +91 -2
  37. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +5 -4
  38. data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +8 -0
  39. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +1 -1
  40. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +2 -2
  41. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +2 -2
  42. data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +156 -0
  43. data/proto_docs/google/cloud/aiplatform/v1/model.rb +3 -0
  44. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +4 -2
  45. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +1 -1
  46. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_experiment.rb +8 -6
  47. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +7 -6
  48. metadata +9 -2
@@ -549,8 +549,10 @@ module Google
549
549
  # @param page_token [::String]
550
550
  # The standard list page token.
551
551
  # Typically obtained via
552
- # {::Google::Cloud::AIPlatform::V1::ListModelVersionsResponse#next_page_token ListModelVersionsResponse.next_page_token}
553
- # of the previous [ModelService.ListModelversions][] call.
552
+ # {::Google::Cloud::AIPlatform::V1::ListModelVersionsResponse#next_page_token next_page_token}
553
+ # of the previous
554
+ # {::Google::Cloud::AIPlatform::V1::ModelService::Client#list_model_versions ListModelVersions}
555
+ # call.
554
556
  # @param filter [::String]
555
557
  # An expression for filtering the results of the request. For field names
556
558
  # both snake_case and camelCase are supported.
@@ -27,20 +27,46 @@ module Google
27
27
  ##
28
28
  # Create a fully-qualified Endpoint resource string.
29
29
  #
30
- # The resource will be in the following format:
30
+ # @overload endpoint_path(project:, location:, endpoint:)
31
+ # The resource will be in the following format:
31
32
  #
32
- # `projects/{project}/locations/{location}/endpoints/{endpoint}`
33
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
33
34
  #
34
- # @param project [String]
35
- # @param location [String]
36
- # @param endpoint [String]
35
+ # @param project [String]
36
+ # @param location [String]
37
+ # @param endpoint [String]
38
+ #
39
+ # @overload endpoint_path(project:, location:, publisher:, model:)
40
+ # The resource will be in the following format:
41
+ #
42
+ # `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
43
+ #
44
+ # @param project [String]
45
+ # @param location [String]
46
+ # @param publisher [String]
47
+ # @param model [String]
37
48
  #
38
49
  # @return [::String]
39
- def endpoint_path project:, location:, endpoint:
40
- raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
- raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
-
43
- "projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
50
+ def endpoint_path **args
51
+ resources = {
52
+ "endpoint:location:project" => (proc do |project:, location:, endpoint:|
53
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
54
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
55
+
56
+ "projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
57
+ end),
58
+ "location:model:project:publisher" => (proc do |project:, location:, publisher:, model:|
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+ raise ::ArgumentError, "publisher cannot contain /" if publisher.to_s.include? "/"
62
+
63
+ "projects/#{project}/locations/#{location}/publishers/#{publisher}/models/#{model}"
64
+ end)
65
+ }
66
+
67
+ resource = resources[args.keys.sort.join(":")]
68
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
69
+ resource.call(**args)
44
70
  end
45
71
 
46
72
  ##
@@ -88,20 +88,46 @@ module Google
88
88
  ##
89
89
  # Create a fully-qualified Endpoint resource string.
90
90
  #
91
- # The resource will be in the following format:
91
+ # @overload endpoint_path(project:, location:, endpoint:)
92
+ # The resource will be in the following format:
92
93
  #
93
- # `projects/{project}/locations/{location}/endpoints/{endpoint}`
94
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
94
95
  #
95
- # @param project [String]
96
- # @param location [String]
97
- # @param endpoint [String]
96
+ # @param project [String]
97
+ # @param location [String]
98
+ # @param endpoint [String]
99
+ #
100
+ # @overload endpoint_path(project:, location:, publisher:, model:)
101
+ # The resource will be in the following format:
102
+ #
103
+ # `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
104
+ #
105
+ # @param project [String]
106
+ # @param location [String]
107
+ # @param publisher [String]
108
+ # @param model [String]
98
109
  #
99
110
  # @return [::String]
100
- def endpoint_path project:, location:, endpoint:
101
- raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
102
- raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
103
-
104
- "projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
111
+ def endpoint_path **args
112
+ resources = {
113
+ "endpoint:location:project" => (proc do |project:, location:, endpoint:|
114
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
115
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
116
+
117
+ "projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
118
+ end),
119
+ "location:model:project:publisher" => (proc do |project:, location:, publisher:, model:|
120
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
121
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
122
+ raise ::ArgumentError, "publisher cannot contain /" if publisher.to_s.include? "/"
123
+
124
+ "projects/#{project}/locations/#{location}/publishers/#{publisher}/models/#{model}"
125
+ end)
126
+ }
127
+
128
+ resource = resources[args.keys.sort.join(":")]
129
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
130
+ resource.call(**args)
105
131
  end
106
132
 
107
133
  ##
@@ -27,20 +27,46 @@ module Google
27
27
  ##
28
28
  # Create a fully-qualified Endpoint resource string.
29
29
  #
30
- # The resource will be in the following format:
30
+ # @overload endpoint_path(project:, location:, endpoint:)
31
+ # The resource will be in the following format:
31
32
  #
32
- # `projects/{project}/locations/{location}/endpoints/{endpoint}`
33
+ # `projects/{project}/locations/{location}/endpoints/{endpoint}`
33
34
  #
34
- # @param project [String]
35
- # @param location [String]
36
- # @param endpoint [String]
35
+ # @param project [String]
36
+ # @param location [String]
37
+ # @param endpoint [String]
38
+ #
39
+ # @overload endpoint_path(project:, location:, publisher:, model:)
40
+ # The resource will be in the following format:
41
+ #
42
+ # `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
43
+ #
44
+ # @param project [String]
45
+ # @param location [String]
46
+ # @param publisher [String]
47
+ # @param model [String]
37
48
  #
38
49
  # @return [::String]
39
- def endpoint_path project:, location:, endpoint:
40
- raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
- raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
50
+ def endpoint_path **args
51
+ resources = {
52
+ "endpoint:location:project" => (proc do |project:, location:, endpoint:|
53
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
54
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
55
+
56
+ "projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
57
+ end),
58
+ "location:model:project:publisher" => (proc do |project:, location:, publisher:, model:|
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+ raise ::ArgumentError, "publisher cannot contain /" if publisher.to_s.include? "/"
62
+
63
+ "projects/#{project}/locations/#{location}/publishers/#{publisher}/models/#{model}"
64
+ end)
65
+ }
42
66
 
43
- "projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
67
+ resource = resources[args.keys.sort.join(":")]
68
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
69
+ resource.call(**args)
44
70
  end
45
71
 
46
72
  extend self
@@ -2902,12 +2902,12 @@ module Google
2902
2902
  # Values above 10000 are coerced to 10000.
2903
2903
  # @param page_token [::String]
2904
2904
  # A page token, received from a previous
2905
- # [TensorboardService.ExportTensorboardTimeSeries][] call.
2906
- # Provide this to retrieve the subsequent page.
2905
+ # {::Google::Cloud::AIPlatform::V1::TensorboardService::Client#export_tensorboard_time_series_data ExportTensorboardTimeSeriesData}
2906
+ # call. Provide this to retrieve the subsequent page.
2907
2907
  #
2908
2908
  # When paginating, all other parameters provided to
2909
- # [TensorboardService.ExportTensorboardTimeSeries][] must
2910
- # match the call that provided the page token.
2909
+ # {::Google::Cloud::AIPlatform::V1::TensorboardService::Client#export_tensorboard_time_series_data ExportTensorboardTimeSeriesData}
2910
+ # must match the call that provided the page token.
2911
2911
  # @param order_by [::String]
2912
2912
  # Field to use to sort the TensorboardTimeSeries' data.
2913
2913
  # By default, TensorboardTimeSeries' data is returned in a pseudo random
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AIPlatform
23
23
  module V1
24
- VERSION = "0.22.0"
24
+ VERSION = "0.24.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,6 +23,7 @@ require "google/cloud/ai_platform/v1/featurestore_service"
23
23
  require "google/cloud/ai_platform/v1/index_endpoint_service"
24
24
  require "google/cloud/ai_platform/v1/index_service"
25
25
  require "google/cloud/ai_platform/v1/job_service"
26
+ require "google/cloud/ai_platform/v1/match_service"
26
27
  require "google/cloud/ai_platform/v1/metadata_service"
27
28
  require "google/cloud/ai_platform/v1/migration_service"
28
29
  require "google/cloud/ai_platform/v1/model_service"
@@ -13,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  value :NVIDIA_TESLA_P4, 4
14
14
  value :NVIDIA_TESLA_T4, 5
15
15
  value :NVIDIA_TESLA_A100, 8
16
+ value :NVIDIA_L4, 11
16
17
  value :TPU_V2, 6
17
18
  value :TPU_V3, 7
18
19
  value :TPU_V4_POD, 10
@@ -40,6 +40,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
40
40
  optional :tensorboard, :string, 7
41
41
  optional :enable_web_access, :bool, 10
42
42
  optional :enable_dashboard_access, :bool, 16
43
+ optional :experiment, :string, 17
44
+ optional :experiment_run, :string, 18
43
45
  end
44
46
  add_message "google.cloud.aiplatform.v1.WorkerPoolSpec" do
45
47
  optional :machine_spec, :message, 1, "google.cloud.aiplatform.v1.MachineSpec"
@@ -66,6 +66,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
66
66
  add_message "google.cloud.aiplatform.v1.UndeployModelOperationMetadata" do
67
67
  optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
68
68
  end
69
+ add_message "google.cloud.aiplatform.v1.MutateDeployedModelRequest" do
70
+ optional :endpoint, :string, 1
71
+ optional :deployed_model, :message, 2, "google.cloud.aiplatform.v1.DeployedModel"
72
+ optional :update_mask, :message, 4, "google.protobuf.FieldMask"
73
+ end
74
+ add_message "google.cloud.aiplatform.v1.MutateDeployedModelResponse" do
75
+ optional :deployed_model, :message, 1, "google.cloud.aiplatform.v1.DeployedModel"
76
+ end
77
+ add_message "google.cloud.aiplatform.v1.MutateDeployedModelOperationMetadata" do
78
+ optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
79
+ end
69
80
  end
70
81
  end
71
82
 
@@ -86,6 +97,9 @@ module Google
86
97
  UndeployModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UndeployModelRequest").msgclass
87
98
  UndeployModelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UndeployModelResponse").msgclass
88
99
  UndeployModelOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UndeployModelOperationMetadata").msgclass
100
+ MutateDeployedModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.MutateDeployedModelRequest").msgclass
101
+ MutateDeployedModelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.MutateDeployedModelResponse").msgclass
102
+ MutateDeployedModelOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.MutateDeployedModelOperationMetadata").msgclass
89
103
  end
90
104
  end
91
105
  end
@@ -48,6 +48,11 @@ module Google
48
48
  # Undeploys a Model from an Endpoint, removing a DeployedModel from it, and
49
49
  # freeing all resources it's using.
50
50
  rpc :UndeployModel, ::Google::Cloud::AIPlatform::V1::UndeployModelRequest, ::Google::Longrunning::Operation
51
+ # Updates an existing deployed model. Updatable fields include
52
+ # `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`,
53
+ # `disable_container_logging` (v1 only), and `enable_container_logging`
54
+ # (v1beta1 only).
55
+ rpc :MutateDeployedModel, ::Google::Cloud::AIPlatform::V1::MutateDeployedModelRequest, ::Google::Longrunning::Operation
51
56
  end
52
57
 
53
58
  Stub = Service.rpc_stub_class
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  map :labels, :string, :string, 6
19
19
  optional :etag, :string, 7
20
20
  optional :monitoring_config, :message, 8, "google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig"
21
+ optional :offline_storage_ttl_days, :int32, 10
21
22
  end
22
23
  end
23
24
  end
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/cloud/aiplatform/v1/explanation_metadata_pb'
8
+ require 'google/cloud/aiplatform/v1/io_pb'
8
9
  require 'google/protobuf/struct_pb'
9
10
 
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -40,6 +41,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
40
41
  optional :sampled_shapley_attribution, :message, 1, "google.cloud.aiplatform.v1.SampledShapleyAttribution"
41
42
  optional :integrated_gradients_attribution, :message, 2, "google.cloud.aiplatform.v1.IntegratedGradientsAttribution"
42
43
  optional :xrai_attribution, :message, 3, "google.cloud.aiplatform.v1.XraiAttribution"
44
+ optional :examples, :message, 7, "google.cloud.aiplatform.v1.Examples"
43
45
  end
44
46
  end
45
47
  add_message "google.cloud.aiplatform.v1.SampledShapleyAttribution" do
@@ -72,6 +74,38 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
74
  add_message "google.cloud.aiplatform.v1.BlurBaselineConfig" do
73
75
  optional :max_blur_sigma, :float, 1
74
76
  end
77
+ add_message "google.cloud.aiplatform.v1.Examples" do
78
+ optional :neighbor_count, :int32, 3
79
+ oneof :source do
80
+ optional :example_gcs_source, :message, 5, "google.cloud.aiplatform.v1.Examples.ExampleGcsSource"
81
+ end
82
+ oneof :config do
83
+ optional :nearest_neighbor_search_config, :message, 2, "google.protobuf.Value"
84
+ optional :presets, :message, 4, "google.cloud.aiplatform.v1.Presets"
85
+ end
86
+ end
87
+ add_message "google.cloud.aiplatform.v1.Examples.ExampleGcsSource" do
88
+ optional :data_format, :enum, 1, "google.cloud.aiplatform.v1.Examples.ExampleGcsSource.DataFormat"
89
+ optional :gcs_source, :message, 2, "google.cloud.aiplatform.v1.GcsSource"
90
+ end
91
+ add_enum "google.cloud.aiplatform.v1.Examples.ExampleGcsSource.DataFormat" do
92
+ value :DATA_FORMAT_UNSPECIFIED, 0
93
+ value :JSONL, 1
94
+ end
95
+ add_message "google.cloud.aiplatform.v1.Presets" do
96
+ proto3_optional :query, :enum, 1, "google.cloud.aiplatform.v1.Presets.Query"
97
+ optional :modality, :enum, 2, "google.cloud.aiplatform.v1.Presets.Modality"
98
+ end
99
+ add_enum "google.cloud.aiplatform.v1.Presets.Query" do
100
+ value :PRECISE, 0
101
+ value :FAST, 1
102
+ end
103
+ add_enum "google.cloud.aiplatform.v1.Presets.Modality" do
104
+ value :MODALITY_UNSPECIFIED, 0
105
+ value :IMAGE, 1
106
+ value :TEXT, 2
107
+ value :TABULAR, 3
108
+ end
75
109
  add_message "google.cloud.aiplatform.v1.ExplanationSpecOverride" do
76
110
  optional :parameters, :message, 1, "google.cloud.aiplatform.v1.ExplanationParameters"
77
111
  optional :metadata, :message, 2, "google.cloud.aiplatform.v1.ExplanationMetadataOverride"
@@ -120,6 +154,12 @@ module Google
120
154
  FeatureNoiseSigma = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FeatureNoiseSigma").msgclass
121
155
  FeatureNoiseSigma::NoiseSigmaForFeature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FeatureNoiseSigma.NoiseSigmaForFeature").msgclass
122
156
  BlurBaselineConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.BlurBaselineConfig").msgclass
157
+ Examples = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Examples").msgclass
158
+ Examples::ExampleGcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Examples.ExampleGcsSource").msgclass
159
+ Examples::ExampleGcsSource::DataFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Examples.ExampleGcsSource.DataFormat").enummodule
160
+ Presets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Presets").msgclass
161
+ Presets::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Presets.Query").enummodule
162
+ Presets::Modality = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Presets.Modality").enummodule
123
163
  ExplanationSpecOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExplanationSpecOverride").msgclass
124
164
  ExplanationMetadataOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExplanationMetadataOverride").msgclass
125
165
  ExplanationMetadataOverride::InputMetadataOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExplanationMetadataOverride.InputMetadataOverride").msgclass
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  map :labels, :string, :string, 6
19
19
  optional :online_serving_config, :message, 7, "google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig"
20
20
  optional :state, :enum, 8, "google.cloud.aiplatform.v1.Featurestore.State"
21
+ optional :online_storage_ttl_days, :int32, 13
21
22
  optional :encryption_spec, :message, 10, "google.cloud.aiplatform.v1.EncryptionSpec"
22
23
  end
23
24
  add_message "google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig" do
@@ -0,0 +1,63 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/aiplatform/v1/match_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/aiplatform/v1/index_pb'
11
+
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_file("google/cloud/aiplatform/v1/match_service.proto", :syntax => :proto3) do
14
+ add_message "google.cloud.aiplatform.v1.FindNeighborsRequest" do
15
+ optional :index_endpoint, :string, 1
16
+ optional :deployed_index_id, :string, 2
17
+ repeated :queries, :message, 3, "google.cloud.aiplatform.v1.FindNeighborsRequest.Query"
18
+ optional :return_full_datapoint, :bool, 4
19
+ end
20
+ add_message "google.cloud.aiplatform.v1.FindNeighborsRequest.Query" do
21
+ optional :datapoint, :message, 1, "google.cloud.aiplatform.v1.IndexDatapoint"
22
+ optional :neighbor_count, :int32, 2
23
+ optional :per_crowding_attribute_neighbor_count, :int32, 3
24
+ optional :approximate_neighbor_count, :int32, 4
25
+ optional :fraction_leaf_nodes_to_search_override, :double, 5
26
+ end
27
+ add_message "google.cloud.aiplatform.v1.FindNeighborsResponse" do
28
+ repeated :nearest_neighbors, :message, 1, "google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors"
29
+ end
30
+ add_message "google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor" do
31
+ optional :datapoint, :message, 1, "google.cloud.aiplatform.v1.IndexDatapoint"
32
+ optional :distance, :double, 2
33
+ end
34
+ add_message "google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors" do
35
+ optional :id, :string, 1
36
+ repeated :neighbors, :message, 2, "google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor"
37
+ end
38
+ add_message "google.cloud.aiplatform.v1.ReadIndexDatapointsRequest" do
39
+ optional :index_endpoint, :string, 1
40
+ optional :deployed_index_id, :string, 2
41
+ repeated :ids, :string, 3
42
+ end
43
+ add_message "google.cloud.aiplatform.v1.ReadIndexDatapointsResponse" do
44
+ repeated :datapoints, :message, 1, "google.cloud.aiplatform.v1.IndexDatapoint"
45
+ end
46
+ end
47
+ end
48
+
49
+ module Google
50
+ module Cloud
51
+ module AIPlatform
52
+ module V1
53
+ FindNeighborsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsRequest").msgclass
54
+ FindNeighborsRequest::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsRequest.Query").msgclass
55
+ FindNeighborsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsResponse").msgclass
56
+ FindNeighborsResponse::Neighbor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor").msgclass
57
+ FindNeighborsResponse::NearestNeighbors = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors").msgclass
58
+ ReadIndexDatapointsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReadIndexDatapointsRequest").msgclass
59
+ ReadIndexDatapointsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReadIndexDatapointsResponse").msgclass
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/aiplatform/v1/match_service.proto for package 'Google.Cloud.AIPlatform.V1'
3
+ # Original file comments:
4
+ # Copyright 2023 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/aiplatform/v1/match_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module AIPlatform
25
+ module V1
26
+ module MatchService
27
+ # MatchService is a Google managed service for efficient vector similarity
28
+ # search at scale.
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.cloud.aiplatform.v1.MatchService'
36
+
37
+ # Finds the nearest neighbors of each vector within the request.
38
+ rpc :FindNeighbors, ::Google::Cloud::AIPlatform::V1::FindNeighborsRequest, ::Google::Cloud::AIPlatform::V1::FindNeighborsResponse
39
+ # Reads the datapoints/vectors of the given IDs.
40
+ # A maximum of 1000 datapoints can be retrieved in a batch.
41
+ rpc :ReadIndexDatapoints, ::Google::Cloud::AIPlatform::V1::ReadIndexDatapointsRequest, ::Google::Cloud::AIPlatform::V1::ReadIndexDatapointsResponse
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -89,6 +89,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
89
89
  value :CUSTOM, 2
90
90
  value :BQML, 3
91
91
  value :MODEL_GARDEN, 4
92
+ value :GENIE, 5
92
93
  end
93
94
  end
94
95
  end
@@ -83,7 +83,7 @@ module Google
83
83
  # long-running operation pattern.
84
84
  # @!attribute [rw] new_issue_uri
85
85
  # @return [::String]
86
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
87
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
88
88
  # @!attribute [rw] documentation_uri
89
89
  # @return [::String]
@@ -353,6 +353,15 @@ module Google
353
353
 
354
354
  # Street View Org.
355
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
356
365
  end
357
366
 
358
367
  # To where should client libraries be published?
@@ -44,6 +44,9 @@ module Google
44
44
  # Nvidia Tesla A100 GPU.
45
45
  NVIDIA_TESLA_A100 = 8
46
46
 
47
+ # Nvidia L4 GPU.
48
+ NVIDIA_L4 = 11
49
+
47
50
  # TPU v2.
48
51
  TPU_V2 = 6
49
52
 
@@ -205,9 +205,9 @@ module Google
205
205
  # @return [::Boolean]
206
206
  # For custom-trained Models and AutoML Tabular Models, the container of the
207
207
  # DeployedModel instances will send `stderr` and `stdout` streams to
208
- # Stackdriver Logging by default. Please note that the logs incur cost,
208
+ # Cloud Logging by default. Please note that the logs incur cost,
209
209
  # which are subject to [Cloud Logging
210
- # pricing](https://cloud.google.com/stackdriver/pricing).
210
+ # pricing](https://cloud.google.com/logging/pricing).
211
211
  #
212
212
  # User can disable container logging by setting this flag to true.
213
213
  class BatchPredictionJob
@@ -203,6 +203,16 @@ module Google
203
203
  # {::Google::Cloud::AIPlatform::V1::Trial#web_access_uris Trial.web_access_uris}
204
204
  # (within
205
205
  # {::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob#trials HyperparameterTuningJob.trials}).
206
+ # @!attribute [rw] experiment
207
+ # @return [::String]
208
+ # Optional. The Experiment associated with this job.
209
+ # Format:
210
+ # `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}`
211
+ # @!attribute [rw] experiment_run
212
+ # @return [::String]
213
+ # Optional. The Experiment Run associated with this job.
214
+ # Format:
215
+ # `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}`
206
216
  class CustomJobSpec
207
217
  include ::Google::Protobuf::MessageExts
208
218
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -73,7 +73,7 @@ module Google
73
73
  # @!attribute [rw] saved_queries
74
74
  # @return [::Array<::Google::Cloud::AIPlatform::V1::SavedQuery>]
75
75
  # All SavedQueries belong to the Dataset will be returned in List/Get
76
- # Dataset response. The [annotation_specs][SavedQuery.annotation_specs] field
76
+ # Dataset response. The annotation_specs field
77
77
  # will not be populated except for UI cases which will only use
78
78
  # {::Google::Cloud::AIPlatform::V1::SavedQuery#annotation_spec_count annotation_spec_count}.
79
79
  # In CreateDataset request, a SavedQuery is created together if
@@ -182,9 +182,9 @@ module Google
182
182
  # Split based on fractions defining the size of each set.
183
183
  # @!attribute [rw] annotations_filter
184
184
  # @return [::String]
185
- # A filter on Annotations of the Dataset. Only Annotations on to-be-exported
186
- # DataItems(specified by [data_items_filter][]) that match this filter will
187
- # be exported. The filter syntax is the same as in
185
+ # An expression for filtering what part of the Dataset is to be exported.
186
+ # Only Annotations that match this filter will be exported. The filter syntax
187
+ # is the same as in
188
188
  # {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_annotations ListAnnotations}.
189
189
  class ExportDataConfig
190
190
  include ::Google::Protobuf::MessageExts
@@ -106,7 +106,8 @@ module Google
106
106
  # @return [::String]
107
107
  # Output only. Resource name of the Model Monitoring job associated with this
108
108
  # Endpoint if monitoring is enabled by
109
- # [CreateModelDeploymentMonitoringJob][]. Format:
109
+ # {::Google::Cloud::AIPlatform::V1::JobService::Client#create_model_deployment_monitoring_job JobService.CreateModelDeploymentMonitoringJob}.
110
+ # Format:
110
111
  # `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`
111
112
  # @!attribute [rw] predict_request_response_logging_config
112
113
  # @return [::Google::Cloud::AIPlatform::V1::PredictRequestResponseLoggingConfig]
@@ -203,19 +204,19 @@ module Google
203
204
  # @return [::Boolean]
204
205
  # For custom-trained Models and AutoML Tabular Models, the container of the
205
206
  # DeployedModel instances will send `stderr` and `stdout` streams to
206
- # Stackdriver Logging by default. Please note that the logs incur cost,
207
+ # Cloud Logging by default. Please note that the logs incur cost,
207
208
  # which are subject to [Cloud Logging
208
- # pricing](https://cloud.google.com/stackdriver/pricing).
209
+ # pricing](https://cloud.google.com/logging/pricing).
209
210
  #
210
211
  # User can disable container logging by setting this flag to true.
211
212
  # @!attribute [rw] enable_access_logging
212
213
  # @return [::Boolean]
213
- # If true, online prediction access logs are sent to StackDriver
214
+ # If true, online prediction access logs are sent to Cloud
214
215
  # Logging.
215
216
  # These logs are like standard server access logs, containing
216
217
  # information like timestamp and latency for each prediction request.
217
218
  #
218
- # Note that Stackdriver logs may incur a cost, especially if your project
219
+ # Note that logs may incur a cost, especially if your project
219
220
  # receives prediction requests at a high queries per second rate (QPS).
220
221
  # Estimate your costs before enabling this option.
221
222
  # @!attribute [r] private_endpoints