From 1987df1abdb071212dc7d83eef23746f8400a613 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 15:22:28 -0700 Subject: [PATCH] feat: add ValueType.STRUCT to Feature (#25997) feat: add encryption_spec to FeatureOnlineStore feat: add struct_value to FeatureValue feat: add encryption_spec, service_account, disable_container_logging to DeploymentResourcePool feat: add model_reference to Dataset feat: add tool_config to GenerateContentRequest feat: add dataplex_config to MetadataStore feat: add model_reference to DatasetVersion feat: add INVALID_SPARSE_DIMENSIONS, INVALID_SPARSE_EMBEDDING, INVALID_EMBEDDING to NearestNeighborSearchOperationMetadata.RecordError feat: add valid_sparse_record_count, invalid_sparse_record_count to NearestNeighborSearchOperationMetadata.ContentValidationStats feat: add sparse_embedding to IndexDatapoint feat: add sparse_vectors_count to IndexStats feat: add sparse_distance to FindNeighborsResponse.Neighbor feat: add more fields in FindNeighborsRequest.Query feat: add UpdateNotebookRuntimeTemplate to NotebookService feat: add direct_notebook_source to NotebookExecutionJob feat: add encryption_spec to NotebookRuntimeTemplate feat: add idle_shutdown_config, encryption_spec, satisfies_pzs, satisfies_pzi to NotebookRuntime feat: add RaySpec to PersistentResource fix!: An existing message `Segment` is removed fix!: An existing message `GroundingAttribution` is removed fix!: An existing field `grounding_attributions` is removed from message `.google.cloud.aiplatform.v1beta1.GroundingMetadata` fix!: An existing field `disable_attribution` is removed from message `.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval` docs: A comment for field `feature_vector` in message `.google.cloud.aiplatform.v1beta1.IndexDatapoint` is changed docs: A comment for field `vectors_count` in message `.google.cloud.aiplatform.v1beta1.IndexStats` is changed docs: A comment for enum value `EMBEDDING_SIZE_MISMATCH` in enum `RecordErrorType` is changed docs: A comment for field `exec` in message `.google.cloud.aiplatform.v1beta1.Probe` is changed --- .../.owlbot-manifest.json | 2 + .../gapic_metadata.json | 10 ++ .../ai_platform/v1/dataset_service/client.rb | 99 +++++++++++++++++ .../v1/dataset_service/rest/client.rb | 92 ++++++++++++++++ .../v1/dataset_service/rest/operations.rb | 70 ++++++++++++ .../v1/dataset_service/rest/service_stub.rb | 60 +++++++++++ .../rest/operations.rb | 70 ++++++++++++ .../v1/endpoint_service/rest/operations.rb | 70 ++++++++++++ .../rest/operations.rb | 70 ++++++++++++ .../rest/operations.rb | 70 ++++++++++++ .../featurestore_service/rest/operations.rb | 70 ++++++++++++ .../index_endpoint_service/rest/operations.rb | 70 ++++++++++++ .../v1/index_service/rest/operations.rb | 70 ++++++++++++ .../v1/job_service/rest/operations.rb | 70 ++++++++++++ .../v1/metadata_service/rest/operations.rb | 70 ++++++++++++ .../v1/migration_service/rest/operations.rb | 70 ++++++++++++ .../v1/model_service/rest/operations.rb | 70 ++++++++++++ .../ai_platform/v1/notebook_service/client.rb | 100 ++++++++++++++++++ .../v1/notebook_service/rest/client.rb | 93 ++++++++++++++++ .../v1/notebook_service/rest/operations.rb | 70 ++++++++++++ .../v1/notebook_service/rest/service_stub.rb | 60 +++++++++++ .../rest/operations.rb | 70 ++++++++++++ .../v1/pipeline_service/rest/operations.rb | 70 ++++++++++++ .../v1/prediction_service/client.rb | 10 +- .../v1/prediction_service/credentials.rb | 3 +- .../v1/prediction_service/rest/client.rb | 10 +- .../prediction_service/rest/service_stub.rb | 16 +++ .../v1/schedule_service/rest/operations.rb | 70 ++++++++++++ .../rest/operations.rb | 70 ++++++++++++ .../v1/tensorboard_service/rest/operations.rb | 70 ++++++++++++ .../v1/vizier_service/rest/operations.rb | 70 ++++++++++++ .../google/cloud/aiplatform/v1/content_pb.rb | 7 +- .../google/cloud/aiplatform/v1/dataset_pb.rb | 2 +- .../cloud/aiplatform/v1/dataset_service_pb.rb | 5 +- .../v1/dataset_service_services_pb.rb | 2 + .../cloud/aiplatform/v1/dataset_version_pb.rb | 2 +- .../v1/deployment_resource_pool_pb.rb | 4 +- .../aiplatform/v1/feature_online_store_pb.rb | 4 +- .../google/cloud/aiplatform/v1/feature_pb.rb | 2 +- .../v1/featurestore_online_service_pb.rb | 4 +- .../google/cloud/aiplatform/v1/index_pb.rb | 3 +- .../cloud/aiplatform/v1/index_service_pb.rb | 2 +- .../cloud/aiplatform/v1/match_service_pb.rb | 3 +- .../cloud/aiplatform/v1/metadata_store_pb.rb | 3 +- .../aiplatform/v1/notebook_runtime_pb.rb | 4 +- .../aiplatform/v1/notebook_service_pb.rb | 3 +- .../v1/notebook_service_services_pb.rb | 2 + .../aiplatform/v1/persistent_resource_pb.rb | 3 +- .../aiplatform/v1/prediction_service_pb.rb | 2 +- .../lib/google/cloud/aiplatform/v1/tool_pb.rb | 5 +- .../google/cloud/aiplatform/v1/content.rb | 57 ++-------- .../google/cloud/aiplatform/v1/dataset.rb | 4 + .../cloud/aiplatform/v1/dataset_service.rb | 17 +++ .../cloud/aiplatform/v1/dataset_version.rb | 4 + .../aiplatform/v1/deployment_resource_pool.rb | 23 ++++ .../google/cloud/aiplatform/v1/feature.rb | 3 + .../cloud/aiplatform/v1/feature_group.rb | 6 +- .../aiplatform/v1/feature_online_store.rb | 4 + .../v1/featurestore_online_service.rb | 24 +++++ .../google/cloud/aiplatform/v1/index.rb | 26 ++++- .../cloud/aiplatform/v1/index_service.rb | 19 +++- .../cloud/aiplatform/v1/match_service.rb | 19 +++- .../cloud/aiplatform/v1/metadata_store.rb | 13 +++ .../google/cloud/aiplatform/v1/model.rb | 2 +- .../cloud/aiplatform/v1/notebook_runtime.rb | 15 +++ .../cloud/aiplatform/v1/notebook_service.rb | 18 ++++ .../aiplatform/v1/persistent_resource.rb | 63 +++++++++++ .../cloud/aiplatform/v1/prediction_service.rb | 4 + .../google/cloud/aiplatform/v1/tool.rb | 48 ++++++++- .../dataset_service/update_dataset_version.rb | 47 ++++++++ .../update_notebook_runtime_template.rb | 47 ++++++++ ...t_metadata_google.cloud.aiplatform.v1.json | 80 ++++++++++++++ .../v1/dataset_service_rest_test.rb | 55 ++++++++++ .../ai_platform/v1/dataset_service_test.rb | 60 +++++++++++ .../v1/notebook_service_rest_test.rb | 55 ++++++++++ .../ai_platform/v1/notebook_service_test.rb | 60 +++++++++++ .../v1/prediction_service_rest_test.rb | 22 ++-- .../ai_platform/v1/prediction_service_test.rb | 24 +++-- 78 files changed, 2657 insertions(+), 109 deletions(-) create mode 100644 google-cloud-ai_platform-v1/snippets/dataset_service/update_dataset_version.rb create mode 100644 google-cloud-ai_platform-v1/snippets/notebook_service/update_notebook_runtime_template.rb diff --git a/google-cloud-ai_platform-v1/.owlbot-manifest.json b/google-cloud-ai_platform-v1/.owlbot-manifest.json index c33f19228e45..8466984a45c2 100644 --- a/google-cloud-ai_platform-v1/.owlbot-manifest.json +++ b/google-cloud-ai_platform-v1/.owlbot-manifest.json @@ -550,6 +550,7 @@ "snippets/dataset_service/restore_dataset_version.rb", "snippets/dataset_service/search_data_items.rb", "snippets/dataset_service/update_dataset.rb", + "snippets/dataset_service/update_dataset_version.rb", "snippets/deployment_resource_pool_service/create_deployment_resource_pool.rb", "snippets/deployment_resource_pool_service/delete_deployment_resource_pool.rb", "snippets/deployment_resource_pool_service/get_deployment_resource_pool.rb", @@ -732,6 +733,7 @@ "snippets/notebook_service/list_notebook_runtime_templates.rb", "snippets/notebook_service/list_notebook_runtimes.rb", "snippets/notebook_service/start_notebook_runtime.rb", + "snippets/notebook_service/update_notebook_runtime_template.rb", "snippets/notebook_service/upgrade_notebook_runtime.rb", "snippets/persistent_resource_service/create_persistent_resource.rb", "snippets/persistent_resource_service/delete_persistent_resource.rb", diff --git a/google-cloud-ai_platform-v1/gapic_metadata.json b/google-cloud-ai_platform-v1/gapic_metadata.json index 3f1a5ee869bb..6d711666202b 100644 --- a/google-cloud-ai_platform-v1/gapic_metadata.json +++ b/google-cloud-ai_platform-v1/gapic_metadata.json @@ -50,6 +50,11 @@ "create_dataset_version" ] }, + "UpdateDatasetVersion": { + "methods": [ + "update_dataset_version" + ] + }, "DeleteDatasetVersion": { "methods": [ "delete_dataset_version" @@ -1221,6 +1226,11 @@ "delete_notebook_runtime_template" ] }, + "UpdateNotebookRuntimeTemplate": { + "methods": [ + "update_notebook_runtime_template" + ] + }, "AssignNotebookRuntime": { "methods": [ "assign_notebook_runtime" diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/client.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/client.rb index 0a313fed7b9d..a7ef916528dd 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/client.rb @@ -1000,6 +1000,98 @@ def create_dataset_version request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Updates a DatasetVersion. + # + # @overload update_dataset_version(request, options = nil) + # Pass arguments to `update_dataset_version` via a request object, either of type + # {::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_dataset_version(dataset_version: nil, update_mask: nil) + # Pass arguments to `update_dataset_version` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param dataset_version [::Google::Cloud::AIPlatform::V1::DatasetVersion, ::Hash] + # Required. The DatasetVersion which replaces the resource on the server. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The update mask applies to the resource. + # For the `FieldMask` definition, see + # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Updatable fields: + # + # * `display_name` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::AIPlatform::V1::DatasetVersion] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::AIPlatform::V1::DatasetVersion] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/ai_platform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new + # + # # Call the update_dataset_version method. + # result = client.update_dataset_version request + # + # # The returned object is of type Google::Cloud::AIPlatform::V1::DatasetVersion. + # p result + # + def update_dataset_version request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_dataset_version.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.dataset_version&.name + header_params["dataset_version.name"] = request.dataset_version.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_dataset_version.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_dataset_version.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataset_service_stub.call_rpc :update_dataset_version, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Deletes a Dataset version. # @@ -2230,6 +2322,11 @@ class Rpcs # attr_reader :create_dataset_version ## + # RPC-specific configuration for `update_dataset_version` + # @return [::Gapic::Config::Method] + # + attr_reader :update_dataset_version + ## # RPC-specific configuration for `delete_dataset_version` # @return [::Gapic::Config::Method] # @@ -2298,6 +2395,8 @@ def initialize parent_rpcs = nil @export_data = ::Gapic::Config::Method.new export_data_config create_dataset_version_config = parent_rpcs.create_dataset_version if parent_rpcs.respond_to? :create_dataset_version @create_dataset_version = ::Gapic::Config::Method.new create_dataset_version_config + update_dataset_version_config = parent_rpcs.update_dataset_version if parent_rpcs.respond_to? :update_dataset_version + @update_dataset_version = ::Gapic::Config::Method.new update_dataset_version_config delete_dataset_version_config = parent_rpcs.delete_dataset_version if parent_rpcs.respond_to? :delete_dataset_version @delete_dataset_version = ::Gapic::Config::Method.new delete_dataset_version_config get_dataset_version_config = parent_rpcs.get_dataset_version if parent_rpcs.respond_to? :get_dataset_version diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb index 3f1f31603e27..39a22a4a817e 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb @@ -939,6 +939,91 @@ def create_dataset_version request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Updates a DatasetVersion. + # + # @overload update_dataset_version(request, options = nil) + # Pass arguments to `update_dataset_version` via a request object, either of type + # {::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_dataset_version(dataset_version: nil, update_mask: nil) + # Pass arguments to `update_dataset_version` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param dataset_version [::Google::Cloud::AIPlatform::V1::DatasetVersion, ::Hash] + # Required. The DatasetVersion which replaces the resource on the server. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The update mask applies to the resource. + # For the `FieldMask` definition, see + # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Updatable fields: + # + # * `display_name` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::AIPlatform::V1::DatasetVersion] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::AIPlatform::V1::DatasetVersion] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/ai_platform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::AIPlatform::V1::DatasetService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new + # + # # Call the update_dataset_version method. + # result = client.update_dataset_version request + # + # # The returned object is of type Google::Cloud::AIPlatform::V1::DatasetVersion. + # p result + # + def update_dataset_version request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_dataset_version.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_dataset_version.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_dataset_version.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataset_service_stub.update_dataset_version request, options do |result, operation| + yield result, operation if block_given? + return result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Deletes a Dataset version. # @@ -2086,6 +2171,11 @@ class Rpcs # attr_reader :create_dataset_version ## + # RPC-specific configuration for `update_dataset_version` + # @return [::Gapic::Config::Method] + # + attr_reader :update_dataset_version + ## # RPC-specific configuration for `delete_dataset_version` # @return [::Gapic::Config::Method] # @@ -2154,6 +2244,8 @@ def initialize parent_rpcs = nil @export_data = ::Gapic::Config::Method.new export_data_config create_dataset_version_config = parent_rpcs.create_dataset_version if parent_rpcs.respond_to? :create_dataset_version @create_dataset_version = ::Gapic::Config::Method.new create_dataset_version_config + update_dataset_version_config = parent_rpcs.update_dataset_version if parent_rpcs.respond_to? :update_dataset_version + @update_dataset_version = ::Gapic::Config::Method.new update_dataset_version_config delete_dataset_version_config = parent_rpcs.delete_dataset_version if parent_rpcs.respond_to? :delete_dataset_version @delete_dataset_version = ::Gapic::Config::Method.new delete_dataset_version_config get_dataset_version_config = parent_rpcs.get_dataset_version if parent_rpcs.respond_to? :get_dataset_version diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb index d9ac8420073f..edb7622a0d38 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb index cb5c519bb50c..01610d362e54 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb @@ -365,6 +365,44 @@ def create_dataset_version request_pb, options = nil result end + ## + # Baseline implementation for the update_dataset_version REST call + # + # @param request_pb [::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::AIPlatform::V1::DatasetVersion] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::AIPlatform::V1::DatasetVersion] + # A result object deserialized from the server's reply + def update_dataset_version request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_dataset_version_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::AIPlatform::V1::DatasetVersion.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + end + ## # Baseline implementation for the delete_dataset_version REST call # @@ -918,6 +956,28 @@ def self.transcode_create_dataset_version_request request_pb transcoder.transcode request_pb end + ## + # @private + # + # GRPC transcoding helper method for the update_dataset_version REST call + # + # @param request_pb [::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_dataset_version_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{dataset_version.name}", + body: "dataset_version", + matches: [ + ["dataset_version.name", %r{^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + ## # @private # diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb index f84c2e0dbb34..16f0173c15ff 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb index 6424f2f55920..e04c5b1542dc 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb index 600d2bab11aa..a1cb37b8c891 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb index 68ce1bad1396..cdd742e9e556 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb index f60ef9c5e254..901f7ed77864 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb index 1095a67ca1b4..c43d7b7391ea 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb index 4c0612e1f354..d4425b9fc3e2 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb index c189294f31e1..f665a7e6b152 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb index 7ec8b4ae5c77..3c69ab1f9cc7 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb index 747f65d247fd..98c300b016c5 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb index 362066464c69..cb150b204b64 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/client.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/client.rb index a65254c5a6af..71ee559a5204 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/client.rb @@ -625,6 +625,99 @@ def delete_notebook_runtime_template request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Updates a NotebookRuntimeTemplate. + # + # @overload update_notebook_runtime_template(request, options = nil) + # Pass arguments to `update_notebook_runtime_template` via a request object, either of type + # {::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_notebook_runtime_template(notebook_runtime_template: nil, update_mask: nil) + # Pass arguments to `update_notebook_runtime_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param notebook_runtime_template [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate, ::Hash] + # Required. The NotebookRuntimeTemplate to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The update mask applies to the resource. + # For the `FieldMask` definition, see + # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Input format: + # `{paths: "${updated_filed}"}` Updatable fields: + # + # * `encryption_spec.kms_key_name` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/ai_platform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::AIPlatform::V1::NotebookService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new + # + # # Call the update_notebook_runtime_template method. + # result = client.update_notebook_runtime_template request + # + # # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate. + # p result + # + def update_notebook_runtime_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_notebook_runtime_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.notebook_runtime_template&.name + header_params["notebook_runtime_template.name"] = request.notebook_runtime_template.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_notebook_runtime_template.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_notebook_runtime_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @notebook_service_stub.call_rpc :update_notebook_runtime_template, request, options: options do |response, operation| + yield response, operation if block_given? + return response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Assigns a NotebookRuntime to a user for a particular Notebook file. This # method will either returns an existing assignment or generates a new one. @@ -1432,6 +1525,11 @@ class Rpcs # attr_reader :delete_notebook_runtime_template ## + # RPC-specific configuration for `update_notebook_runtime_template` + # @return [::Gapic::Config::Method] + # + attr_reader :update_notebook_runtime_template + ## # RPC-specific configuration for `assign_notebook_runtime` # @return [::Gapic::Config::Method] # @@ -1472,6 +1570,8 @@ def initialize parent_rpcs = nil @list_notebook_runtime_templates = ::Gapic::Config::Method.new list_notebook_runtime_templates_config delete_notebook_runtime_template_config = parent_rpcs.delete_notebook_runtime_template if parent_rpcs.respond_to? :delete_notebook_runtime_template @delete_notebook_runtime_template = ::Gapic::Config::Method.new delete_notebook_runtime_template_config + update_notebook_runtime_template_config = parent_rpcs.update_notebook_runtime_template if parent_rpcs.respond_to? :update_notebook_runtime_template + @update_notebook_runtime_template = ::Gapic::Config::Method.new update_notebook_runtime_template_config assign_notebook_runtime_config = parent_rpcs.assign_notebook_runtime if parent_rpcs.respond_to? :assign_notebook_runtime @assign_notebook_runtime = ::Gapic::Config::Method.new assign_notebook_runtime_config get_notebook_runtime_config = parent_rpcs.get_notebook_runtime if parent_rpcs.respond_to? :get_notebook_runtime diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb index e5a0c0e72542..2f4496bccc34 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb @@ -592,6 +592,92 @@ def delete_notebook_runtime_template request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Updates a NotebookRuntimeTemplate. + # + # @overload update_notebook_runtime_template(request, options = nil) + # Pass arguments to `update_notebook_runtime_template` via a request object, either of type + # {::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_notebook_runtime_template(notebook_runtime_template: nil, update_mask: nil) + # Pass arguments to `update_notebook_runtime_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param notebook_runtime_template [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate, ::Hash] + # Required. The NotebookRuntimeTemplate to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The update mask applies to the resource. + # For the `FieldMask` definition, see + # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Input format: + # `{paths: "${updated_filed}"}` Updatable fields: + # + # * `encryption_spec.kms_key_name` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/ai_platform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new + # + # # Call the update_notebook_runtime_template method. + # result = client.update_notebook_runtime_template request + # + # # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate. + # p result + # + def update_notebook_runtime_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_notebook_runtime_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_notebook_runtime_template.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_notebook_runtime_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @notebook_service_stub.update_notebook_runtime_template request, options do |result, operation| + yield result, operation if block_given? + return result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Assigns a NotebookRuntime to a user for a particular Notebook file. This # method will either returns an existing assignment or generates a new one. @@ -1344,6 +1430,11 @@ class Rpcs # attr_reader :delete_notebook_runtime_template ## + # RPC-specific configuration for `update_notebook_runtime_template` + # @return [::Gapic::Config::Method] + # + attr_reader :update_notebook_runtime_template + ## # RPC-specific configuration for `assign_notebook_runtime` # @return [::Gapic::Config::Method] # @@ -1384,6 +1475,8 @@ def initialize parent_rpcs = nil @list_notebook_runtime_templates = ::Gapic::Config::Method.new list_notebook_runtime_templates_config delete_notebook_runtime_template_config = parent_rpcs.delete_notebook_runtime_template if parent_rpcs.respond_to? :delete_notebook_runtime_template @delete_notebook_runtime_template = ::Gapic::Config::Method.new delete_notebook_runtime_template_config + update_notebook_runtime_template_config = parent_rpcs.update_notebook_runtime_template if parent_rpcs.respond_to? :update_notebook_runtime_template + @update_notebook_runtime_template = ::Gapic::Config::Method.new update_notebook_runtime_template_config assign_notebook_runtime_config = parent_rpcs.assign_notebook_runtime if parent_rpcs.respond_to? :assign_notebook_runtime @assign_notebook_runtime = ::Gapic::Config::Method.new assign_notebook_runtime_config get_notebook_runtime_config = parent_rpcs.get_notebook_runtime if parent_rpcs.respond_to? :get_notebook_runtime diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb index 710b262adde5..def35da18be4 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb index b6651a1d1e4f..d1cb8380c35e 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb @@ -213,6 +213,44 @@ def delete_notebook_runtime_template request_pb, options = nil result end + ## + # Baseline implementation for the update_notebook_runtime_template REST call + # + # @param request_pb [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate] + # A result object deserialized from the server's reply + def update_notebook_runtime_template request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_notebook_runtime_template_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + end + ## # Baseline implementation for the assign_notebook_runtime REST call # @@ -526,6 +564,28 @@ def self.transcode_delete_notebook_runtime_template_request request_pb transcoder.transcode request_pb end + ## + # @private + # + # GRPC transcoding helper method for the update_notebook_runtime_template REST call + # + # @param request_pb [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_notebook_runtime_template_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{notebook_runtime_template.name}", + body: "notebook_runtime_template", + matches: [ + ["notebook_runtime_template.name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + ## # @private # diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb index d9d69c402a57..1cc9242f2961 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb index 68562239f1ef..71948a18263b 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/client.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/client.rb index 1540922c3ef8..221b067206fa 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/client.rb @@ -1251,7 +1251,7 @@ def explain request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, safety_settings: nil, generation_config: nil) + # @overload generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, safety_settings: nil, generation_config: nil) # Pass arguments to `generate_content` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -1277,6 +1277,9 @@ def explain request, options = nil # A `Tool` is a piece of code that enables the system to interact with # external systems to perform an action, or set of actions, outside of # knowledge and scope of the model. + # @param tool_config [::Google::Cloud::AIPlatform::V1::ToolConfig, ::Hash] + # Optional. Tool config. This config is shared for all tools provided in the + # request. # @param safety_settings [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting, ::Hash>] # Optional. Per request settings for blocking unsafe content. # Enforced on GenerateContentResponse.candidates. @@ -1361,7 +1364,7 @@ def generate_content request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, safety_settings: nil, generation_config: nil) + # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, safety_settings: nil, generation_config: nil) # Pass arguments to `stream_generate_content` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -1387,6 +1390,9 @@ def generate_content request, options = nil # A `Tool` is a piece of code that enables the system to interact with # external systems to perform an action, or set of actions, outside of # knowledge and scope of the model. + # @param tool_config [::Google::Cloud::AIPlatform::V1::ToolConfig, ::Hash] + # Optional. Tool config. This config is shared for all tools provided in the + # request. # @param safety_settings [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting, ::Hash>] # Optional. Per request settings for blocking unsafe content. # Enforced on GenerateContentResponse.candidates. diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb index b9ee5f49acb0..91b67ef5c20d 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb @@ -26,7 +26,8 @@ module PredictionService # Credentials for the PredictionService API. class Credentials < ::Google::Auth::Credentials self.scope = [ - "https://www.googleapis.com/auth/cloud-platform" + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" ] self.env_vars = [ "GOOGLE_CLOUD_CREDENTIALS", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb index 93ed4a2f7a93..233c2ae787e9 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb @@ -880,7 +880,7 @@ def explain request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, safety_settings: nil, generation_config: nil) + # @overload generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, safety_settings: nil, generation_config: nil) # Pass arguments to `generate_content` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -906,6 +906,9 @@ def explain request, options = nil # A `Tool` is a piece of code that enables the system to interact with # external systems to perform an action, or set of actions, outside of # knowledge and scope of the model. + # @param tool_config [::Google::Cloud::AIPlatform::V1::ToolConfig, ::Hash] + # Optional. Tool config. This config is shared for all tools provided in the + # request. # @param safety_settings [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting, ::Hash>] # Optional. Per request settings for blocking unsafe content. # Enforced on GenerateContentResponse.candidates. @@ -983,7 +986,7 @@ def generate_content request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, safety_settings: nil, generation_config: nil) + # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, safety_settings: nil, generation_config: nil) # Pass arguments to `stream_generate_content` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -1009,6 +1012,9 @@ def generate_content request, options = nil # A `Tool` is a piece of code that enables the system to interact with # external systems to perform an action, or set of actions, outside of # knowledge and scope of the model. + # @param tool_config [::Google::Cloud::AIPlatform::V1::ToolConfig, ::Hash] + # Optional. Tool config. This config is shared for all tools provided in the + # request. # @param safety_settings [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting, ::Hash>] # Optional. Per request settings for blocking unsafe content. # Enforced on GenerateContentResponse.candidates. diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb index f956e6e62772..f38201ad6265 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb @@ -497,6 +497,14 @@ def self.transcode_direct_predict_request request_pb ["endpoint", %r{^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{endpoint}:directPredict", + body: "*", + matches: [ + ["endpoint", %r{^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -519,6 +527,14 @@ def self.transcode_direct_raw_predict_request request_pb ["endpoint", %r{^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{endpoint}:directRawPredict", + body: "*", + matches: [ + ["endpoint", %r{^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb index 85414259e8bf..1314145cb33a 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb index 47c7f8714c2e..2a61a59c672d 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb index 92b938e2a28d..12f26f1a9d75 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb index 7b25fcab3bad..806419d60b14 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb @@ -971,6 +971,20 @@ def self.transcode_list_operations_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}/operations", @@ -1573,6 +1587,20 @@ def self.transcode_get_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :get, uri_template: "/ui/{name}", @@ -2182,6 +2210,20 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/ui/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :delete, uri_template: "/ui/{name}", @@ -2770,6 +2812,20 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:cancel", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:cancel", @@ -3316,6 +3372,20 @@ def self.transcode_wait_operation_request request_pb ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/ui/{name}:wait", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false] + ] + ) .with_bindings( uri_method: :post, uri_template: "/ui/{name}:wait", diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/content_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/content_pb.rb index 4760eafe2269..1207d5658a76 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/content_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/content_pb.rb @@ -5,12 +5,13 @@ require 'google/protobuf' require 'google/api/field_behavior_pb' +require 'google/cloud/aiplatform/v1/openapi_pb' require 'google/cloud/aiplatform/v1/tool_pb' require 'google/protobuf/duration_pb' require 'google/type/date_pb' -descriptor_data = "\n(google/cloud/aiplatform/v1/content.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a%google/cloud/aiplatform/v1/tool.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x16google/type/date.proto\"R\n\x07\x43ontent\x12\x11\n\x04role\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x05parts\x18\x02 \x03(\x0b\x32 .google.cloud.aiplatform.v1.PartB\x03\xe0\x41\x02\"\x8f\x03\n\x04Part\x12\x13\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12<\n\x0binline_data\x18\x02 \x01(\x0b\x32 .google.cloud.aiplatform.v1.BlobB\x03\xe0\x41\x01H\x00\x12>\n\tfile_data\x18\x03 \x01(\x0b\x32$.google.cloud.aiplatform.v1.FileDataB\x03\xe0\x41\x01H\x00\x12\x46\n\rfunction_call\x18\x05 \x01(\x0b\x32(.google.cloud.aiplatform.v1.FunctionCallB\x03\xe0\x41\x01H\x00\x12N\n\x11\x66unction_response\x18\x06 \x01(\x0b\x32,.google.cloud.aiplatform.v1.FunctionResponseB\x03\xe0\x41\x01H\x00\x12H\n\x0evideo_metadata\x18\x04 \x01(\x0b\x32).google.cloud.aiplatform.v1.VideoMetadataB\x03\xe0\x41\x01H\x01\x42\x06\n\x04\x64\x61taB\n\n\x08metadata\"1\n\x04\x42lob\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"9\n\x08\x46ileData\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x66ile_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\"y\n\rVideoMetadata\x12\x34\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x32\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\"\xab\x03\n\x10GenerationConfig\x12\x1d\n\x0btemperature\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x17\n\x05top_p\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x17\n\x05top_k\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x12!\n\x0f\x63\x61ndidate_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01H\x03\x88\x01\x01\x12#\n\x11max_output_tokens\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x1b\n\x0estop_sequences\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\"\n\x10presence_penalty\x18\x08 \x01(\x02\x42\x03\xe0\x41\x01H\x05\x88\x01\x01\x12#\n\x11\x66requency_penalty\x18\t \x01(\x02\x42\x03\xe0\x41\x01H\x06\x88\x01\x01\x12\x1f\n\x12response_mime_type\x18\r \x01(\tB\x03\xe0\x41\x01\x42\x0e\n\x0c_temperatureB\x08\n\x06_top_pB\x08\n\x06_top_kB\x12\n\x10_candidate_countB\x14\n\x12_max_output_tokensB\x13\n\x11_presence_penaltyB\x14\n\x12_frequency_penalty\"\xe2\x03\n\rSafetySetting\x12?\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32(.google.cloud.aiplatform.v1.HarmCategoryB\x03\xe0\x41\x02\x12T\n\tthreshold\x18\x02 \x01(\x0e\x32<.google.cloud.aiplatform.v1.SafetySetting.HarmBlockThresholdB\x03\xe0\x41\x02\x12N\n\x06method\x18\x04 \x01(\x0e\x32\x39.google.cloud.aiplatform.v1.SafetySetting.HarmBlockMethodB\x03\xe0\x41\x01\"\x94\x01\n\x12HarmBlockThreshold\x12$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\n\x13\x42LOCK_LOW_AND_ABOVE\x10\x01\x12\x1a\n\x16\x42LOCK_MEDIUM_AND_ABOVE\x10\x02\x12\x13\n\x0f\x42LOCK_ONLY_HIGH\x10\x03\x12\x0e\n\nBLOCK_NONE\x10\x04\"S\n\x0fHarmBlockMethod\x12!\n\x1dHARM_BLOCK_METHOD_UNSPECIFIED\x10\x00\x12\x0c\n\x08SEVERITY\x10\x01\x12\x0f\n\x0bPROBABILITY\x10\x02\"\xbf\x04\n\x0cSafetyRating\x12?\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32(.google.cloud.aiplatform.v1.HarmCategoryB\x03\xe0\x41\x03\x12R\n\x0bprobability\x18\x02 \x01(\x0e\x32\x38.google.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\x03\xe0\x41\x03\x12\x1e\n\x11probability_score\x18\x05 \x01(\x02\x42\x03\xe0\x41\x03\x12L\n\x08severity\x18\x06 \x01(\x0e\x32\x35.google.cloud.aiplatform.v1.SafetyRating.HarmSeverityB\x03\xe0\x41\x03\x12\x1b\n\x0eseverity_score\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03\x12\x14\n\x07\x62locked\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\"b\n\x0fHarmProbability\x12 \n\x1cHARM_PROBABILITY_UNSPECIFIED\x10\x00\x12\x0e\n\nNEGLIGIBLE\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x08\n\x04HIGH\x10\x04\"\x94\x01\n\x0cHarmSeverity\x12\x1d\n\x19HARM_SEVERITY_UNSPECIFIED\x10\x00\x12\x1c\n\x18HARM_SEVERITY_NEGLIGIBLE\x10\x01\x12\x15\n\x11HARM_SEVERITY_LOW\x10\x02\x12\x18\n\x14HARM_SEVERITY_MEDIUM\x10\x03\x12\x16\n\x12HARM_SEVERITY_HIGH\x10\x04\"P\n\x10\x43itationMetadata\x12<\n\tcitations\x18\x01 \x03(\x0b\x32$.google.cloud.aiplatform.v1.CitationB\x03\xe0\x41\x03\"\xaa\x01\n\x08\x43itation\x12\x18\n\x0bstart_index\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x16\n\tend_index\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x10\n\x03uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05title\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07license\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x30\n\x10publication_date\x18\x06 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x03\"\xe6\x04\n\tCandidate\x12\x12\n\x05index\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x39\n\x07\x63ontent\x18\x02 \x01(\x0b\x32#.google.cloud.aiplatform.v1.ContentB\x03\xe0\x41\x03\x12N\n\rfinish_reason\x18\x03 \x01(\x0e\x32\x32.google.cloud.aiplatform.v1.Candidate.FinishReasonB\x03\xe0\x41\x03\x12\x45\n\x0esafety_ratings\x18\x04 \x03(\x0b\x32(.google.cloud.aiplatform.v1.SafetyRatingB\x03\xe0\x41\x03\x12 \n\x0e\x66inish_message\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12L\n\x11\x63itation_metadata\x18\x06 \x01(\x0b\x32,.google.cloud.aiplatform.v1.CitationMetadataB\x03\xe0\x41\x03\x12N\n\x12grounding_metadata\x18\x07 \x01(\x0b\x32-.google.cloud.aiplatform.v1.GroundingMetadataB\x03\xe0\x41\x03\"\x9f\x01\n\x0c\x46inishReason\x12\x1d\n\x19\x46INISH_REASON_UNSPECIFIED\x10\x00\x12\x08\n\x04STOP\x10\x01\x12\x0e\n\nMAX_TOKENS\x10\x02\x12\n\n\x06SAFETY\x10\x03\x12\x0e\n\nRECITATION\x10\x04\x12\t\n\x05OTHER\x10\x05\x12\r\n\tBLOCKLIST\x10\x06\x12\x16\n\x12PROHIBITED_CONTENT\x10\x07\x12\x08\n\x04SPII\x10\x08\x42\x11\n\x0f_finish_message\"T\n\x07Segment\x12\x17\n\npart_index\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x18\n\x0bstart_index\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x16\n\tend_index\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\"\x91\x02\n\x14GroundingAttribution\x12H\n\x03web\x18\x03 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GroundingAttribution.WebB\x03\xe0\x41\x01H\x00\x12\x39\n\x07segment\x18\x01 \x01(\x0b\x32#.google.cloud.aiplatform.v1.SegmentB\x03\xe0\x41\x03\x12%\n\x10\x63onfidence_score\x18\x02 \x01(\x02\x42\x06\xe0\x41\x01\xe0\x41\x03H\x01\x88\x01\x01\x1a+\n\x03Web\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\x0b\n\treferenceB\x13\n\x11_confidence_score\"\xf6\x01\n\x11GroundingMetadata\x12\x1f\n\x12web_search_queries\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12U\n\x16grounding_attributions\x18\x02 \x03(\x0b\x32\x30.google.cloud.aiplatform.v1.GroundingAttributionB\x03\xe0\x41\x01\x12R\n\x12search_entry_point\x18\x04 \x01(\x0b\x32,.google.cloud.aiplatform.v1.SearchEntryPointB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x15\n\x13_search_entry_point\"H\n\x10SearchEntryPoint\x12\x1d\n\x10rendered_content\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08sdk_blob\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01*\xb4\x01\n\x0cHarmCategory\x12\x1d\n\x19HARM_CATEGORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19HARM_CATEGORY_HATE_SPEECH\x10\x01\x12#\n\x1fHARM_CATEGORY_DANGEROUS_CONTENT\x10\x02\x12\x1c\n\x18HARM_CATEGORY_HARASSMENT\x10\x03\x12#\n\x1fHARM_CATEGORY_SEXUALLY_EXPLICIT\x10\x04\x42\xca\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0c\x43ontentProtoP\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" +descriptor_data = "\n(google/cloud/aiplatform/v1/content.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a(google/cloud/aiplatform/v1/openapi.proto\x1a%google/cloud/aiplatform/v1/tool.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x16google/type/date.proto\"R\n\x07\x43ontent\x12\x11\n\x04role\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x05parts\x18\x02 \x03(\x0b\x32 .google.cloud.aiplatform.v1.PartB\x03\xe0\x41\x02\"\x8f\x03\n\x04Part\x12\x13\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12<\n\x0binline_data\x18\x02 \x01(\x0b\x32 .google.cloud.aiplatform.v1.BlobB\x03\xe0\x41\x01H\x00\x12>\n\tfile_data\x18\x03 \x01(\x0b\x32$.google.cloud.aiplatform.v1.FileDataB\x03\xe0\x41\x01H\x00\x12\x46\n\rfunction_call\x18\x05 \x01(\x0b\x32(.google.cloud.aiplatform.v1.FunctionCallB\x03\xe0\x41\x01H\x00\x12N\n\x11\x66unction_response\x18\x06 \x01(\x0b\x32,.google.cloud.aiplatform.v1.FunctionResponseB\x03\xe0\x41\x01H\x00\x12H\n\x0evideo_metadata\x18\x04 \x01(\x0b\x32).google.cloud.aiplatform.v1.VideoMetadataB\x03\xe0\x41\x01H\x01\x42\x06\n\x04\x64\x61taB\n\n\x08metadata\"1\n\x04\x42lob\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"9\n\x08\x46ileData\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x66ile_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\"y\n\rVideoMetadata\x12\x34\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x32\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\"\x86\x04\n\x10GenerationConfig\x12\x1d\n\x0btemperature\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x17\n\x05top_p\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x17\n\x05top_k\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x12!\n\x0f\x63\x61ndidate_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01H\x03\x88\x01\x01\x12#\n\x11max_output_tokens\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01H\x04\x88\x01\x01\x12\x1b\n\x0estop_sequences\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\"\n\x10presence_penalty\x18\x08 \x01(\x02\x42\x03\xe0\x41\x01H\x05\x88\x01\x01\x12#\n\x11\x66requency_penalty\x18\t \x01(\x02\x42\x03\xe0\x41\x01H\x06\x88\x01\x01\x12\x1f\n\x12response_mime_type\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x0fresponse_schema\x18\x10 \x01(\x0b\x32\".google.cloud.aiplatform.v1.SchemaB\x03\xe0\x41\x01H\x07\x88\x01\x01\x42\x0e\n\x0c_temperatureB\x08\n\x06_top_pB\x08\n\x06_top_kB\x12\n\x10_candidate_countB\x14\n\x12_max_output_tokensB\x13\n\x11_presence_penaltyB\x14\n\x12_frequency_penaltyB\x12\n\x10_response_schema\"\xe2\x03\n\rSafetySetting\x12?\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32(.google.cloud.aiplatform.v1.HarmCategoryB\x03\xe0\x41\x02\x12T\n\tthreshold\x18\x02 \x01(\x0e\x32<.google.cloud.aiplatform.v1.SafetySetting.HarmBlockThresholdB\x03\xe0\x41\x02\x12N\n\x06method\x18\x04 \x01(\x0e\x32\x39.google.cloud.aiplatform.v1.SafetySetting.HarmBlockMethodB\x03\xe0\x41\x01\"\x94\x01\n\x12HarmBlockThreshold\x12$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\n\x13\x42LOCK_LOW_AND_ABOVE\x10\x01\x12\x1a\n\x16\x42LOCK_MEDIUM_AND_ABOVE\x10\x02\x12\x13\n\x0f\x42LOCK_ONLY_HIGH\x10\x03\x12\x0e\n\nBLOCK_NONE\x10\x04\"S\n\x0fHarmBlockMethod\x12!\n\x1dHARM_BLOCK_METHOD_UNSPECIFIED\x10\x00\x12\x0c\n\x08SEVERITY\x10\x01\x12\x0f\n\x0bPROBABILITY\x10\x02\"\xbf\x04\n\x0cSafetyRating\x12?\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32(.google.cloud.aiplatform.v1.HarmCategoryB\x03\xe0\x41\x03\x12R\n\x0bprobability\x18\x02 \x01(\x0e\x32\x38.google.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\x03\xe0\x41\x03\x12\x1e\n\x11probability_score\x18\x05 \x01(\x02\x42\x03\xe0\x41\x03\x12L\n\x08severity\x18\x06 \x01(\x0e\x32\x35.google.cloud.aiplatform.v1.SafetyRating.HarmSeverityB\x03\xe0\x41\x03\x12\x1b\n\x0eseverity_score\x18\x07 \x01(\x02\x42\x03\xe0\x41\x03\x12\x14\n\x07\x62locked\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\"b\n\x0fHarmProbability\x12 \n\x1cHARM_PROBABILITY_UNSPECIFIED\x10\x00\x12\x0e\n\nNEGLIGIBLE\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x08\n\x04HIGH\x10\x04\"\x94\x01\n\x0cHarmSeverity\x12\x1d\n\x19HARM_SEVERITY_UNSPECIFIED\x10\x00\x12\x1c\n\x18HARM_SEVERITY_NEGLIGIBLE\x10\x01\x12\x15\n\x11HARM_SEVERITY_LOW\x10\x02\x12\x18\n\x14HARM_SEVERITY_MEDIUM\x10\x03\x12\x16\n\x12HARM_SEVERITY_HIGH\x10\x04\"P\n\x10\x43itationMetadata\x12<\n\tcitations\x18\x01 \x03(\x0b\x32$.google.cloud.aiplatform.v1.CitationB\x03\xe0\x41\x03\"\xaa\x01\n\x08\x43itation\x12\x18\n\x0bstart_index\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x16\n\tend_index\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x10\n\x03uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05title\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07license\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x30\n\x10publication_date\x18\x06 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x03\"\xe6\x04\n\tCandidate\x12\x12\n\x05index\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x39\n\x07\x63ontent\x18\x02 \x01(\x0b\x32#.google.cloud.aiplatform.v1.ContentB\x03\xe0\x41\x03\x12N\n\rfinish_reason\x18\x03 \x01(\x0e\x32\x32.google.cloud.aiplatform.v1.Candidate.FinishReasonB\x03\xe0\x41\x03\x12\x45\n\x0esafety_ratings\x18\x04 \x03(\x0b\x32(.google.cloud.aiplatform.v1.SafetyRatingB\x03\xe0\x41\x03\x12 \n\x0e\x66inish_message\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12L\n\x11\x63itation_metadata\x18\x06 \x01(\x0b\x32,.google.cloud.aiplatform.v1.CitationMetadataB\x03\xe0\x41\x03\x12N\n\x12grounding_metadata\x18\x07 \x01(\x0b\x32-.google.cloud.aiplatform.v1.GroundingMetadataB\x03\xe0\x41\x03\"\x9f\x01\n\x0c\x46inishReason\x12\x1d\n\x19\x46INISH_REASON_UNSPECIFIED\x10\x00\x12\x08\n\x04STOP\x10\x01\x12\x0e\n\nMAX_TOKENS\x10\x02\x12\n\n\x06SAFETY\x10\x03\x12\x0e\n\nRECITATION\x10\x04\x12\t\n\x05OTHER\x10\x05\x12\r\n\tBLOCKLIST\x10\x06\x12\x16\n\x12PROHIBITED_CONTENT\x10\x07\x12\x08\n\x04SPII\x10\x08\x42\x11\n\x0f_finish_message\"\x9f\x01\n\x11GroundingMetadata\x12\x1f\n\x12web_search_queries\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12R\n\x12search_entry_point\x18\x04 \x01(\x0b\x32,.google.cloud.aiplatform.v1.SearchEntryPointB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x15\n\x13_search_entry_point\"H\n\x10SearchEntryPoint\x12\x1d\n\x10rendered_content\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08sdk_blob\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01*\xb4\x01\n\x0cHarmCategory\x12\x1d\n\x19HARM_CATEGORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19HARM_CATEGORY_HATE_SPEECH\x10\x01\x12#\n\x1fHARM_CATEGORY_DANGEROUS_CONTENT\x10\x02\x12\x1c\n\x18HARM_CATEGORY_HARASSMENT\x10\x03\x12#\n\x1fHARM_CATEGORY_SEXUALLY_EXPLICIT\x10\x04\x42\xca\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0c\x43ontentProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -27,6 +28,7 @@ imports = [ ["google.cloud.aiplatform.v1.FunctionCall", "google/cloud/aiplatform/v1/tool.proto"], ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.cloud.aiplatform.v1.Schema", "google/cloud/aiplatform/v1/openapi.proto"], ["google.type.Date", "google/type/date.proto"], ] imports.each do |type_name, expected_filename| @@ -59,9 +61,6 @@ module V1 Citation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Citation").msgclass Candidate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Candidate").msgclass Candidate::FinishReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Candidate.FinishReason").enummodule - Segment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Segment").msgclass - GroundingAttribution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GroundingAttribution").msgclass - GroundingAttribution::Web = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GroundingAttribution.Web").msgclass GroundingMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GroundingMetadata").msgclass SearchEntryPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.SearchEntryPoint").msgclass HarmCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.HarmCategory").enummodule diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_pb.rb index 8686be0019d7..847123b1c6b3 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_pb.rb @@ -13,7 +13,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n(google/cloud/aiplatform/v1/dataset.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a#google/cloud/aiplatform/v1/io.proto\x1a,google/cloud/aiplatform/v1/saved_query.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x05\n\x07\x44\x61taset\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x10 \x01(\t\x12 \n\x13metadata_schema_uri\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12-\n\x08metadata\x18\x08 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12\x1c\n\x0f\x64\x61ta_item_count\x18\n \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x06 \x01(\t\x12?\n\x06labels\x18\x07 \x03(\x0b\x32/.google.cloud.aiplatform.v1.Dataset.LabelsEntry\x12=\n\rsaved_queries\x18\t \x03(\x0b\x32&.google.cloud.aiplatform.v1.SavedQuery\x12\x43\n\x0f\x65ncryption_spec\x18\x0b \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12\x1e\n\x11metadata_artifact\x18\x11 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:b\xea\x41_\n!aiplatform.googleapis.com/Dataset\x12:projects/{project}/locations/{location}/datasets/{dataset}\"\xa4\x03\n\x10ImportDataConfig\x12;\n\ngcs_source\x18\x01 \x01(\x0b\x32%.google.cloud.aiplatform.v1.GcsSourceH\x00\x12Z\n\x10\x64\x61ta_item_labels\x18\x02 \x03(\x0b\x32@.google.cloud.aiplatform.v1.ImportDataConfig.DataItemLabelsEntry\x12]\n\x11\x61nnotation_labels\x18\x03 \x03(\x0b\x32\x42.google.cloud.aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry\x12\x1e\n\x11import_schema_uri\x18\x04 \x01(\tB\x03\xe0\x41\x02\x1a\x35\n\x13\x44\x61taItemLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x37\n\x15\x41nnotationLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"\xe5\x03\n\x10\x45xportDataConfig\x12\x45\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.GcsDestinationH\x00\x12I\n\x0e\x66raction_split\x18\x05 \x01(\x0b\x32/.google.cloud.aiplatform.v1.ExportFractionSplitH\x01\x12\x45\n\x0c\x66ilter_split\x18\x07 \x01(\x0b\x32-.google.cloud.aiplatform.v1.ExportFilterSplitH\x01\x12\x1a\n\x12\x61nnotations_filter\x18\x02 \x01(\t\x12\x16\n\x0esaved_query_id\x18\x0b \x01(\t\x12\x1d\n\x15\x61nnotation_schema_uri\x18\x0c \x01(\t\x12J\n\nexport_use\x18\x04 \x01(\x0e\x32\x36.google.cloud.aiplatform.v1.ExportDataConfig.ExportUse\"A\n\tExportUse\x12\x1a\n\x16\x45XPORT_USE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43USTOM_CODE_TRAINING\x10\x06\x42\r\n\x0b\x64\x65stinationB\x07\n\x05split\"d\n\x13\x45xportFractionSplit\x12\x19\n\x11training_fraction\x18\x01 \x01(\x01\x12\x1b\n\x13validation_fraction\x18\x02 \x01(\x01\x12\x15\n\rtest_fraction\x18\x03 \x01(\x01\"k\n\x11\x45xportFilterSplit\x12\x1c\n\x0ftraining_filter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11validation_filter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0btest_filter\x18\x03 \x01(\tB\x03\xe0\x41\x02\x42\xca\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0c\x44\x61tasetProtoP\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" +descriptor_data = "\n(google/cloud/aiplatform/v1/dataset.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a#google/cloud/aiplatform/v1/io.proto\x1a,google/cloud/aiplatform/v1/saved_query.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x05\n\x07\x44\x61taset\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x10 \x01(\t\x12 \n\x13metadata_schema_uri\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12-\n\x08metadata\x18\x08 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12\x1c\n\x0f\x64\x61ta_item_count\x18\n \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x06 \x01(\t\x12?\n\x06labels\x18\x07 \x03(\x0b\x32/.google.cloud.aiplatform.v1.Dataset.LabelsEntry\x12=\n\rsaved_queries\x18\t \x03(\x0b\x32&.google.cloud.aiplatform.v1.SavedQuery\x12\x43\n\x0f\x65ncryption_spec\x18\x0b \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12\x1e\n\x11metadata_artifact\x18\x11 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fmodel_reference\x18\x12 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:b\xea\x41_\n!aiplatform.googleapis.com/Dataset\x12:projects/{project}/locations/{location}/datasets/{dataset}\"\xa4\x03\n\x10ImportDataConfig\x12;\n\ngcs_source\x18\x01 \x01(\x0b\x32%.google.cloud.aiplatform.v1.GcsSourceH\x00\x12Z\n\x10\x64\x61ta_item_labels\x18\x02 \x03(\x0b\x32@.google.cloud.aiplatform.v1.ImportDataConfig.DataItemLabelsEntry\x12]\n\x11\x61nnotation_labels\x18\x03 \x03(\x0b\x32\x42.google.cloud.aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry\x12\x1e\n\x11import_schema_uri\x18\x04 \x01(\tB\x03\xe0\x41\x02\x1a\x35\n\x13\x44\x61taItemLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x37\n\x15\x41nnotationLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"\xe5\x03\n\x10\x45xportDataConfig\x12\x45\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.GcsDestinationH\x00\x12I\n\x0e\x66raction_split\x18\x05 \x01(\x0b\x32/.google.cloud.aiplatform.v1.ExportFractionSplitH\x01\x12\x45\n\x0c\x66ilter_split\x18\x07 \x01(\x0b\x32-.google.cloud.aiplatform.v1.ExportFilterSplitH\x01\x12\x1a\n\x12\x61nnotations_filter\x18\x02 \x01(\t\x12\x16\n\x0esaved_query_id\x18\x0b \x01(\t\x12\x1d\n\x15\x61nnotation_schema_uri\x18\x0c \x01(\t\x12J\n\nexport_use\x18\x04 \x01(\x0e\x32\x36.google.cloud.aiplatform.v1.ExportDataConfig.ExportUse\"A\n\tExportUse\x12\x1a\n\x16\x45XPORT_USE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43USTOM_CODE_TRAINING\x10\x06\x42\r\n\x0b\x64\x65stinationB\x07\n\x05split\"d\n\x13\x45xportFractionSplit\x12\x19\n\x11training_fraction\x18\x01 \x01(\x01\x12\x1b\n\x13validation_fraction\x18\x02 \x01(\x01\x12\x15\n\rtest_fraction\x18\x03 \x01(\x01\"k\n\x11\x45xportFilterSplit\x12\x1c\n\x0ftraining_filter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11validation_filter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0btest_filter\x18\x03 \x01(\tB\x03\xe0\x41\x02\x42\xca\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0c\x44\x61tasetProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb index dfe00b053f86..d72b08370926 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb @@ -21,7 +21,7 @@ require 'google/protobuf/field_mask_pb' -descriptor_data = "\n0google/cloud/aiplatform/v1/dataset_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/annotation.proto\x1a\x30google/cloud/aiplatform/v1/annotation_spec.proto\x1a*google/cloud/aiplatform/v1/data_item.proto\x1a(google/cloud/aiplatform/v1/dataset.proto\x1a\x30google/cloud/aiplatform/v1/dataset_version.proto\x1a&google/cloud/aiplatform/v1/model.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a,google/cloud/aiplatform/v1/saved_query.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x8c\x01\n\x14\x43reateDatasetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x39\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32#.google.cloud.aiplatform.v1.DatasetB\x03\xe0\x41\x02\"p\n\x1e\x43reateDatasetOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"{\n\x11GetDatasetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x87\x01\n\x14UpdateDatasetRequest\x12\x39\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32#.google.cloud.aiplatform.v1.DatasetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xc8\x01\n\x13ListDatasetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"f\n\x14ListDatasetsResponse\x12\x35\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32#.google.cloud.aiplatform.v1.Dataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"O\n\x14\x44\x65leteDatasetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\"\x97\x01\n\x11ImportDataRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12I\n\x0eimport_configs\x18\x02 \x03(\x0b\x32,.google.cloud.aiplatform.v1.ImportDataConfigB\x03\xe0\x41\x02\"\x14\n\x12ImportDataResponse\"m\n\x1bImportDataOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"\x96\x01\n\x11\x45xportDataRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12H\n\rexport_config\x18\x02 \x01(\x0b\x32,.google.cloud.aiplatform.v1.ExportDataConfigB\x03\xe0\x41\x02\"m\n\x12\x45xportDataResponse\x12\x16\n\x0e\x65xported_files\x18\x01 \x03(\t\x12?\n\ndata_stats\x18\x02 \x01(\x0b\x32+.google.cloud.aiplatform.v1.Model.DataStats\"\x8b\x01\n\x1b\x45xportDataOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x1c\n\x14gcs_output_directory\x18\x02 \x01(\t\"\xa2\x01\n\x1b\x43reateDatasetVersionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12H\n\x0f\x64\x61taset_version\x18\x02 \x01(\x0b\x32*.google.cloud.aiplatform.v1.DatasetVersionB\x03\xe0\x41\x02\"w\n%CreateDatasetVersionOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"]\n\x1b\x44\x65leteDatasetVersionRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/DatasetVersion\"\x89\x01\n\x18GetDatasetVersionRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/DatasetVersion\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xe8\x01\n\x1aListDatasetVersionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x06 \x01(\tB\x03\xe0\x41\x01\"|\n\x1bListDatasetVersionsResponse\x12\x44\n\x10\x64\x61taset_versions\x18\x01 \x03(\x0b\x32*.google.cloud.aiplatform.v1.DatasetVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"^\n\x1cRestoreDatasetVersionRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/DatasetVersion\"x\n&RestoreDatasetVersionOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"\xc9\x01\n\x14ListDataItemsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"j\n\x15ListDataItemsResponse\x12\x38\n\ndata_items\x18\x01 \x03(\x0b\x32$.google.cloud.aiplatform.v1.DataItem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdc\x04\n\x16SearchDataItemsRequest\x12\x1c\n\x12order_by_data_item\x18\x0c \x01(\tH\x00\x12\x63\n\x13order_by_annotation\x18\r \x01(\x0b\x32\x44.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationH\x00\x12:\n\x07\x64\x61taset\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12@\n\x0bsaved_query\x18\x02 \x01(\tB+\x18\x01\xfa\x41&\n$aiplatform.googleapis.com/SavedQuery\x12\x19\n\x11\x64\x61ta_labeling_job\x18\x03 \x01(\t\x12\x18\n\x10\x64\x61ta_item_filter\x18\x04 \x01(\t\x12\x1e\n\x12\x61nnotations_filter\x18\x05 \x01(\tB\x02\x18\x01\x12\x1a\n\x12\x61nnotation_filters\x18\x0b \x03(\t\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x19\n\x11\x61nnotations_limit\x18\x07 \x01(\x05\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x14\n\x08order_by\x18\t \x01(\tB\x02\x18\x01\x12\x12\n\npage_token\x18\n \x01(\t\x1a?\n\x11OrderByAnnotation\x12\x18\n\x0bsaved_query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08order_by\x18\x02 \x01(\tB\x07\n\x05order\"u\n\x17SearchDataItemsResponse\x12\x41\n\x0f\x64\x61ta_item_views\x18\x01 \x03(\x0b\x32(.google.cloud.aiplatform.v1.DataItemView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x0c\x44\x61taItemView\x12\x37\n\tdata_item\x18\x01 \x01(\x0b\x32$.google.cloud.aiplatform.v1.DataItem\x12;\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32&.google.cloud.aiplatform.v1.Annotation\x12!\n\x19has_truncated_annotations\x18\x03 \x01(\x08\"\xcc\x01\n\x17ListSavedQueriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"r\n\x18ListSavedQueriesResponse\x12=\n\rsaved_queries\x18\x01 \x03(\x0b\x32&.google.cloud.aiplatform.v1.SavedQuery\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"U\n\x17\x44\x65leteSavedQueryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$aiplatform.googleapis.com/SavedQuery\"\x89\x01\n\x18GetAnnotationSpecRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/AnnotationSpec\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xcc\x01\n\x16ListAnnotationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/DataItem\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"o\n\x17ListAnnotationsResponse\x12;\n\x0b\x61nnotations\x18\x01 \x03(\x0b\x32&.google.cloud.aiplatform.v1.Annotation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x8d\x1f\n\x0e\x44\x61tasetService\x12\xdc\x01\n\rCreateDataset\x12\x30.google.cloud.aiplatform.v1.CreateDatasetRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41)\n\x07\x44\x61taset\x12\x1e\x43reateDatasetOperationMetadata\xda\x41\x0eparent,dataset\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/datasets:\x07\x64\x61taset\x12\x9d\x01\n\nGetDataset\x12-.google.cloud.aiplatform.v1.GetDatasetRequest\x1a#.google.cloud.aiplatform.v1.Dataset\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/datasets/*}\x12\xc3\x01\n\rUpdateDataset\x12\x30.google.cloud.aiplatform.v1.UpdateDatasetRequest\x1a#.google.cloud.aiplatform.v1.Dataset\"[\xda\x41\x13\x64\x61taset,update_mask\x82\xd3\xe4\x93\x02?24/v1/{dataset.name=projects/*/locations/*/datasets/*}:\x07\x64\x61taset\x12\xb0\x01\n\x0cListDatasets\x12/.google.cloud.aiplatform.v1.ListDatasetsRequest\x1a\x30.google.cloud.aiplatform.v1.ListDatasetsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/datasets\x12\xd0\x01\n\rDeleteDataset\x12\x30.google.cloud.aiplatform.v1.DeleteDatasetRequest\x1a\x1d.google.longrunning.Operation\"n\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/datasets/*}\x12\xe5\x01\n\nImportData\x12-.google.cloud.aiplatform.v1.ImportDataRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\xca\x41\x31\n\x12ImportDataResponse\x12\x1bImportDataOperationMetadata\xda\x41\x13name,import_configs\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/datasets/*}:import:\x01*\x12\xe4\x01\n\nExportData\x12-.google.cloud.aiplatform.v1.ExportDataRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x31\n\x12\x45xportDataResponse\x12\x1b\x45xportDataOperationMetadata\xda\x41\x12name,export_config\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/datasets/*}:export:\x01*\x12\x9b\x02\n\x14\x43reateDatasetVersion\x12\x37.google.cloud.aiplatform.v1.CreateDatasetVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaa\x01\xca\x41\x37\n\x0e\x44\x61tasetVersion\x12%CreateDatasetVersionOperationMetadata\xda\x41\x16parent,dataset_version\x82\xd3\xe4\x93\x02Q\">/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions:\x0f\x64\x61taset_version\x12\xf1\x01\n\x14\x44\x65leteDatasetVersion\x12\x37.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}\x12\xc4\x01\n\x11GetDatasetVersion\x12\x34.google.cloud.aiplatform.v1.GetDatasetVersionRequest\x1a*.google.cloud.aiplatform.v1.DatasetVersion\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}\x12\xd7\x01\n\x13ListDatasetVersions\x12\x36.google.cloud.aiplatform.v1.ListDatasetVersionsRequest\x1a\x37.google.cloud.aiplatform.v1.ListDatasetVersionsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions\x12\x83\x02\n\x15RestoreDatasetVersion\x12\x38.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\xca\x41\x38\n\x0e\x44\x61tasetVersion\x12&RestoreDatasetVersionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore\x12\xbf\x01\n\rListDataItems\x12\x30.google.cloud.aiplatform.v1.ListDataItemsRequest\x1a\x31.google.cloud.aiplatform.v1.ListDataItemsResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/datasets/*}/dataItems\x12\xc3\x01\n\x0fSearchDataItems\x12\x32.google.cloud.aiplatform.v1.SearchDataItemsRequest\x1a\x33.google.cloud.aiplatform.v1.SearchDataItemsResponse\"G\x82\xd3\xe4\x93\x02\x41\x12?/v1/{dataset=projects/*/locations/*/datasets/*}:searchDataItems\x12\xcb\x01\n\x10ListSavedQueries\x12\x33.google.cloud.aiplatform.v1.ListSavedQueriesRequest\x1a\x34.google.cloud.aiplatform.v1.ListSavedQueriesResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/datasets/*}/savedQueries\x12\xe5\x01\n\x10\x44\x65leteSavedQuery\x12\x33.google.cloud.aiplatform.v1.DeleteSavedQueryRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}\x12\xc4\x01\n\x11GetAnnotationSpec\x12\x34.google.cloud.aiplatform.v1.GetAnnotationSpecRequest\x1a*.google.cloud.aiplatform.v1.AnnotationSpec\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}\x12\xd3\x01\n\x0fListAnnotations\x12\x32.google.cloud.aiplatform.v1.ListAnnotationsRequest\x1a\x33.google.cloud.aiplatform.v1.ListAnnotationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/datasets/*/dataItems/*}/annotations\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd1\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x13\x44\x61tasetServiceProtoP\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" +descriptor_data = "\n0google/cloud/aiplatform/v1/dataset_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/annotation.proto\x1a\x30google/cloud/aiplatform/v1/annotation_spec.proto\x1a*google/cloud/aiplatform/v1/data_item.proto\x1a(google/cloud/aiplatform/v1/dataset.proto\x1a\x30google/cloud/aiplatform/v1/dataset_version.proto\x1a&google/cloud/aiplatform/v1/model.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a,google/cloud/aiplatform/v1/saved_query.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x8c\x01\n\x14\x43reateDatasetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x39\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32#.google.cloud.aiplatform.v1.DatasetB\x03\xe0\x41\x02\"p\n\x1e\x43reateDatasetOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"{\n\x11GetDatasetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x87\x01\n\x14UpdateDatasetRequest\x12\x39\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32#.google.cloud.aiplatform.v1.DatasetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x9d\x01\n\x1bUpdateDatasetVersionRequest\x12H\n\x0f\x64\x61taset_version\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.DatasetVersionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xc8\x01\n\x13ListDatasetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"f\n\x14ListDatasetsResponse\x12\x35\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32#.google.cloud.aiplatform.v1.Dataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"O\n\x14\x44\x65leteDatasetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\"\x97\x01\n\x11ImportDataRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12I\n\x0eimport_configs\x18\x02 \x03(\x0b\x32,.google.cloud.aiplatform.v1.ImportDataConfigB\x03\xe0\x41\x02\"\x14\n\x12ImportDataResponse\"m\n\x1bImportDataOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"\x96\x01\n\x11\x45xportDataRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12H\n\rexport_config\x18\x02 \x01(\x0b\x32,.google.cloud.aiplatform.v1.ExportDataConfigB\x03\xe0\x41\x02\"m\n\x12\x45xportDataResponse\x12\x16\n\x0e\x65xported_files\x18\x01 \x03(\t\x12?\n\ndata_stats\x18\x02 \x01(\x0b\x32+.google.cloud.aiplatform.v1.Model.DataStats\"\x8b\x01\n\x1b\x45xportDataOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x1c\n\x14gcs_output_directory\x18\x02 \x01(\t\"\xa2\x01\n\x1b\x43reateDatasetVersionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12H\n\x0f\x64\x61taset_version\x18\x02 \x01(\x0b\x32*.google.cloud.aiplatform.v1.DatasetVersionB\x03\xe0\x41\x02\"w\n%CreateDatasetVersionOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"]\n\x1b\x44\x65leteDatasetVersionRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/DatasetVersion\"\x89\x01\n\x18GetDatasetVersionRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/DatasetVersion\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xe8\x01\n\x1aListDatasetVersionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x06 \x01(\tB\x03\xe0\x41\x01\"|\n\x1bListDatasetVersionsResponse\x12\x44\n\x10\x64\x61taset_versions\x18\x01 \x03(\x0b\x32*.google.cloud.aiplatform.v1.DatasetVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"^\n\x1cRestoreDatasetVersionRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/DatasetVersion\"x\n&RestoreDatasetVersionOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"\xc9\x01\n\x14ListDataItemsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"j\n\x15ListDataItemsResponse\x12\x38\n\ndata_items\x18\x01 \x03(\x0b\x32$.google.cloud.aiplatform.v1.DataItem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdc\x04\n\x16SearchDataItemsRequest\x12\x1c\n\x12order_by_data_item\x18\x0c \x01(\tH\x00\x12\x63\n\x13order_by_annotation\x18\r \x01(\x0b\x32\x44.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationH\x00\x12:\n\x07\x64\x61taset\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12@\n\x0bsaved_query\x18\x02 \x01(\tB+\x18\x01\xfa\x41&\n$aiplatform.googleapis.com/SavedQuery\x12\x19\n\x11\x64\x61ta_labeling_job\x18\x03 \x01(\t\x12\x18\n\x10\x64\x61ta_item_filter\x18\x04 \x01(\t\x12\x1e\n\x12\x61nnotations_filter\x18\x05 \x01(\tB\x02\x18\x01\x12\x1a\n\x12\x61nnotation_filters\x18\x0b \x03(\t\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x19\n\x11\x61nnotations_limit\x18\x07 \x01(\x05\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x14\n\x08order_by\x18\t \x01(\tB\x02\x18\x01\x12\x12\n\npage_token\x18\n \x01(\t\x1a?\n\x11OrderByAnnotation\x12\x18\n\x0bsaved_query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08order_by\x18\x02 \x01(\tB\x07\n\x05order\"u\n\x17SearchDataItemsResponse\x12\x41\n\x0f\x64\x61ta_item_views\x18\x01 \x03(\x0b\x32(.google.cloud.aiplatform.v1.DataItemView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x0c\x44\x61taItemView\x12\x37\n\tdata_item\x18\x01 \x01(\x0b\x32$.google.cloud.aiplatform.v1.DataItem\x12;\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32&.google.cloud.aiplatform.v1.Annotation\x12!\n\x19has_truncated_annotations\x18\x03 \x01(\x08\"\xcc\x01\n\x17ListSavedQueriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"r\n\x18ListSavedQueriesResponse\x12=\n\rsaved_queries\x18\x01 \x03(\x0b\x32&.google.cloud.aiplatform.v1.SavedQuery\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"U\n\x17\x44\x65leteSavedQueryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$aiplatform.googleapis.com/SavedQuery\"\x89\x01\n\x18GetAnnotationSpecRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/AnnotationSpec\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xcc\x01\n\x16ListAnnotationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/DataItem\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"o\n\x17ListAnnotationsResponse\x12;\n\x0b\x61nnotations\x18\x01 \x03(\x0b\x32&.google.cloud.aiplatform.v1.Annotation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x93!\n\x0e\x44\x61tasetService\x12\xdc\x01\n\rCreateDataset\x12\x30.google.cloud.aiplatform.v1.CreateDatasetRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41)\n\x07\x44\x61taset\x12\x1e\x43reateDatasetOperationMetadata\xda\x41\x0eparent,dataset\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/datasets:\x07\x64\x61taset\x12\x9d\x01\n\nGetDataset\x12-.google.cloud.aiplatform.v1.GetDatasetRequest\x1a#.google.cloud.aiplatform.v1.Dataset\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/datasets/*}\x12\xc3\x01\n\rUpdateDataset\x12\x30.google.cloud.aiplatform.v1.UpdateDatasetRequest\x1a#.google.cloud.aiplatform.v1.Dataset\"[\xda\x41\x13\x64\x61taset,update_mask\x82\xd3\xe4\x93\x02?24/v1/{dataset.name=projects/*/locations/*/datasets/*}:\x07\x64\x61taset\x12\xb0\x01\n\x0cListDatasets\x12/.google.cloud.aiplatform.v1.ListDatasetsRequest\x1a\x30.google.cloud.aiplatform.v1.ListDatasetsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/datasets\x12\xd0\x01\n\rDeleteDataset\x12\x30.google.cloud.aiplatform.v1.DeleteDatasetRequest\x1a\x1d.google.longrunning.Operation\"n\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/datasets/*}\x12\xe5\x01\n\nImportData\x12-.google.cloud.aiplatform.v1.ImportDataRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\xca\x41\x31\n\x12ImportDataResponse\x12\x1bImportDataOperationMetadata\xda\x41\x13name,import_configs\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/datasets/*}:import:\x01*\x12\xe4\x01\n\nExportData\x12-.google.cloud.aiplatform.v1.ExportDataRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x31\n\x12\x45xportDataResponse\x12\x1b\x45xportDataOperationMetadata\xda\x41\x12name,export_config\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/datasets/*}:export:\x01*\x12\x9b\x02\n\x14\x43reateDatasetVersion\x12\x37.google.cloud.aiplatform.v1.CreateDatasetVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaa\x01\xca\x41\x37\n\x0e\x44\x61tasetVersion\x12%CreateDatasetVersionOperationMetadata\xda\x41\x16parent,dataset_version\x82\xd3\xe4\x93\x02Q\">/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions:\x0f\x64\x61taset_version\x12\x83\x02\n\x14UpdateDatasetVersion\x12\x37.google.cloud.aiplatform.v1.UpdateDatasetVersionRequest\x1a*.google.cloud.aiplatform.v1.DatasetVersion\"\x85\x01\xda\x41\x1b\x64\x61taset_version,update_mask\x82\xd3\xe4\x93\x02\x61\x32N/v1/{dataset_version.name=projects/*/locations/*/datasets/*/datasetVersions/*}:\x0f\x64\x61taset_version\x12\xf1\x01\n\x14\x44\x65leteDatasetVersion\x12\x37.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}\x12\xc4\x01\n\x11GetDatasetVersion\x12\x34.google.cloud.aiplatform.v1.GetDatasetVersionRequest\x1a*.google.cloud.aiplatform.v1.DatasetVersion\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}\x12\xd7\x01\n\x13ListDatasetVersions\x12\x36.google.cloud.aiplatform.v1.ListDatasetVersionsRequest\x1a\x37.google.cloud.aiplatform.v1.ListDatasetVersionsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions\x12\x83\x02\n\x15RestoreDatasetVersion\x12\x38.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest\x1a\x1d.google.longrunning.Operation\"\x90\x01\xca\x41\x38\n\x0e\x44\x61tasetVersion\x12&RestoreDatasetVersionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore\x12\xbf\x01\n\rListDataItems\x12\x30.google.cloud.aiplatform.v1.ListDataItemsRequest\x1a\x31.google.cloud.aiplatform.v1.ListDataItemsResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/datasets/*}/dataItems\x12\xc3\x01\n\x0fSearchDataItems\x12\x32.google.cloud.aiplatform.v1.SearchDataItemsRequest\x1a\x33.google.cloud.aiplatform.v1.SearchDataItemsResponse\"G\x82\xd3\xe4\x93\x02\x41\x12?/v1/{dataset=projects/*/locations/*/datasets/*}:searchDataItems\x12\xcb\x01\n\x10ListSavedQueries\x12\x33.google.cloud.aiplatform.v1.ListSavedQueriesRequest\x1a\x34.google.cloud.aiplatform.v1.ListSavedQueriesResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/datasets/*}/savedQueries\x12\xe5\x01\n\x10\x44\x65leteSavedQuery\x12\x33.google.cloud.aiplatform.v1.DeleteSavedQueryRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}\x12\xc4\x01\n\x11GetAnnotationSpec\x12\x34.google.cloud.aiplatform.v1.GetAnnotationSpecRequest\x1a*.google.cloud.aiplatform.v1.AnnotationSpec\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}\x12\xd3\x01\n\x0fListAnnotations\x12\x32.google.cloud.aiplatform.v1.ListAnnotationsRequest\x1a\x33.google.cloud.aiplatform.v1.ListAnnotationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/datasets/*/dataItems/*}/annotations\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd1\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x13\x44\x61tasetServiceProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -39,8 +39,8 @@ ["google.cloud.aiplatform.v1.Dataset", "google/cloud/aiplatform/v1/dataset.proto"], ["google.cloud.aiplatform.v1.GenericOperationMetadata", "google/cloud/aiplatform/v1/operation.proto"], ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"], - ["google.cloud.aiplatform.v1.Model.DataStats", "google/cloud/aiplatform/v1/model.proto"], ["google.cloud.aiplatform.v1.DatasetVersion", "google/cloud/aiplatform/v1/dataset_version.proto"], + ["google.cloud.aiplatform.v1.Model.DataStats", "google/cloud/aiplatform/v1/model.proto"], ["google.cloud.aiplatform.v1.DataItem", "google/cloud/aiplatform/v1/data_item.proto"], ["google.cloud.aiplatform.v1.Annotation", "google/cloud/aiplatform/v1/annotation.proto"], ["google.cloud.aiplatform.v1.SavedQuery", "google/cloud/aiplatform/v1/saved_query.proto"], @@ -63,6 +63,7 @@ module V1 CreateDatasetOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.CreateDatasetOperationMetadata").msgclass GetDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetDatasetRequest").msgclass UpdateDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpdateDatasetRequest").msgclass + UpdateDatasetVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpdateDatasetVersionRequest").msgclass ListDatasetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListDatasetsRequest").msgclass ListDatasetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListDatasetsResponse").msgclass DeleteDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteDatasetRequest").msgclass diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb index 11cf3d043c02..3a2d748db28b 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb @@ -49,6 +49,8 @@ class Service rpc :ExportData, ::Google::Cloud::AIPlatform::V1::ExportDataRequest, ::Google::Longrunning::Operation # Create a version from a Dataset. rpc :CreateDatasetVersion, ::Google::Cloud::AIPlatform::V1::CreateDatasetVersionRequest, ::Google::Longrunning::Operation + # Updates a DatasetVersion. + rpc :UpdateDatasetVersion, ::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest, ::Google::Cloud::AIPlatform::V1::DatasetVersion # Deletes a Dataset version. rpc :DeleteDatasetVersion, ::Google::Cloud::AIPlatform::V1::DeleteDatasetVersionRequest, ::Google::Longrunning::Operation # Gets a Dataset version. diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb index 43603d11eff9..fb4b468658d6 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb @@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n0google/cloud/aiplatform/v1/dataset_version.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x99\x03\n\x0e\x44\x61tasetVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12#\n\x16\x62ig_query_dataset_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x07 \x01(\t\x12\x30\n\x08metadata\x18\x08 \x01(\x0b\x32\x16.google.protobuf.ValueB\x06\xe0\x41\x03\xe0\x41\x02:\x8c\x01\xea\x41\x88\x01\n(aiplatform.googleapis.com/DatasetVersion\x12\\projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}B\xd1\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x13\x44\x61tasetVersionProtoP\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" +descriptor_data = "\n0google/cloud/aiplatform/v1/dataset_version.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb7\x03\n\x0e\x44\x61tasetVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12#\n\x16\x62ig_query_dataset_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x07 \x01(\t\x12\x30\n\x08metadata\x18\x08 \x01(\x0b\x32\x16.google.protobuf.ValueB\x06\xe0\x41\x03\xe0\x41\x02\x12\x1c\n\x0fmodel_reference\x18\t \x01(\tB\x03\xe0\x41\x03:\x8c\x01\xea\x41\x88\x01\n(aiplatform.googleapis.com/DatasetVersion\x12\\projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}B\xd1\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x13\x44\x61tasetVersionProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb index 1ba896b472c8..2908dea17631 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb @@ -6,11 +6,12 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' +require 'google/cloud/aiplatform/v1/encryption_spec_pb' require 'google/cloud/aiplatform/v1/machine_resources_pb' require 'google/protobuf/timestamp_pb' -descriptor_data = "\n9google/cloud/aiplatform/v1/deployment_resource_pool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/aiplatform/v1/machine_resources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc8\x02\n\x16\x44\x65ploymentResourcePool\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12P\n\x13\x64\x65\x64icated_resources\x18\x02 \x01(\x0b\x32..google.cloud.aiplatform.v1.DedicatedResourcesB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x92\x01\xea\x41\x8e\x01\n0aiplatform.googleapis.com/DeploymentResourcePool\x12Zprojects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}B\xd9\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x1b\x44\x65ploymentResourcePoolProtoP\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" +descriptor_data = "\n9google/cloud/aiplatform/v1/deployment_resource_pool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x32google/cloud/aiplatform/v1/machine_resources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc9\x03\n\x16\x44\x65ploymentResourcePool\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12P\n\x13\x64\x65\x64icated_resources\x18\x02 \x01(\x0b\x32..google.cloud.aiplatform.v1.DedicatedResourcesB\x03\xe0\x41\x02\x12\x43\n\x0f\x65ncryption_spec\x18\x05 \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12\x17\n\x0fservice_account\x18\x06 \x01(\t\x12!\n\x19\x64isable_container_logging\x18\x07 \x01(\x08\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x92\x01\xea\x41\x8e\x01\n0aiplatform.googleapis.com/DeploymentResourcePool\x12Zprojects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}B\xd9\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x1b\x44\x65ploymentResourcePoolProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -26,6 +27,7 @@ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ ["google.cloud.aiplatform.v1.DedicatedResources", "google/cloud/aiplatform/v1/machine_resources.proto"], + ["google.cloud.aiplatform.v1.EncryptionSpec", "google/cloud/aiplatform/v1/encryption_spec.proto"], ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], ] imports.each do |type_name, expected_filename| diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb index 2cefa3807571..6f65dfb94689 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb @@ -6,10 +6,11 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' +require 'google/cloud/aiplatform/v1/encryption_spec_pb' require 'google/protobuf/timestamp_pb' -descriptor_data = "\n5google/cloud/aiplatform/v1/feature_online_store.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xff\x08\n\x12\x46\x65\x61tureOnlineStore\x12K\n\x08\x62igtable\x18\x08 \x01(\x0b\x32\x37.google.cloud.aiplatform.v1.FeatureOnlineStore.BigtableH\x00\x12M\n\toptimized\x18\x0c \x01(\x0b\x32\x38.google.cloud.aiplatform.v1.FeatureOnlineStore.OptimizedH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12O\n\x06labels\x18\x06 \x03(\x0b\x32:.google.cloud.aiplatform.v1.FeatureOnlineStore.LabelsEntryB\x03\xe0\x41\x01\x12H\n\x05state\x18\x07 \x01(\x0e\x32\x34.google.cloud.aiplatform.v1.FeatureOnlineStore.StateB\x03\xe0\x41\x03\x12p\n\x1a\x64\x65\x64icated_serving_endpoint\x18\n \x01(\x0b\x32G.google.cloud.aiplatform.v1.FeatureOnlineStore.DedicatedServingEndpointB\x03\xe0\x41\x01\x1a\xd8\x01\n\x08\x42igtable\x12^\n\x0c\x61uto_scaling\x18\x01 \x01(\x0b\x32\x43.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScalingB\x03\xe0\x41\x02\x1al\n\x0b\x41utoScaling\x12\x1b\n\x0emin_node_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1b\n\x0emax_node_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12#\n\x16\x63pu_utilization_target\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x1a\x0b\n\tOptimized\x1a\x44\n\x18\x44\x65\x64icatedServingEndpoint\x12(\n\x1bpublic_endpoint_domain_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06STABLE\x10\x01\x12\x0c\n\x08UPDATING\x10\x02:\x86\x01\xea\x41\x82\x01\n,aiplatform.googleapis.com/FeatureOnlineStore\x12Rprojects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}B\x0e\n\x0cstorage_typeB\xd5\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x17\x46\x65\x61tureOnlineStoreProtoP\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" +descriptor_data = "\n5google/cloud/aiplatform/v1/feature_online_store.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc9\t\n\x12\x46\x65\x61tureOnlineStore\x12K\n\x08\x62igtable\x18\x08 \x01(\x0b\x32\x37.google.cloud.aiplatform.v1.FeatureOnlineStore.BigtableH\x00\x12M\n\toptimized\x18\x0c \x01(\x0b\x32\x38.google.cloud.aiplatform.v1.FeatureOnlineStore.OptimizedH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12O\n\x06labels\x18\x06 \x03(\x0b\x32:.google.cloud.aiplatform.v1.FeatureOnlineStore.LabelsEntryB\x03\xe0\x41\x01\x12H\n\x05state\x18\x07 \x01(\x0e\x32\x34.google.cloud.aiplatform.v1.FeatureOnlineStore.StateB\x03\xe0\x41\x03\x12p\n\x1a\x64\x65\x64icated_serving_endpoint\x18\n \x01(\x0b\x32G.google.cloud.aiplatform.v1.FeatureOnlineStore.DedicatedServingEndpointB\x03\xe0\x41\x01\x12H\n\x0f\x65ncryption_spec\x18\r \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpecB\x03\xe0\x41\x01\x1a\xd8\x01\n\x08\x42igtable\x12^\n\x0c\x61uto_scaling\x18\x01 \x01(\x0b\x32\x43.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScalingB\x03\xe0\x41\x02\x1al\n\x0b\x41utoScaling\x12\x1b\n\x0emin_node_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1b\n\x0emax_node_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12#\n\x16\x63pu_utilization_target\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x1a\x0b\n\tOptimized\x1a\x44\n\x18\x44\x65\x64icatedServingEndpoint\x12(\n\x1bpublic_endpoint_domain_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06STABLE\x10\x01\x12\x0c\n\x08UPDATING\x10\x02:\x86\x01\xea\x41\x82\x01\n,aiplatform.googleapis.com/FeatureOnlineStore\x12Rprojects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}B\x0e\n\x0cstorage_typeB\xd5\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x17\x46\x65\x61tureOnlineStoreProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -25,6 +26,7 @@ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.aiplatform.v1.EncryptionSpec", "google/cloud/aiplatform/v1/encryption_spec.proto"], ] imports.each do |type_name, expected_filename| import_file = pool.lookup(type_name).file_descriptor diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/feature_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/feature_pb.rb index bd10325840b6..c676d949d9f4 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/feature_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/feature_pb.rb @@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n(google/cloud/aiplatform/v1/feature.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x39google/cloud/aiplatform/v1/feature_monitoring_stats.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\n\n\x07\x46\x65\x61ture\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x46\n\nvalue_type\x18\x03 \x01(\x0e\x32-.google.cloud.aiplatform.v1.Feature.ValueTypeB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\x06labels\x18\x06 \x03(\x0b\x32/.google.cloud.aiplatform.v1.Feature.LabelsEntryB\x03\xe0\x41\x01\x12\x0c\n\x04\x65tag\x18\x07 \x01(\t\x12\x1f\n\x12\x64isable_monitoring\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x63\n\x1amonitoring_stats_anomalies\x18\x0b \x03(\x0b\x32:.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomalyB\x03\xe0\x41\x03\x12\x1b\n\x13version_column_name\x18j \x01(\t\x12\x18\n\x10point_of_contact\x18k \x01(\t\x1a\xa7\x02\n\x16MonitoringStatsAnomaly\x12\\\n\tobjective\x18\x01 \x01(\x0e\x32\x44.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.ObjectiveB\x03\xe0\x41\x03\x12S\n\x15\x66\x65\x61ture_stats_anomaly\x18\x02 \x01(\x0b\x32/.google.cloud.aiplatform.v1.FeatureStatsAnomalyB\x03\xe0\x41\x03\"Z\n\tObjective\x12\x19\n\x15OBJECTIVE_UNSPECIFIED\x10\x00\x12\x1b\n\x17IMPORT_FEATURE_ANALYSIS\x10\x01\x12\x15\n\x11SNAPSHOT_ANALYSIS\x10\x02\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x01\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\x0e\n\nBOOL_ARRAY\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\x12\x10\n\x0c\x44OUBLE_ARRAY\x10\x04\x12\t\n\x05INT64\x10\t\x12\x0f\n\x0bINT64_ARRAY\x10\n\x12\n\n\x06STRING\x10\x0b\x12\x10\n\x0cSTRING_ARRAY\x10\x0c\x12\t\n\x05\x42YTES\x10\r:\x87\x02\xea\x41\x83\x02\n!aiplatform.googleapis.com/Feature\x12qprojects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}\x12Xprojects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}*\x08\x66\x65\x61tures2\x07\x66\x65\x61tureB\xca\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0c\x46\x65\x61tureProtoP\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" +descriptor_data = "\n(google/cloud/aiplatform/v1/feature.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x39google/cloud/aiplatform/v1/feature_monitoring_stats.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\n\n\x07\x46\x65\x61ture\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x46\n\nvalue_type\x18\x03 \x01(\x0e\x32-.google.cloud.aiplatform.v1.Feature.ValueTypeB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\x06labels\x18\x06 \x03(\x0b\x32/.google.cloud.aiplatform.v1.Feature.LabelsEntryB\x03\xe0\x41\x01\x12\x0c\n\x04\x65tag\x18\x07 \x01(\t\x12\x1f\n\x12\x64isable_monitoring\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x63\n\x1amonitoring_stats_anomalies\x18\x0b \x03(\x0b\x32:.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomalyB\x03\xe0\x41\x03\x12\x1b\n\x13version_column_name\x18j \x01(\t\x12\x18\n\x10point_of_contact\x18k \x01(\t\x1a\xa7\x02\n\x16MonitoringStatsAnomaly\x12\\\n\tobjective\x18\x01 \x01(\x0e\x32\x44.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.ObjectiveB\x03\xe0\x41\x03\x12S\n\x15\x66\x65\x61ture_stats_anomaly\x18\x02 \x01(\x0b\x32/.google.cloud.aiplatform.v1.FeatureStatsAnomalyB\x03\xe0\x41\x03\"Z\n\tObjective\x12\x19\n\x15OBJECTIVE_UNSPECIFIED\x10\x00\x12\x1b\n\x17IMPORT_FEATURE_ANALYSIS\x10\x01\x12\x15\n\x11SNAPSHOT_ANALYSIS\x10\x02\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb0\x01\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\x0e\n\nBOOL_ARRAY\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\x12\x10\n\x0c\x44OUBLE_ARRAY\x10\x04\x12\t\n\x05INT64\x10\t\x12\x0f\n\x0bINT64_ARRAY\x10\n\x12\n\n\x06STRING\x10\x0b\x12\x10\n\x0cSTRING_ARRAY\x10\x0c\x12\t\n\x05\x42YTES\x10\r\x12\n\n\x06STRUCT\x10\x0e:\x87\x02\xea\x41\x83\x02\n!aiplatform.googleapis.com/Feature\x12qprojects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}\x12Xprojects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}*\x08\x66\x65\x61tures2\x07\x66\x65\x61tureB\xca\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0c\x46\x65\x61tureProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb index 3ad720090a44..da74c7c869a7 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb @@ -13,7 +13,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n\n\x0b\x65ntity_type\x18\x01 \x01(\tB)\xfa\x41&\n$aiplatform.googleapis.com/EntityType\x12\x64\n\x13\x66\x65\x61ture_descriptors\x18\x02 \x03(\x0b\x32G.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor\x1a\x80\x02\n\nEntityView\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12S\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x45.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data\x1a\x89\x01\n\x04\x44\x61ta\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32(.google.cloud.aiplatform.v1.FeatureValueH\x00\x12>\n\x06values\x18\x02 \x01(\x0b\x32,.google.cloud.aiplatform.v1.FeatureValueListH\x00\x42\x06\n\x04\x64\x61ta\"\xcb\x01\n!StreamingReadFeatureValuesRequest\x12\x41\n\x0b\x65ntity_type\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$aiplatform.googleapis.com/EntityType\x12\x17\n\nentity_ids\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12J\n\x10\x66\x65\x61ture_selector\x18\x03 \x01(\x0b\x32+.google.cloud.aiplatform.v1.FeatureSelectorB\x03\xe0\x41\x02\"\xa5\x04\n\x0c\x46\x65\x61tureValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x06 \x01(\tH\x00\x12\x41\n\x10\x62ool_array_value\x18\x07 \x01(\x0b\x32%.google.cloud.aiplatform.v1.BoolArrayH\x00\x12\x45\n\x12\x64ouble_array_value\x18\x08 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.DoubleArrayH\x00\x12\x43\n\x11int64_array_value\x18\x0b \x01(\x0b\x32&.google.cloud.aiplatform.v1.Int64ArrayH\x00\x12\x45\n\x12string_array_value\x18\x0c \x01(\x0b\x32\'.google.cloud.aiplatform.v1.StringArrayH\x00\x12\x15\n\x0b\x62ytes_value\x18\r \x01(\x0cH\x00\x12\x43\n\x08metadata\x18\x0e \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.FeatureValue.Metadata\x1a=\n\x08Metadata\x12\x31\n\rgenerate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x07\n\x05value\"L\n\x10\x46\x65\x61tureValueList\x12\x38\n\x06values\x18\x01 \x03(\x0b\x32(.google.cloud.aiplatform.v1.FeatureValue2\xfd\x06\n FeaturestoreOnlineServingService\x12\xf3\x01\n\x11ReadFeatureValues\x12\x34.google.cloud.aiplatform.v1.ReadFeatureValuesRequest\x1a\x35.google.cloud.aiplatform.v1.ReadFeatureValuesResponse\"q\xda\x41\x0b\x65ntity_type\x82\xd3\xe4\x93\x02]\"X/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues:\x01*\x12\x90\x02\n\x1aStreamingReadFeatureValues\x12=.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest\x1a\x35.google.cloud.aiplatform.v1.ReadFeatureValuesResponse\"z\xda\x41\x0b\x65ntity_type\x82\xd3\xe4\x93\x02\x66\"a/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues:\x01*0\x01\x12\x80\x02\n\x12WriteFeatureValues\x12\x35.google.cloud.aiplatform.v1.WriteFeatureValuesRequest\x1a\x36.google.cloud.aiplatform.v1.WriteFeatureValuesResponse\"{\xda\x41\x14\x65ntity_type,payloads\x82\xd3\xe4\x93\x02^\"Y/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:writeFeatureValues:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xdc\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x1e\x46\x65\x61turestoreOnlineServiceProtoP\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" +descriptor_data = "\n\n\x0b\x65ntity_type\x18\x01 \x01(\tB)\xfa\x41&\n$aiplatform.googleapis.com/EntityType\x12\x64\n\x13\x66\x65\x61ture_descriptors\x18\x02 \x03(\x0b\x32G.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor\x1a\x80\x02\n\nEntityView\x12\x11\n\tentity_id\x18\x01 \x01(\t\x12S\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x45.google.cloud.aiplatform.v1.ReadFeatureValuesResponse.EntityView.Data\x1a\x89\x01\n\x04\x44\x61ta\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32(.google.cloud.aiplatform.v1.FeatureValueH\x00\x12>\n\x06values\x18\x02 \x01(\x0b\x32,.google.cloud.aiplatform.v1.FeatureValueListH\x00\x42\x06\n\x04\x64\x61ta\"\xcb\x01\n!StreamingReadFeatureValuesRequest\x12\x41\n\x0b\x65ntity_type\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$aiplatform.googleapis.com/EntityType\x12\x17\n\nentity_ids\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12J\n\x10\x66\x65\x61ture_selector\x18\x03 \x01(\x0b\x32+.google.cloud.aiplatform.v1.FeatureSelectorB\x03\xe0\x41\x02\"\xe6\x04\n\x0c\x46\x65\x61tureValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x06 \x01(\tH\x00\x12\x41\n\x10\x62ool_array_value\x18\x07 \x01(\x0b\x32%.google.cloud.aiplatform.v1.BoolArrayH\x00\x12\x45\n\x12\x64ouble_array_value\x18\x08 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.DoubleArrayH\x00\x12\x43\n\x11int64_array_value\x18\x0b \x01(\x0b\x32&.google.cloud.aiplatform.v1.Int64ArrayH\x00\x12\x45\n\x12string_array_value\x18\x0c \x01(\x0b\x32\'.google.cloud.aiplatform.v1.StringArrayH\x00\x12\x15\n\x0b\x62ytes_value\x18\r \x01(\x0cH\x00\x12?\n\x0cstruct_value\x18\x0f \x01(\x0b\x32\'.google.cloud.aiplatform.v1.StructValueH\x00\x12\x43\n\x08metadata\x18\x0e \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.FeatureValue.Metadata\x1a=\n\x08Metadata\x12\x31\n\rgenerate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x07\n\x05value\"K\n\x0bStructValue\x12<\n\x06values\x18\x01 \x03(\x0b\x32,.google.cloud.aiplatform.v1.StructFieldValue\"Y\n\x10StructFieldValue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.google.cloud.aiplatform.v1.FeatureValue\"L\n\x10\x46\x65\x61tureValueList\x12\x38\n\x06values\x18\x01 \x03(\x0b\x32(.google.cloud.aiplatform.v1.FeatureValue2\xfd\x06\n FeaturestoreOnlineServingService\x12\xf3\x01\n\x11ReadFeatureValues\x12\x34.google.cloud.aiplatform.v1.ReadFeatureValuesRequest\x1a\x35.google.cloud.aiplatform.v1.ReadFeatureValuesResponse\"q\xda\x41\x0b\x65ntity_type\x82\xd3\xe4\x93\x02]\"X/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:readFeatureValues:\x01*\x12\x90\x02\n\x1aStreamingReadFeatureValues\x12=.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest\x1a\x35.google.cloud.aiplatform.v1.ReadFeatureValuesResponse\"z\xda\x41\x0b\x65ntity_type\x82\xd3\xe4\x93\x02\x66\"a/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:streamingReadFeatureValues:\x01*0\x01\x12\x80\x02\n\x12WriteFeatureValues\x12\x35.google.cloud.aiplatform.v1.WriteFeatureValuesRequest\x1a\x36.google.cloud.aiplatform.v1.WriteFeatureValuesResponse\"{\xda\x41\x14\x65ntity_type,payloads\x82\xd3\xe4\x93\x02^\"Y/v1/{entity_type=projects/*/locations/*/featurestores/*/entityTypes/*}:writeFeatureValues:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xdc\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x1e\x46\x65\x61turestoreOnlineServiceProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -58,6 +58,8 @@ module V1 StreamingReadFeatureValuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest").msgclass FeatureValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FeatureValue").msgclass FeatureValue::Metadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FeatureValue.Metadata").msgclass + StructValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.StructValue").msgclass + StructFieldValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.StructFieldValue").msgclass FeatureValueList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FeatureValueList").msgclass end end diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/index_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/index_pb.rb index 66ac1d9a7c96..b33bcbe494c6 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/index_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/index_pb.rb @@ -12,7 +12,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n&google/cloud/aiplatform/v1/index.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/aiplatform/v1/deployed_index_ref.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x06\n\x05Index\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12 \n\x13metadata_schema_uri\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12(\n\x08metadata\x18\x06 \x01(\x0b\x32\x16.google.protobuf.Value\x12K\n\x10\x64\x65ployed_indexes\x18\x07 \x03(\x0b\x32,.google.cloud.aiplatform.v1.DeployedIndexRefB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x08 \x01(\t\x12=\n\x06labels\x18\t \x03(\x0b\x32-.google.cloud.aiplatform.v1.Index.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x0bindex_stats\x18\x0e \x01(\x0b\x32&.google.cloud.aiplatform.v1.IndexStatsB\x03\xe0\x41\x03\x12U\n\x13index_update_method\x18\x10 \x01(\x0e\x32\x33.google.cloud.aiplatform.v1.Index.IndexUpdateMethodB\x03\xe0\x41\x05\x12H\n\x0f\x65ncryption_spec\x18\x11 \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpecB\x03\xe0\x41\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"]\n\x11IndexUpdateMethod\x12#\n\x1fINDEX_UPDATE_METHOD_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x42\x41TCH_UPDATE\x10\x01\x12\x11\n\rSTREAM_UPDATE\x10\x02:]\xea\x41Z\n\x1f\x61iplatform.googleapis.com/Index\x12\x37projects/{project}/locations/{location}/indexes/{index}\"\x83\x06\n\x0eIndexDatapoint\x12\x19\n\x0c\x64\x61tapoint_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x66\x65\x61ture_vector\x18\x02 \x03(\x02\x42\x03\xe0\x41\x02\x12N\n\trestricts\x18\x04 \x03(\x0b\x32\x36.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionB\x03\xe0\x41\x01\x12]\n\x11numeric_restricts\x18\x06 \x03(\x0b\x32=.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestrictionB\x03\xe0\x41\x01\x12Q\n\x0c\x63rowding_tag\x18\x05 \x01(\x0b\x32\x36.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTagB\x03\xe0\x41\x01\x1aG\n\x0bRestriction\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\nallow_list\x18\x02 \x03(\t\x12\x11\n\tdeny_list\x18\x03 \x03(\t\x1a\xc2\x02\n\x12NumericRestriction\x12\x13\n\tvalue_int\x18\x02 \x01(\x03H\x00\x12\x15\n\x0bvalue_float\x18\x03 \x01(\x02H\x00\x12\x16\n\x0cvalue_double\x18\x04 \x01(\x01H\x00\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12R\n\x02op\x18\x05 \x01(\x0e\x32\x46.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator\"x\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\x08\n\x04LESS\x10\x01\x12\x0e\n\nLESS_EQUAL\x10\x02\x12\t\n\x05\x45QUAL\x10\x03\x12\x11\n\rGREATER_EQUAL\x10\x04\x12\x0b\n\x07GREATER\x10\x05\x12\r\n\tNOT_EQUAL\x10\x06\x42\x07\n\x05Value\x1a)\n\x0b\x43rowdingTag\x12\x1a\n\x12\x63rowding_attribute\x18\x01 \x01(\t\"C\n\nIndexStats\x12\x1a\n\rvectors_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0cshards_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x42\xc8\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\nIndexProtoP\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" +descriptor_data = "\n&google/cloud/aiplatform/v1/index.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/aiplatform/v1/deployed_index_ref.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x06\n\x05Index\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12 \n\x13metadata_schema_uri\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12(\n\x08metadata\x18\x06 \x01(\x0b\x32\x16.google.protobuf.Value\x12K\n\x10\x64\x65ployed_indexes\x18\x07 \x03(\x0b\x32,.google.cloud.aiplatform.v1.DeployedIndexRefB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x08 \x01(\t\x12=\n\x06labels\x18\t \x03(\x0b\x32-.google.cloud.aiplatform.v1.Index.LabelsEntry\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x0bindex_stats\x18\x0e \x01(\x0b\x32&.google.cloud.aiplatform.v1.IndexStatsB\x03\xe0\x41\x03\x12U\n\x13index_update_method\x18\x10 \x01(\x0e\x32\x33.google.cloud.aiplatform.v1.Index.IndexUpdateMethodB\x03\xe0\x41\x05\x12H\n\x0f\x65ncryption_spec\x18\x11 \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpecB\x03\xe0\x41\x05\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"]\n\x11IndexUpdateMethod\x12#\n\x1fINDEX_UPDATE_METHOD_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x42\x41TCH_UPDATE\x10\x01\x12\x11\n\rSTREAM_UPDATE\x10\x02:]\xea\x41Z\n\x1f\x61iplatform.googleapis.com/Index\x12\x37projects/{project}/locations/{location}/indexes/{index}\"\x9f\x07\n\x0eIndexDatapoint\x12\x19\n\x0c\x64\x61tapoint_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x66\x65\x61ture_vector\x18\x02 \x03(\x02\x42\x03\xe0\x41\x02\x12Y\n\x10sparse_embedding\x18\x07 \x01(\x0b\x32:.google.cloud.aiplatform.v1.IndexDatapoint.SparseEmbeddingB\x03\xe0\x41\x01\x12N\n\trestricts\x18\x04 \x03(\x0b\x32\x36.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionB\x03\xe0\x41\x01\x12]\n\x11numeric_restricts\x18\x06 \x03(\x0b\x32=.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestrictionB\x03\xe0\x41\x01\x12Q\n\x0c\x63rowding_tag\x18\x05 \x01(\x0b\x32\x36.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTagB\x03\xe0\x41\x01\x1a?\n\x0fSparseEmbedding\x12\x13\n\x06values\x18\x01 \x03(\x02\x42\x03\xe0\x41\x02\x12\x17\n\ndimensions\x18\x02 \x03(\x03\x42\x03\xe0\x41\x02\x1aG\n\x0bRestriction\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\nallow_list\x18\x02 \x03(\t\x12\x11\n\tdeny_list\x18\x03 \x03(\t\x1a\xc2\x02\n\x12NumericRestriction\x12\x13\n\tvalue_int\x18\x02 \x01(\x03H\x00\x12\x15\n\x0bvalue_float\x18\x03 \x01(\x02H\x00\x12\x16\n\x0cvalue_double\x18\x04 \x01(\x01H\x00\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12R\n\x02op\x18\x05 \x01(\x0e\x32\x46.google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator\"x\n\x08Operator\x12\x18\n\x14OPERATOR_UNSPECIFIED\x10\x00\x12\x08\n\x04LESS\x10\x01\x12\x0e\n\nLESS_EQUAL\x10\x02\x12\t\n\x05\x45QUAL\x10\x03\x12\x11\n\rGREATER_EQUAL\x10\x04\x12\x0b\n\x07GREATER\x10\x05\x12\r\n\tNOT_EQUAL\x10\x06\x42\x07\n\x05Value\x1a)\n\x0b\x43rowdingTag\x12\x1a\n\x12\x63rowding_attribute\x18\x01 \x01(\t\"f\n\nIndexStats\x12\x1a\n\rvectors_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12!\n\x14sparse_vectors_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0cshards_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x42\xc8\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\nIndexProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -49,6 +49,7 @@ module V1 Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Index").msgclass Index::IndexUpdateMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Index.IndexUpdateMethod").enummodule IndexDatapoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint").msgclass + IndexDatapoint::SparseEmbedding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint.SparseEmbedding").msgclass IndexDatapoint::Restriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint.Restriction").msgclass IndexDatapoint::NumericRestriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction").msgclass IndexDatapoint::NumericRestriction::Operator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction.Operator").enummodule diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/index_service_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/index_service_pb.rb index a3cccc4ade85..b01ae8bf9a1e 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/index_service_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/index_service_pb.rb @@ -15,7 +15,7 @@ require 'google/protobuf/field_mask_pb' -descriptor_data = "\n.google/cloud/aiplatform/v1/index_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/index.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x86\x01\n\x12\x43reateIndexRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x05index\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.IndexB\x03\xe0\x41\x02\"\xe6\x01\n\x1c\x43reateIndexOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12v\n*nearest_neighbor_search_operation_metadata\x18\x02 \x01(\x0b\x32\x42.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata\"H\n\x0fGetIndexRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\"\xb5\x01\n\x12ListIndexesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"b\n\x13ListIndexesResponse\x12\x32\n\x07indexes\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Index\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\x12UpdateIndexRequest\x12\x35\n\x05index\x18\x01 \x01(\x0b\x32!.google.cloud.aiplatform.v1.IndexB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xe6\x01\n\x1cUpdateIndexOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12v\n*nearest_neighbor_search_operation_metadata\x18\x02 \x01(\x0b\x32\x42.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata\"K\n\x12\x44\x65leteIndexRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\"\xc7\x01\n\x17UpsertDatapointsRequest\x12\x36\n\x05index\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\x12>\n\ndatapoints\x18\x02 \x03(\x0b\x32*.google.cloud.aiplatform.v1.IndexDatapoint\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x1a\n\x18UpsertDatapointsResponse\"h\n\x17RemoveDatapointsRequest\x12\x36\n\x05index\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\x12\x15\n\rdatapoint_ids\x18\x02 \x03(\t\"\x1a\n\x18RemoveDatapointsResponse\"\xe9\x07\n&NearestNeighborSearchOperationMetadata\x12{\n\x18\x63ontent_validation_stats\x18\x01 \x03(\x0b\x32Y.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats\x12\x18\n\x10\x64\x61ta_bytes_count\x18\x02 \x01(\x03\x1a\xd2\x04\n\x0bRecordError\x12r\n\nerror_type\x18\x01 \x01(\x0e\x32^.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12\x16\n\x0esource_gcs_uri\x18\x03 \x01(\t\x12\x14\n\x0c\x65mbedding_id\x18\x04 \x01(\t\x12\x12\n\nraw_record\x18\x05 \x01(\t\"\xf5\x02\n\x0fRecordErrorType\x12\x1a\n\x16\x45RROR_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nEMPTY_LINE\x10\x01\x12\x17\n\x13INVALID_JSON_SYNTAX\x10\x02\x12\x16\n\x12INVALID_CSV_SYNTAX\x10\x03\x12\x17\n\x13INVALID_AVRO_SYNTAX\x10\x04\x12\x18\n\x14INVALID_EMBEDDING_ID\x10\x05\x12\x1b\n\x17\x45MBEDDING_SIZE_MISMATCH\x10\x06\x12\x15\n\x11NAMESPACE_MISSING\x10\x07\x12\x11\n\rPARSING_ERROR\x10\x08\x12\x17\n\x13\x44UPLICATE_NAMESPACE\x10\t\x12\x13\n\x0fOP_IN_DATAPOINT\x10\n\x12\x13\n\x0fMULTIPLE_VALUES\x10\x0b\x12\x19\n\x15INVALID_NUMERIC_VALUE\x10\x0c\x12\x14\n\x10INVALID_ENCODING\x10\r\x12\x17\n\x13INVALID_TOKEN_VALUE\x10\x0f\x1a\xd2\x01\n\x16\x43ontentValidationStats\x12\x16\n\x0esource_gcs_uri\x18\x01 \x01(\t\x12\x1a\n\x12valid_record_count\x18\x02 \x01(\x03\x12\x1c\n\x14invalid_record_count\x18\x03 \x01(\x03\x12\x66\n\x0epartial_errors\x18\x04 \x03(\x0b\x32N.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError2\xb6\x0b\n\x0cIndexService\x12\xcf\x01\n\x0b\x43reateIndex\x12..google.cloud.aiplatform.v1.CreateIndexRequest\x1a\x1d.google.longrunning.Operation\"q\xca\x41%\n\x05Index\x12\x1c\x43reateIndexOperationMetadata\xda\x41\x0cparent,index\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/indexes:\x05index\x12\x96\x01\n\x08GetIndex\x12+.google.cloud.aiplatform.v1.GetIndexRequest\x1a!.google.cloud.aiplatform.v1.Index\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/indexes/*}\x12\xac\x01\n\x0bListIndexes\x12..google.cloud.aiplatform.v1.ListIndexesRequest\x1a/.google.cloud.aiplatform.v1.ListIndexesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/indexes\x12\xda\x01\n\x0bUpdateIndex\x12..google.cloud.aiplatform.v1.UpdateIndexRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41%\n\x05Index\x12\x1cUpdateIndexOperationMetadata\xda\x41\x11index,update_mask\x82\xd3\xe4\x93\x02:21/v1/{index.name=projects/*/locations/*/indexes/*}:\x05index\x12\xcb\x01\n\x0b\x44\x65leteIndex\x12..google.cloud.aiplatform.v1.DeleteIndexRequest\x1a\x1d.google.longrunning.Operation\"m\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/indexes/*}\x12\xc7\x01\n\x10UpsertDatapoints\x12\x33.google.cloud.aiplatform.v1.UpsertDatapointsRequest\x1a\x34.google.cloud.aiplatform.v1.UpsertDatapointsResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{index=projects/*/locations/*/indexes/*}:upsertDatapoints:\x01*\x12\xc7\x01\n\x10RemoveDatapoints\x12\x33.google.cloud.aiplatform.v1.RemoveDatapointsRequest\x1a\x34.google.cloud.aiplatform.v1.RemoveDatapointsResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{index=projects/*/locations/*/indexes/*}:removeDatapoints:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcf\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x11IndexServiceProtoP\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" +descriptor_data = "\n.google/cloud/aiplatform/v1/index_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/index.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x86\x01\n\x12\x43reateIndexRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x05index\x18\x02 \x01(\x0b\x32!.google.cloud.aiplatform.v1.IndexB\x03\xe0\x41\x02\"\xe6\x01\n\x1c\x43reateIndexOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12v\n*nearest_neighbor_search_operation_metadata\x18\x02 \x01(\x0b\x32\x42.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata\"H\n\x0fGetIndexRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\"\xb5\x01\n\x12ListIndexesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"b\n\x13ListIndexesResponse\x12\x32\n\x07indexes\x18\x01 \x03(\x0b\x32!.google.cloud.aiplatform.v1.Index\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\x12UpdateIndexRequest\x12\x35\n\x05index\x18\x01 \x01(\x0b\x32!.google.cloud.aiplatform.v1.IndexB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xe6\x01\n\x1cUpdateIndexOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12v\n*nearest_neighbor_search_operation_metadata\x18\x02 \x01(\x0b\x32\x42.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata\"K\n\x12\x44\x65leteIndexRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\"\xc7\x01\n\x17UpsertDatapointsRequest\x12\x36\n\x05index\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\x12>\n\ndatapoints\x18\x02 \x03(\x0b\x32*.google.cloud.aiplatform.v1.IndexDatapoint\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x1a\n\x18UpsertDatapointsResponse\"h\n\x17RemoveDatapointsRequest\x12\x36\n\x05index\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Index\x12\x15\n\rdatapoint_ids\x18\x02 \x03(\t\"\x1a\n\x18RemoveDatapointsResponse\"\x85\t\n&NearestNeighborSearchOperationMetadata\x12{\n\x18\x63ontent_validation_stats\x18\x01 \x03(\x0b\x32Y.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats\x12\x18\n\x10\x64\x61ta_bytes_count\x18\x02 \x01(\x03\x1a\xa6\x05\n\x0bRecordError\x12r\n\nerror_type\x18\x01 \x01(\x0e\x32^.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12\x16\n\x0esource_gcs_uri\x18\x03 \x01(\t\x12\x14\n\x0c\x65mbedding_id\x18\x04 \x01(\t\x12\x12\n\nraw_record\x18\x05 \x01(\t\"\xc9\x03\n\x0fRecordErrorType\x12\x1a\n\x16\x45RROR_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nEMPTY_LINE\x10\x01\x12\x17\n\x13INVALID_JSON_SYNTAX\x10\x02\x12\x16\n\x12INVALID_CSV_SYNTAX\x10\x03\x12\x17\n\x13INVALID_AVRO_SYNTAX\x10\x04\x12\x18\n\x14INVALID_EMBEDDING_ID\x10\x05\x12\x1b\n\x17\x45MBEDDING_SIZE_MISMATCH\x10\x06\x12\x15\n\x11NAMESPACE_MISSING\x10\x07\x12\x11\n\rPARSING_ERROR\x10\x08\x12\x17\n\x13\x44UPLICATE_NAMESPACE\x10\t\x12\x13\n\x0fOP_IN_DATAPOINT\x10\n\x12\x13\n\x0fMULTIPLE_VALUES\x10\x0b\x12\x19\n\x15INVALID_NUMERIC_VALUE\x10\x0c\x12\x14\n\x10INVALID_ENCODING\x10\r\x12\x1d\n\x19INVALID_SPARSE_DIMENSIONS\x10\x0e\x12\x17\n\x13INVALID_TOKEN_VALUE\x10\x0f\x12\x1c\n\x18INVALID_SPARSE_EMBEDDING\x10\x10\x12\x15\n\x11INVALID_EMBEDDING\x10\x11\x1a\x9a\x02\n\x16\x43ontentValidationStats\x12\x16\n\x0esource_gcs_uri\x18\x01 \x01(\t\x12\x1a\n\x12valid_record_count\x18\x02 \x01(\x03\x12\x1c\n\x14invalid_record_count\x18\x03 \x01(\x03\x12\x66\n\x0epartial_errors\x18\x04 \x03(\x0b\x32N.google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError\x12!\n\x19valid_sparse_record_count\x18\x05 \x01(\x03\x12#\n\x1binvalid_sparse_record_count\x18\x06 \x01(\x03\x32\xb6\x0b\n\x0cIndexService\x12\xcf\x01\n\x0b\x43reateIndex\x12..google.cloud.aiplatform.v1.CreateIndexRequest\x1a\x1d.google.longrunning.Operation\"q\xca\x41%\n\x05Index\x12\x1c\x43reateIndexOperationMetadata\xda\x41\x0cparent,index\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/indexes:\x05index\x12\x96\x01\n\x08GetIndex\x12+.google.cloud.aiplatform.v1.GetIndexRequest\x1a!.google.cloud.aiplatform.v1.Index\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/indexes/*}\x12\xac\x01\n\x0bListIndexes\x12..google.cloud.aiplatform.v1.ListIndexesRequest\x1a/.google.cloud.aiplatform.v1.ListIndexesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/indexes\x12\xda\x01\n\x0bUpdateIndex\x12..google.cloud.aiplatform.v1.UpdateIndexRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41%\n\x05Index\x12\x1cUpdateIndexOperationMetadata\xda\x41\x11index,update_mask\x82\xd3\xe4\x93\x02:21/v1/{index.name=projects/*/locations/*/indexes/*}:\x05index\x12\xcb\x01\n\x0b\x44\x65leteIndex\x12..google.cloud.aiplatform.v1.DeleteIndexRequest\x1a\x1d.google.longrunning.Operation\"m\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/indexes/*}\x12\xc7\x01\n\x10UpsertDatapoints\x12\x33.google.cloud.aiplatform.v1.UpsertDatapointsRequest\x1a\x34.google.cloud.aiplatform.v1.UpsertDatapointsResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{index=projects/*/locations/*/indexes/*}:upsertDatapoints:\x01*\x12\xc7\x01\n\x10RemoveDatapoints\x12\x33.google.cloud.aiplatform.v1.RemoveDatapointsRequest\x1a\x34.google.cloud.aiplatform.v1.RemoveDatapointsResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/{index=projects/*/locations/*/indexes/*}:removeDatapoints:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcf\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x11IndexServiceProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/match_service_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/match_service_pb.rb index 373bfcb84fa9..21bf08f1e9e4 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/match_service_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/match_service_pb.rb @@ -11,7 +11,7 @@ require 'google/cloud/aiplatform/v1/index_pb' -descriptor_data = "\n.google/cloud/aiplatform/v1/match_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/index.proto\"\xcb\x03\n\x14\x46indNeighborsRequest\x12G\n\x0eindex_endpoint\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/IndexEndpoint\x12\x19\n\x11\x64\x65ployed_index_id\x18\x02 \x01(\t\x12G\n\x07queries\x18\x03 \x03(\x0b\x32\x36.google.cloud.aiplatform.v1.FindNeighborsRequest.Query\x12\x1d\n\x15return_full_datapoint\x18\x04 \x01(\x08\x1a\xe6\x01\n\x05Query\x12\x42\n\tdatapoint\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.IndexDatapointB\x03\xe0\x41\x02\x12\x16\n\x0eneighbor_count\x18\x02 \x01(\x05\x12-\n%per_crowding_attribute_neighbor_count\x18\x03 \x01(\x05\x12\"\n\x1a\x61pproximate_neighbor_count\x18\x04 \x01(\x05\x12.\n&fraction_leaf_nodes_to_search_override\x18\x05 \x01(\x01\"\xc2\x02\n\x15\x46indNeighborsResponse\x12]\n\x11nearest_neighbors\x18\x01 \x03(\x0b\x32\x42.google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors\x1a[\n\x08Neighbor\x12=\n\tdatapoint\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.IndexDatapoint\x12\x10\n\x08\x64istance\x18\x02 \x01(\x01\x1am\n\x10NearestNeighbors\x12\n\n\x02id\x18\x01 \x01(\t\x12M\n\tneighbors\x18\x02 \x03(\x0b\x32:.google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor\"\x8d\x01\n\x1aReadIndexDatapointsRequest\x12G\n\x0eindex_endpoint\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/IndexEndpoint\x12\x19\n\x11\x64\x65ployed_index_id\x18\x02 \x01(\t\x12\x0b\n\x03ids\x18\x03 \x03(\t\"]\n\x1bReadIndexDatapointsResponse\x12>\n\ndatapoints\x18\x01 \x03(\x0b\x32*.google.cloud.aiplatform.v1.IndexDatapoint2\x91\x04\n\x0cMatchService\x12\xcb\x01\n\rFindNeighbors\x12\x30.google.cloud.aiplatform.v1.FindNeighborsRequest\x1a\x31.google.cloud.aiplatform.v1.FindNeighborsResponse\"U\x82\xd3\xe4\x93\x02O\"J/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:findNeighbors:\x01*\x12\xe3\x01\n\x13ReadIndexDatapoints\x12\x36.google.cloud.aiplatform.v1.ReadIndexDatapointsRequest\x1a\x37.google.cloud.aiplatform.v1.ReadIndexDatapointsResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:readIndexDatapoints:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcf\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x11MatchServiceProtoP\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" +descriptor_data = "\n.google/cloud/aiplatform/v1/match_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/index.proto\"\xc1\x04\n\x14\x46indNeighborsRequest\x12G\n\x0eindex_endpoint\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/IndexEndpoint\x12\x19\n\x11\x64\x65ployed_index_id\x18\x02 \x01(\t\x12G\n\x07queries\x18\x03 \x03(\x0b\x32\x36.google.cloud.aiplatform.v1.FindNeighborsRequest.Query\x12\x1d\n\x15return_full_datapoint\x18\x04 \x01(\x08\x1a\xdc\x02\n\x05Query\x12N\n\x03rrf\x18\x06 \x01(\x0b\x32:.google.cloud.aiplatform.v1.FindNeighborsRequest.Query.RRFB\x03\xe0\x41\x01H\x00\x12\x42\n\tdatapoint\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.IndexDatapointB\x03\xe0\x41\x02\x12\x16\n\x0eneighbor_count\x18\x02 \x01(\x05\x12-\n%per_crowding_attribute_neighbor_count\x18\x03 \x01(\x05\x12\"\n\x1a\x61pproximate_neighbor_count\x18\x04 \x01(\x05\x12.\n&fraction_leaf_nodes_to_search_override\x18\x05 \x01(\x01\x1a\x19\n\x03RRF\x12\x12\n\x05\x61lpha\x18\x01 \x01(\x02\x42\x03\xe0\x41\x02\x42\t\n\x07ranking\"\xdb\x02\n\x15\x46indNeighborsResponse\x12]\n\x11nearest_neighbors\x18\x01 \x03(\x0b\x32\x42.google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors\x1at\n\x08Neighbor\x12=\n\tdatapoint\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.IndexDatapoint\x12\x10\n\x08\x64istance\x18\x02 \x01(\x01\x12\x17\n\x0fsparse_distance\x18\x03 \x01(\x01\x1am\n\x10NearestNeighbors\x12\n\n\x02id\x18\x01 \x01(\t\x12M\n\tneighbors\x18\x02 \x03(\x0b\x32:.google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor\"\x8d\x01\n\x1aReadIndexDatapointsRequest\x12G\n\x0eindex_endpoint\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/IndexEndpoint\x12\x19\n\x11\x64\x65ployed_index_id\x18\x02 \x01(\t\x12\x0b\n\x03ids\x18\x03 \x03(\t\"]\n\x1bReadIndexDatapointsResponse\x12>\n\ndatapoints\x18\x01 \x03(\x0b\x32*.google.cloud.aiplatform.v1.IndexDatapoint2\x91\x04\n\x0cMatchService\x12\xcb\x01\n\rFindNeighbors\x12\x30.google.cloud.aiplatform.v1.FindNeighborsRequest\x1a\x31.google.cloud.aiplatform.v1.FindNeighborsResponse\"U\x82\xd3\xe4\x93\x02O\"J/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:findNeighbors:\x01*\x12\xe3\x01\n\x13ReadIndexDatapoints\x12\x36.google.cloud.aiplatform.v1.ReadIndexDatapointsRequest\x1a\x37.google.cloud.aiplatform.v1.ReadIndexDatapointsResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{index_endpoint=projects/*/locations/*/indexEndpoints/*}:readIndexDatapoints:\x01*\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xcf\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x11MatchServiceProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -44,6 +44,7 @@ module AIPlatform module V1 FindNeighborsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsRequest").msgclass FindNeighborsRequest::Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsRequest.Query").msgclass + FindNeighborsRequest::Query::RRF = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsRequest.Query.RRF").msgclass FindNeighborsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsResponse").msgclass FindNeighborsResponse::Neighbor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsResponse.Neighbor").msgclass FindNeighborsResponse::NearestNeighbors = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors").msgclass diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb index 057def8b4456..fbb75585e071 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb @@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n/google/cloud/aiplatform/v1/metadata_store.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe7\x03\n\rMetadataStore\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x0f\x65ncryption_spec\x18\x05 \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12P\n\x05state\x18\x07 \x01(\x0b\x32<.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreStateB\x03\xe0\x41\x03\x1a\x34\n\x12MetadataStoreState\x12\x1e\n\x16\x64isk_utilization_bytes\x18\x01 \x01(\x03:u\xea\x41r\n\'aiplatform.googleapis.com/MetadataStore\x12Gprojects/{project}/locations/{location}/metadataStores/{metadata_store}B\xcb\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\rMetadataProtoP\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" +descriptor_data = "\n/google/cloud/aiplatform/v1/metadata_store.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf9\x04\n\rMetadataStore\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x0f\x65ncryption_spec\x18\x05 \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12P\n\x05state\x18\x07 \x01(\x0b\x32<.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreStateB\x03\xe0\x41\x03\x12V\n\x0f\x64\x61taplex_config\x18\x08 \x01(\x0b\x32\x38.google.cloud.aiplatform.v1.MetadataStore.DataplexConfigB\x03\xe0\x41\x01\x1a\x34\n\x12MetadataStoreState\x12\x1e\n\x16\x64isk_utilization_bytes\x18\x01 \x01(\x03\x1a\x38\n\x0e\x44\x61taplexConfig\x12&\n\x19\x65nabled_pipelines_lineage\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01:u\xea\x41r\n\'aiplatform.googleapis.com/MetadataStore\x12Gprojects/{project}/locations/{location}/metadataStores/{metadata_store}B\xcb\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\rMetadataProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -44,6 +44,7 @@ module AIPlatform module V1 MetadataStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.MetadataStore").msgclass MetadataStore::MetadataStoreState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState").msgclass + MetadataStore::DataplexConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.MetadataStore.DataplexConfig").msgclass end end end diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb index 0c95862f51e9..38e2358f6c30 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb @@ -6,6 +6,7 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' +require 'google/cloud/aiplatform/v1/encryption_spec_pb' require 'google/cloud/aiplatform/v1/machine_resources_pb' require 'google/cloud/aiplatform/v1/network_spec_pb' require 'google/cloud/aiplatform/v1/notebook_euc_config_pb' @@ -14,7 +15,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n1google/cloud/aiplatform/v1/notebook_runtime.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/aiplatform/v1/machine_resources.proto\x1a-google/cloud/aiplatform/v1/network_spec.proto\x1a\x34google/cloud/aiplatform/v1/notebook_euc_config.proto\x1a>google/cloud/aiplatform/v1/notebook_idle_shutdown_config.proto\x1a>google/cloud/aiplatform/v1/notebook_runtime_template_ref.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdc\x08\n\x17NotebookRuntimeTemplate\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x17\n\nis_default\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x45\n\x0cmachine_spec\x18\x05 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MachineSpecB\x06\xe0\x41\x01\xe0\x41\x05\x12V\n\x19\x64\x61ta_persistent_disk_spec\x18\x08 \x01(\x0b\x32..google.cloud.aiplatform.v1.PersistentDiskSpecB\x03\xe0\x41\x01\x12\x42\n\x0cnetwork_spec\x18\x0c \x01(\x0b\x32\'.google.cloud.aiplatform.v1.NetworkSpecB\x03\xe0\x41\x01\x12\x17\n\x0fservice_account\x18\r \x01(\t\x12\x0c\n\x04\x65tag\x18\x0e \x01(\t\x12O\n\x06labels\x18\x0f \x03(\x0b\x32?.google.cloud.aiplatform.v1.NotebookRuntimeTemplate.LabelsEntry\x12T\n\x14idle_shutdown_config\x18\x11 \x01(\x0b\x32\x36.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig\x12\x41\n\neuc_config\x18\x12 \x01(\x0b\x32-.google.cloud.aiplatform.v1.NotebookEucConfig\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x15notebook_runtime_type\x18\x13 \x01(\x0e\x32/.google.cloud.aiplatform.v1.NotebookRuntimeTypeB\x06\xe0\x41\x01\xe0\x41\x05\x12P\n\x12shielded_vm_config\x18\x14 \x01(\x0b\x32,.google.cloud.aiplatform.v1.ShieldedVmConfigB\x06\xe0\x41\x01\xe0\x41\x05\x12\x19\n\x0cnetwork_tags\x18\x15 \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x95\x01\xea\x41\x91\x01\n1aiplatform.googleapis.com/NotebookRuntimeTemplate\x12\\projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}\"\xd5\t\n\x0fNotebookRuntime\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cruntime_user\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x62\n\x1dnotebook_runtime_template_ref\x18\x03 \x01(\x0b\x32\x36.google.cloud.aiplatform.v1.NotebookRuntimeTemplateRefB\x03\xe0\x41\x03\x12\x16\n\tproxy_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12R\n\x0chealth_state\x18\x08 \x01(\x0e\x32\x37.google.cloud.aiplatform.v1.NotebookRuntime.HealthStateB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x0b \x01(\t\x12\x1c\n\x0fservice_account\x18\r \x01(\tB\x03\xe0\x41\x03\x12T\n\rruntime_state\x18\x0e \x01(\x0e\x32\x38.google.cloud.aiplatform.v1.NotebookRuntime.RuntimeStateB\x03\xe0\x41\x03\x12\x1a\n\ris_upgradable\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03\x12G\n\x06labels\x18\x10 \x03(\x0b\x32\x37.google.cloud.aiplatform.v1.NotebookRuntime.LabelsEntry\x12\x38\n\x0f\x65xpiration_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12S\n\x15notebook_runtime_type\x18\x13 \x01(\x0e\x32/.google.cloud.aiplatform.v1.NotebookRuntimeTypeB\x03\xe0\x41\x03\x12\x19\n\x0cnetwork_tags\x18\x19 \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"G\n\x0bHealthState\x12\x1c\n\x18HEALTH_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\r\n\tUNHEALTHY\x10\x02\"\x99\x01\n\x0cRuntimeState\x12\x1d\n\x19RUNTIME_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x11\n\rBEING_STARTED\x10\x02\x12\x11\n\rBEING_STOPPED\x10\x03\x12\x0b\n\x07STOPPED\x10\x04\x12\x12\n\x0e\x42\x45ING_UPGRADED\x10\x05\x12\t\n\x05\x45RROR\x10\x64\x12\x0b\n\x07INVALID\x10\x65:{\xea\x41x\n)aiplatform.googleapis.com/NotebookRuntime\x12Kprojects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}*]\n\x13NotebookRuntimeType\x12%\n!NOTEBOOK_RUNTIME_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cUSER_DEFINED\x10\x01\x12\r\n\tONE_CLICK\x10\x02\x42\xd2\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x14NotebookRuntimeProtoP\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" +descriptor_data = "\n1google/cloud/aiplatform/v1/notebook_runtime.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x32google/cloud/aiplatform/v1/machine_resources.proto\x1a-google/cloud/aiplatform/v1/network_spec.proto\x1a\x34google/cloud/aiplatform/v1/notebook_euc_config.proto\x1a>google/cloud/aiplatform/v1/notebook_idle_shutdown_config.proto\x1a>google/cloud/aiplatform/v1/notebook_runtime_template_ref.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa1\t\n\x17NotebookRuntimeTemplate\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x17\n\nis_default\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x45\n\x0cmachine_spec\x18\x05 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MachineSpecB\x06\xe0\x41\x01\xe0\x41\x05\x12V\n\x19\x64\x61ta_persistent_disk_spec\x18\x08 \x01(\x0b\x32..google.cloud.aiplatform.v1.PersistentDiskSpecB\x03\xe0\x41\x01\x12\x42\n\x0cnetwork_spec\x18\x0c \x01(\x0b\x32\'.google.cloud.aiplatform.v1.NetworkSpecB\x03\xe0\x41\x01\x12\x17\n\x0fservice_account\x18\r \x01(\t\x12\x0c\n\x04\x65tag\x18\x0e \x01(\t\x12O\n\x06labels\x18\x0f \x03(\x0b\x32?.google.cloud.aiplatform.v1.NotebookRuntimeTemplate.LabelsEntry\x12T\n\x14idle_shutdown_config\x18\x11 \x01(\x0b\x32\x36.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig\x12\x41\n\neuc_config\x18\x12 \x01(\x0b\x32-.google.cloud.aiplatform.v1.NotebookEucConfig\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x15notebook_runtime_type\x18\x13 \x01(\x0e\x32/.google.cloud.aiplatform.v1.NotebookRuntimeTypeB\x06\xe0\x41\x01\xe0\x41\x05\x12P\n\x12shielded_vm_config\x18\x14 \x01(\x0b\x32,.google.cloud.aiplatform.v1.ShieldedVmConfigB\x06\xe0\x41\x01\xe0\x41\x05\x12\x19\n\x0cnetwork_tags\x18\x15 \x03(\tB\x03\xe0\x41\x01\x12\x43\n\x0f\x65ncryption_spec\x18\x17 \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x95\x01\xea\x41\x91\x01\n1aiplatform.googleapis.com/NotebookRuntimeTemplate\x12\\projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}\"\xb2\x0b\n\x0fNotebookRuntime\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cruntime_user\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x62\n\x1dnotebook_runtime_template_ref\x18\x03 \x01(\x0b\x32\x36.google.cloud.aiplatform.v1.NotebookRuntimeTemplateRefB\x03\xe0\x41\x03\x12\x16\n\tproxy_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12R\n\x0chealth_state\x18\x08 \x01(\x0e\x32\x37.google.cloud.aiplatform.v1.NotebookRuntime.HealthStateB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x0b \x01(\t\x12\x1c\n\x0fservice_account\x18\r \x01(\tB\x03\xe0\x41\x03\x12T\n\rruntime_state\x18\x0e \x01(\x0e\x32\x38.google.cloud.aiplatform.v1.NotebookRuntime.RuntimeStateB\x03\xe0\x41\x03\x12\x1a\n\ris_upgradable\x18\x0f \x01(\x08\x42\x03\xe0\x41\x03\x12G\n\x06labels\x18\x10 \x03(\x0b\x32\x37.google.cloud.aiplatform.v1.NotebookRuntime.LabelsEntry\x12\x38\n\x0f\x65xpiration_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12S\n\x15notebook_runtime_type\x18\x13 \x01(\x0e\x32/.google.cloud.aiplatform.v1.NotebookRuntimeTypeB\x03\xe0\x41\x03\x12Y\n\x14idle_shutdown_config\x18\x17 \x01(\x0b\x32\x36.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigB\x03\xe0\x41\x03\x12\x19\n\x0cnetwork_tags\x18\x19 \x03(\tB\x03\xe0\x41\x01\x12H\n\x0f\x65ncryption_spec\x18\x1c \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpecB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x1d \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x1e \x01(\x08\x42\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"G\n\x0bHealthState\x12\x1c\n\x18HEALTH_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07HEALTHY\x10\x01\x12\r\n\tUNHEALTHY\x10\x02\"\x99\x01\n\x0cRuntimeState\x12\x1d\n\x19RUNTIME_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x11\n\rBEING_STARTED\x10\x02\x12\x11\n\rBEING_STOPPED\x10\x03\x12\x0b\n\x07STOPPED\x10\x04\x12\x12\n\x0e\x42\x45ING_UPGRADED\x10\x05\x12\t\n\x05\x45RROR\x10\x64\x12\x0b\n\x07INVALID\x10\x65:{\xea\x41x\n)aiplatform.googleapis.com/NotebookRuntime\x12Kprojects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}*]\n\x13NotebookRuntimeType\x12%\n!NOTEBOOK_RUNTIME_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cUSER_DEFINED\x10\x01\x12\r\n\tONE_CLICK\x10\x02\x42\xd2\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x14NotebookRuntimeProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -34,6 +35,7 @@ ["google.cloud.aiplatform.v1.NotebookIdleShutdownConfig", "google/cloud/aiplatform/v1/notebook_idle_shutdown_config.proto"], ["google.cloud.aiplatform.v1.NotebookEucConfig", "google/cloud/aiplatform/v1/notebook_euc_config.proto"], ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.cloud.aiplatform.v1.EncryptionSpec", "google/cloud/aiplatform/v1/encryption_spec.proto"], ["google.cloud.aiplatform.v1.NotebookRuntimeTemplateRef", "google/cloud/aiplatform/v1/notebook_runtime_template_ref.proto"], ] imports.each do |type_name, expected_filename| diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb index 5642f7cb4d22..60bd5bda1191 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb @@ -15,7 +15,7 @@ require 'google/protobuf/field_mask_pb' -descriptor_data = "\n1google/cloud/aiplatform/v1/notebook_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\x31google/cloud/aiplatform/v1/notebook_runtime.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xe9\x01\n$CreateNotebookRuntimeTemplateRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12[\n\x19notebook_runtime_template\x18\x02 \x01(\x0b\x32\x33.google.cloud.aiplatform.v1.NotebookRuntimeTemplateB\x03\xe0\x41\x02\x12)\n\x1cnotebook_runtime_template_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n.CreateNotebookRuntimeTemplateOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"l\n!GetNotebookRuntimeTemplateRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplate\"\xf1\x01\n#ListNotebookRuntimeTemplatesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n$ListNotebookRuntimeTemplatesResponse\x12W\n\x1anotebook_runtime_templates\x18\x01 \x03(\x0b\x32\x33.google.cloud.aiplatform.v1.NotebookRuntimeTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n$DeleteNotebookRuntimeTemplateRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplate\"\xa5\x02\n\x1c\x41ssignNotebookRuntimeRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\\\n\x19notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplate\x12J\n\x10notebook_runtime\x18\x03 \x01(\x0b\x32+.google.cloud.aiplatform.v1.NotebookRuntimeB\x03\xe0\x41\x02\x12 \n\x13notebook_runtime_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x92\x01\n&AssignNotebookRuntimeOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x18\n\x10progress_message\x18\x02 \x01(\t\"\\\n\x19GetNotebookRuntimeRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/NotebookRuntime\"\xe9\x01\n\x1bListNotebookRuntimesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x1cListNotebookRuntimesResponse\x12\x46\n\x11notebook_runtimes\x18\x01 \x03(\x0b\x32+.google.cloud.aiplatform.v1.NotebookRuntime\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"_\n\x1c\x44\x65leteNotebookRuntimeRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/NotebookRuntime\"`\n\x1dUpgradeNotebookRuntimeRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/NotebookRuntime\"\x93\x01\n\'UpgradeNotebookRuntimeOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x18\n\x10progress_message\x18\x02 \x01(\t\" \n\x1eUpgradeNotebookRuntimeResponse\"^\n\x1bStartNotebookRuntimeRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/NotebookRuntime\"\x91\x01\n%StartNotebookRuntimeOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x18\n\x10progress_message\x18\x02 \x01(\t\"\x1e\n\x1cStartNotebookRuntimeResponse2\xff\x14\n\x0fNotebookService\x12\xee\x02\n\x1d\x43reateNotebookRuntimeTemplate\x12@.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateRequest\x1a\x1d.google.longrunning.Operation\"\xeb\x01\xca\x41I\n\x17NotebookRuntimeTemplate\x12.CreateNotebookRuntimeTemplateOperationMetadata\xda\x41=parent,notebook_runtime_template,notebook_runtime_template_id\x82\xd3\xe4\x93\x02Y\"\x12\x12*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" +descriptor_data = "\n1google/cloud/aiplatform/v1/notebook_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\x31google/cloud/aiplatform/v1/notebook_runtime.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xe9\x01\n$CreateNotebookRuntimeTemplateRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12[\n\x19notebook_runtime_template\x18\x02 \x01(\x0b\x32\x33.google.cloud.aiplatform.v1.NotebookRuntimeTemplateB\x03\xe0\x41\x02\x12)\n\x1cnotebook_runtime_template_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n.CreateNotebookRuntimeTemplateOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"l\n!GetNotebookRuntimeTemplateRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplate\"\xf1\x01\n#ListNotebookRuntimeTemplatesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n$ListNotebookRuntimeTemplatesResponse\x12W\n\x1anotebook_runtime_templates\x18\x01 \x03(\x0b\x32\x33.google.cloud.aiplatform.v1.NotebookRuntimeTemplate\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n$DeleteNotebookRuntimeTemplateRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplate\"\xb9\x01\n$UpdateNotebookRuntimeTemplateRequest\x12[\n\x19notebook_runtime_template\x18\x01 \x01(\x0b\x32\x33.google.cloud.aiplatform.v1.NotebookRuntimeTemplateB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa5\x02\n\x1c\x41ssignNotebookRuntimeRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\\\n\x19notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplate\x12J\n\x10notebook_runtime\x18\x03 \x01(\x0b\x32+.google.cloud.aiplatform.v1.NotebookRuntimeB\x03\xe0\x41\x02\x12 \n\x13notebook_runtime_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x92\x01\n&AssignNotebookRuntimeOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x18\n\x10progress_message\x18\x02 \x01(\t\"\\\n\x19GetNotebookRuntimeRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/NotebookRuntime\"\xe9\x01\n\x1bListNotebookRuntimesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x1cListNotebookRuntimesResponse\x12\x46\n\x11notebook_runtimes\x18\x01 \x03(\x0b\x32+.google.cloud.aiplatform.v1.NotebookRuntime\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"_\n\x1c\x44\x65leteNotebookRuntimeRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/NotebookRuntime\"`\n\x1dUpgradeNotebookRuntimeRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/NotebookRuntime\"\x93\x01\n\'UpgradeNotebookRuntimeOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x18\n\x10progress_message\x18\x02 \x01(\t\" \n\x1eUpgradeNotebookRuntimeResponse\"^\n\x1bStartNotebookRuntimeRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)aiplatform.googleapis.com/NotebookRuntime\"\x91\x01\n%StartNotebookRuntimeOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x18\n\x10progress_message\x18\x02 \x01(\t\"\x1e\n\x1cStartNotebookRuntimeResponse2\xbc\x17\n\x0fNotebookService\x12\xee\x02\n\x1d\x43reateNotebookRuntimeTemplate\x12@.google.cloud.aiplatform.v1.CreateNotebookRuntimeTemplateRequest\x1a\x1d.google.longrunning.Operation\"\xeb\x01\xca\x41I\n\x17NotebookRuntimeTemplate\x12.CreateNotebookRuntimeTemplateOperationMetadata\xda\x41=parent,notebook_runtime_template,notebook_runtime_template_id\x82\xd3\xe4\x93\x02Y\"\x12\x12*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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -54,6 +54,7 @@ module V1 ListNotebookRuntimeTemplatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesRequest").msgclass ListNotebookRuntimeTemplatesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesResponse").msgclass DeleteNotebookRuntimeTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteNotebookRuntimeTemplateRequest").msgclass + UpdateNotebookRuntimeTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpdateNotebookRuntimeTemplateRequest").msgclass AssignNotebookRuntimeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.AssignNotebookRuntimeRequest").msgclass AssignNotebookRuntimeOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.AssignNotebookRuntimeOperationMetadata").msgclass GetNotebookRuntimeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetNotebookRuntimeRequest").msgclass diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb index f64588738de1..5b427488e565 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb @@ -41,6 +41,8 @@ class Service rpc :ListNotebookRuntimeTemplates, ::Google::Cloud::AIPlatform::V1::ListNotebookRuntimeTemplatesRequest, ::Google::Cloud::AIPlatform::V1::ListNotebookRuntimeTemplatesResponse # Deletes a NotebookRuntimeTemplate. rpc :DeleteNotebookRuntimeTemplate, ::Google::Cloud::AIPlatform::V1::DeleteNotebookRuntimeTemplateRequest, ::Google::Longrunning::Operation + # Updates a NotebookRuntimeTemplate. + rpc :UpdateNotebookRuntimeTemplate, ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest, ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate # Assigns a NotebookRuntime to a user for a particular Notebook file. This # method will either returns an existing assignment or generates a new one. rpc :AssignNotebookRuntime, ::Google::Cloud::AIPlatform::V1::AssignNotebookRuntimeRequest, ::Google::Longrunning::Operation diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb index 3429117c26da..b6936e50b7e8 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb @@ -12,7 +12,7 @@ require 'google/rpc/status_pb' -descriptor_data = "\n4google/cloud/aiplatform/v1/persistent_resource.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x32google/cloud/aiplatform/v1/machine_resources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xde\x08\n\x12PersistentResource\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x0eresource_pools\x18\x04 \x03(\x0b\x32(.google.cloud.aiplatform.v1.ResourcePoolB\x03\xe0\x41\x02\x12H\n\x05state\x18\x05 \x01(\x0e\x32\x34.google.cloud.aiplatform.v1.PersistentResource.StateB\x03\xe0\x41\x03\x12&\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x06labels\x18\n \x03(\x0b\x32:.google.cloud.aiplatform.v1.PersistentResource.LabelsEntryB\x03\xe0\x41\x01\x12\x37\n\x07network\x18\x0b \x01(\tB&\xe0\x41\x01\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12H\n\x0f\x65ncryption_spec\x18\x0c \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpecB\x03\xe0\x41\x01\x12S\n\x15resource_runtime_spec\x18\r \x01(\x0b\x32/.google.cloud.aiplatform.v1.ResourceRuntimeSpecB\x03\xe0\x41\x01\x12J\n\x10resource_runtime\x18\x0e \x01(\x0b\x32+.google.cloud.aiplatform.v1.ResourceRuntimeB\x03\xe0\x41\x03\x12\x1f\n\x12reserved_ip_ranges\x18\x0f \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0b\n\x07RUNNING\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\t\n\x05\x45RROR\x10\x05\x12\r\n\tREBOOTING\x10\x06\x12\x0c\n\x08UPDATING\x10\x07:\x85\x01\xea\x41\x81\x01\n,aiplatform.googleapis.com/PersistentResource\x12Qprojects/{project}/locations/{location}/persistentResources/{persistent_resource}\"\xdb\x03\n\x0cResourcePool\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x45\n\x0cmachine_spec\x18\x02 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MachineSpecB\x06\xe0\x41\x02\xe0\x41\x05\x12\x1f\n\rreplica_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12<\n\tdisk_spec\x18\x04 \x01(\x0b\x32$.google.cloud.aiplatform.v1.DiskSpecB\x03\xe0\x41\x01\x12\x1f\n\x12used_replica_count\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12W\n\x10\x61utoscaling_spec\x18\x07 \x01(\x0b\x32\x38.google.cloud.aiplatform.v1.ResourcePool.AutoscalingSpecB\x03\xe0\x41\x01\x1a\x87\x01\n\x0f\x41utoscalingSpec\x12#\n\x11min_replica_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12#\n\x11max_replica_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x42\x14\n\x12_min_replica_countB\x14\n\x12_max_replica_countB\x10\n\x0e_replica_count\"\xa4\x01\n\x13ResourceRuntimeSpec\x12Q\n\x14service_account_spec\x18\x02 \x01(\x0b\x32..google.cloud.aiplatform.v1.ServiceAccountSpecB\x03\xe0\x41\x01\x12:\n\x08ray_spec\x18\x01 \x01(\x0b\x32#.google.cloud.aiplatform.v1.RaySpecB\x03\xe0\x41\x01\"\t\n\x07RaySpec\"\x11\n\x0fResourceRuntime\"^\n\x12ServiceAccountSpec\x12*\n\x1d\x65nable_custom_service_account\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\xd5\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x17PersistentResourceProtoP\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" +descriptor_data = "\n4google/cloud/aiplatform/v1/persistent_resource.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a\x32google/cloud/aiplatform/v1/machine_resources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xde\x08\n\x12PersistentResource\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x0eresource_pools\x18\x04 \x03(\x0b\x32(.google.cloud.aiplatform.v1.ResourcePoolB\x03\xe0\x41\x02\x12H\n\x05state\x18\x05 \x01(\x0e\x32\x34.google.cloud.aiplatform.v1.PersistentResource.StateB\x03\xe0\x41\x03\x12&\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x06labels\x18\n \x03(\x0b\x32:.google.cloud.aiplatform.v1.PersistentResource.LabelsEntryB\x03\xe0\x41\x01\x12\x37\n\x07network\x18\x0b \x01(\tB&\xe0\x41\x01\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12H\n\x0f\x65ncryption_spec\x18\x0c \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpecB\x03\xe0\x41\x01\x12S\n\x15resource_runtime_spec\x18\r \x01(\x0b\x32/.google.cloud.aiplatform.v1.ResourceRuntimeSpecB\x03\xe0\x41\x01\x12J\n\x10resource_runtime\x18\x0e \x01(\x0b\x32+.google.cloud.aiplatform.v1.ResourceRuntimeB\x03\xe0\x41\x03\x12\x1f\n\x12reserved_ip_ranges\x18\x0f \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0b\n\x07RUNNING\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\t\n\x05\x45RROR\x10\x05\x12\r\n\tREBOOTING\x10\x06\x12\x0c\n\x08UPDATING\x10\x07:\x85\x01\xea\x41\x81\x01\n,aiplatform.googleapis.com/PersistentResource\x12Qprojects/{project}/locations/{location}/persistentResources/{persistent_resource}\"\xdb\x03\n\x0cResourcePool\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x45\n\x0cmachine_spec\x18\x02 \x01(\x0b\x32\'.google.cloud.aiplatform.v1.MachineSpecB\x06\xe0\x41\x02\xe0\x41\x05\x12\x1f\n\rreplica_count\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12<\n\tdisk_spec\x18\x04 \x01(\x0b\x32$.google.cloud.aiplatform.v1.DiskSpecB\x03\xe0\x41\x01\x12\x1f\n\x12used_replica_count\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03\x12W\n\x10\x61utoscaling_spec\x18\x07 \x01(\x0b\x32\x38.google.cloud.aiplatform.v1.ResourcePool.AutoscalingSpecB\x03\xe0\x41\x01\x1a\x87\x01\n\x0f\x41utoscalingSpec\x12#\n\x11min_replica_count\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12#\n\x11max_replica_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x42\x14\n\x12_min_replica_countB\x14\n\x12_max_replica_countB\x10\n\x0e_replica_count\"\xa4\x01\n\x13ResourceRuntimeSpec\x12Q\n\x14service_account_spec\x18\x02 \x01(\x0b\x32..google.cloud.aiplatform.v1.ServiceAccountSpecB\x03\xe0\x41\x01\x12:\n\x08ray_spec\x18\x01 \x01(\x0b\x32#.google.cloud.aiplatform.v1.RaySpecB\x03\xe0\x41\x01\"\xae\x02\n\x07RaySpec\x12\x16\n\timage_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12^\n\x14resource_pool_images\x18\x06 \x03(\x0b\x32;.google.cloud.aiplatform.v1.RaySpec.ResourcePoolImagesEntryB\x03\xe0\x41\x01\x12\'\n\x1ahead_node_resource_pool_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12G\n\x0fray_metric_spec\x18\x08 \x01(\x0b\x32).google.cloud.aiplatform.v1.RayMetricSpecB\x03\xe0\x41\x01\x1a\x39\n\x17ResourcePoolImagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9b\x01\n\x0fResourceRuntime\x12U\n\x0b\x61\x63\x63\x65ss_uris\x18\x01 \x03(\x0b\x32;.google.cloud.aiplatform.v1.ResourceRuntime.AccessUrisEntryB\x03\xe0\x41\x03\x1a\x31\n\x0f\x41\x63\x63\x65ssUrisEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"^\n\x12ServiceAccountSpec\x12*\n\x1d\x65nable_custom_service_account\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\"&\n\rRayMetricSpec\x12\x15\n\x08\x64isabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x42\xd5\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x17PersistentResourceProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -54,6 +54,7 @@ module V1 RaySpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.RaySpec").msgclass ResourceRuntime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ResourceRuntime").msgclass ServiceAccountSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ServiceAccountSpec").msgclass + RayMetricSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.RayMetricSpec").msgclass end end end diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb index 0f31cece0d18..211990492570 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb @@ -16,7 +16,7 @@ require 'google/protobuf/struct_pb' -descriptor_data = "\n3google/cloud/aiplatform/v1/prediction_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/httpbody.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/content.proto\x1a,google/cloud/aiplatform/v1/explanation.proto\x1a%google/cloud/aiplatform/v1/tool.proto\x1a&google/cloud/aiplatform/v1/types.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xaa\x01\n\x0ePredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12.\n\tinstances\x18\x02 \x03(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12*\n\nparameters\x18\x03 \x01(\x0b\x32\x16.google.protobuf.Value\"\x80\x02\n\x0fPredictResponse\x12+\n\x0bpredictions\x18\x01 \x03(\x0b\x32\x16.google.protobuf.Value\x12\x19\n\x11\x64\x65ployed_model_id\x18\x02 \x01(\t\x12\x36\n\x05model\x18\x03 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12\x1d\n\x10model_version_id\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12model_display_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12-\n\x08metadata\x18\x06 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\"z\n\x11RawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\'\n\thttp_body\x18\x02 \x01(\x0b\x32\x14.google.api.HttpBody\"\x80\x01\n\x17StreamRawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\'\n\thttp_body\x18\x02 \x01(\x0b\x32\x14.google.api.HttpBody\"\xc0\x01\n\x14\x44irectPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x32\n\x06inputs\x18\x02 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"\x84\x01\n\x15\x44irectPredictResponse\x12\x33\n\x07outputs\x18\x01 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x02 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"{\n\x17\x44irectRawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x13\n\x0bmethod_name\x18\x02 \x01(\t\x12\r\n\x05input\x18\x03 \x01(\x0c\"*\n\x18\x44irectRawPredictResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\"\xd0\x01\n\x1aStreamDirectPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x37\n\x06inputs\x18\x02 \x03(\x0b\x32\".google.cloud.aiplatform.v1.TensorB\x03\xe0\x41\x01\x12;\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.TensorB\x03\xe0\x41\x01\"\x8a\x01\n\x1bStreamDirectPredictResponse\x12\x33\n\x07outputs\x18\x01 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x02 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"\x8b\x01\n\x1dStreamDirectRawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x18\n\x0bmethod_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05input\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x01\"0\n\x1eStreamDirectRawPredictResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\"\xc3\x01\n\x17StreamingPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x32\n\x06inputs\x18\x02 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"\x87\x01\n\x18StreamingPredictResponse\x12\x33\n\x07outputs\x18\x01 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x02 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"~\n\x1aStreamingRawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x13\n\x0bmethod_name\x18\x02 \x01(\t\x12\r\n\x05input\x18\x03 \x01(\x0c\"-\n\x1bStreamingRawPredictResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\"\x9d\x02\n\x0e\x45xplainRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12.\n\tinstances\x18\x02 \x03(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12*\n\nparameters\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12V\n\x19\x65xplanation_spec_override\x18\x05 \x01(\x0b\x32\x33.google.cloud.aiplatform.v1.ExplanationSpecOverride\x12\x19\n\x11\x64\x65ployed_model_id\x18\x03 \x01(\t\"\x98\x01\n\x0f\x45xplainResponse\x12=\n\x0c\x65xplanations\x18\x01 \x03(\x0b\x32\'.google.cloud.aiplatform.v1.Explanation\x12\x19\n\x11\x64\x65ployed_model_id\x18\x02 \x01(\t\x12+\n\x0bpredictions\x18\x03 \x03(\x0b\x32\x16.google.protobuf.Value\"\xd2\x01\n\x12\x43ountTokensRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x12\n\x05model\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12.\n\tinstances\x18\x02 \x03(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12:\n\x08\x63ontents\x18\x04 \x03(\x0b\x32#.google.cloud.aiplatform.v1.ContentB\x03\xe0\x41\x02\"N\n\x13\x43ountTokensResponse\x12\x14\n\x0ctotal_tokens\x18\x01 \x01(\x05\x12!\n\x19total_billable_characters\x18\x02 \x01(\x05\"\x97\x03\n\x16GenerateContentRequest\x12\x12\n\x05model\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12:\n\x08\x63ontents\x18\x02 \x03(\x0b\x32#.google.cloud.aiplatform.v1.ContentB\x03\xe0\x41\x02\x12I\n\x12system_instruction\x18\x08 \x01(\x0b\x32#.google.cloud.aiplatform.v1.ContentB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x34\n\x05tools\x18\x06 \x03(\x0b\x32 .google.cloud.aiplatform.v1.ToolB\x03\xe0\x41\x01\x12G\n\x0fsafety_settings\x18\x03 \x03(\x0b\x32).google.cloud.aiplatform.v1.SafetySettingB\x03\xe0\x41\x01\x12L\n\x11generation_config\x18\x04 \x01(\x0b\x32,.google.cloud.aiplatform.v1.GenerationConfigB\x03\xe0\x41\x01\x42\x15\n\x13_system_instruction\"\xd7\x05\n\x17GenerateContentResponse\x12>\n\ncandidates\x18\x02 \x03(\x0b\x32%.google.cloud.aiplatform.v1.CandidateB\x03\xe0\x41\x03\x12`\n\x0fprompt_feedback\x18\x03 \x01(\x0b\x32\x42.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedbackB\x03\xe0\x41\x03\x12Y\n\x0eusage_metadata\x18\x04 \x01(\x0b\x32\x41.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata\x1a\xd6\x02\n\x0ePromptFeedback\x12k\n\x0c\x62lock_reason\x18\x01 \x01(\x0e\x32P.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.BlockedReasonB\x03\xe0\x41\x03\x12\x45\n\x0esafety_ratings\x18\x02 \x03(\x0b\x32(.google.cloud.aiplatform.v1.SafetyRatingB\x03\xe0\x41\x03\x12!\n\x14\x62lock_reason_message\x18\x03 \x01(\tB\x03\xe0\x41\x03\"m\n\rBlockedReason\x12\x1e\n\x1a\x42LOCKED_REASON_UNSPECIFIED\x10\x00\x12\n\n\x06SAFETY\x10\x01\x12\t\n\x05OTHER\x10\x02\x12\r\n\tBLOCKLIST\x10\x03\x12\x16\n\x12PROHIBITED_CONTENT\x10\x04\x1a\x66\n\rUsageMetadata\x12\x1a\n\x12prompt_token_count\x18\x01 \x01(\x05\x12\x1e\n\x16\x63\x61ndidates_token_count\x18\x02 \x01(\x05\x12\x19\n\x11total_token_count\x18\x03 \x01(\x05\x32\xe0\x17\n\x11PredictionService\x12\x94\x02\n\x07Predict\x12*.google.cloud.aiplatform.v1.PredictRequest\x1a+.google.cloud.aiplatform.v1.PredictResponse\"\xaf\x01\xda\x41\x1d\x65ndpoint,instances,parameters\x82\xd3\xe4\x93\x02\x88\x01\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict:\x01*ZH\"C/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict:\x01*\x12\xfe\x01\n\nRawPredict\x12-.google.cloud.aiplatform.v1.RawPredictRequest\x1a\x14.google.api.HttpBody\"\xaa\x01\xda\x41\x12\x65ndpoint,http_body\x82\xd3\xe4\x93\x02\x8e\x01\"\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain:\x01*\x12\xa7\x02\n\x0fGenerateContent\x12\x32.google.cloud.aiplatform.v1.GenerateContentRequest\x1a\x33.google.cloud.aiplatform.v1.GenerateContentResponse\"\xaa\x01\xda\x41\x0emodel,contents\x82\xd3\xe4\x93\x02\x92\x01\">/v1/{model=projects/*/locations/*/endpoints/*}:generateContent:\x01*ZM\"H/v1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent:\x01*\x12\xbb\x02\n\x15StreamGenerateContent\x12\x32.google.cloud.aiplatform.v1.GenerateContentRequest\x1a\x33.google.cloud.aiplatform.v1.GenerateContentResponse\"\xb6\x01\xda\x41\x0emodel,contents\x82\xd3\xe4\x93\x02\x9e\x01\"D/v1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent:\x01*ZS\"N/v1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent:\x01*0\x01\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd4\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x16PredictionServiceProtoP\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" +descriptor_data = "\n3google/cloud/aiplatform/v1/prediction_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/httpbody.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/content.proto\x1a,google/cloud/aiplatform/v1/explanation.proto\x1a%google/cloud/aiplatform/v1/tool.proto\x1a&google/cloud/aiplatform/v1/types.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xaa\x01\n\x0ePredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12.\n\tinstances\x18\x02 \x03(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12*\n\nparameters\x18\x03 \x01(\x0b\x32\x16.google.protobuf.Value\"\x80\x02\n\x0fPredictResponse\x12+\n\x0bpredictions\x18\x01 \x03(\x0b\x32\x16.google.protobuf.Value\x12\x19\n\x11\x64\x65ployed_model_id\x18\x02 \x01(\t\x12\x36\n\x05model\x18\x03 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x61iplatform.googleapis.com/Model\x12\x1d\n\x10model_version_id\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12model_display_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12-\n\x08metadata\x18\x06 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x03\"z\n\x11RawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\'\n\thttp_body\x18\x02 \x01(\x0b\x32\x14.google.api.HttpBody\"\x80\x01\n\x17StreamRawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\'\n\thttp_body\x18\x02 \x01(\x0b\x32\x14.google.api.HttpBody\"\xc0\x01\n\x14\x44irectPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x32\n\x06inputs\x18\x02 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"\x84\x01\n\x15\x44irectPredictResponse\x12\x33\n\x07outputs\x18\x01 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x02 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"{\n\x17\x44irectRawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x13\n\x0bmethod_name\x18\x02 \x01(\t\x12\r\n\x05input\x18\x03 \x01(\x0c\"*\n\x18\x44irectRawPredictResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\"\xd0\x01\n\x1aStreamDirectPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x37\n\x06inputs\x18\x02 \x03(\x0b\x32\".google.cloud.aiplatform.v1.TensorB\x03\xe0\x41\x01\x12;\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.TensorB\x03\xe0\x41\x01\"\x8a\x01\n\x1bStreamDirectPredictResponse\x12\x33\n\x07outputs\x18\x01 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x02 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"\x8b\x01\n\x1dStreamDirectRawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x18\n\x0bmethod_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05input\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x01\"0\n\x1eStreamDirectRawPredictResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\"\xc3\x01\n\x17StreamingPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x32\n\x06inputs\x18\x02 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x03 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"\x87\x01\n\x18StreamingPredictResponse\x12\x33\n\x07outputs\x18\x01 \x03(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\x12\x36\n\nparameters\x18\x02 \x01(\x0b\x32\".google.cloud.aiplatform.v1.Tensor\"~\n\x1aStreamingRawPredictRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x13\n\x0bmethod_name\x18\x02 \x01(\t\x12\r\n\x05input\x18\x03 \x01(\x0c\"-\n\x1bStreamingRawPredictResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\"\x9d\x02\n\x0e\x45xplainRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12.\n\tinstances\x18\x02 \x03(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12*\n\nparameters\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12V\n\x19\x65xplanation_spec_override\x18\x05 \x01(\x0b\x32\x33.google.cloud.aiplatform.v1.ExplanationSpecOverride\x12\x19\n\x11\x64\x65ployed_model_id\x18\x03 \x01(\t\"\x98\x01\n\x0f\x45xplainResponse\x12=\n\x0c\x65xplanations\x18\x01 \x03(\x0b\x32\'.google.cloud.aiplatform.v1.Explanation\x12\x19\n\x11\x64\x65ployed_model_id\x18\x02 \x01(\t\x12+\n\x0bpredictions\x18\x03 \x03(\x0b\x32\x16.google.protobuf.Value\"\xd2\x01\n\x12\x43ountTokensRequest\x12<\n\x08\x65ndpoint\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/Endpoint\x12\x12\n\x05model\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12.\n\tinstances\x18\x02 \x03(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12:\n\x08\x63ontents\x18\x04 \x03(\x0b\x32#.google.cloud.aiplatform.v1.ContentB\x03\xe0\x41\x02\"N\n\x13\x43ountTokensResponse\x12\x14\n\x0ctotal_tokens\x18\x01 \x01(\x05\x12!\n\x19total_billable_characters\x18\x02 \x01(\x05\"\xd9\x03\n\x16GenerateContentRequest\x12\x12\n\x05model\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12:\n\x08\x63ontents\x18\x02 \x03(\x0b\x32#.google.cloud.aiplatform.v1.ContentB\x03\xe0\x41\x02\x12I\n\x12system_instruction\x18\x08 \x01(\x0b\x32#.google.cloud.aiplatform.v1.ContentB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x34\n\x05tools\x18\x06 \x03(\x0b\x32 .google.cloud.aiplatform.v1.ToolB\x03\xe0\x41\x01\x12@\n\x0btool_config\x18\x07 \x01(\x0b\x32&.google.cloud.aiplatform.v1.ToolConfigB\x03\xe0\x41\x01\x12G\n\x0fsafety_settings\x18\x03 \x03(\x0b\x32).google.cloud.aiplatform.v1.SafetySettingB\x03\xe0\x41\x01\x12L\n\x11generation_config\x18\x04 \x01(\x0b\x32,.google.cloud.aiplatform.v1.GenerationConfigB\x03\xe0\x41\x01\x42\x15\n\x13_system_instruction\"\xd7\x05\n\x17GenerateContentResponse\x12>\n\ncandidates\x18\x02 \x03(\x0b\x32%.google.cloud.aiplatform.v1.CandidateB\x03\xe0\x41\x03\x12`\n\x0fprompt_feedback\x18\x03 \x01(\x0b\x32\x42.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedbackB\x03\xe0\x41\x03\x12Y\n\x0eusage_metadata\x18\x04 \x01(\x0b\x32\x41.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata\x1a\xd6\x02\n\x0ePromptFeedback\x12k\n\x0c\x62lock_reason\x18\x01 \x01(\x0e\x32P.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.BlockedReasonB\x03\xe0\x41\x03\x12\x45\n\x0esafety_ratings\x18\x02 \x03(\x0b\x32(.google.cloud.aiplatform.v1.SafetyRatingB\x03\xe0\x41\x03\x12!\n\x14\x62lock_reason_message\x18\x03 \x01(\tB\x03\xe0\x41\x03\"m\n\rBlockedReason\x12\x1e\n\x1a\x42LOCKED_REASON_UNSPECIFIED\x10\x00\x12\n\n\x06SAFETY\x10\x01\x12\t\n\x05OTHER\x10\x02\x12\r\n\tBLOCKLIST\x10\x03\x12\x16\n\x12PROHIBITED_CONTENT\x10\x04\x1a\x66\n\rUsageMetadata\x12\x1a\n\x12prompt_token_count\x18\x01 \x01(\x05\x12\x1e\n\x16\x63\x61ndidates_token_count\x18\x02 \x01(\x05\x12\x19\n\x11total_token_count\x18\x03 \x01(\x05\x32\x97\x1c\n\x11PredictionService\x12\x94\x02\n\x07Predict\x12*.google.cloud.aiplatform.v1.PredictRequest\x1a+.google.cloud.aiplatform.v1.PredictResponse\"\xaf\x01\xda\x41\x1d\x65ndpoint,instances,parameters\x82\xd3\xe4\x93\x02\x88\x01\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict:\x01*ZH\"C/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:predict:\x01*\x12\xfe\x01\n\nRawPredict\x12-.google.cloud.aiplatform.v1.RawPredictRequest\x1a\x14.google.api.HttpBody\"\xaa\x01\xda\x41\x12\x65ndpoint,http_body\x82\xd3\xe4\x93\x02\x8e\x01\"\"9/v1/{endpoint=projects/*/locations/*/endpoints/*}:explain:\x01*\x12\xa7\x02\n\x0fGenerateContent\x12\x32.google.cloud.aiplatform.v1.GenerateContentRequest\x1a\x33.google.cloud.aiplatform.v1.GenerateContentResponse\"\xaa\x01\xda\x41\x0emodel,contents\x82\xd3\xe4\x93\x02\x92\x01\">/v1/{model=projects/*/locations/*/endpoints/*}:generateContent:\x01*ZM\"H/v1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent:\x01*\x12\xbb\x02\n\x15StreamGenerateContent\x12\x32.google.cloud.aiplatform.v1.GenerateContentRequest\x1a\x33.google.cloud.aiplatform.v1.GenerateContentResponse\"\xb6\x01\xda\x41\x0emodel,contents\x82\xd3\xe4\x93\x02\x9e\x01\"D/v1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent:\x01*ZS\"N/v1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent:\x01*0\x01\x1a\x86\x01\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41ghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB\xd4\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x16PredictionServiceProtoP\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" pool = Google::Protobuf::DescriptorPool.generated_pool diff --git a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/tool_pb.rb b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/tool_pb.rb index d8c0b3b88a61..ba300e2883da 100644 --- a/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/tool_pb.rb +++ b/google-cloud-ai_platform-v1/lib/google/cloud/aiplatform/v1/tool_pb.rb @@ -10,7 +10,7 @@ require 'google/protobuf/struct_pb' -descriptor_data = "\n%google/cloud/aiplatform/v1/tool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/openapi.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf3\x01\n\x04Tool\x12S\n\x15\x66unction_declarations\x18\x01 \x03(\x0b\x32/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xe0\x41\x01\x12=\n\tretrieval\x18\x02 \x01(\x0b\x32%.google.cloud.aiplatform.v1.RetrievalB\x03\xe0\x41\x01\x12W\n\x17google_search_retrieval\x18\x03 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.GoogleSearchRetrievalB\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\"\x7f\n\tRetrieval\x12\x46\n\x10vertex_ai_search\x18\x02 \x01(\x0b\x32*.google.cloud.aiplatform.v1.VertexAISearchH\x00\x12 \n\x13\x64isable_attribution\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x42\x08\n\x06source\"(\n\x0eVertexAISearch\x12\x16\n\tdatastore\x18\x01 \x01(\tB\x03\xe0\x41\x02\"9\n\x15GoogleSearchRetrieval\x12 \n\x13\x64isable_attribution\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\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" +descriptor_data = "\n%google/cloud/aiplatform/v1/tool.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/aiplatform/v1/openapi.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf3\x01\n\x04Tool\x12S\n\x15\x66unction_declarations\x18\x01 \x03(\x0b\x32/.google.cloud.aiplatform.v1.FunctionDeclarationB\x03\xe0\x41\x01\x12=\n\tretrieval\x18\x02 \x01(\x0b\x32%.google.cloud.aiplatform.v1.RetrievalB\x03\xe0\x41\x01\x12W\n\x17google_search_retrieval\x18\x03 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.GoogleSearchRetrievalB\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\"\x7f\n\tRetrieval\x12\x46\n\x10vertex_ai_search\x18\x02 \x01(\x0b\x32*.google.cloud.aiplatform.v1.VertexAISearchH\x00\x12 \n\x13\x64isable_attribution\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x42\x08\n\x06source\"(\n\x0eVertexAISearch\x12\x16\n\tdatastore\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15GoogleSearchRetrieval\"e\n\nToolConfig\x12W\n\x17\x66unction_calling_config\x18\x01 \x01(\x0b\x32\x31.google.cloud.aiplatform.v1.FunctionCallingConfigB\x03\xe0\x41\x01\"\xc2\x01\n\x15\x46unctionCallingConfig\x12I\n\x04mode\x18\x01 \x01(\x0e\x32\x36.google.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\x03\xe0\x41\x01\x12#\n\x16\x61llowed_function_names\x18\x02 \x03(\tB\x03\xe0\x41\x01\"9\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\x07\n\x03\x41NY\x10\x02\x12\x08\n\x04NONE\x10\x03\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" pool = Google::Protobuf::DescriptorPool.generated_pool @@ -49,6 +49,9 @@ module V1 Retrieval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Retrieval").msgclass VertexAISearch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.VertexAISearch").msgclass GoogleSearchRetrieval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GoogleSearchRetrieval").msgclass + ToolConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ToolConfig").msgclass + FunctionCallingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionCallingConfig").msgclass + FunctionCallingConfig::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.FunctionCallingConfig.Mode").enummodule end end end diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/content.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/content.rb index f58a0d41767d..891afd53b0e4 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/content.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/content.rb @@ -150,6 +150,15 @@ class VideoMetadata # The model needs to be prompted to output the appropriate response type, # otherwise the behavior is undefined. # This is a preview feature. + # @!attribute [rw] response_schema + # @return [::Google::Cloud::AIPlatform::V1::Schema] + # Optional. The `Schema` object allows the definition of input and output + # data types. These types can be objects, but also primitives and arrays. + # Represents a select subset of an [OpenAPI 3.0 schema + # object](https://spec.openapis.org/oas/v3.0.3#schema). + # If set, a compatible response_mime_type must also be set. + # Compatible mimetypes: + # `application/json`: Schema for JSON response. class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -363,58 +372,10 @@ module FinishReason end end - # Segment of the content. - # @!attribute [r] part_index - # @return [::Integer] - # Output only. The index of a Part object within its parent Content object. - # @!attribute [r] start_index - # @return [::Integer] - # Output only. Start index in the given Part, measured in bytes. Offset from - # the start of the Part, inclusive, starting at zero. - # @!attribute [r] end_index - # @return [::Integer] - # Output only. End index in the given Part, measured in bytes. Offset from - # the start of the Part, exclusive, starting at zero. - class Segment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Grounding attribution. - # @!attribute [rw] web - # @return [::Google::Cloud::AIPlatform::V1::GroundingAttribution::Web] - # Optional. Attribution from the web. - # @!attribute [r] segment - # @return [::Google::Cloud::AIPlatform::V1::Segment] - # Output only. Segment of the content this attribution belongs to. - # @!attribute [r] confidence_score - # @return [::Float] - # Optional. Output only. Confidence score of the attribution. Ranges from 0 - # to 1. 1 is the most confident. - class GroundingAttribution - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Attribution from the web. - # @!attribute [r] uri - # @return [::String] - # Output only. URI reference of the attribution. - # @!attribute [r] title - # @return [::String] - # Output only. Title of the attribution. - class Web - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - # Metadata returned to client when grounding is enabled. # @!attribute [rw] web_search_queries # @return [::Array<::String>] # Optional. Web search queries for the following-up web search. - # @!attribute [rw] grounding_attributions - # @return [::Array<::Google::Cloud::AIPlatform::V1::GroundingAttribution>] - # Optional. List of grounding attributions. # @!attribute [rw] search_entry_point # @return [::Google::Cloud::AIPlatform::V1::SearchEntryPoint] # Optional. Google search entry for the following-up web searches. diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset.rb index 1a11d7553919..cdb8c701a10d 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset.rb @@ -93,6 +93,10 @@ module V1 # MetadataStore when creating the Dataset. The Artifact resource name pattern # is # `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. + # @!attribute [rw] model_reference + # @return [::String] + # Optional. Reference to the public base model last used by the dataset. Only + # set for prompt datasets. class Dataset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb index 587edd7ffc8a..eaef74343f53 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb @@ -77,6 +77,23 @@ class UpdateDatasetRequest extend ::Google::Protobuf::MessageExts::ClassMethods end + # Request message for + # {::Google::Cloud::AIPlatform::V1::DatasetService::Client#update_dataset_version DatasetService.UpdateDatasetVersion}. + # @!attribute [rw] dataset_version + # @return [::Google::Cloud::AIPlatform::V1::DatasetVersion] + # Required. The DatasetVersion which replaces the resource on the server. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The update mask applies to the resource. + # For the `FieldMask` definition, see + # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Updatable fields: + # + # * `display_name` + class UpdateDatasetVersionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Request message for # {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_datasets DatasetService.ListDatasets}. # @!attribute [rw] parent diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb index 91cdddbbd749..64c332f162ae 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb @@ -46,6 +46,10 @@ module V1 # @!attribute [r] metadata # @return [::Google::Protobuf::Value] # Required. Output only. Additional information about the DatasetVersion. + # @!attribute [r] model_reference + # @return [::String] + # Output only. Reference to the public base model last used by the dataset + # version. Only set for prompt dataset versions. class DatasetVersion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb index 5dd2a1f52073..8a01226f3cbb 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb @@ -32,6 +32,29 @@ module V1 # @return [::Google::Cloud::AIPlatform::V1::DedicatedResources] # Required. The underlying DedicatedResources that the DeploymentResourcePool # uses. + # @!attribute [rw] encryption_spec + # @return [::Google::Cloud::AIPlatform::V1::EncryptionSpec] + # Customer-managed encryption key spec for a DeploymentResourcePool. If set, + # this DeploymentResourcePool will be secured by this key. Endpoints and the + # DeploymentResourcePool they deploy in need to have the same EncryptionSpec. + # @!attribute [rw] service_account + # @return [::String] + # The service account that the DeploymentResourcePool's container(s) run as. + # Specify the email address of the service account. If this service account + # is not specified, the container(s) run as a service account that doesn't + # have access to the resource project. + # + # Users deploying the Models to this DeploymentResourcePool must have the + # `iam.serviceAccounts.actAs` permission on this service account. + # @!attribute [rw] disable_container_logging + # @return [::Boolean] + # If the DeploymentResourcePool is deployed with custom-trained Models or + # AutoML Tabular Models, the container(s) of the DeploymentResourcePool will + # send `stderr` and `stdout` streams to Cloud Logging by default. + # Please note that the logs incur cost, which are subject to [Cloud Logging + # pricing](https://cloud.google.com/logging/pricing). + # + # User can disable container logging by setting this flag to true. # @!attribute [r] create_time # @return [::Google::Protobuf::Timestamp] # Output only. Timestamp when this DeploymentResourcePool was created. diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature.rb index 16ffcc1815b1..4ba8f760a9db 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature.rb @@ -168,6 +168,9 @@ module ValueType # Used for Feature that is bytes. BYTES = 13 + + # Used for Feature that is struct. + STRUCT = 14 end end end diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature_group.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature_group.rb index bdbb3e5dcdb9..f955d3503906 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature_group.rb @@ -25,9 +25,9 @@ module V1 # @!attribute [rw] big_query # @return [::Google::Cloud::AIPlatform::V1::FeatureGroup::BigQuery] # Indicates that features for this group come from BigQuery Table/View. - # By default treats the source as a sparse time series source, which is - # required to have an entity_id and a feature_timestamp column in the - # source. + # By default treats the source as a sparse time series source. The BigQuery + # source table or view must have at least one entity ID column and a column + # named `feature_timestamp`. # @!attribute [rw] name # @return [::String] # Identifier. Name of the FeatureGroup. Format: diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb index f8cc3f644f06..32fe7d360da7 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb @@ -70,6 +70,10 @@ module V1 # @return [::Google::Cloud::AIPlatform::V1::FeatureOnlineStore::DedicatedServingEndpoint] # Optional. The dedicated serving endpoint for this FeatureOnlineStore, which # is different from common Vertex service endpoint. + # @!attribute [rw] encryption_spec + # @return [::Google::Cloud::AIPlatform::V1::EncryptionSpec] + # Optional. Customer-managed encryption key spec for data storage. If set, + # online store will be secured by this key. class FeatureOnlineStore include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb index 66cd972adb4c..bf33c5a89c49 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb @@ -221,6 +221,9 @@ class StreamingReadFeatureValuesRequest # @!attribute [rw] bytes_value # @return [::String] # Bytes feature value. + # @!attribute [rw] struct_value + # @return [::Google::Cloud::AIPlatform::V1::StructValue] + # A struct type feature value. # @!attribute [rw] metadata # @return [::Google::Cloud::AIPlatform::V1::FeatureValue::Metadata] # Metadata of feature value. @@ -243,6 +246,27 @@ class Metadata end end + # Struct (or object) type feature value. + # @!attribute [rw] values + # @return [::Array<::Google::Cloud::AIPlatform::V1::StructFieldValue>] + # A list of field values. + class StructValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # One field of a Struct (or object) type feature value. + # @!attribute [rw] name + # @return [::String] + # Name of the field in the struct feature. + # @!attribute [rw] value + # @return [::Google::Cloud::AIPlatform::V1::FeatureValue] + # The value for this field. + class StructFieldValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Container for list of values. # @!attribute [rw] values # @return [::Array<::Google::Cloud::AIPlatform::V1::FeatureValue>] diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/index.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/index.rb index 6ff9ec7dc77e..31d9003ae7ba 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/index.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/index.rb @@ -126,8 +126,11 @@ module IndexUpdateMethod # Required. Unique identifier of the datapoint. # @!attribute [rw] feature_vector # @return [::Array<::Float>] - # Required. Feature embedding vector. An array of numbers with the length of - # [NearestNeighborSearchConfig.dimensions]. + # Required. Feature embedding vector for dense index. An array of numbers + # with the length of [NearestNeighborSearchConfig.dimensions]. + # @!attribute [rw] sparse_embedding + # @return [::Google::Cloud::AIPlatform::V1::IndexDatapoint::SparseEmbedding] + # Optional. Feature embedding vector for sparse index. # @!attribute [rw] restricts # @return [::Array<::Google::Cloud::AIPlatform::V1::IndexDatapoint::Restriction>] # Optional. List of Restrict of the datapoint, used to perform "restricted @@ -147,6 +150,20 @@ class IndexDatapoint include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods + # Feature embedding vector for sparse index. An array of numbers whose values + # are located in the specified dimensions. + # @!attribute [rw] values + # @return [::Array<::Float>] + # Required. The list of embedding values of the sparse vector. + # @!attribute [rw] dimensions + # @return [::Array<::Integer>] + # Required. The list of indexes for the embedding values of the sparse + # vector. + class SparseEmbedding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Restriction of a datapoint which describe its attributes(tokens) from each # of several attribute categories(namespaces). # @!attribute [rw] namespace @@ -233,7 +250,10 @@ class CrowdingTag # Stats of the Index. # @!attribute [r] vectors_count # @return [::Integer] - # Output only. The number of vectors in the Index. + # Output only. The number of dense vectors in the Index. + # @!attribute [r] sparse_vectors_count + # @return [::Integer] + # Output only. The number of sparse vectors in the Index. # @!attribute [r] shards_count # @return [::Integer] # Output only. The number of shards in the Index. diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/index_service.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/index_service.rb index 2bde9ebe6a0d..359c0572768d 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/index_service.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/index_service.rb @@ -253,8 +253,8 @@ module RecordErrorType # The embedding id is not valid. INVALID_EMBEDDING_ID = 5 - # The size of the embedding vectors does not match with the specified - # dimension. + # The size of the dense embedding vectors does not match with the + # specified dimension. EMBEDDING_SIZE_MISMATCH = 6 # The `namespace` field is missing. @@ -279,8 +279,17 @@ module RecordErrorType # File is not in UTF_8 format. INVALID_ENCODING = 13 + # Error parsing sparse dimensions field. + INVALID_SPARSE_DIMENSIONS = 14 + # Token restrict value is invalid. INVALID_TOKEN_VALUE = 15 + + # Invalid sparse embedding. + INVALID_SPARSE_EMBEDDING = 16 + + # Invalid dense embedding. + INVALID_EMBEDDING = 17 end end @@ -298,6 +307,12 @@ module RecordErrorType # The detail information of the partial failures encountered for those # invalid records that couldn't be parsed. # Up to 50 partial errors will be reported. + # @!attribute [rw] valid_sparse_record_count + # @return [::Integer] + # Number of sparse records in this file that were successfully processed. + # @!attribute [rw] invalid_sparse_record_count + # @return [::Integer] + # Number of sparse records in this file we skipped due to validate errors. class ContentValidationStats include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/match_service.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/match_service.rb index 1e679e59c2c9..798a0176b5ae 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/match_service.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/match_service.rb @@ -51,6 +51,9 @@ class FindNeighborsRequest # A query to find a number of the nearest neighbors (most similar vectors) # of a vector. + # @!attribute [rw] rrf + # @return [::Google::Cloud::AIPlatform::V1::FindNeighborsRequest::Query::RRF] + # Optional. Represents RRF algorithm that combines search results. # @!attribute [rw] datapoint # @return [::Google::Cloud::AIPlatform::V1::IndexDatapoint] # Required. The datapoint/vector whose nearest neighbors should be searched @@ -83,6 +86,17 @@ class FindNeighborsRequest class Query include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods + + # Parameters for RRF algorithm that combines search results. + # @!attribute [rw] alpha + # @return [::Float] + # Required. Users can provide an alpha value to give more weight to dense + # vs sparse results. For example, if the alpha is 0, we only return + # sparse and if the alpha is 1, we only return dense. + class RRF + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end end @@ -104,7 +118,10 @@ class FindNeighborsResponse # fields are populated. # @!attribute [rw] distance # @return [::Float] - # The distance between the neighbor and the query vector. + # The distance between the neighbor and the dense embedding query. + # @!attribute [rw] sparse_distance + # @return [::Float] + # The distance between the neighbor and the query sparse_embedding. class Neighbor include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb index dfd0aa4ef0b6..ce076ac416d7 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb @@ -43,6 +43,9 @@ module V1 # @!attribute [r] state # @return [::Google::Cloud::AIPlatform::V1::MetadataStore::MetadataStoreState] # Output only. State information of the MetadataStore. + # @!attribute [rw] dataplex_config + # @return [::Google::Cloud::AIPlatform::V1::MetadataStore::DataplexConfig] + # Optional. Dataplex integration settings. class MetadataStore include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -55,6 +58,16 @@ class MetadataStoreState include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + + # Represents Dataplex integration settings. + # @!attribute [rw] enabled_pipelines_lineage + # @return [::Boolean] + # Optional. Whether or not Data Lineage synchronization is enabled for + # Vertex Pipelines. + class DataplexConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end end end diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/model.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/model.rb index eb13d2c01eec..dae957e2e3b5 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/model.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/model.rb @@ -830,7 +830,7 @@ module ModelSourceType # determine whether it is alive or ready to receive traffic. # @!attribute [rw] exec # @return [::Google::Cloud::AIPlatform::V1::Probe::ExecAction] - # Exec specifies the action to take. + # ExecAction probes the health of a container by executing a command. # @!attribute [rw] period_seconds # @return [::Integer] # How often (in seconds) to perform the probe. Default to 10 seconds. diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb index cb46ae108dce..596c06c469f5 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb @@ -97,6 +97,9 @@ module V1 # @return [::Array<::String>] # Optional. The Compute Engine tags to add to runtime (see [Tagging # instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)). + # @!attribute [rw] encryption_spec + # @return [::Google::Cloud::AIPlatform::V1::EncryptionSpec] + # Customer-managed encryption key spec for the notebook runtime. class NotebookRuntimeTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -186,10 +189,22 @@ class LabelsEntry # @!attribute [r] notebook_runtime_type # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeType] # Output only. The type of the notebook runtime. + # @!attribute [r] idle_shutdown_config + # @return [::Google::Cloud::AIPlatform::V1::NotebookIdleShutdownConfig] + # Output only. The idle shutdown configuration of the notebook runtime. # @!attribute [rw] network_tags # @return [::Array<::String>] # Optional. The Compute Engine tags to add to runtime (see [Tagging # instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)). + # @!attribute [r] encryption_spec + # @return [::Google::Cloud::AIPlatform::V1::EncryptionSpec] + # Output only. Customer-managed encryption key spec for the notebook runtime. + # @!attribute [r] satisfies_pzs + # @return [::Boolean] + # Output only. Reserved for future use. + # @!attribute [r] satisfies_pzi + # @return [::Boolean] + # Output only. Reserved for future use. class NotebookRuntime include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb index ed6b0774bd00..0d43fb824ae8 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb @@ -147,6 +147,24 @@ class DeleteNotebookRuntimeTemplateRequest extend ::Google::Protobuf::MessageExts::ClassMethods end + # Request message for + # {::Google::Cloud::AIPlatform::V1::NotebookService::Client#update_notebook_runtime_template NotebookService.UpdateNotebookRuntimeTemplate}. + # @!attribute [rw] notebook_runtime_template + # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate] + # Required. The NotebookRuntimeTemplate to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The update mask applies to the resource. + # For the `FieldMask` definition, see + # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Input format: + # `{paths: "${updated_filed}"}` Updatable fields: + # + # * `encryption_spec.kms_key_name` + class UpdateNotebookRuntimeTemplateRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Request message for # {::Google::Cloud::AIPlatform::V1::NotebookService::Client#assign_notebook_runtime NotebookService.AssignNotebookRuntime}. # @!attribute [rw] parent diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb index 2cd2b05fe513..1ccdb30fb9a2 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb @@ -207,15 +207,69 @@ class ResourceRuntimeSpec # For experimental launch, Ray cluster creation and Persistent # cluster creation are 1:1 mapping: We will provision all the nodes within the # Persistent cluster as Ray nodes. + # @!attribute [rw] image_uri + # @return [::String] + # Optional. Default image for user to choose a preferred ML framework + # (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt + # images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). + # Either this or the resource_pool_images is required. Use this field if + # you need all the resource pools to have the same Ray image. Otherwise, use + # the \\{@code resource_pool_images} field. + # @!attribute [rw] resource_pool_images + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Required if image_uri isn't set. A map of resource_pool_id to + # prebuild Ray image if user need to use different images for different + # head/worker pools. This map needs to cover all the resource pool ids. + # Example: + # { + # "ray_head_node_pool": "head image" + # "ray_worker_node_pool1": "worker image" + # "ray_worker_node_pool2": "another worker image" + # } + # @!attribute [rw] head_node_resource_pool_id + # @return [::String] + # Optional. This will be used to indicate which resource pool will serve as + # the Ray head node(the first node within that pool). Will use the machine + # from the first workerpool as the head node by default if this field isn't + # set. + # @!attribute [rw] ray_metric_spec + # @return [::Google::Cloud::AIPlatform::V1::RayMetricSpec] + # Optional. Ray metrics configurations. class RaySpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ResourcePoolImagesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end # Persistent Cluster runtime information as output + # @!attribute [r] access_uris + # @return [::Google::Protobuf::Map{::String => ::String}] + # Output only. URIs for user to connect to the Cluster. + # Example: + # { + # "RAY_HEAD_NODE_INTERNAL_IP": "head-node-IP:10001" + # "RAY_DASHBOARD_URI": "ray-dashboard-address:8888" + # } class ResourceRuntime include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AccessUrisEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end # Configuration for the use of custom service account to run the workloads. @@ -242,6 +296,15 @@ class ServiceAccountSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + + # Configuration for the Ray metrics. + # @!attribute [rw] disabled + # @return [::Boolean] + # Optional. Flag to disable the Ray metrics collection. + class RayMetricSpec + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end end end end diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb index ef1379e3a486..dd7dd6e14ef7 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb @@ -485,6 +485,10 @@ class CountTokensResponse # A `Tool` is a piece of code that enables the system to interact with # external systems to perform an action, or set of actions, outside of # knowledge and scope of the model. + # @!attribute [rw] tool_config + # @return [::Google::Cloud::AIPlatform::V1::ToolConfig] + # Optional. Tool config. This config is shared for all tools provided in the + # request. # @!attribute [rw] safety_settings # @return [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting>] # Optional. Per request settings for blocking unsafe content. diff --git a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/tool.rb b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/tool.rb index cee663eb82d1..fabefe0d87b9 100644 --- a/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/tool.rb +++ b/google-cloud-ai_platform-v1/proto_docs/google/cloud/aiplatform/v1/tool.rb @@ -148,15 +148,53 @@ class VertexAISearch end # Tool to retrieve public web data for grounding, powered by Google. - # @!attribute [rw] disable_attribution - # @return [::Boolean] - # Optional. Disable using the result from this tool in detecting grounding - # attribution. This does not affect how the result is given to the model for - # generation. class GoogleSearchRetrieval include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + + # Tool config. This config is shared for all tools provided in the request. + # @!attribute [rw] function_calling_config + # @return [::Google::Cloud::AIPlatform::V1::FunctionCallingConfig] + # Optional. Function calling config. + class ToolConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Function calling config. + # @!attribute [rw] mode + # @return [::Google::Cloud::AIPlatform::V1::FunctionCallingConfig::Mode] + # Optional. Function calling mode. + # @!attribute [rw] allowed_function_names + # @return [::Array<::String>] + # Optional. Function names to call. Only set when the Mode is ANY. Function + # names should match [FunctionDeclaration.name]. With mode set to ANY, model + # will predict a function call from the set of function names provided. + class FunctionCallingConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Function calling mode. + module Mode + # Unspecified function calling mode. This value should not be used. + MODE_UNSPECIFIED = 0 + + # Default model behavior, model decides to predict either a function call + # or a natural language repspose. + AUTO = 1 + + # Model is constrained to always predicting a function call only. + # If "allowed_function_names" are set, the predicted function call will be + # limited to any one of "allowed_function_names", else the predicted + # function call will be any one of the provided "function_declarations". + ANY = 2 + + # Model will not predict any function call. Model behavior is same as when + # not passing any function declarations. + NONE = 3 + end + end end end end diff --git a/google-cloud-ai_platform-v1/snippets/dataset_service/update_dataset_version.rb b/google-cloud-ai_platform-v1/snippets/dataset_service/update_dataset_version.rb new file mode 100644 index 000000000000..a4f02856940e --- /dev/null +++ b/google-cloud-ai_platform-v1/snippets/dataset_service/update_dataset_version.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_sync] +require "google/cloud/ai_platform/v1" + +## +# Snippet for the update_dataset_version call in the DatasetService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::AIPlatform::V1::DatasetService::Client#update_dataset_version. +# +def update_dataset_version + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new + + # Call the update_dataset_version method. + result = client.update_dataset_version request + + # The returned object is of type Google::Cloud::AIPlatform::V1::DatasetVersion. + p result +end +# [END aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_sync] diff --git a/google-cloud-ai_platform-v1/snippets/notebook_service/update_notebook_runtime_template.rb b/google-cloud-ai_platform-v1/snippets/notebook_service/update_notebook_runtime_template.rb new file mode 100644 index 000000000000..402632a84cc6 --- /dev/null +++ b/google-cloud-ai_platform-v1/snippets/notebook_service/update_notebook_runtime_template.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_sync] +require "google/cloud/ai_platform/v1" + +## +# Snippet for the update_notebook_runtime_template call in the NotebookService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::AIPlatform::V1::NotebookService::Client#update_notebook_runtime_template. +# +def update_notebook_runtime_template + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::AIPlatform::V1::NotebookService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new + + # Call the update_notebook_runtime_template method. + result = client.update_notebook_runtime_template request + + # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate. + p result +end +# [END aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_sync] diff --git a/google-cloud-ai_platform-v1/snippets/snippet_metadata_google.cloud.aiplatform.v1.json b/google-cloud-ai_platform-v1/snippets/snippet_metadata_google.cloud.aiplatform.v1.json index 9d536be4f68e..54c85a3d8970 100644 --- a/google-cloud-ai_platform-v1/snippets/snippet_metadata_google.cloud.aiplatform.v1.json +++ b/google-cloud-ai_platform-v1/snippets/snippet_metadata_google.cloud.aiplatform.v1.json @@ -331,6 +331,46 @@ } ] }, + { + "region_tag": "aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_sync", + "title": "Snippet for the update_dataset_version call in the DatasetService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::AIPlatform::V1::DatasetService::Client#update_dataset_version.", + "file": "dataset_service/update_dataset_version.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_dataset_version", + "full_name": "::Google::Cloud::AIPlatform::V1::DatasetService::Client#update_dataset_version", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::AIPlatform::V1::DatasetVersion", + "client": { + "short_name": "DatasetService::Client", + "full_name": "::Google::Cloud::AIPlatform::V1::DatasetService::Client" + }, + "method": { + "short_name": "UpdateDatasetVersion", + "full_name": "google.cloud.aiplatform.v1.DatasetService.UpdateDatasetVersion", + "service": { + "short_name": "DatasetService", + "full_name": "google.cloud.aiplatform.v1.DatasetService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, { "region_tag": "aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_sync", "title": "Snippet for the delete_dataset_version call in the DatasetService service", @@ -8331,6 +8371,46 @@ } ] }, + { + "region_tag": "aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_sync", + "title": "Snippet for the update_notebook_runtime_template call in the NotebookService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::AIPlatform::V1::NotebookService::Client#update_notebook_runtime_template.", + "file": "notebook_service/update_notebook_runtime_template.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_notebook_runtime_template", + "full_name": "::Google::Cloud::AIPlatform::V1::NotebookService::Client#update_notebook_runtime_template", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate", + "client": { + "short_name": "NotebookService::Client", + "full_name": "::Google::Cloud::AIPlatform::V1::NotebookService::Client" + }, + "method": { + "short_name": "UpdateNotebookRuntimeTemplate", + "full_name": "google.cloud.aiplatform.v1.NotebookService.UpdateNotebookRuntimeTemplate", + "service": { + "short_name": "NotebookService", + "full_name": "google.cloud.aiplatform.v1.NotebookService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, { "region_tag": "aiplatform_v1_generated_NotebookService_AssignNotebookRuntime_sync", "title": "Snippet for the assign_notebook_runtime call in the NotebookService service", diff --git a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/dataset_service_rest_test.rb b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/dataset_service_rest_test.rb index 2a599719ac5b..964e49e87ee0 100644 --- a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/dataset_service_rest_test.rb +++ b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/dataset_service_rest_test.rb @@ -513,6 +513,61 @@ def test_create_dataset_version end end + def test_update_dataset_version + # Create test objects. + client_result = ::Google::Cloud::AIPlatform::V1::DatasetVersion.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + dataset_version = {} + update_mask = {} + + update_dataset_version_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::AIPlatform::V1::DatasetService::Rest::ServiceStub.stub :transcode_update_dataset_version_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_dataset_version_client_stub do + # Create client + client = ::Google::Cloud::AIPlatform::V1::DatasetService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_dataset_version({ dataset_version: dataset_version, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_dataset_version dataset_version: dataset_version, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_dataset_version ::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new(dataset_version: dataset_version, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_dataset_version({ dataset_version: dataset_version, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_dataset_version(::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new(dataset_version: dataset_version, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_dataset_version_client_stub.call_count + end + end + end + def test_delete_dataset_version # Create test objects. client_result = ::Google::Longrunning::Operation.new diff --git a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/dataset_service_test.rb b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/dataset_service_test.rb index 7907e660d88c..0377322cfa88 100644 --- a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/dataset_service_test.rb +++ b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/dataset_service_test.rb @@ -571,6 +571,66 @@ def test_create_dataset_version end end + def test_update_dataset_version + # Create GRPC objects. + grpc_response = ::Google::Cloud::AIPlatform::V1::DatasetVersion.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + dataset_version = {} + update_mask = {} + + update_dataset_version_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_dataset_version, name + assert_kind_of ::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::AIPlatform::V1::DatasetVersion), request["dataset_version"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_dataset_version_client_stub do + # Create client + client = ::Google::Cloud::AIPlatform::V1::DatasetService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_dataset_version({ dataset_version: dataset_version, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_dataset_version dataset_version: dataset_version, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_dataset_version ::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new(dataset_version: dataset_version, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_dataset_version({ dataset_version: dataset_version, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_dataset_version(::Google::Cloud::AIPlatform::V1::UpdateDatasetVersionRequest.new(dataset_version: dataset_version, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_dataset_version_client_stub.call_rpc_count + end + end + def test_delete_dataset_version # Create GRPC objects. grpc_response = ::Google::Longrunning::Operation.new diff --git a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/notebook_service_rest_test.rb b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/notebook_service_rest_test.rb index 4f3afbf207a8..72e9ed27cd4a 100644 --- a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/notebook_service_rest_test.rb +++ b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/notebook_service_rest_test.rb @@ -293,6 +293,61 @@ def test_delete_notebook_runtime_template end end + def test_update_notebook_runtime_template + # Create test objects. + client_result = ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + notebook_runtime_template = {} + update_mask = {} + + update_notebook_runtime_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::ServiceStub.stub :transcode_update_notebook_runtime_template_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_notebook_runtime_template_client_stub do + # Create client + client = ::Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_notebook_runtime_template({ notebook_runtime_template: notebook_runtime_template, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_notebook_runtime_template notebook_runtime_template: notebook_runtime_template, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_notebook_runtime_template ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new(notebook_runtime_template: notebook_runtime_template, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_notebook_runtime_template({ notebook_runtime_template: notebook_runtime_template, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_notebook_runtime_template(::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new(notebook_runtime_template: notebook_runtime_template, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_notebook_runtime_template_client_stub.call_count + end + end + end + def test_assign_notebook_runtime # Create test objects. client_result = ::Google::Longrunning::Operation.new diff --git a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/notebook_service_test.rb b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/notebook_service_test.rb index c1298120f75b..4a1460ba2a01 100644 --- a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/notebook_service_test.rb +++ b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/notebook_service_test.rb @@ -316,6 +316,66 @@ def test_delete_notebook_runtime_template end end + def test_update_notebook_runtime_template + # Create GRPC objects. + grpc_response = ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + notebook_runtime_template = {} + update_mask = {} + + update_notebook_runtime_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_notebook_runtime_template, name + assert_kind_of ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate), request["notebook_runtime_template"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_notebook_runtime_template_client_stub do + # Create client + client = ::Google::Cloud::AIPlatform::V1::NotebookService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_notebook_runtime_template({ notebook_runtime_template: notebook_runtime_template, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_notebook_runtime_template notebook_runtime_template: notebook_runtime_template, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_notebook_runtime_template ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new(notebook_runtime_template: notebook_runtime_template, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_notebook_runtime_template({ notebook_runtime_template: notebook_runtime_template, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_notebook_runtime_template(::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new(notebook_runtime_template: notebook_runtime_template, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_notebook_runtime_template_client_stub.call_rpc_count + end + end + def test_assign_notebook_runtime # Create GRPC objects. grpc_response = ::Google::Longrunning::Operation.new diff --git a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/prediction_service_rest_test.rb b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/prediction_service_rest_test.rb index 98286e898687..25100b4f4b48 100644 --- a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/prediction_service_rest_test.rb +++ b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/prediction_service_rest_test.rb @@ -474,6 +474,7 @@ def test_generate_content contents = [{}] system_instruction = {} tools = [{}] + tool_config = {} safety_settings = [{}] generation_config = {} @@ -491,27 +492,27 @@ def test_generate_content end # Use hash object - client.generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config }) do |_result, response| + client.generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - client.generate_content model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config do |_result, response| + client.generate_content model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - client.generate_content ::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config) do |_result, response| + client.generate_content ::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - client.generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config }, call_options) do |_result, response| + client.generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - client.generate_content(::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config), call_options) do |_result, response| + client.generate_content(::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config), call_options) do |_result, response| assert_equal http_response, response.underlying_op end @@ -533,6 +534,7 @@ def test_stream_generate_content contents = [{}] system_instruction = {} tools = [{}] + tool_config = {} safety_settings = [{}] generation_config = {} @@ -550,27 +552,27 @@ def test_stream_generate_content end # Use hash object - client.stream_generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config }) do |_result, response| + client.stream_generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config }) do |_result, response| assert_equal http_response, response.underlying_op end.first # Use named arguments - client.stream_generate_content model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config do |_result, response| + client.stream_generate_content model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config do |_result, response| assert_equal http_response, response.underlying_op end.first # Use protobuf object - client.stream_generate_content ::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config) do |_result, response| + client.stream_generate_content ::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config) do |_result, response| assert_equal http_response, response.underlying_op end.first # Use hash object with options - client.stream_generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config }, call_options) do |_result, response| + client.stream_generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end.first # Use protobuf object with options - client.stream_generate_content(::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config), call_options) do |_result, response| + client.stream_generate_content(::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config), call_options) do |_result, response| assert_equal http_response, response.underlying_op end.first diff --git a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/prediction_service_test.rb b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/prediction_service_test.rb index 3c0407c96c65..14a7c0c3848f 100644 --- a/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/prediction_service_test.rb +++ b/google-cloud-ai_platform-v1/test/google/cloud/ai_platform/v1/prediction_service_test.rb @@ -899,6 +899,7 @@ def test_generate_content contents = [{}] system_instruction = {} tools = [{}] + tool_config = {} safety_settings = [{}] generation_config = {} @@ -910,6 +911,7 @@ def test_generate_content assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::AIPlatform::V1::Content), request["system_instruction"] assert request.has_system_instruction? assert_kind_of ::Google::Cloud::AIPlatform::V1::Tool, request["tools"].first + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::AIPlatform::V1::ToolConfig), request["tool_config"] assert_kind_of ::Google::Cloud::AIPlatform::V1::SafetySetting, request["safety_settings"].first assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::AIPlatform::V1::GenerationConfig), request["generation_config"] refute_nil options @@ -922,31 +924,31 @@ def test_generate_content end # Use hash object - client.generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config }) do |response, operation| + client.generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config }) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use named arguments - client.generate_content model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config do |response, operation| + client.generate_content model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object - client.generate_content ::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config) do |response, operation| + client.generate_content ::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use hash object with options - client.generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config }, grpc_options) do |response, operation| + client.generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config }, grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object with options - client.generate_content(::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config), grpc_options) do |response, operation| + client.generate_content(::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config), grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end @@ -968,6 +970,7 @@ def test_stream_generate_content contents = [{}] system_instruction = {} tools = [{}] + tool_config = {} safety_settings = [{}] generation_config = {} @@ -979,6 +982,7 @@ def test_stream_generate_content assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::AIPlatform::V1::Content), request["system_instruction"] assert request.has_system_instruction? assert_kind_of ::Google::Cloud::AIPlatform::V1::Tool, request["tools"].first + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::AIPlatform::V1::ToolConfig), request["tool_config"] assert_kind_of ::Google::Cloud::AIPlatform::V1::SafetySetting, request["safety_settings"].first assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::AIPlatform::V1::GenerationConfig), request["generation_config"] refute_nil options @@ -991,7 +995,7 @@ def test_stream_generate_content end # Use hash object - client.stream_generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config }) do |response, operation| + client.stream_generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config }) do |response, operation| assert_kind_of Enumerable, response response.to_a.each do |r| assert_kind_of ::Google::Cloud::AIPlatform::V1::GenerateContentResponse, r @@ -1000,7 +1004,7 @@ def test_stream_generate_content end # Use named arguments - client.stream_generate_content model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config do |response, operation| + client.stream_generate_content model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config do |response, operation| assert_kind_of Enumerable, response response.to_a.each do |r| assert_kind_of ::Google::Cloud::AIPlatform::V1::GenerateContentResponse, r @@ -1009,7 +1013,7 @@ def test_stream_generate_content end # Use protobuf object - client.stream_generate_content ::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config) do |response, operation| + client.stream_generate_content ::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config) do |response, operation| assert_kind_of Enumerable, response response.to_a.each do |r| assert_kind_of ::Google::Cloud::AIPlatform::V1::GenerateContentResponse, r @@ -1018,7 +1022,7 @@ def test_stream_generate_content end # Use hash object with options - client.stream_generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config }, grpc_options) do |response, operation| + client.stream_generate_content({ model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config }, grpc_options) do |response, operation| assert_kind_of Enumerable, response response.to_a.each do |r| assert_kind_of ::Google::Cloud::AIPlatform::V1::GenerateContentResponse, r @@ -1027,7 +1031,7 @@ def test_stream_generate_content end # Use protobuf object with options - client.stream_generate_content(::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, safety_settings: safety_settings, generation_config: generation_config), grpc_options) do |response, operation| + client.stream_generate_content(::Google::Cloud::AIPlatform::V1::GenerateContentRequest.new(model: model, contents: contents, system_instruction: system_instruction, tools: tools, tool_config: tool_config, safety_settings: safety_settings, generation_config: generation_config), grpc_options) do |response, operation| assert_kind_of Enumerable, response response.to_a.each do |r| assert_kind_of ::Google::Cloud::AIPlatform::V1::GenerateContentResponse, r