google-cloud-ai_platform-v1 0.35.0 → 0.37.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -99
- data/README.md +1 -1
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +896 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +809 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/paths.rb +83 -0
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +19 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +46 -18
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +146 -17
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +2 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +44 -18
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +42 -17
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +44 -18
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +52 -18
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +49 -18
- data/lib/google/cloud/ai_platform/v1/match_service/client.rb +42 -17
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +42 -17
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +47 -21
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +544 -20
- data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +43 -17
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +28 -6
- data/lib/google/cloud/ai_platform/v1.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/annotation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/annotation_spec_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/artifact_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/completion_stats_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/content_pb.rb +64 -0
- data/lib/google/cloud/aiplatform/v1/context_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/data_item_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/data_labeling_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +4 -2
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +4 -2
- data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/deployed_index_ref_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/deployed_model_ref_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +49 -0
- data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_pb.rb +65 -0
- data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_service_services_pb.rb +53 -0
- data/lib/google/cloud/aiplatform/v1/encryption_spec_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/env_var_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/event_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/execution_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/explanation_metadata_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/feature_group_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_monitoring_stats_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/feature_online_store_admin_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +11 -2
- data/lib/google/cloud/aiplatform/v1/feature_online_store_service_services_pb.rb +5 -0
- data/lib/google/cloud/aiplatform/v1/feature_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_registry_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_selector_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/feature_view_sync_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/featurestore_monitoring_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/hyperparameter_tuning_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/index_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/io_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/lineage_subgraph_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/llm_utility_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/manual_batch_tuning_parameters_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/metadata_schema_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/migratable_resource_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/migration_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/model_deployment_monitoring_job_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/model_evaluation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/model_garden_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +3 -2
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/openapi_pb.rb +47 -0
- data/lib/google/cloud/aiplatform/v1/operation_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/pipeline_failure_policy_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +16 -2
- data/lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb +16 -3
- data/lib/google/cloud/aiplatform/v1/publisher_model_pb.rb +6 -2
- data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/schedule_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/schedule_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +4 -2
- data/lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/study_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_data_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_experiment_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_run_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/tensorboard_time_series_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/tool_pb.rb +51 -0
- data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/types_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/unmanaged_container_model_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/user_action_reference_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/value_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/vizier_service_pb.rb +2 -2
- data/proto_docs/google/api/client.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/content.rb +312 -0
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +15 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +102 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +12 -1
- data/proto_docs/google/cloud/aiplatform/v1/deployed_index_ref.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +45 -0
- data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool_service.rb +170 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +6 -0
- data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +8 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature.rb +5 -1
- data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +3 -1
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +150 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +3 -2
- data/proto_docs/google/cloud/aiplatform/v1/feature_view_sync.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +5 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +28 -0
- data/proto_docs/google/cloud/aiplatform/v1/metadata_service.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +55 -4
- data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +4 -4
- data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/openapi.rb +102 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +195 -0
- data/proto_docs/google/cloud/aiplatform/v1/publisher_model.rb +73 -1
- data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +16 -0
- data/proto_docs/google/cloud/aiplatform/v1/tool.rb +112 -0
- data/proto_docs/google/protobuf/any.rb +2 -1
- data/proto_docs/google/type/date.rb +53 -0
- metadata +27 -122
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/aiplatform/v1/tool.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/cloud/aiplatform/v1/openapi_pb'
|
9
|
+
require 'google/protobuf/struct_pb'
|
10
|
+
|
11
|
+
|
12
|
+
descriptor_data = "\n%google/cloud/aiplatform/v1/tool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a(google/cloud/aiplatform/v1/openapi.proto\x1a\x1cgoogle/protobuf/struct.proto\"[\n\x04Tool\x12S\n\x15\x66unction_declarations\x18\x01 \x03(\x0b\x32/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xe0\x41\x01\"\x7f\n\x13\x46unctionDeclaration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.SchemaB\x03\xe0\x41\x01\"M\n\x0c\x46unctionCall\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12*\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"U\n\x10\x46unctionResponse\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12.\n\x08response\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x02\x42\xc7\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\tToolProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.cloud.aiplatform.v1.Schema", "google/cloud/aiplatform/v1/openapi.proto"],
|
28
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
38
|
+
end
|
39
|
+
|
40
|
+
module Google
|
41
|
+
module Cloud
|
42
|
+
module AIPlatform
|
43
|
+
module V1
|
44
|
+
Tool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Tool").msgclass
|
45
|
+
FunctionDeclaration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionDeclaration").msgclass
|
46
|
+
FunctionCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionCall").msgclass
|
47
|
+
FunctionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionResponse").msgclass
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -21,7 +21,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
21
21
|
|
22
22
|
begin
|
23
23
|
pool.add_serialized_file(descriptor_data)
|
24
|
-
rescue TypeError
|
24
|
+
rescue TypeError
|
25
25
|
# Compatibility code: will be removed in the next major version.
|
26
26
|
require 'google/protobuf/descriptor_pb'
|
27
27
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
|
12
12
|
begin
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
14
|
-
rescue TypeError
|
14
|
+
rescue TypeError
|
15
15
|
# Compatibility code: will be removed in the next major version.
|
16
16
|
require 'google/protobuf/descriptor_pb'
|
17
17
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -14,7 +14,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
|
12
12
|
begin
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
14
|
-
rescue TypeError
|
14
|
+
rescue TypeError
|
15
15
|
# Compatibility code: will be removed in the next major version.
|
16
16
|
require 'google/protobuf/descriptor_pb'
|
17
17
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
|
12
12
|
begin
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
14
|
-
rescue TypeError
|
14
|
+
rescue TypeError
|
15
15
|
# Compatibility code: will be removed in the next major version.
|
16
16
|
require 'google/protobuf/descriptor_pb'
|
17
17
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -15,13 +15,13 @@ require 'google/protobuf/empty_pb'
|
|
15
15
|
require 'google/protobuf/timestamp_pb'
|
16
16
|
|
17
17
|
|
18
|
-
descriptor_data = "\n/google/cloud/aiplatform/v1/vizier_service.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a&google/cloud/aiplatform/v1/study.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"H\n\x0fGetStudyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"\x86\x01\n\x12\x43reateStudyRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x05study\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.StudyB\x03\xe0\x41\x02\"\x80\x01\n\x12ListStudiesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"b\n\x13ListStudiesResponse\x12\x32\n\x07studies\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Study\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x12\x44\x65leteStudyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"j\n\x12LookupStudyRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xc7\x01\n\x14SuggestTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x1d\n\x10suggestion_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x16\n\tclient_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08\x63ontexts\x18\x04 \x03(\x0b\x32(.google.cloud.aiplatform.v1.TrialContextB\x03\xe0\x41\x01\"\xe6\x01\n\x15SuggestTrialsResponse\x12\x31\n\x06trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial\x12<\n\x0bstudy_state\x18\x02 \x01(\x0e\x32\'.google.cloud.aiplatform.v1.Study.State\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"z\n\x15SuggestTrialsMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x11\n\tclient_id\x18\x02 \x01(\t\"\x84\x01\n\x12\x43reateTrialRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x35\n\x05trial\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.TrialB\x03\xe0\x41\x02\"H\n\x0fGetTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"}\n\x11ListTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"`\n\x12ListTrialsResponse\x12\x31\n\x06trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9c\x01\n\x1a\x41\x64\x64TrialMeasurementRequest\x12;\n\ntrial_name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\x12\x41\n\x0bmeasurement\x18\x03 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x02\"\xd5\x01\n\x14\x43ompleteTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\x12G\n\x11\x66inal_measurement\x18\x02 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x01\x12\x1d\n\x10trial_infeasible\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11infeasible_reason\x18\x04 \x01(\tB\x03\xe0\x41\x01\"K\n\x12\x44\x65leteTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"b\n#CheckTrialEarlyStoppingStateRequest\x12;\n\ntrial_name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\";\n$CheckTrialEarlyStoppingStateResponse\x12\x13\n\x0bshould_stop\x18\x01 \x01(\x08\"\x95\x01\n%CheckTrialEarlyStoppingStateMetatdata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\r\n\x05study\x18\x02 \x01(\t\x12\r\n\x05trial\x18\x03 \x01(\t\"I\n\x10StopTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"S\n\x18ListOptimalTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"V\n\x19ListOptimalTrialsResponse\x12\x39\n\x0eoptimal_trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial2\xd4\x16\n\rVizierService\x12\xab\x01\n\x0b\x43reateStudy\x12..google.cloud.aiplatform.v1.CreateStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\"I\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/studies:\x05study\
|
18
|
+
descriptor_data = "\n/google/cloud/aiplatform/v1/vizier_service.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a&google/cloud/aiplatform/v1/study.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"H\n\x0fGetStudyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"\x86\x01\n\x12\x43reateStudyRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x05study\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.StudyB\x03\xe0\x41\x02\"\x80\x01\n\x12ListStudiesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"b\n\x13ListStudiesResponse\x12\x32\n\x07studies\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Study\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x12\x44\x65leteStudyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"j\n\x12LookupStudyRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xc7\x01\n\x14SuggestTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x1d\n\x10suggestion_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x16\n\tclient_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08\x63ontexts\x18\x04 \x03(\x0b\x32(.google.cloud.aiplatform.v1.TrialContextB\x03\xe0\x41\x01\"\xe6\x01\n\x15SuggestTrialsResponse\x12\x31\n\x06trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial\x12<\n\x0bstudy_state\x18\x02 \x01(\x0e\x32\'.google.cloud.aiplatform.v1.Study.State\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"z\n\x15SuggestTrialsMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x11\n\tclient_id\x18\x02 \x01(\t\"\x84\x01\n\x12\x43reateTrialRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x35\n\x05trial\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.TrialB\x03\xe0\x41\x02\"H\n\x0fGetTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"}\n\x11ListTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\"`\n\x12ListTrialsResponse\x12\x31\n\x06trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9c\x01\n\x1a\x41\x64\x64TrialMeasurementRequest\x12;\n\ntrial_name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\x12\x41\n\x0bmeasurement\x18\x03 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x02\"\xd5\x01\n\x14\x43ompleteTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\x12G\n\x11\x66inal_measurement\x18\x02 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MeasurementB\x03\xe0\x41\x01\x12\x1d\n\x10trial_infeasible\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11infeasible_reason\x18\x04 \x01(\tB\x03\xe0\x41\x01\"K\n\x12\x44\x65leteTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"b\n#CheckTrialEarlyStoppingStateRequest\x12;\n\ntrial_name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\";\n$CheckTrialEarlyStoppingStateResponse\x12\x13\n\x0bshould_stop\x18\x01 \x01(\x08\"\x95\x01\n%CheckTrialEarlyStoppingStateMetatdata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\r\n\x05study\x18\x02 \x01(\t\x12\r\n\x05trial\x18\x03 \x01(\t\"I\n\x10StopTrialRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Trial\"S\n\x18ListOptimalTrialsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Study\"V\n\x19ListOptimalTrialsResponse\x12\x39\n\x0eoptimal_trials\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Trial2\xd4\x16\n\rVizierService\x12\xab\x01\n\x0b\x43reateStudy\x12..google.cloud.aiplatform.v1.CreateStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\"I\xda\x41\x0cparent,study\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/studies:\x05study\x12\x96\x01\n\x08GetStudy\x12+.google.cloud.aiplatform.v1.GetStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/studies/*}\x12\xac\x01\n\x0bListStudies\x12..google.cloud.aiplatform.v1.ListStudiesRequest\x1a/.google.cloud.aiplatform.v1.ListStudiesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/studies\x12\x91\x01\n\x0b\x44\x65leteStudy\x12..google.cloud.aiplatform.v1.DeleteStudyRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/studies/*}\x12\xa8\x01\n\x0bLookupStudy\x12..google.cloud.aiplatform.v1.LookupStudyRequest\x1a!.google.cloud.aiplatform.v1.Study\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\"2/v1/{parent=projects/*/locations/*}/studies:lookup:\x01*\x12\xda\x01\n\rSuggestTrials\x12\x30.google.cloud.aiplatform.v1.SuggestTrialsRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41.\n\x15SuggestTrialsResponse\x12\x15SuggestTrialsMetadata\x82\xd3\xe4\x93\x02\x41\"</v1/{parent=projects/*/locations/*/studies/*}/trials:suggest:\x01*\x12\xb4\x01\n\x0b\x43reateTrial\x12..google.cloud.aiplatform.v1.CreateTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"R\xda\x41\x0cparent,trial\x82\xd3\xe4\x93\x02=\"4/v1/{parent=projects/*/locations/*/studies/*}/trials:\x05trial\x12\x9f\x01\n\x08GetTrial\x12+.google.cloud.aiplatform.v1.GetTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=projects/*/locations/*/studies/*/trials/*}\x12\xb2\x01\n\nListTrials\x12-.google.cloud.aiplatform.v1.ListTrialsRequest\x1a..google.cloud.aiplatform.v1.ListTrialsResponse\"E\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/locations/*/studies/*}/trials\x12\xcb\x01\n\x13\x41\x64\x64TrialMeasurement\x12\x36.google.cloud.aiplatform.v1.AddTrialMeasurementRequest\x1a!.google.cloud.aiplatform.v1.Trial\"Y\x82\xd3\xe4\x93\x02S\"N/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:addTrialMeasurement:\x01*\x12\xae\x01\n\rCompleteTrial\x12\x30.google.cloud.aiplatform.v1.CompleteTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/studies/*/trials/*}:complete:\x01*\x12\x9a\x01\n\x0b\x44\x65leteTrial\x12..google.cloud.aiplatform.v1.DeleteTrialRequest\x1a\x16.google.protobuf.Empty\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36*4/v1/{name=projects/*/locations/*/studies/*/trials/*}\x12\xb3\x02\n\x1c\x43heckTrialEarlyStoppingState\x12?.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41M\n$CheckTrialEarlyStoppingStateResponse\x12%CheckTrialEarlyStoppingStateMetatdata\x82\xd3\xe4\x93\x02\\\"W/v1/{trial_name=projects/*/locations/*/studies/*/trials/*}:checkTrialEarlyStoppingState:\x01*\x12\xa2\x01\n\tStopTrial\x12,.google.cloud.aiplatform.v1.StopTrialRequest\x1a!.google.cloud.aiplatform.v1.Trial\"D\x82\xd3\xe4\x93\x02>\"9/v1/{name=projects/*/locations/*/studies/*/trials/*}:stop:\x01*\x12\xdc\x01\n\x11ListOptimalTrials\x12\x34.google.cloud.aiplatform.v1.ListOptimalTrialsRequest\x1a\x35.google.cloud.aiplatform.v1.ListOptimalTrialsResponse\"Z\xda\x41\x06parent\x82\xd3\xe4\x93\x02K\"F/v1/{parent=projects/*/locations/*/studies/*}/trials:listOptimalTrials:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd0\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x12VizierServiceProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
|
19
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|
22
22
|
begin
|
23
23
|
pool.add_serialized_file(descriptor_data)
|
24
|
-
rescue TypeError
|
24
|
+
rescue TypeError
|
25
25
|
# Compatibility code: will be removed in the next major version.
|
26
26
|
require 'google/protobuf/descriptor_pb'
|
27
27
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -21,6 +21,7 @@ module Google
|
|
21
21
|
module Api
|
22
22
|
# Required information for every language.
|
23
23
|
# @!attribute [rw] reference_docs_uri
|
24
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
24
25
|
# @return [::String]
|
25
26
|
# Link to automatically generated reference documentation. Example:
|
26
27
|
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
@@ -323,7 +323,7 @@ module Google
|
|
323
323
|
# {::Google::Cloud::AIPlatform::V1::BatchPredictionJob::InstanceConfig#excluded_fields excluded_fields}
|
324
324
|
# must be empty.
|
325
325
|
#
|
326
|
-
# The input must be JSONL with objects at each line,
|
326
|
+
# The input must be JSONL with objects at each line, BigQuery
|
327
327
|
# or TfRecord.
|
328
328
|
# @!attribute [rw] excluded_fields
|
329
329
|
# @return [::Array<::String>]
|
@@ -338,7 +338,7 @@ module Google
|
|
338
338
|
# {::Google::Cloud::AIPlatform::V1::BatchPredictionJob::InstanceConfig#included_fields included_fields}
|
339
339
|
# must be empty.
|
340
340
|
#
|
341
|
-
# The input must be JSONL with objects at each line,
|
341
|
+
# The input must be JSONL with objects at each line, BigQuery
|
342
342
|
# or TfRecord.
|
343
343
|
class InstanceConfig
|
344
344
|
include ::Google::Protobuf::MessageExts
|
@@ -0,0 +1,312 @@
|
|
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 base structured datatype containing multi-part content of a message.
|
25
|
+
#
|
26
|
+
# A `Content` includes a `role` field designating the producer of the `Content`
|
27
|
+
# and a `parts` field containing multi-part data that contains the content of
|
28
|
+
# the message turn.
|
29
|
+
# @!attribute [rw] role
|
30
|
+
# @return [::String]
|
31
|
+
# Optional. The producer of the content. Must be either 'user' or 'model'.
|
32
|
+
#
|
33
|
+
# Useful to set for multi-turn conversations, otherwise can be left blank
|
34
|
+
# or unset.
|
35
|
+
# @!attribute [rw] parts
|
36
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::Part>]
|
37
|
+
# Required. Ordered `Parts` that constitute a single message. Parts may have
|
38
|
+
# different IANA MIME types.
|
39
|
+
class Content
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
|
+
end
|
43
|
+
|
44
|
+
# A datatype containing media that is part of a multi-part `Content` message.
|
45
|
+
#
|
46
|
+
# A `Part` consists of data which has an associated datatype. A `Part` can only
|
47
|
+
# contain one of the accepted types in `Part.data`.
|
48
|
+
#
|
49
|
+
# A `Part` must have a fixed IANA MIME type identifying the type and subtype
|
50
|
+
# of the media if `inline_data` or `file_data` field is filled with raw bytes.
|
51
|
+
# @!attribute [rw] text
|
52
|
+
# @return [::String]
|
53
|
+
# Optional. Text part (can be code).
|
54
|
+
# @!attribute [rw] inline_data
|
55
|
+
# @return [::Google::Cloud::AIPlatform::V1::Blob]
|
56
|
+
# Optional. Inlined bytes data.
|
57
|
+
# @!attribute [rw] file_data
|
58
|
+
# @return [::Google::Cloud::AIPlatform::V1::FileData]
|
59
|
+
# Optional. URI based data.
|
60
|
+
# @!attribute [rw] function_call
|
61
|
+
# @return [::Google::Cloud::AIPlatform::V1::FunctionCall]
|
62
|
+
# Optional. A predicted [FunctionCall] returned from the model that
|
63
|
+
# contains a string representing the [FunctionDeclaration.name] with the
|
64
|
+
# parameters and their values.
|
65
|
+
# @!attribute [rw] function_response
|
66
|
+
# @return [::Google::Cloud::AIPlatform::V1::FunctionResponse]
|
67
|
+
# Optional. The result output of a [FunctionCall] that contains a string
|
68
|
+
# representing the [FunctionDeclaration.name] and a structured JSON object
|
69
|
+
# containing any output from the function call. It is used as context to
|
70
|
+
# the model.
|
71
|
+
# @!attribute [rw] video_metadata
|
72
|
+
# @return [::Google::Cloud::AIPlatform::V1::VideoMetadata]
|
73
|
+
# Optional. Video metadata. The metadata should only be specified while the
|
74
|
+
# video data is presented in inline_data or file_data.
|
75
|
+
class Part
|
76
|
+
include ::Google::Protobuf::MessageExts
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
end
|
79
|
+
|
80
|
+
# Raw media bytes.
|
81
|
+
#
|
82
|
+
# Text should not be sent as raw bytes, use the 'text' field.
|
83
|
+
# @!attribute [rw] mime_type
|
84
|
+
# @return [::String]
|
85
|
+
# Required. The IANA standard MIME type of the source data.
|
86
|
+
# @!attribute [rw] data
|
87
|
+
# @return [::String]
|
88
|
+
# Required. Raw bytes for media formats.
|
89
|
+
class Blob
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
|
+
end
|
93
|
+
|
94
|
+
# URI based data.
|
95
|
+
# @!attribute [rw] mime_type
|
96
|
+
# @return [::String]
|
97
|
+
# Required. The IANA standard MIME type of the source data.
|
98
|
+
# @!attribute [rw] file_uri
|
99
|
+
# @return [::String]
|
100
|
+
# Required. URI.
|
101
|
+
class FileData
|
102
|
+
include ::Google::Protobuf::MessageExts
|
103
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
|
+
end
|
105
|
+
|
106
|
+
# Metadata describes the input video content.
|
107
|
+
# @!attribute [rw] start_offset
|
108
|
+
# @return [::Google::Protobuf::Duration]
|
109
|
+
# Optional. The start offset of the video.
|
110
|
+
# @!attribute [rw] end_offset
|
111
|
+
# @return [::Google::Protobuf::Duration]
|
112
|
+
# Optional. The end offset of the video.
|
113
|
+
class VideoMetadata
|
114
|
+
include ::Google::Protobuf::MessageExts
|
115
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
116
|
+
end
|
117
|
+
|
118
|
+
# Generation config.
|
119
|
+
# @!attribute [rw] temperature
|
120
|
+
# @return [::Float]
|
121
|
+
# Optional. Controls the randomness of predictions.
|
122
|
+
# @!attribute [rw] top_p
|
123
|
+
# @return [::Float]
|
124
|
+
# Optional. If specified, nucleus sampling will be used.
|
125
|
+
# @!attribute [rw] top_k
|
126
|
+
# @return [::Float]
|
127
|
+
# Optional. If specified, top-k sampling will be used.
|
128
|
+
# @!attribute [rw] candidate_count
|
129
|
+
# @return [::Integer]
|
130
|
+
# Optional. Number of candidates to generate.
|
131
|
+
# @!attribute [rw] max_output_tokens
|
132
|
+
# @return [::Integer]
|
133
|
+
# Optional. The maximum number of output tokens to generate per message.
|
134
|
+
# @!attribute [rw] stop_sequences
|
135
|
+
# @return [::Array<::String>]
|
136
|
+
# Optional. Stop sequences.
|
137
|
+
class GenerationConfig
|
138
|
+
include ::Google::Protobuf::MessageExts
|
139
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
140
|
+
end
|
141
|
+
|
142
|
+
# Safety settings.
|
143
|
+
# @!attribute [rw] category
|
144
|
+
# @return [::Google::Cloud::AIPlatform::V1::HarmCategory]
|
145
|
+
# Required. Harm category.
|
146
|
+
# @!attribute [rw] threshold
|
147
|
+
# @return [::Google::Cloud::AIPlatform::V1::SafetySetting::HarmBlockThreshold]
|
148
|
+
# Required. The harm block threshold.
|
149
|
+
class SafetySetting
|
150
|
+
include ::Google::Protobuf::MessageExts
|
151
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
152
|
+
|
153
|
+
# Probability based thresholds levels for blocking.
|
154
|
+
module HarmBlockThreshold
|
155
|
+
# Unspecified harm block threshold.
|
156
|
+
HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0
|
157
|
+
|
158
|
+
# Block low threshold and above (i.e. block more).
|
159
|
+
BLOCK_LOW_AND_ABOVE = 1
|
160
|
+
|
161
|
+
# Block medium threshold and above.
|
162
|
+
BLOCK_MEDIUM_AND_ABOVE = 2
|
163
|
+
|
164
|
+
# Block only high threshold (i.e. block less).
|
165
|
+
BLOCK_ONLY_HIGH = 3
|
166
|
+
|
167
|
+
# Block none.
|
168
|
+
BLOCK_NONE = 4
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Safety rating corresponding to the generated content.
|
173
|
+
# @!attribute [r] category
|
174
|
+
# @return [::Google::Cloud::AIPlatform::V1::HarmCategory]
|
175
|
+
# Output only. Harm category.
|
176
|
+
# @!attribute [r] probability
|
177
|
+
# @return [::Google::Cloud::AIPlatform::V1::SafetyRating::HarmProbability]
|
178
|
+
# Output only. Harm probability levels in the content.
|
179
|
+
# @!attribute [r] blocked
|
180
|
+
# @return [::Boolean]
|
181
|
+
# Output only. Indicates whether the content was filtered out because of this
|
182
|
+
# rating.
|
183
|
+
class SafetyRating
|
184
|
+
include ::Google::Protobuf::MessageExts
|
185
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
186
|
+
|
187
|
+
# Harm probability levels in the content.
|
188
|
+
module HarmProbability
|
189
|
+
# Harm probability unspecified.
|
190
|
+
HARM_PROBABILITY_UNSPECIFIED = 0
|
191
|
+
|
192
|
+
# Negligible level of harm.
|
193
|
+
NEGLIGIBLE = 1
|
194
|
+
|
195
|
+
# Low level of harm.
|
196
|
+
LOW = 2
|
197
|
+
|
198
|
+
# Medium level of harm.
|
199
|
+
MEDIUM = 3
|
200
|
+
|
201
|
+
# High level of harm.
|
202
|
+
HIGH = 4
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# A collection of source attributions for a piece of content.
|
207
|
+
# @!attribute [r] citations
|
208
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::Citation>]
|
209
|
+
# Output only. List of citations.
|
210
|
+
class CitationMetadata
|
211
|
+
include ::Google::Protobuf::MessageExts
|
212
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
213
|
+
end
|
214
|
+
|
215
|
+
# Source attributions for content.
|
216
|
+
# @!attribute [r] start_index
|
217
|
+
# @return [::Integer]
|
218
|
+
# Output only. Start index into the content.
|
219
|
+
# @!attribute [r] end_index
|
220
|
+
# @return [::Integer]
|
221
|
+
# Output only. End index into the content.
|
222
|
+
# @!attribute [r] uri
|
223
|
+
# @return [::String]
|
224
|
+
# Output only. Url reference of the attribution.
|
225
|
+
# @!attribute [r] title
|
226
|
+
# @return [::String]
|
227
|
+
# Output only. Title of the attribution.
|
228
|
+
# @!attribute [r] license
|
229
|
+
# @return [::String]
|
230
|
+
# Output only. License of the attribution.
|
231
|
+
# @!attribute [r] publication_date
|
232
|
+
# @return [::Google::Type::Date]
|
233
|
+
# Output only. Publication date of the attribution.
|
234
|
+
class Citation
|
235
|
+
include ::Google::Protobuf::MessageExts
|
236
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
237
|
+
end
|
238
|
+
|
239
|
+
# A response candidate generated from the model.
|
240
|
+
# @!attribute [r] index
|
241
|
+
# @return [::Integer]
|
242
|
+
# Output only. Index of the candidate.
|
243
|
+
# @!attribute [r] content
|
244
|
+
# @return [::Google::Cloud::AIPlatform::V1::Content]
|
245
|
+
# Output only. Content parts of the candidate.
|
246
|
+
# @!attribute [r] finish_reason
|
247
|
+
# @return [::Google::Cloud::AIPlatform::V1::Candidate::FinishReason]
|
248
|
+
# Output only. The reason why the model stopped generating tokens.
|
249
|
+
# If empty, the model has not stopped generating the tokens.
|
250
|
+
# @!attribute [r] safety_ratings
|
251
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::SafetyRating>]
|
252
|
+
# Output only. List of ratings for the safety of a response candidate.
|
253
|
+
#
|
254
|
+
# There is at most one rating per category.
|
255
|
+
# @!attribute [r] finish_message
|
256
|
+
# @return [::String]
|
257
|
+
# Output only. Describes the reason the mode stopped generating tokens in
|
258
|
+
# more detail. This is only filled when `finish_reason` is set.
|
259
|
+
# @!attribute [r] citation_metadata
|
260
|
+
# @return [::Google::Cloud::AIPlatform::V1::CitationMetadata]
|
261
|
+
# Output only. Source attribution of the generated content.
|
262
|
+
class Candidate
|
263
|
+
include ::Google::Protobuf::MessageExts
|
264
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
265
|
+
|
266
|
+
# The reason why the model stopped generating tokens.
|
267
|
+
# If empty, the model has not stopped generating the tokens.
|
268
|
+
module FinishReason
|
269
|
+
# The finish reason is unspecified.
|
270
|
+
FINISH_REASON_UNSPECIFIED = 0
|
271
|
+
|
272
|
+
# Natural stop point of the model or provided stop sequence.
|
273
|
+
STOP = 1
|
274
|
+
|
275
|
+
# The maximum number of tokens as specified in the request was reached.
|
276
|
+
MAX_TOKENS = 2
|
277
|
+
|
278
|
+
# The token generation was stopped as the response was flagged for safety
|
279
|
+
# reasons. NOTE: When streaming the Candidate.content will be empty if
|
280
|
+
# content filters blocked the output.
|
281
|
+
SAFETY = 3
|
282
|
+
|
283
|
+
# The token generation was stopped as the response was flagged for
|
284
|
+
# unauthorized citations.
|
285
|
+
RECITATION = 4
|
286
|
+
|
287
|
+
# All other reasons that stopped the token generation
|
288
|
+
OTHER = 5
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
# Harm categories that will block the content.
|
293
|
+
module HarmCategory
|
294
|
+
# The harm category is unspecified.
|
295
|
+
HARM_CATEGORY_UNSPECIFIED = 0
|
296
|
+
|
297
|
+
# The harm category is hate speech.
|
298
|
+
HARM_CATEGORY_HATE_SPEECH = 1
|
299
|
+
|
300
|
+
# The harm category is dangerous content.
|
301
|
+
HARM_CATEGORY_DANGEROUS_CONTENT = 2
|
302
|
+
|
303
|
+
# The harm category is harassment.
|
304
|
+
HARM_CATEGORY_HARASSMENT = 3
|
305
|
+
|
306
|
+
# The harm category is sexually explicit content.
|
307
|
+
HARM_CATEGORY_SEXUALLY_EXPLICIT = 4
|
308
|
+
end
|
309
|
+
end
|
310
|
+
end
|
311
|
+
end
|
312
|
+
end
|
@@ -219,6 +219,21 @@ module Google
|
|
219
219
|
# Optional. The Experiment Run associated with this job.
|
220
220
|
# Format:
|
221
221
|
# `projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}`
|
222
|
+
# @!attribute [rw] models
|
223
|
+
# @return [::Array<::String>]
|
224
|
+
# Optional. The name of the Model resources for which to generate a mapping
|
225
|
+
# to artifact URIs. Applicable only to some of the Google-provided custom
|
226
|
+
# jobs. Format: `projects/{project}/locations/{location}/models/{model}`
|
227
|
+
#
|
228
|
+
# In order to retrieve a specific version of the model, also provide
|
229
|
+
# the version ID or version alias.
|
230
|
+
# Example: `projects/{project}/locations/{location}/models/{model}@2`
|
231
|
+
# or
|
232
|
+
# `projects/{project}/locations/{location}/models/{model}@golden`
|
233
|
+
# If no version ID or alias is specified, the "default" version will be
|
234
|
+
# returned. The "default" version alias is created for the first version of
|
235
|
+
# the model, and can be moved to other versions later on. There will be
|
236
|
+
# exactly one default version.
|
222
237
|
class CustomJobSpec
|
223
238
|
include ::Google::Protobuf::MessageExts
|
224
239
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -184,15 +184,78 @@ module Google
|
|
184
184
|
# @!attribute [rw] fraction_split
|
185
185
|
# @return [::Google::Cloud::AIPlatform::V1::ExportFractionSplit]
|
186
186
|
# Split based on fractions defining the size of each set.
|
187
|
+
# @!attribute [rw] filter_split
|
188
|
+
# @return [::Google::Cloud::AIPlatform::V1::ExportFilterSplit]
|
189
|
+
# Split based on the provided filters for each set.
|
187
190
|
# @!attribute [rw] annotations_filter
|
188
191
|
# @return [::String]
|
189
192
|
# An expression for filtering what part of the Dataset is to be exported.
|
190
193
|
# Only Annotations that match this filter will be exported. The filter syntax
|
191
194
|
# is the same as in
|
192
195
|
# {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_annotations ListAnnotations}.
|
196
|
+
# @!attribute [rw] saved_query_id
|
197
|
+
# @return [::String]
|
198
|
+
# The ID of a SavedQuery (annotation set) under the Dataset specified by
|
199
|
+
# [dataset_id][] used for filtering Annotations for training.
|
200
|
+
#
|
201
|
+
# Only used for custom training data export use cases.
|
202
|
+
# Only applicable to Datasets that have SavedQueries.
|
203
|
+
#
|
204
|
+
# Only Annotations that are associated with this SavedQuery are used in
|
205
|
+
# respectively training. When used in conjunction with
|
206
|
+
# {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotations_filter annotations_filter},
|
207
|
+
# the Annotations used for training are filtered by both
|
208
|
+
# {::Google::Cloud::AIPlatform::V1::ExportDataConfig#saved_query_id saved_query_id}
|
209
|
+
# and
|
210
|
+
# {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotations_filter annotations_filter}.
|
211
|
+
#
|
212
|
+
# Only one of
|
213
|
+
# {::Google::Cloud::AIPlatform::V1::ExportDataConfig#saved_query_id saved_query_id}
|
214
|
+
# and
|
215
|
+
# {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotation_schema_uri annotation_schema_uri}
|
216
|
+
# should be specified as both of them represent the same thing: problem type.
|
217
|
+
# @!attribute [rw] annotation_schema_uri
|
218
|
+
# @return [::String]
|
219
|
+
# The Cloud Storage URI that points to a YAML file describing the annotation
|
220
|
+
# schema. The schema is defined as an OpenAPI 3.0.2 [Schema
|
221
|
+
# Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
|
222
|
+
# The schema files that can be used here are found in
|
223
|
+
# gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the
|
224
|
+
# chosen schema must be consistent with
|
225
|
+
# {::Google::Cloud::AIPlatform::V1::Dataset#metadata_schema_uri metadata} of the
|
226
|
+
# Dataset specified by [dataset_id][].
|
227
|
+
#
|
228
|
+
# Only used for custom training data export use cases.
|
229
|
+
# Only applicable to Datasets that have DataItems and Annotations.
|
230
|
+
#
|
231
|
+
# Only Annotations that both match this schema and belong to DataItems not
|
232
|
+
# ignored by the split method are used in respectively training, validation
|
233
|
+
# or test role, depending on the role of the DataItem they are on.
|
234
|
+
#
|
235
|
+
# When used in conjunction with
|
236
|
+
# {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotations_filter annotations_filter},
|
237
|
+
# the Annotations used for training are filtered by both
|
238
|
+
# {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotations_filter annotations_filter}
|
239
|
+
# and
|
240
|
+
# {::Google::Cloud::AIPlatform::V1::ExportDataConfig#annotation_schema_uri annotation_schema_uri}.
|
241
|
+
# @!attribute [rw] export_use
|
242
|
+
# @return [::Google::Cloud::AIPlatform::V1::ExportDataConfig::ExportUse]
|
243
|
+
# Indicates the usage of the exported files.
|
193
244
|
class ExportDataConfig
|
194
245
|
include ::Google::Protobuf::MessageExts
|
195
246
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
247
|
+
|
248
|
+
# ExportUse indicates the usage of the exported files. It restricts file
|
249
|
+
# destination, format, annotations to be exported, whether to allow
|
250
|
+
# unannotated data to be exported and whether to clone files to temp Cloud
|
251
|
+
# Storage bucket.
|
252
|
+
module ExportUse
|
253
|
+
# Regular user export.
|
254
|
+
EXPORT_USE_UNSPECIFIED = 0
|
255
|
+
|
256
|
+
# Export for custom code training.
|
257
|
+
CUSTOM_CODE_TRAINING = 6
|
258
|
+
end
|
196
259
|
end
|
197
260
|
|
198
261
|
# Assigns the input data to training, validation, and test sets as per the
|
@@ -214,6 +277,45 @@ module Google
|
|
214
277
|
include ::Google::Protobuf::MessageExts
|
215
278
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
216
279
|
end
|
280
|
+
|
281
|
+
# Assigns input data to training, validation, and test sets based on the given
|
282
|
+
# filters, data pieces not matched by any filter are ignored. Currently only
|
283
|
+
# supported for Datasets containing DataItems.
|
284
|
+
# If any of the filters in this message are to match nothing, then they can be
|
285
|
+
# set as '-' (the minus sign).
|
286
|
+
#
|
287
|
+
# Supported only for unstructured Datasets.
|
288
|
+
# @!attribute [rw] training_filter
|
289
|
+
# @return [::String]
|
290
|
+
# Required. A filter on DataItems of the Dataset. DataItems that match
|
291
|
+
# this filter are used to train the Model. A filter with same syntax
|
292
|
+
# as the one used in
|
293
|
+
# {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_data_items DatasetService.ListDataItems}
|
294
|
+
# may be used. If a single DataItem is matched by more than one of the
|
295
|
+
# FilterSplit filters, then it is assigned to the first set that applies to
|
296
|
+
# it in the training, validation, test order.
|
297
|
+
# @!attribute [rw] validation_filter
|
298
|
+
# @return [::String]
|
299
|
+
# Required. A filter on DataItems of the Dataset. DataItems that match
|
300
|
+
# this filter are used to validate the Model. A filter with same syntax
|
301
|
+
# as the one used in
|
302
|
+
# {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_data_items DatasetService.ListDataItems}
|
303
|
+
# may be used. If a single DataItem is matched by more than one of the
|
304
|
+
# FilterSplit filters, then it is assigned to the first set that applies to
|
305
|
+
# it in the training, validation, test order.
|
306
|
+
# @!attribute [rw] test_filter
|
307
|
+
# @return [::String]
|
308
|
+
# Required. A filter on DataItems of the Dataset. DataItems that match
|
309
|
+
# this filter are used to test the Model. A filter with same syntax
|
310
|
+
# as the one used in
|
311
|
+
# {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_data_items DatasetService.ListDataItems}
|
312
|
+
# may be used. If a single DataItem is matched by more than one of the
|
313
|
+
# FilterSplit filters, then it is assigned to the first set that applies to
|
314
|
+
# it in the training, validation, test order.
|
315
|
+
class ExportFilterSplit
|
316
|
+
include ::Google::Protobuf::MessageExts
|
317
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
318
|
+
end
|
217
319
|
end
|
218
320
|
end
|
219
321
|
end
|